/* =========================
   HERO HELP
========================= */

/* El alto de la barra, el velo y las tipografías del título/subtítulo los
   controla sections/hero (.hero--help comparte el diseño de .hero--banner).
   Aquí solo queda lo propio de esta página: el buscador. */

/* Buscador: ancho completo del contenedor · alto 59 · pill · icono a la derecha */
.help__search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    margin: auto;
    padding: 16px 24px;
    box-sizing: border-box;

    background: #FFF;
    border: 1px solid #F1F3F7;
    border-radius: 100px;

    box-shadow: 0 1px 4px 0 rgba(25, 33, 61, 0.08);
}

.help__search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: none;

    font-family: "Poppins", sans-serif;
    font-size: 15.8px;
    font-weight: 500;
    line-height: 24px;
    color: #474545;
}

/* Icono de lupa (a la derecha), 20×20 */
.help__search-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* =========================
   FAQ
========================= */

.faq {
    padding: 70px 0;
}

/* ----- Tabs (imágenes) ----- */
.faq__tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 44px;
}

/* Cada tab es la imagen completa (sin caja ni fondo) */
.faq__tab {
    cursor: pointer;
    border: none;
    padding: 0;
    background: none;

    display: block;
    line-height: 0;

    opacity: .5;                 /* inactivo: atenuado */
    transition: var(--transition);
}

.faq__tab-icon {
    width: clamp(120px, 18vw, 160px);
    height: auto;
    display: block;
}

.faq__tab:hover {
    transform: translateY(-3px);
    opacity: .8;
}

.faq__tab--active {
    opacity: 1;                  /* activo: imagen a color pleno */
}

.faq__list {
    max-width: 820px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq__item {
    border: 1px solid var(--black-50);
    border-radius: 14px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .05);
    transition: var(--transition);
}

.faq__item--open {
    border-color: var(--gold-200);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.faq__question {
    width: 100%;
    cursor: pointer;
    border: none;
    background: none;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 22px 24px;

    /* figma: Poppins 600 (SemiBold) — título 15.5px / line-height 22px */
    font-family: 'Poppins', sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 22px;
    text-align: left;
    color: var(--black-800);
}

.faq__question i {
    flex-shrink: 0;
    font-size: 1.05rem;
    color: var(--black-300);
    transition: var(--transition);
}

.faq__item--open .faq__question i {
    color: var(--gold-500);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

/* El hueco lo pone el envoltorio y no cada párrafo: hay respuestas de varios
   bloques y, si el padding fuera de <p>, el aire de abajo se repetiría en todos. */
.faq__answer-body {
    padding: 0 24px 22px;
}

.faq__answer p,
.faq__answer li {
    /* figma: Poppins 500 (Medium) — respuesta 15.8px / line-height 24px, justificado */
    font-family: 'Poppins', sans-serif;
    font-size: 15.8px;
    font-weight: 500;
    line-height: 24px;
    text-align: justify;
    color: var(--black-500);
}

.faq__answer p {
    margin-bottom: 12px;
}

/* Subtítulo dentro de una respuesta (los tiempos por banco) */
.faq__answer h4 {
    margin: 18px 0 8px;

    font-family: 'Poppins', sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 22px;
    color: var(--black-800);
}

/* El reset global quita las viñetas; aquí hacen falta para leer las listas */
.faq__answer ul {
    margin-bottom: 12px;
    padding-left: 20px;
    list-style: disc;
}

.faq__answer li::marker {
    color: var(--gold-500);
}

.faq__answer li + li {
    margin-top: 6px;
}

.faq__answer strong {
    font-weight: 700;
    color: var(--black-800);
}

.faq__answer a {
    color: var(--gold-500);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.faq__answer a:hover {
    color: var(--black-800);
}

/* Sin hueco sobrante al final: el padding del envoltorio ya lo cierra */
.faq__answer-body > *:last-child {
    margin-bottom: 0;
}

.faq__answer-body > *:first-child {
    margin-top: 0;
}

.faq__empty {
    text-align: center;
    color: var(--black-400);
    margin-top: 30px;
}

@media (max-width: 576px) {

    .faq__question {
        padding: 18px 18px;   /* el tamaño de fuente lo maneja el clamp */
    }
}
