/* Header Cuentas - ADN Broker (tipografía tipo FAQs) */

/* Puedes cargar la fuente (opcional). Si ya usas una similar, omite esta línea. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700;800&display=swap');

/* CONTENEDOR */
.header-cuentas {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(56px, 8vw, 120px) var(--spacing-md) 0;
    background-color: transparent;
    color: #ffffff;
    text-align: center;
    position: relative;
    min-height: 60vh;
    padding-bottom: 0;
}

/* Contenedor de texto */
.header-cuentas .contenedor-texto {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
    gap: clamp(14px, 2vw, 20px);
    align-items: start;
    text-align: center;
    max-width: 980px;
    margin-inline: auto;
}

/* TIPOGRAFÍA (estilo de la captura) */
.header-cuentas h1 {
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.12;
    letter-spacing: 0.5px;
    color: #fff;
    margin: 0 0 10px 0;
}

.header-cuentas p {
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    line-height: 1.65;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.92);
    max-width: 920px;
    margin: clamp(14px, 2vw, 18px) auto 0;
}

/* ======= Blindaje anti-“línea” entre h1 y p ======= */
.header-cuentas hr {
    display: none !important;
    height: 0 !important;
    border: 0 !important;
}

.header-cuentas .contenedor-texto::before,
.header-cuentas .contenedor-texto::after,
.header-cuentas h1::before,
.header-cuentas h1::after,
.header-cuentas p::before,
.header-cuentas p::after {
    content: none !important;
    display: none !important;
}

.header-cuentas h1+* {
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.header-cuentas h1+p::before,
.header-cuentas h1+p::after {
    content: none !important;
    display: none !important;
}

.header-cuentas h1,
.header-cuentas p {
    border: 0 !important;
    outline: 0 !important;
    text-decoration: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .header-cuentas {
        min-height: unset;
        padding: 0 1rem;
        margin-top: 9rem;
    }

    .header-cuentas .contenedor-texto {
        grid-template-columns: 1fr;
        gap: clamp(16px, 4vw, 28px);
    }
}

@media (max-width: 480px) {
    .header-cuentas h1 {
        font-size: 1.9rem;
    }

    .header-cuentas p {
        font-size: 0.95rem;
    }
}