/* ====================== */
/*  TU CSS ORIGINAL       */
/*  (se mantiene igual)   */
/* ====================== */

/* Header Cuentas - ADN Broker (tipografía tipo FAQs) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700;800&display=swap');

/* CONTENEDOR */
.header-cuentas {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-color: rgba(0,0,0,0.55);
    color: #ffffff;
    text-align: center;
    position: relative;
    min-height: 60vh;
    margin-top: -50px;

    /* NUEVO: panel oscuro semi-transparente */
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255,255,255,0.06);
    height: auto;
}

/* Contenedor de texto */
.header-cuentas .contenedor-texto {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
    margin: 0 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.2rem, 6vw, 3.6rem);
    line-height: 1.1;
    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, 2.2vw, 1.15rem);
    line-height: 1.7;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.92);
    max-width: 760px;
    margin: 0 auto;
}

/* ======= 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 {
        padding: 0 20px;
        min-height: 46rem !important;
    }

    .header-cuentas .contenedor-texto {
        padding: 20px 10px;
    }

    .header-cuentas h1 {
        font-size: clamp(2rem, 7vw, 2.4rem);
        margin-bottom: 8px;
    }

    .header-cuentas p {
        font-size: 1rem;
        line-height: 1.55;
    }
}

@media (max-width: 480px) {
    .header-cuentas h1 {
        font-size: 1.9rem;
    }

    .header-cuentas p {
        font-size: 0.95rem;
    }
}

/* ===================================================================== */
/*                          BLOQUE AISLADO: FAQ                          */
/*   Todo dentro de .faq-scope para NO afectar otros módulos del sitio   */
/* ===================================================================== */

.faq-scope {
    width: 100%;
}

/* Layout: 2 columnas (aside + panel combinado) */
.faq-scope .faq-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    /* aside | panel */
    gap: clamp(12px, 2vw, 18px);
    align-items: stretch;
}

/* ASIDE */
.faq-scope .faq-aside {
    position: relative;
    padding-right: clamp(16px, 2.2vw, 24px);
}

.faq-scope .faq-aside::after {
    content: "";
    position: absolute;
    top: -40px;
    bottom: -40px;
    right: 40px;
    width: 2px;
    background: rgba(255, 255, 255, .25);
    /* más visible */
}

/* Menú */
.faq-scope .faq-menu {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.faq-scope .faq-item {
    position: relative;
}

.faq-scope .faq-link {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, .68);
    font-weight: 700;
    letter-spacing: .3px;
    font-size: clamp(14px, 1.6vw, 16px);
    padding: 6px 10px 6px 20px;
    transition: color .25s ease, transform .12s ease;
}

.faq-scope .faq-item:hover .faq-link {
    color: #fff;
    transform: translateX(2px);
}

.faq-scope .faq-item.is-active .faq-link {
    color: #fff;
}

.faq-scope .faq-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    border-radius: 8px;
    background: transparent;
    transition: all .25s ease;
}

.faq-scope .faq-item.is-active .faq-indicator {
    background: linear-gradient(180deg, #c266ff, #8b3dff);
    height: 26px;
}

/* PANEL COMBINADO (un solo cuadro) */
.faq-scope .faq-combined {
    position: relative;
    display: grid;
    grid-template-columns: 1fr minmax(520px, 640px);
    /* izquierda ? | derecha preguntas */
    gap: 0;
    /* sin separación interna */
    background:
        linear-gradient(180deg, rgb(7, 0, 43), rgb(4, 0, 20)),
        linear-gradient(180deg, #261d47, #0d1220 65%, #0b11197c 100%);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 30px;
    /* bordes rectos como pediste */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    min-height: 360px;
    overflow: hidden;
}



/* Lado izquierdo (reemplaza el antiguo .faq-center) */
.faq-scope .faq-left {
    position: relative;
    background: linear-gradient(180deg, rgb(10, 2, 49), rgb(5, 0, 26));
    /* morado translúcido */
}

.faq-scope .faq-left-inner {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: clamp(16px, 2vw, 24px);
}

.faq-scope .faq-left-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, 0) 35%);
    /* sombreado suave */
    pointer-events: none;
}

.faq-scope .faq-questionmark {
    font-weight: 800;
    font-size: clamp(120px, 14vw, 200px);
    color: rgba(255, 255, 255, 0.4);
    line-height: 1;
}

/* Icono INLINE (SVG) que inyectaremos por JS */
.faq-scope .faq-inline-icon {
    display: none;
    width: clamp(72px, 12vw, 140px);
}

.faq-scope .faq-inline-icon.is-visible {
    display: block;
}

/* Asegura que el SVG se adapte al contenedor */
.faq-scope .faq-inline-icon svg {
    display: block;
    width: 100%;
    height: auto;
}

/* (opcional) Si hay icono, ocultar el “?” solo con CSS */
.faq-scope .faq-inline-icon.is-visible+.faq-questionmark {
    display: none;
}



/* Lado derecho (reemplaza el antiguo .faq-card) */
.faq-scope .faq-right {
    padding: clamp(18px, 2.2vw, 28px) clamp(18px, 2.6vw, 32px);
    background: transparent;
    /* continuidad del panel */
}

/* Listas / filas / botón + */
.faq-scope .faq-list {
    display: none;
}

.faq-scope .faq-list.is-visible {
    display: block;
}

.faq-scope .faq-row {
    --padY: 18px;
    width: 100%;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: var(--padY) 0;
    color: #fff;
    position: relative;
    text-align: left;
}

/* Línea bajo TODAS las preguntas del panel FAQ */
.faq-scope .faq-row {
    position: relative;
    /* necesario para posicionar el ::after */
    border-bottom: 0;
    /* evita líneas duplicadas si había border */
    box-shadow: none;
    /* evita “líneas” hechas con sombras */
}

.faq-scope .faq-row::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgb(187, 183, 183);
    /* tu color */
    pointer-events: none;
}


.faq-scope .faq-q {
    font-weight: 700;
    letter-spacing: .2px;
    font-size: clamp(15px, 1.7vw, 17px);
}

.faq-scope .faq-plus {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: radial-gradient(circle at 30% 25%, #a44bff, #8b3dff);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 6px 16px rgba(100, 40, 180, .25);
    /* glow más oscuro */
    transition: transform .16s ease, box-shadow .22s ease, filter .2s ease;
}

.faq-scope .faq-row:hover .faq-plus {
    transform: scale(1.06);
    box-shadow: 0 12px 30px rgba(100, 40, 180, .35);
    filter: saturate(1.06);
}

/* Responsive */
@media (max-width: 900px) {
    .faq-scope .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-scope .faq-aside::after {
        display: none;
    }

    .faq-scope .faq-combined {
        grid-template-columns: 1fr;
    }

    .faq-scope .faq-combined::before {
        display: none;
    }

    .faq-scope .faq-left {
        order: 2;
        min-height: 140px;
    }

    .faq-scope .faq-right {
        order: 1;
    }

    .faq-scope .faq-menu {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .faq-scope .faq-indicator {
        display: none;
    }

    .faq-scope .faq-link {
        text-align: center !important;
    }

    .is-active .faq-link{
        background: radial-gradient(circle at 30% 25%, #a44bff, #8b3dff) !important;
        border-radius: 1rem;
    }

    .faq-scope .faq-q {
        margin-right: 0.5rem;
    }
}

/* ----- Respuesta colapsable para cada .faq-row (no altera tu diseño) ----- */
.faq-scope .faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 220ms ease;
    will-change: max-height;
    /* hereda el fondo del panel; sin bordes para no introducir “líneas” nuevas */
}

.faq-scope .faq-answer.is-open {
    /* max-height se maneja vía JS (scrollHeight) para una animación suave */
}

.faq-scope .faq-answer__inner {
    padding: 14px 0 6px 0;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    font-size: clamp(14px, 1.5vw, 16px);
  font-family: 'Avenir', sans-serif;
  text-align: left;
  font-weight: 200;
}