/* ============================================
   FAQ SECTION - Preguntas frecuentes
   Paleta: #38BDF8 | #FFCC00
   ============================================ */

.faq-section {
    position: relative;
    width: 100%;
    background: var(--gray-50);
    padding: 6rem 0;
    overflow: hidden;
}

/* Container principal */
.faq-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ============================================
   CONTENIDO - LADO IZQUIERDO
   ============================================ */

.faq-content {
    max-width: 580px;
}

/* Badge */
.faq-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

/* Título */
.faq-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.faq-title-highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.faq-title-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent-light);
    z-index: -1;
}

.faq-subtitle {
    font-size: 0.95rem;
    color: #4A5568;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Item del FAQ */
.faq-item {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid var(--accent-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-border);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.05);
}

/* Pregunta */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question-text {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-icon i {
    font-size: 0.8rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    background: var(--accent-light);
}

/* Respuesta */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.2rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.2rem 1.2rem 1.2rem;
}

.faq-answer p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4A5568;
    margin: 0;
}

/* ============================================
   MEDIA - LADO DERECHO (Imagen)
   ============================================ */

.faq-media {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.faq-mockup {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.faq-image {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s ease;
}

.faq-mockup:hover .faq-image {
    transform: scale(1.02);
}

/* Glow decorativo detrás de la imagen */
.faq-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, var(--accent-light) 0%, rgba(56, 189, 248, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    filter: blur(20px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .faq-section {
        padding: 5rem 0;
    }

    .faq-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 2rem;
    }
    
    .faq-content {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .faq-header {
        text-align: center;
    }
    
    .faq-badge {
        display: inline-block;
        margin: 0 auto 1.2rem auto;
    }
    
    .faq-title {
        text-align: center;
    }
    
    .faq-subtitle {
        text-align: center;
    }
    
    .faq-media {
        justify-content: center;
        order: -1;
    }
    
    .faq-mockup {
        max-width: 400px;
    }
}

/* Móvil (hasta 767px) */
@media (max-width: 767px) {
    .faq-section {
        padding: 4rem 0;
    }

    .faq-container {
        padding: 0 1.25rem;
        gap: 2rem;
    }
    
    .faq-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .faq-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question-text {
        font-size: 0.9rem;
    }
    
    .faq-icon {
        width: 24px;
        height: 24px;
    }
    
    .faq-icon i {
        font-size: 0.7rem;
    }
    
    .faq-answer p {
        font-size: 0.85rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }
    
    .faq-mockup {
        max-width: 320px;
    }
}

@media (min-width: 1400px) {
    .faq-section { padding: 7rem 0; }
    .faq-container { max-width: 1380px; padding: 0 3rem; gap: 6rem; }
    .faq-mockup { max-width: 520px; }
}

/* Animación de entrada */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.faq-content {
    animation: fadeInLeft 0.6s ease-out;
}

.faq-media {
    animation: fadeInRight 0.6s ease-out 0.2s both;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .faq-content,
    .faq-media,
    .faq-image {
        animation: none;
        transition: none;
    }
    
    .faq-answer {
        transition: none;
    }
}