/* ============================================================
   CUSTOM FAQS
   Sección FAQ's: columna intro (imagen + texto) + acordeón
   Usada en home y landings
   ============================================================ */

/* SECTION */
.custom-faqs {
    display: block;
    margin-bottom: 80px;
}

/* ============================================================
   COLUMNA IZQUIERDA: imagen de fondo + overlay + contenido
   ============================================================ */

/* align-self: flex-start evita que la columna crezca con el acordeón,
   previniendo el zoom de la imagen de fondo */
.custom-faqs__col-left {
    align-self: flex-start;
    position: sticky;
    top: 0;
}

.custom-faqs__intro {
    position: relative;
    height: 100%;
    min-height: 600px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-faqs__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(77, 77, 77, 0.55);
}

.custom-faqs__intro-content {
    position: relative;
    z-index: 1;
    padding: 80px 60px;
    text-align: center;
}

.custom-faqs__supertitle {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 4px 0; /* Figma gap supertitle → title: 4px */
}

/* title-headline ya aporta position:relative, display:inline-block y margin-bottom:36px */
/* Sobreescribimos color y margin para respetar los gaps del Figma:
   20px (offset ::after) + 5px (altura línea) + 17px (gap línea→subtitle) = 42px */
.custom-faqs__title {
    font-size: 42px;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 42px;
}

/* Ancho fijo de la línea dorada — title-headline::after usa 20% del inline-block
   que con "FAQ's" queda muy estrecho, lo fijamos igual que en los demás bloques */
.custom-faqs .title-headline:after {
    width: 38px;
}

.custom-faqs__subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0px 0 17px 0 !important;
}

.custom-faqs__description {
    font-size: 16px;
    line-height: 1.34;
    color: #ffffff;
    margin: 0 0 60px 0;
}

.custom-faqs__cta {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-faqs__cta:hover,
.custom-faqs__cta:focus {
    background-color: #ffffff;
    color: #4d4d4d;
    text-decoration: none;
}


/* ============================================================
   COLUMNA DERECHA: acordeón
   ============================================================ */

.custom-faqs__col-right {
    display: flex;
    flex-direction: column;
}

.custom-faqs__accordion {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Por defecto: items se reparten el alto del col-right a partes iguales */
.custom-faqs__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 64px;
    border-bottom: 1px solid #dadada;
    cursor: pointer;
}

/* Al abrir cualquier item: todos vuelven a altura natural según contenido */
.custom-faqs__accordion.is-expanded .custom-faqs__item {
    flex: none;
}

.custom-faqs__item:first-child {
    border-top: 1px solid #dadada;
}

.custom-faqs__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;
}

.custom-faqs__question:focus {
    outline: none;
}

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

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

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

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

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

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

.custom-faqs__item.is-open .custom-faqs__icon::after {
    transform: translateY(-50%) rotate(45deg);
}

/* Respuesta: oculta por defecto, transición con max-height */
/* max-height alto para acomodar respuestas de texto largo */
.custom-faqs__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

.custom-faqs__item.is-open .custom-faqs__answer {
    max-height: 2000px; /* suficiente para cualquier respuesta larga */
    margin-top: 24px;   /* gap pregunta → respuesta según Figma */
}

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


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

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

    .custom-faqs__intro-content {
        padding: 100px 80px;
    }

    .custom-faqs__title {
        font-size: 52px;
    }

    .custom-faqs__item {
        padding: 48px 80px;
    }

}


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

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

    .custom-faqs__col-left {
        position: static;
    }

    .custom-faqs__intro {
        min-height: 420px;
    }

    .custom-faqs__intro-content {
        padding: 60px 30px;
    }

    .custom-faqs__title {
        font-size: 32px;
    }

    .custom-faqs__col-right {
        min-height: 400px;
    }

    .custom-faqs__item {
        padding: 24px 30px;
    }

}
