/* ---------------------------------------------------------------------------
   /preguntas - the full FAQ.

   The page deliberately sets NO background of its own: it sits directly on the
   red body gradient (--page-red-top -> --page-red-night in global.css), the
   same surface the landing page, header and footer share. Headings are white
   on that red; the question cards reuse .home-faq-item from home-shell.css so
   they are identical to the teaser on the landing page.
   --------------------------------------------------------------------------- */

.faq-page {
    padding: 7.5rem 1.25rem 3rem;
}

.faq-page__shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.faq-page__intro {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

/* .home-module__eyebrow sets no color of its own: on the landing page it
   inherits white from .home-module__intro, so it needs it set explicitly here
   or it falls back to the dark body colour. */
.faq-page__intro .home-module__eyebrow {
    justify-self: start;
    color: #ffffff;
}

.faq-page__title {
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
}

.faq-page__copy {
    max-width: 60ch;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

/* Jump list: 27 questions need a way in other than scrolling. Matches the
   glass treatment of the header pill. */
.faq-page__toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.faq-page__toc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(117, 0, 0, 0.28);
    backdrop-filter: blur(18px);
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.faq-page__toc-link:hover,
.faq-page__toc-link:focus-visible {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(117, 0, 0, 0.45);
    transform: translateY(-1px);
}

.faq-page__toc-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.75rem;
}

.faq-page__section {
    margin-bottom: 2.5rem;
    /* clear the fixed header when jumping via the table of contents */
    scroll-margin-top: 6.5rem;
}

.faq-page__section-title {
    margin-bottom: 1rem;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

/* The cards themselves come from .home-faq-item in home-shell.css: white,
   rounded, dark text. Only the grid is defined here. */
.faq-page__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0.85rem;
}

/* Closing CTA, styled like the footer panel. */
.faq-page__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(92, 5, 18, 0.78), rgba(46, 2, 12, 0.86));
    box-shadow: 0 18px 45px rgba(58, 4, 4, 0.22);
}

.faq-page__cta p {
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.faq-page__cta-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    background: #ffffff;
    color: #c8102e;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-page__cta-link:hover,
.faq-page__cta-link:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.faq-page__empty {
    padding: 3rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 960px) {
    .faq-page {
        padding-top: 6rem;
    }

    .faq-page__list {
        grid-template-columns: 1fr;
    }
}

/* On phones the category pills wrap into a tall block, so scroll them
   horizontally in a single row instead. */
@media (max-width: 640px) {
    .faq-page__toc {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .faq-page__toc-link {
        flex: 0 0 auto;
    }
}
