/* ============================================================
   FAQS LANDING
   Página de preguntas frecuentes: intro + categorías con acordeón
   ============================================================ */


/* ============================================================
   SECCIÓN CATEGORÍAS
   ============================================================ */

.faqs-landing {
    display: block;
}

.faqs-landing__category {
    margin-bottom: 56px;
}

.faqs-landing__category:last-child {
    margin-bottom: 0;
}


/* ============================================================
   TÍTULO DE CATEGORÍA
   ============================================================ */

/* title-headline aporta posición relativa, margin-bottom:36px y la línea dorada ::after */
/* Añadimos el tratamiento tipográfico estándar del sitio: uppercase + letter-spacing */
.faqs-landing__category-title {
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ============================================================
   ACORDEÓN
   ============================================================ */

.faqs-landing__accordion {
    display: block;
}

.faqs-landing__item {
    padding: 40px 0;
    border-bottom: 1px solid #dadada;
    cursor: pointer;
}

.faqs-landing__item:first-child {
    border-top: 1px solid #dadada;
}

.faqs-landing__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 16px;
}

.faqs-landing__question:focus {
    outline: none;
}

.faqs-landing__question-text {
    font-size: 15px;
    font-weight: 700;
    color: #4d4d4d;
    line-height: 1.4;
}

/* Icono chevron */
.faqs-landing__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    position: relative;
    display: inline-block;
}

.faqs-landing__icon::before,
.faqs-landing__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 9px;
    height: 2px;
    background-color: #4d4d4d;
    transition: transform 0.3s ease;
}

.faqs-landing__icon::before {
    left: 1px;
    transform: translateY(-50%) rotate(45deg);
}

.faqs-landing__icon::after {
    right: 1px;
    transform: translateY(-50%) rotate(-45deg);
}

/* Estado abierto: chevron apunta hacia arriba */
.faqs-landing__item.is-open .faqs-landing__icon::before {
    transform: translateY(-50%) rotate(-45deg);
}

.faqs-landing__item.is-open .faqs-landing__icon::after {
    transform: translateY(-50%) rotate(45deg);
}

/* Cerrar: duración corta con curva agresiva para que el cierre visible sea rápido */
.faqs-landing__answer {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 1s cubic-bezier(0, 1, 0, 1), margin-top 1s ease;
}

/* Abrir: duración más larga con curva suave para compensar el max-height alto */
.faqs-landing__item.is-open .faqs-landing__answer {
    max-height: 2000px;
    margin-top: 24px;
    transition: max-height 1s ease-in-out, margin-top 1s ease;
}

.faqs-landing__answer p {
    font-size: 15px;
    line-height: 1.34;
    color: #777777;
}


/* ============================================================
   RESPONSIVE > 1920px
   ============================================================ */

@media screen and (min-width: 1921px) {

    .faqs-landing__category-title {
        font-size: 30px;
    }

    .faqs-landing__question-text {
        font-size: 16px;
    }

    .faqs-landing__item {
        padding: 48px 0;
    }

}


/* ============================================================
   RESPONSIVE < 992px
   ============================================================ */

@media screen and (max-width: 991px) {

    .faqs-landing__category {
        margin-bottom: 40px;
    }

    .faqs-landing__category-title {
        font-size: 20px;
    }

    .faqs-landing__item {
        padding: 24px 0;
    }

}
