/* ===================================================================
   PARTITURAS INTERATIVAS - ESTILOS ESPECÍFICOS
   =================================================================== */

.hidden {
    display: none !important;
}

/* Info Section */
.info-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-card p {
    color: #666;
    line-height: 1.6;
}

/* Videos Section */
.videos-section {
    padding: 4rem 0;
    background: white;
}

.loading-indicator {
    text-align: center;
    padding: 3rem 0;
    color: #666;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 12px;
    margin: 2rem 0;
}

.error-message .error-content i {
    font-size: 3rem;
    color: #e53e3e;
    margin-bottom: 1rem;
}

.error-message h3 {
    color: #e53e3e;
    margin-bottom: 1rem;
}

.error-message p {
    color: #666;
    margin-bottom: 1.5rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.video-card:hover .video-play-button {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button:focus-visible {
    outline: 3px solid #ff5252;
    outline-offset: 4px;
}

.video-youtube-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 0, 0, 0.85);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    pointer-events: none;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.video-youtube-badge span {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.video-content {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.video-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

.video-duration {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.youtube-link {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.fallback-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.fallback-card {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    max-width: 420px;
}

.fallback-icon {
    font-size: 4rem;
    color: #ff0000;
    margin-bottom: 1rem;
}

.fallback-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.fallback-card p {
    color: #666;
    margin-bottom: 2rem;
}

.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 999;
}

body.video-modal-open {
    overflow: hidden;
}

.video-modal.hidden {
    display: none !important;
}

.video-modal-content {
    background: #111827;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    position: relative;
}

.video-modal-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.video-embed {
    position: absolute;
    inset: 0;
}

.video-modal-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(17, 24, 39, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.video-modal-close:hover,
.video-modal-close:focus-visible {
    transform: scale(1.05);
    background: rgba(17, 24, 39, 1);
    outline: none;
}

.video-modal-info {
    padding: 1.8rem;
    color: #f3f4f6;
    line-height: 1.6;
}

.video-modal-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.video-modal-info p {
    color: #d1d5db;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* How to Use Section */
.how-to-use {
    padding: 4rem 0;
    background: #f8f9fa;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.step-card h3 {
    color: #2c3e50;
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.step-card p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInDown 0.6s ease-out;
}

.cta-badge i {
    color: #ffd700;
    margin-right: 0.5rem;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    font-weight: 400;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.cta-benefits {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.cta-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
}

.cta-benefit i {
    color: #4ade80;
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-large i {
    margin-right: 0.5rem;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary-light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary-light:hover {
    background: white;
    color: #667eea;
}

.cta-trust {
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 500;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.cta-trust i {
    margin-right: 0.5rem;
    color: #4ade80;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .info-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .cta-benefits {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .info-section,
    .videos-section,
    .how-to-use,
    .cta-section {
        padding: 2rem 0;
    }
    
    .info-card,
    .step-card {
        padding: 1.5rem;
    }
    
    .video-thumbnail {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 768px) {
    .video-modal {
        padding: 1rem;
    }

    .video-modal-content {
        border-radius: 12px;
    }

    .video-modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation: none;
    }
    
    .video-card,
    .info-card,
    .step-card {
        transition: none;
    }
    
    .video-thumbnail img {
        transition: none;
    }
    
    .video-play-button {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .video-card,
    .info-card,
    .step-card {
        border: 2px solid #000;
    }
    
    .video-play-button {
        background: #000;
        border: 2px solid #fff;
    }
}