/* ==========================================================================
   COMPONENTE · FAQ (acordeón de preguntas frecuentes) — reutilizable
   Enfoque Mobile-First. Valores de Figma (Profesionales · Sección 7).
   ========================================================================== */

.faq-block {
    padding: var(--pt-m, 32px) 0 var(--pb-m, 32px);
    background-color: #FFFFFF;
    box-sizing: border-box;
    font-family: 'Be Vietnam Pro', system-ui, sans-serif;
}

.faq-content {
    max-width: 1098px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;                      /* título → lista (80px en escritorio) */
}

.faq-heading {
    margin: 0;
    max-width: 560px;
    font-weight: 600;
    font-size: 26px;                /* móvil; 32px en escritorio */
    line-height: 120%;
    letter-spacing: -0.72px;
    text-align: center;
    color: #27292B;                 /* base oscuro; resalta palabras con /% %/ (azul) */
}

/* ---- Lista de acordeón ---- */
.faq-list {
    width: 100%;
}

.faq-item {
    border-bottom: 1px solid #D7D9DB;
}

.faq-item:last-child {
    border-bottom: none;
}

/* Pregunta (botón que despliega) — todo el ancho es clicable */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.faq-q-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: -0.45px;
    color: #27292B;
    transition: color 0.2s ease;
}

.faq-question:hover .faq-q-text {
    color: #006491;
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #27292B;
    transition: transform 0.25s ease;
}

.faq-item.is-open .faq-icon {
    transform: rotate(180deg);      /* chevron-down → chevron-up */
}

/* Respuesta: colapsable con max-height (método fiable en todos los navegadores).
   Cerrado = max-height 0 + overflow hidden; abierto = alto suficiente. */
.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 600px;              /* holgado para cualquier respuesta de FAQ */
}

.faq-answer-inner {
    /* gap 8 con la pregunta + 16 antes del borde inferior */
    padding: 8px 0 16px;
    /* Tipografía en el propio contenedor para que también aplique a
       respuestas de texto plano (sin <p>). */
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: -0.45px;
    color: #6C7981;
}

.faq-answer-inner p { margin: 0 0 12px; }
.faq-answer-inner p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Escritorio (Mobile-First → min-width)
   ========================================================================== */
@media (min-width: 768px) {
    .faq-block {
        padding: var(--pt-t, var(--pt-m, 32px)) 0 var(--pb-t, var(--pb-m, 32px));
    }
}

@media (min-width: 992px) {
    .faq-block {
        padding: var(--pt-d, 50px) 0 var(--pb-d, 50px);
    }

    .faq-content {
        gap: 80px;
    }

    .faq-heading {
        font-size: 32px;
    }
}
