/* Estilos específicos para la vista de FAQ (views/faq.html) */

/* ============================================
   Layout base de la página
   El <header> es position: fixed con min-height 95px (120px en >=2000px),
   así que empujamos el <main> para que el banner empiece debajo de la navbar.
   ============================================ */
main {
    padding-top: 95px;
}

@media (min-width: 2000px) {
    main {
        padding-top: 120px;
    }
}

/* ============================================
   Banner FAQ
   ============================================ */
.faq-banner {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #F2F2F2;
    padding: 0 0 clamp(0.4rem, 1vw, 0.8rem);
    overflow: hidden;
    box-sizing: border-box;
}

.faq-banner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(0.4rem, 1vw, 0.8rem);
    height: 9px;
    background: #033E8A;
    pointer-events: none;
}

/* Misma columna horizontal que index (.about-container: max-width 2000px; padding 0 9rem) */
.faq-banner__inner,
.faq-content__inner {
    max-width: 2000px;
    margin-inline: auto;
    padding-inline: 9rem;
    box-sizing: border-box;
}

.faq-banner__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    padding-block: 0;
    min-height: clamp(5.5rem, 12vw, 9rem);
}

.faq-banner__title {
    color: #033E8A;
    font-family: 'Poppins Bold', 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(2.25rem, 6.25vw, 6rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0;
    text-transform: none;
    min-width: 0;
    flex: 1 1 0;
    overflow-wrap: anywhere;
    display: flex;
    align-items: center;
}

.faq-banner__arrows {
    display: block;
    align-self: stretch;
    width: auto;
    max-width: min(520px, 46%);
    height: 100%;
    max-height: none;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    object-position: right top;
}

/* ============================================
   Contenido legal
   ============================================ */
.faq-content {
    background: #ffffff;
    padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(3.25rem, 7vw, 5.5rem);
}

.faq-content__inner {
    color: #000000;
    font-family: 'Poppins Regular', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.faq-content__updated {
    font-family: 'Poppins Bold', sans-serif;
    margin: 2.75rem 0 1.35rem;
    font-size: 1rem;
    line-height: 1.4;
    color: #000000;
}

.faq-content__updated strong {
    font-weight: 700;
}

.faq-content__intro-wrap {
    margin: 0 0 3rem;
}

.faq-content__lead {
    font-family: 'Poppins Regular', sans-serif;
    font-weight: 400;
    margin: 0 0 1.15rem;
    font-size: 1rem;
    color: #000000;
    line-height: 1.4;
}

.faq-content__lead:last-child {
    margin-bottom: 0;
}

.faq-block {
    margin: 0;
}

.faq-block__title {
    margin: 2.75rem 0 1.35rem;
    padding: 0;
    font-family: 'Poppins Bold', sans-serif;
    font-weight: 700;
    font-size: clamp(0.95rem, 1.35vw, 1.0625rem);
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #000000;
}

/* Preguntas en estilo oración (el bloque legal usa mayúsculas) */
.faq-content .faq-block__title {
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: clamp(1rem, 1.45vw, 1.125rem);
    line-height: 1.38;
}

.faq-block:first-of-type .faq-block__title {
    margin-top: 0;
}

.faq-block p {
    font-family: 'Poppins Regular', sans-serif;
    font-weight: 400;
    margin: 0;
    font-size: 1rem;
    color: #000000;
    line-height: 1.4;
}

.faq-block p + p {
    margin-top: 1.05rem;
}

.faq-block p + .faq-list {
    margin-top: 0.65rem;
}

.faq-list {
    font-family: 'Poppins Regular', sans-serif;
    font-weight: 400;
    margin: 0.65rem 0 1.15rem;
    padding: 0 0 0 1.35rem;
    list-style-type: disc;
    color: #000000;
    line-height: 1.4;
}

.faq-list li + li {
    margin-top: 0.4rem;
}

.faq-block .faq-list + p {
    margin-top: 1.05rem;
}

.faq-contact-block {
    margin: 0.85rem 0 0;
    font-size: 1rem;
    line-height: 1.75;
    color: #000000;
}

.faq-link {
    color: #111111;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-link:hover,
.faq-link:focus-visible {
    color: #000000;
    text-decoration: none;
}

/* ============================================
   Tablet y móvil (≤1024px): franja en el inner (sin banda gris); flecha anclada abajo
   ============================================ */
@media (max-width: 1024px) {
    .faq-banner {
        width: 100%;
        max-width: 100%;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        overflow: visible;
        border-bottom: none;
        box-sizing: border-box;
    }

    .faq-banner::after {
        display: none;
    }

    .faq-banner__inner,
    .faq-content__inner {
        max-width: 100%;
        padding-left: max(2rem, env(safe-area-inset-left, 0px));
        padding-right: max(2rem, env(safe-area-inset-right, 0px));
    }

    .faq-banner__inner {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: space-between;
        gap: 0.5rem;
        padding-block: 0;
        min-height: 0;
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
        border-bottom: 10px solid #033E8A;
    }

    .faq-banner__title {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        min-width: 0;
        display: flex;
        align-items: center;
        font-size: clamp(1.65rem, 5.85vw, 2.45rem);
        line-height: 1.08;
        padding: 0;
    }

    .faq-banner__arrows {
        flex: 0 0 auto;
        align-self: stretch;
        width: auto;
        max-width: min(46%, 220px);
        height: 100%;
        min-height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: right bottom;
    }

    .faq-content {
        padding: 2.25rem 0 2.75rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .faq-content__updated {
        margin-bottom: 2.25rem;
    }

    .faq-content__intro-wrap {
        margin-bottom: 2.5rem;
    }

    .faq-block__title {
        margin: 2.25rem 0 1.1rem;
        font-size: 0.9375rem;
    }

    .faq-block:first-of-type .faq-block__title {
        margin-top: 0;
    }

    .faq-list {
        padding-left: 1.15rem;
    }
}

@media (max-width: 480px) {
    .faq-banner__inner,
    .faq-content__inner {
        padding-left: max(2rem, env(safe-area-inset-left, 0px));
        padding-right: max(2rem, env(safe-area-inset-right, 0px));
    }

    .faq-banner__inner {
        gap: 0.4rem;
        border-bottom-width: 8px;
    }

    .faq-banner__title {
        font-size: clamp(1.5rem, 6.4vw, 2.05rem);
    }

    .faq-banner__arrows {
        max-width: min(44%, 168px);
    }

    .faq-block__title {
        font-size: 0.9rem;
    }

    .faq-block p,
    .faq-content__lead {
        font-size: 0.95rem;
    }
}

/* ≥2000px: tipografía acorde al index en pantallas ultra anchas */
@media (min-width: 2000px) {
    .faq-content {
        padding-top: clamp(3rem, 5vw, 4.75rem);
        padding-bottom: clamp(3.5rem, 6vw, 5.75rem);
    }

    .faq-banner__inner {
        min-height: clamp(6rem, 10vw, 10rem);
    }

    .faq-content__lead,
    .faq-block p,
    .faq-list,
    .faq-contact-block {
        font-size: 1.15rem;
        line-height: 1.65;
    }

    .faq-content .faq-block__title {
        font-size: clamp(1.08rem, 1.1vw, 1.22rem);
        line-height: 1.45;
    }

    .faq-content__updated {
        font-size: 1.05rem;
    }
}
