/* ============================================ */
/* SECCIÓN FAQ CON ANCHO LIMITADO */
/* ============================================ */

.faq-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.faq-text-content {
    width: 100%;
}

.faq-video-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: sticky;
    top: 100px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item-accordion {
    background: white;
    border-radius: 12px;
    margin-bottom: 0;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.faq-item-accordion:hover {
    border-color: #e0f2fe;
}

.faq-item-accordion.active {
    border-color: var(--secondary-blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.faq-item-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-item-header:hover {
    background: var(--blue-bg-light);
}

.faq-item-accordion.active .faq-item-header {
    background: #f0f9ff;
}

.faq-number {
    font-weight: 700;
    color: var(--secondary-blue);
    font-size: 1.1rem;
    min-width: 24px;
}

.faq-question {
    flex: 1;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.faq-icon {
    color: var(--secondary-blue);
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.faq-item-accordion.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

.faq-item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
}

.faq-item-accordion.active .faq-item-content {
    max-height: 500px;
    padding: 0 24px 20px 64px;
}

.faq-item-content p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.9rem;
    margin: 0;
}

.faq-video-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 650px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.faq-video {
    width: 100%;
    height: auto;
    max-height: 650px;
    display: block;
    object-fit: cover;
    background: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-overlay.hidden {
    opacity: 0;
}

.video-play-btn {
    width: 80px;
    height: 80px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    pointer-events: all;
}

.video-play-btn:hover {
    transform: scale(1.1);
    background: var(--secondary-blue);
}

.video-play-btn i {
    font-size: 28px;
    color: var(--primary-blue);
    margin-left: 4px;
    transition: color 0.3s ease;
}

.video-play-btn:hover i {
    color: white;
}

@media (max-width: 1024px) {
    .faq-content-wrapper {
        gap: 40px;
    }

    .faq-video-container {
        max-width: 350px;
        max-height: 550px;
    }

    .faq-video {
        max-height: 550px;
    }

    .faq-item-header {
        padding: 18px 20px;
        gap: 12px;
    }

    .faq-question {
        font-size: 0.9rem;
    }

    .faq-item-accordion.active .faq-item-content {
        padding: 0 20px 18px 56px;
    }

    .faq-item-content p {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-video-content {
        position: static;
        order: -1;
    }

    .faq-video-container {
        max-width: 100%;
        max-height: 500px;
    }

    .faq-video {
        max-height: 500px;
    }

    .faq-item-header {
        padding: 16px 18px;
        gap: 10px;
    }

    .faq-number {
        font-size: 1rem;
        min-width: 20px;
    }

    .faq-question {
        font-size: 0.875rem;
    }

    .faq-item-accordion.active .faq-item-content {
        padding: 0 18px 16px 48px;
    }

    .faq-item-content p {
        font-size: 0.8125rem;
        line-height: 1.6;
    }

    .video-play-btn {
        width: 70px;
        height: 70px;
    }

    .video-play-btn i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 50px 0;
    }

    .faq-item-header {
        padding: 14px 16px;
    }

    .faq-item-accordion.active .faq-item-content {
        padding: 0 16px 14px 16px;
    }

    .faq-video-container {
        max-height: 450px;
    }

    .faq-video {
        max-height: 450px;
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
    }

    .video-play-btn i {
        font-size: 20px;
    }
}

.faq-item-header:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .faq-item-accordion,
    .faq-item-content,
    .faq-icon,
    .video-overlay {
        transition: none;
    }
}
