/* ==========================================================================
   Variables
   ========================================================================== */
   .page-fondos-generacionales {
    --fondos-gen-texto: #4A4A4A;
    [hidden] {
        display: none !important;
    }
}

/* ==========================================================================
   Textos comunes
   ========================================================================== */
.page-fondos-generacionales .fondos-gen-kicker {
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.page-fondos-generacionales .fondos-gen-titulo {
    color: var(--fondos-gen-texto);
    font-weight: 700;
}
.page-fondos-generacionales .fondos-gen-texto {
    color: var(--fondos-gen-texto);
    p {
        margin: 0;
    }
    p + p {
        margin-top: var(--nuevo-espacio-md);
    }
}

/* ==========================================================================
   Sección 1: Intro
   ========================================================================== */
.fondos-gen-intro {
    display: flex;
    flex-direction: column;
    gap: var(--nuevo-espacio-lg);
}
.fondos-gen-intro-media {
    text-align: center;
    img {
        display: block;
        width: 100%;
        max-width: 460px;
        height: auto;
        margin: 0 auto;
    }
}

@media (min-width: 992px) {
    .page-fondos-generacionales .fondos-gen-titulo {
        margin-bottom: var(--nuevo-espacio-xs);
    }
    .fondos-gen-intro {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .fondos-gen-intro-contenido {
        flex: 0 1 50%;
    }
    .fondos-gen-intro-media {
        flex: 0 1 40%;
    }
}

/* ==========================================================================
   Sección 2: ¿Qué pasa con tus ahorros?
   ========================================================================== */
.fondos-gen-ahorros {
    --fondos-gen-verde: #5AAE3C;
    --fondos-gen-azul: #2C5AA0;
    display: flex;
    flex-direction: column;
    gap: var(--nuevo-espacio-md);
    margin-top: var(--nuevo-espacio-md);
}
.fondos-gen-ahorros-col {
    --fondos-gen-acento: var(--fondos-gen-azul);
    --fondos-gen-cabecera-bg: var(--nuevo-gris);
    --fondos-gen-icono-bg: #CDE5F1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--nuevo-blanco);
    border-radius: var(--nuevo-radio-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    &.is-obligatorio {
        --fondos-gen-acento: var(--fondos-gen-verde);
        --fondos-gen-cabecera-bg: #EEF6EA;
        --fondos-gen-icono-bg: #D9EFD0;
    }
}
.fondos-gen-ahorros-cabecera {
    display: flex;
    align-items: center;
    gap: var(--nuevo-espacio-sm);
    padding: var(--nuevo-espacio-sm) 20px;
    background-color: var(--fondos-gen-cabecera-bg);
}
.fondos-gen-ahorros-icono {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--fondos-gen-icono-bg);
    img {
        display: block;
        width: 28px;
        height: 28px;
    }
}
.fondos-gen-ahorros-cabecera-textos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.fondos-gen-ahorros-titulo {
    margin: 0;
    color: var(--fondos-gen-texto);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}
.fondos-gen-ahorros-etiqueta {
    padding: 3px 10px;
    border-radius: var(--nuevo-radio-pill);
    background-color: var(--fondos-gen-acento);
    color: var(--nuevo-blanco);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}
.fondos-gen-ahorros-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--nuevo-borde);
    p {
        margin: 0;
        color: var(--fondos-gen-texto);
        font-size: 15px;
        line-height: 1.4;
    }
}
.fondos-gen-ahorros-check {
    flex-shrink: 0;
    color: var(--fondos-gen-acento);
}
.fondos-gen-ahorros-pie {
    padding: var(--nuevo-espacio-sm) 20px;
    border-top: 1px solid var(--nuevo-borde);
    .is-obligatorio & {
        text-align: center;
    }
}
.page-fondos-generacionales .fondos-gen-btn-celeste {
    min-width: 130px;
    border-width: 1px;
    border-color: var(--nuevo-celeste);
    border-radius: var(--nuevo-radio-sm);
    background-color: var(--nuevo-blanco);
    color: var(--nuevo-celeste);
    &:hover, &:focus {
        background-color: var(--nuevo-celeste);
        color: var(--nuevo-blanco);
    }
}
.fondos-gen-ahorros-cuentas-texto {
    margin: 0 0 var(--nuevo-espacio-xs);
    color: var(--fondos-gen-texto);
    font-size: 12px;
    line-height: 1.4;
}
.fondos-gen-ahorros-cuentas {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    li {
        padding: 3px 10px;
        border: 1px solid var(--nuevo-borde);
        border-radius: var(--nuevo-radio-pill);
        background-color: var(--nuevo-blanco);
        color: var(--fondos-gen-texto);
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;
    }
}

@media (min-width: 992px) {
    .fondos-gen-ahorros {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(var(--fondos-gen-filas), auto);
        gap: 0;
        margin-top: var(--nuevo-espacio-lg);
        overflow: hidden;
        background-color: var(--nuevo-blanco);
        border-radius: var(--nuevo-radio-md);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    }
    .fondos-gen-ahorros-col {
        display: grid;
        grid-row: 1 / -1;
        grid-template-rows: subgrid;
        border-radius: 0;
        box-shadow: none;
        & + & {
            border-left: 1px solid var(--nuevo-borde);
        }
    }
    .fondos-gen-ahorros-cabecera {
        padding: 20px var(--nuevo-espacio-lg);
    }
    .fondos-gen-ahorros-icono {
        width: 56px;
        height: 56px;
        img {
            width: 32px;
            height: 32px;
        }
    }
    .fondos-gen-ahorros-cabecera-textos {
        flex: 1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--nuevo-espacio-sm);
    }
    .fondos-gen-ahorros-titulo {
        font-size: 20px;
    }
    .fondos-gen-ahorros-item {
        padding: 16px var(--nuevo-espacio-lg);
    }
    .fondos-gen-ahorros-pie {
        grid-row: -2 / -1;
        padding: var(--nuevo-espacio-sm) var(--nuevo-espacio-lg);
    }
}

/* ==========================================================================
   Sección 3: ¿Qué fondo me corresponde?
   ========================================================================== */
.fondos-gen-consulta {
    display: flex;
    flex-direction: column;
    gap: var(--nuevo-espacio-lg);
}
.fondos-gen-consulta-card {
    box-sizing: border-box;
    padding: 20px;
    background-color: var(--nuevo-blanco);
    border-radius: var(--nuevo-radio-md);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.fondos-gen-consulta-card-titulo {
    margin: 0 0 var(--nuevo-espacio-sm);
    color: var(--fondos-gen-texto);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}
.fondos-gen-consulta-label {
    display: block;
    margin-bottom: 12px;
    color: var(--fondos-gen-texto);
    font-size: 13px;
    font-weight: 700;
}
.fondos-gen-consulta-campos {
    display: flex;
    gap: 10px;
    input {
        box-sizing: border-box;
        flex: 1 1 auto;
        min-width: 0;
        height: 48px;
        margin: 0;
        padding: 0 var(--nuevo-espacio-sm);
        border: 1px solid #D5D5DA;
        border-radius: 4px;
        background-color: var(--nuevo-blanco);
        color: var(--fondos-gen-texto);
        font-family: inherit;
        font-size: 16px;
        &:focus {
            border-color: var(--nuevo-azul);
            outline: none;
        }
        &[aria-invalid="true"] {
            border-color: var(--nuevo-rojo-error);
        }
    }
    .nuevo-btn {
        flex: 0 0 auto;
        min-height: 48px;
        padding: 10px 20px;
        border-radius: 4px;
        font-size: 15px;
        font-weight: 700;
    }
}
.fondos-gen-consulta-error {
    display: block;
    color: var(--nuevo-rojo-error);
    font-size: 12px;
    line-height: 1.4;
    &:not(:empty) {
        margin-top: 6px;
    }
}
.fondos-gen-consulta-nota {
    margin: 10px 0 0;
    color: var(--nuevo-gris-texto);
    font-size: 11px;
    line-height: 1.4;
}
.fondos-gen-consulta-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--nuevo-espacio-sm);
    padding: 0;
    border: 0;
    background: none;
    color: var(--nuevo-azul);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    svg {
        transition: transform 0.2s ease;
    }
    &[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }
}

.fondos-gen-resultado {
    margin-top: var(--nuevo-espacio-sm);
    padding: 20px;
    border-radius: 12px;
    background-color: #F6F6F6;
    &:focus {
        outline: none;
    }
}
.fondos-gen-resultado-cabecera {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.fondos-gen-resultado-kicker {
    color: var(--fondos-gen-texto);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.fondos-gen-resultado-etapa {
    padding: 2px 8px;
    border-radius: var(--nuevo-radio-pill);
    background-color: #C4506A;
    color: var(--nuevo-blanco);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}
.fondos-gen-resultado-titulo {
    margin: 0 0 var(--nuevo-espacio-xs);
    color: var(--fondos-gen-texto);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}
.fondos-gen-resultado-texto {
    margin: 0;
    color: var(--fondos-gen-texto);
    font-size: 13px;
    line-height: 1.6;
    & + & {
        margin-top: var(--nuevo-espacio-sm);
    }
}
.fondos-gen-resultado-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--nuevo-celeste);
    font-size: 13px;
    text-decoration: none;
    &:hover, &:focus {
        color: var(--nuevo-celeste);
        text-decoration: underline;
    }
}

.fondos-gen-resultado-skeleton {
    display: none;
    flex-direction: column;
    gap: 10px;
    span {
        display: block;
        height: 12px;
        border-radius: 6px;
        background: linear-gradient(90deg, #E6E6EA 25%, #F2F2F4 50%, #E6E6EA 75%);
        background-size: 200% 100%;
        animation: fondos-gen-skeleton 1s linear infinite;
    }
    .is-titulo {
        height: 20px;
        margin-bottom: 4px;
    }
}
.fondos-gen-resultado.is-cargando {
    .fondos-gen-resultado-skeleton {
        display: flex;
    }
    .fondos-gen-resultado-contenido {
        display: none;
    }
}
.fondos-gen-resultado-contenido {
    animation: fondos-gen-aparecer 0.3s ease;
}
@keyframes fondos-gen-skeleton {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}
@keyframes fondos-gen-aparecer {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fondos-gen-tabla-wrap {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    visibility: hidden;
    transition: grid-template-rows 0.35s ease, margin-top 0.35s ease, visibility 0s linear 0.35s;
    &.is-abierto {
        grid-template-rows: 1fr;
        margin-top: var(--nuevo-espacio-sm);
        visibility: visible;
        transition: grid-template-rows 0.35s ease, margin-top 0.35s ease, visibility 0s;
    }
}
.fondos-gen-tabla-scroll {
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
}
@media (prefers-reduced-motion: reduce) {
    .fondos-gen-tabla-wrap,
    .fondos-gen-tabla-wrap.is-abierto {
        transition: none;
    }
    .fondos-gen-resultado-skeleton span,
    .fondos-gen-resultado-contenido {
        animation: none;
    }
}
.fondos-gen-tabla {
    width: 100%;
    border-collapse: collapse;
    th, td {
        padding: 10px 6px;
        border-bottom: 1px solid var(--nuevo-borde);
        text-align: left;
        vertical-align: middle;
    }
    th {
        color: var(--nuevo-gris-texto);
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }
    td {
        color: var(--fondos-gen-texto);
        font-size: 12px;
        white-space: nowrap;
    }
    td:first-child {
        font-weight: 500;
        white-space: normal;
    }
    tr.is-activo td {
        background-color: #FBF2F4;
        color: #C4506A;
        font-weight: 500;
    }
}

@media (min-width: 992px) {
    .fondos-gen-consulta {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
    .fondos-gen-consulta-contenido {
        flex: 0 1 50%;
    }
    .fondos-gen-consulta-card {
        flex: 0 0 400px;
        padding: var(--nuevo-espacio-md);
    }
    .fondos-gen-tabla td {
        font-size: 13px;
    }
}

/* ==========================================================================
   Sección 4: Tú eliges cómo invertir tu ahorro voluntario
   ========================================================================== */
.fondos-gen-eleccion {
    display: flex;
    flex-direction: column;
    gap: var(--nuevo-espacio-lg);
}
.fondos-gen-eleccion-texto {
    font-size: 15px;
    p {
        margin: 0;
    }
    p + p {
        margin-top: var(--nuevo-espacio-sm);
    }
    p:first-child {
        color: var(--fondos-gen-texto);
        font-size: 16px;
    }
}

.fondos-gen-plazos-titulo {
    margin: 0 0 var(--nuevo-espacio-sm);
    color: var(--fondos-gen-texto);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}
.fondos-gen-plazos-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.fondos-gen-plazo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px var(--nuevo-espacio-sm);
    border-radius: 12px;
    background-color: var(--nuevo-blanco);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    p {
        margin: 0;
    }
    &.is-activo {
        background-color: #FDDDE3;
        box-shadow: none;
    }
}
.fondos-gen-plazo-numero {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--nuevo-borde);
    color: var(--fondos-gen-texto);
    font-size: 11px;
    font-weight: 700;
    .is-activo & {
        background-color: #B5123F;
        color: var(--nuevo-blanco);
    }
}
.fondos-gen-plazo-fecha {
    color: #B5123F;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}
.fondos-gen-plazo-titulo {
    color: var(--fondos-gen-texto);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.fondos-gen-plazo-texto {
    margin-top: 2px;
    color: var(--fondos-gen-texto);
    font-size: 12px;
    line-height: 1.4;
}

.fondos-gen-aviso {
    display: flex;
    flex-direction: column;
    gap: var(--nuevo-espacio-sm);
    margin-top: var(--nuevo-espacio-lg);
    padding: 20px;
    border: 1px solid var(--nuevo-borde);
    border-radius: var(--nuevo-radio-md);
    background-color: #FAFAFB;
}
.fondos-gen-aviso-cabecera {
    display: flex;
    align-items: center;
    gap: var(--nuevo-espacio-sm);
    p {
        margin: 0;
    }
}
.fondos-gen-aviso-icono {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #FDDDE3;
    color: var(--nuevo-rojo);
}
.fondos-gen-aviso-kicker {
    color: #B5123F;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.fondos-gen-aviso-titulo {
    color: var(--fondos-gen-texto);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.fondos-gen-aviso-texto {
    margin: 0;
    color: var(--fondos-gen-texto);
    font-size: 13px;
    line-height: 1.6;
    strong {
        font-weight: 700;
    }
}

@media (min-width: 992px) {
    .fondos-gen-eleccion {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
    .fondos-gen-eleccion-contenido {
        flex: 0 1 48%;
    }
    .fondos-gen-plazos {
        flex: 0 0 410px;
    }
    .fondos-gen-plazo {
        padding: var(--nuevo-espacio-sm) 12px;
    }
    .fondos-gen-aviso {
        flex-direction: row;
        align-items: center;
        gap: var(--nuevo-espacio-lg);
        margin-top: var(--nuevo-espacio-xl);
        padding: var(--nuevo-espacio-md);
    }
    .fondos-gen-aviso-cabecera {
        flex: 0 0 200px;
        .fondos-gen-aviso-icono {
            width: 44px;
            height: 44px;
        }
    }
}

/* ==========================================================================
   Sección 5: La inversión se adapta a cada etapa de la vida
   ========================================================================== */
.page-fondos-generacionales {
    --fondos-gen-crecimiento: #B5123F;
    --fondos-gen-proteccion: var(--nuevo-azul);
}
.fondos-gen-inversion-ayuda {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 var(--nuevo-espacio-md);
    color: var(--fondos-gen-texto);
    font-size: 13px;
    svg {
        flex-shrink: 0;
        color: var(--nuevo-gris-texto);
    }
}

/* Selector de etapas: en mobile es una lista, en desktop columnas verticales */
.fondos-gen-etapas {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.fondos-gen-etapa {
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 12px;
    background-color: var(--etapa-color);
    transition: filter 0.2s ease;
    &:not(.is-activa):hover {
        filter: brightness(1.08);
    }
    &.is-activa {
        border-color: var(--etapa-color);
        border-radius: var(--nuevo-radio-md);
        background-color: var(--nuevo-blanco);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        .fondos-gen-etapa-pill {
            display: none;
        }
        .fondos-gen-etapa-detalle {
            display: block;
            animation: fondos-gen-aparecer 0.4s ease;
        }
    }
}
.fondos-gen-etapa-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: var(--nuevo-blanco);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    &:focus-visible {
        outline: 2px solid var(--nuevo-blanco);
        outline-offset: -5px;
    }
}
.fondos-gen-etapa-numero {
    display: flex;
    order: -1;
    align-items: baseline;
    gap: 10px;
    margin-right: auto;
    strong {
        font-size: 20px;
        font-weight: 700;
        line-height: 1;
    }
    small {
        font-size: 9px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        opacity: 0.85;
    }
}
.fondos-gen-etapa-rango {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.fondos-gen-etapa-mas {
    position: relative;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    &::before, &::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 10px;
        height: 1.5px;
        background-color: var(--nuevo-blanco);
        transform: translate(-50%, -50%);
    }
    &::after {
        transform: translate(-50%, -50%) rotate(90deg);
    }
}

.fondos-gen-etapa-detalle {
    display: none;
    box-sizing: border-box;
    padding: 20px;
    &:focus {
        outline: none;
    }
}
.fondos-gen-etapa-titulo {
    margin: 0 0 var(--nuevo-espacio-xs);
    color: var(--fondos-gen-texto);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}
.fondos-gen-etapa-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: var(--nuevo-radio-pill);
    background-color: var(--etapa-color);
    color: var(--nuevo-blanco);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}
.fondos-gen-etapa-nacidos {
    margin: 10px 0 0;
    color: var(--nuevo-gris-texto);
    font-size: 13px;
}
.fondos-gen-etapa-descripcion {
    margin: 12px 0 0;
    color: var(--fondos-gen-texto);
    font-size: 14px;
    line-height: 1.6;
}
.fondos-gen-escala {
    margin-top: var(--nuevo-espacio-sm);
}
.fondos-gen-escala-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    span:first-child {
        color: var(--fondos-gen-crecimiento);
    }
    span:last-child {
        color: var(--fondos-gen-proteccion);
    }
}
.fondos-gen-escala-barra {
    position: relative;
    height: 8px;
    border-radius: var(--nuevo-radio-pill);
    background: linear-gradient(90deg, #C40F2A 0%, #A69085 50%, #13295B 100%);
    span {
        position: absolute;
        top: 50%;
        left: calc((100% - 18px) * var(--posicion));
        box-sizing: border-box;
        width: 18px;
        height: 18px;
        border: 3px solid #3A3A3C;
        border-radius: 50%;
        background-color: var(--nuevo-blanco);
        transform: translateY(-50%);
    }
}
.fondos-gen-etapa-maximo {
    margin: 10px 0 0;
    color: var(--fondos-gen-texto);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

/* Gráfico SVG propio con capa HTML para la etapa activa */
.fondos-gen-grafico-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--nuevo-espacio-lg);
    margin-top: var(--nuevo-espacio-xl);
}
.fondos-gen-grafico-lienzo {
    position: relative;
}
.fondos-gen-grafico-chart {
    position: relative;
    z-index: 1;
    height: 200px;
}
.fondos-gen-grafico-svg {
    display: block;
    overflow: visible;
}
.fondos-gen-grafico-grilla {
    stroke: #E3E3E8;
    stroke-width: 1;
    shape-rendering: crispEdges;
}
.fondos-gen-grafico-valor {
    fill: #6B6B70;
    font-size: 10px;
}
.fondos-gen-grafico-serie {
    fill: none;
    stroke: var(--fondos-gen-crecimiento);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    &.is-proteccion {
        stroke: var(--fondos-gen-proteccion);
    }
    .is-listo & {
        stroke-dashoffset: 0;
        transition: stroke-dashoffset 1s ease-out;
    }
}
.fondos-gen-grafico-banda,
.fondos-gen-grafico-punto,
.fondos-gen-grafico-etiqueta {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    .is-listo & {
        opacity: 1;
        transition: transform 0.45s ease, width 0.45s ease, opacity 0.3s ease;
    }
}
.fondos-gen-grafico-banda {
    z-index: 0;
    background-color: #EDF1F4;
    &::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        border-left: 1px dashed #9A9AA0;
    }
}
.fondos-gen-grafico-punto {
    z-index: 2;
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border: 2px solid var(--fondos-gen-crecimiento);
    border-radius: 50%;
    background-color: var(--nuevo-blanco);
    &.is-proteccion {
        border-color: var(--fondos-gen-proteccion);
    }
}
.fondos-gen-grafico-etiqueta {
    z-index: 3;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid var(--nuevo-borde);
    border-radius: 4px;
    background-color: var(--nuevo-blanco);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    .is-crecimiento {
        color: var(--fondos-gen-crecimiento);
    }
    .is-proteccion {
        color: var(--fondos-gen-proteccion);
    }
}
.fondos-gen-grafico-separador {
    margin: 0 4px;
    color: var(--nuevo-gris-texto);
}
.fondos-gen-grafico-eje {
    display: flex;
    justify-content: space-between;
    gap: var(--nuevo-espacio-sm);
    margin-top: var(--nuevo-espacio-xs);
    color: var(--fondos-gen-texto);
    font-size: 11px;
    font-weight: 700;
}

.fondos-gen-leyenda {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    li {
        position: relative;
        padding-left: 22px;
        &::before {
            content: '';
            position: absolute;
            top: 5px;
            left: 0;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: var(--fondos-gen-crecimiento);
        }
        &.is-proteccion::before {
            background-color: var(--fondos-gen-proteccion);
        }
    }
    p {
        margin: 0;
    }
}
.fondos-gen-leyenda-titulo {
    color: var(--fondos-gen-texto);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.fondos-gen-leyenda-texto {
    margin-top: 4px;
    color: var(--nuevo-gris-texto);
    font-size: 13px;
    line-height: 1.4;
}
.fondos-gen-inversion-nota {
    margin: var(--nuevo-espacio-xl) 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--nuevo-borde);
    color: var(--nuevo-gris-texto);
    font-size: 11px;
    line-height: 1.4;
    strong {
        font-weight: 700;
    }
}

@media (min-width: 992px) {
    .fondos-gen-etapas {
        container-type: inline-size;
        flex-direction: row;
        gap: 10px;
        min-height: var(--etapas-alto, 330px);
    }
    .fondos-gen-etapa {
        flex: 0 0 56px;
        min-width: 0;
        overflow: hidden;
        transition: flex-grow 0.45s ease, filter 0.2s ease;
        &.is-activa {
            flex-grow: 1;
        }
    }
    .fondos-gen-etapa-pill {
        flex-direction: column;
        justify-content: space-between;
        gap: 0;
        height: 100%;
        padding: 16px 0;
        text-align: center;
    }
    .fondos-gen-etapa-rango {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-size: 13px;
    }
    .fondos-gen-etapa-numero {
        flex-direction: column;
        order: 0;
        align-items: center;
        gap: 6px;
        margin-right: 0;
    }
    /* Ancho final de la tarjeta (lista - columnas cerradas - bordes) para que el texto no se reacomode durante la transición */
    .fondos-gen-etapa-detalle {
        width: calc(100cqw - (var(--etapas-total) - 1) * 66px - 2px);
        padding: var(--nuevo-espacio-md);
    }
    .fondos-gen-grafico-wrap {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--nuevo-espacio-xl);
    }
    .fondos-gen-grafico {
        flex: 1 1 auto;
        min-width: 0;
    }
    .fondos-gen-grafico-chart {
        height: 220px;
    }
    .fondos-gen-leyenda {
        flex: 0 0 220px;
        padding-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fondos-gen-etapa,
    .is-listo .fondos-gen-grafico-banda,
    .is-listo .fondos-gen-grafico-punto,
    .is-listo .fondos-gen-grafico-etiqueta,
    .is-listo .fondos-gen-grafico-serie {
        transition: none;
    }
    .fondos-gen-etapa.is-activa .fondos-gen-etapa-detalle {
        animation: none;
    }
}

/* ==========================================================================
   Sección 6: Si ya estás pensionado
   ========================================================================== */
.fondos-gen-pensionado {
    display: flex;
    flex-direction: column;
    gap: var(--nuevo-espacio-xl);
    margin-top: var(--nuevo-espacio-lg);
    padding: 0 var(--nuevo-espacio-sm);
}
.fondos-gen-pensionado-cabecera {
    display: flex;
    align-items: center;
    gap: var(--nuevo-espacio-sm);
    margin-bottom: 20px;
    p {
        margin: 0;
    }
}
.fondos-gen-pensionado-icono {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #FDDDE3;
    img {
        display: block;
        width: 28px;
        height: 28px;
    }
}
.fondos-gen-pensionado-kicker {
    margin-bottom: 4px;
    color: #B5123F;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.fondos-gen-pensionado-titulo {
    margin: 0;
    color: var(--fondos-gen-texto);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}
.fondos-gen-pensionado-texto {
    color: var(--fondos-gen-texto);
    font-size: 14px;
    line-height: 1.6;
    p {
        margin: 0;
    }
    p + p {
        margin-top: 20px;
    }
}
.fondos-gen-pensionado-link {
    display: inline-block;
    margin-top: var(--nuevo-espacio-md);
    color: #B5123F;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    &:hover, &:focus {
        color: #B5123F;
        text-decoration: underline;
    }
}

@media (min-width: 992px) {
    .fondos-gen-pensionado {
        flex-direction: row;
        gap: 72px;
        margin-top: var(--nuevo-espacio-xl);
        padding: 0 var(--nuevo-espacio-md);
    }
    .fondos-gen-pensionado-col {
        flex: 1 1 0;
    }
}

/* ==========================================================================
   Sección 7: Preguntas frecuentes
   ========================================================================== */
.fondos-gen-faq-bajada {
    margin: var(--nuevo-espacio-xs) 0 0;
    color: var(--nuevo-gris-texto);
    font-size: 15px;
    line-height: 1.6;
}
.fondos-gen-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: var(--nuevo-espacio-md);
}
.fondos-gen-faq-item {
    border: 1px solid var(--nuevo-borde);
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.fondos-gen-faq-pregunta {
    margin: 0;
    font-size: inherit;
}
.fondos-gen-faq-boton {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--nuevo-espacio-sm);
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--fondos-gen-texto);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: color 0.25s ease;
    &:focus-visible {
        outline: 2px solid var(--nuevo-celeste);
        outline-offset: -2px;
    }
}
.fondos-gen-faq-icono {
    position: relative;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #F6EEF0;
    transition: background-color 0.25s ease, transform 0.25s ease;
    &::before, &::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 10px;
        height: 2px;
        border-radius: 1px;
        background-color: #B5123F;
        transform: translate(-50%, -50%);
        transition: transform 0.25s ease, background-color 0.25s ease;
    }
    &::after {
        transform: translate(-50%, -50%) rotate(90deg);
    }
}
.fondos-gen-faq-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}
.fondos-gen-faq-panel-interno {
    min-height: 0;
    overflow: hidden;
}
.fondos-gen-faq-respuesta {
    padding: 0 14px 16px;
    color: var(--fondos-gen-texto);
    font-size: 14px;
    line-height: 1.6;
}
.fondos-gen-faq-texto {
    p {
        margin: 0;
    }
    p + p {
        margin-top: 12px;
    }
    a {
        color: var(--nuevo-celeste);
        text-decoration: underline;
    }
}
.fondos-gen-faq-item.is-abierta {
    .fondos-gen-faq-boton {
        color: #B5123F;
    }
    .fondos-gen-faq-icono {
        background-color: #B5123F;
        transform: scale(1.15);
        &::before, &::after {
            background-color: #fff;
        }
        &::after {
            transform: translate(-50%, -50%) rotate(0deg);
        }
    }
    .fondos-gen-faq-panel {
        grid-template-rows: 1fr;
    }
}

/* Clases de activos */
.fondos-gen-faq-activos {
    display: grid;
    gap: var(--nuevo-espacio-sm);
    margin-top: var(--nuevo-espacio-sm);
}
.fondos-gen-faq-activo {
    padding: 18px 20px 20px;
    border-top: 3px solid #B5123F;
    border-radius: 10px;
    background-color: #F7F6F4;
    &.is-proteccion {
        border-top-color: var(--nuevo-azul);
    }
}
.fondos-gen-faq-activo-titulo {
    margin: 0 0 10px;
    color: var(--fondos-gen-texto);
    font-size: 15px;
    font-weight: 700;
}
.fondos-gen-faq-activo-lista {
    margin: 0;
    padding: 0;
    list-style: none;
    li {
        position: relative;
        padding-left: 12px;
        &::before {
            content: '•';
            position: absolute;
            left: 0;
        }
    }
}
.fondos-gen-faq-activo-nota {
    margin: 14px 0 0;
    padding: 10px 12px;
    border: 1px solid var(--nuevo-borde);
    border-radius: 6px;
    color: var(--nuevo-gris-texto);
    font-size: 13px;
    line-height: 1.5;
}

/* Evolución de los fondos */
.fondos-gen-evolucion-selector {
    display: flex;
    width: max-content;
    margin: var(--nuevo-espacio-lg) auto var(--nuevo-espacio-md);
    padding: 6px;
    border-radius: var(--nuevo-radio-pill);
    background-color: #F1F1F4;
}
.fondos-gen-evolucion-opcion {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 0;
    border-radius: var(--nuevo-radio-pill);
    background: transparent;
    color: var(--fondos-gen-texto);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
    &.is-activa {
        background-color: #253D7E;
        color: #fff;
    }
    &:focus-visible {
        outline: 2px solid var(--nuevo-celeste);
        outline-offset: 2px;
    }
}
.fondos-gen-evolucion-scroll {
    margin: 0 -14px;
    padding: 0 14px 8px;
    overflow-x: auto;
}
.fondos-gen-evolucion-linea {
    --gap: 12px;
    --columna: calc((100% - (var(--evolucion-total) - 1) * var(--gap)) / var(--evolucion-total));
    position: relative;
    min-width: 860px;
    padding-top: 36px;
}
.fondos-gen-evolucion-avance {
    position: absolute;
    top: 0;
    left: calc((var(--columna) + var(--gap)) * (var(--avance-desde) - 1));
    right: calc((var(--columna) + var(--gap)) * (var(--evolucion-total) - var(--avance-hasta)));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 24px;
    margin: 0;
    color: #253D7E;
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    &::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        z-index: 0;
        height: 1px;
        background-color: #9AA3B5;
    }
    .fondos-gen-evolucion-marca {
        position: static;
        background-color: #253D7E;
        opacity: 1;
        transform: none;
    }
}
.fondos-gen-evolucion-avance-texto {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    background-color: #fff;
}
.fondos-gen-evolucion-lista {
    display: grid;
    grid-template-columns: repeat(var(--evolucion-total), minmax(0, 1fr));
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
}
.fondos-gen-evolucion-etapa {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    &::after {
        content: '';
        position: absolute;
        top: 71px;
        left: 50%;
        width: calc(100% + var(--gap));
        height: 2px;
        background: linear-gradient(to right, var(--color), var(--color-siguiente));
    }
    &:last-child::after {
        content: none;
    }
}
.fondos-gen-evolucion-fondo {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 44px;
    border-radius: 10px;
    background-color: var(--color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.fondos-gen-evolucion-rango {
    grid-area: 1 / 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    &.is-futuro {
        opacity: 0;
        transform: translateX(-12px);
    }
}
.fondos-gen-evolucion-marca {
    position: absolute;
    top: -9px;
    right: -9px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: var(--color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.fondos-gen-evolucion-punto {
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    margin-top: 22px;
    border-radius: 50%;
    background-color: var(--color);
}
.fondos-gen-evolucion-nombre {
    margin-top: 10px;
    color: var(--nuevo-azul);
    font-size: 11px;
    font-weight: 700;
}
.fondos-gen-evolucion-etiqueta {
    color: var(--nuevo-gris-texto);
    font-size: 10px;
}
.fondos-gen-evolucion-pasos {
    display: grid;
    gap: 20px;
    margin: var(--nuevo-espacio-lg) 0 0;
    padding: 0;
    list-style: none;
}
.fondos-gen-evolucion-paso {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0.45;
    filter: grayscale(0.4);
    transition: opacity 0.3s ease, filter 0.3s ease;
}
.fondos-gen-evolucion-paso-numero {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background-color: #C8102E;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.fondos-gen-evolucion-paso:nth-child(2) .fondos-gen-evolucion-paso-numero {
    background-color: #253D7E;
}
.fondos-gen-evolucion-paso:nth-child(3) .fondos-gen-evolucion-paso-numero {
    background-color: #0F2A5C;
}
.fondos-gen-evolucion-paso-titulo {
    margin: 0 0 4px;
    color: var(--nuevo-azul);
    font-size: 15px;
    font-weight: 700;
}
.fondos-gen-evolucion-paso-texto {
    margin: 0;
    color: var(--nuevo-gris-texto);
    font-size: 13px;
    line-height: 1.6;
}
.fondos-gen-evolucion.is-futuro {
    .fondos-gen-evolucion-rango {
        &.is-actual {
            opacity: 0;
            transform: translateX(12px);
        }
        &.is-futuro {
            opacity: 1;
            transform: none;
        }
    }
    .fondos-gen-evolucion-marca,
    .fondos-gen-evolucion-avance {
        opacity: 1;
        transform: none;
    }
    .fondos-gen-evolucion-paso {
        opacity: 1;
        filter: none;
    }
}

/* Consideraciones */
.fondos-gen-faq-consideraciones {
    display: grid;
    gap: 12px;
}
.fondos-gen-faq-consideracion {
    margin: 0;
    padding: 16px 18px;
    border-radius: 12px;
    background-color: #F7F6F4;
}

@media (min-width: 992px) {
    .fondos-gen-faq {
        margin-top: var(--nuevo-espacio-lg);
    }
    .fondos-gen-faq-boton {
        padding: 12px 14px;
    }
    .fondos-gen-faq-activos,
    .fondos-gen-faq-consideraciones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .fondos-gen-evolucion-scroll {
        margin: 0;
        padding: 0 0 8px;
        overflow: visible;
    }
    .fondos-gen-evolucion-linea {
        --gap: 16px;
        min-width: 0;
    }
    .fondos-gen-evolucion-pasos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--nuevo-espacio-lg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fondos-gen-faq-boton,
    .fondos-gen-faq-icono,
    .fondos-gen-faq-icono::before,
    .fondos-gen-faq-icono::after,
    .fondos-gen-faq-panel,
    .fondos-gen-evolucion-opcion,
    .fondos-gen-evolucion-rango,
    .fondos-gen-evolucion-marca,
    .fondos-gen-evolucion-avance,
    .fondos-gen-evolucion-paso {
        transition: none;
    }
}

/* ==========================================================================
   Sección 8: Te acompañamos
   ========================================================================== */
.fondos-gen-acompanamos {
    padding: var(--nuevo-espacio-md) 0 var(--nuevo-espacio-lg);
    background-color: #B5123F;
    color: #fff;
}
.fondos-gen-acompanamos-contenido {
    display: flex;
    flex-direction: column;
    gap: var(--nuevo-espacio-md);
}
.fondos-gen-acompanamos-titulo {
    margin: 0 0 var(--nuevo-espacio-xs);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}
.fondos-gen-acompanamos-texto {
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
}
.fondos-gen-acompanamos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--nuevo-radio-pill);
    background-color: #fff;
    color: #B5123F;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
    &:hover, &:focus {
        background-color: #FDF1F1;
        color: #B5123F;
        text-decoration: none;
    }
    &:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 3px;
    }
}

@media (min-width: 992px) {
    .fondos-gen-acompanamos {
        padding: 40px 0;
    }
    .fondos-gen-acompanamos-contenido {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--nuevo-espacio-xl);
    }
    .fondos-gen-acompanamos-textos {
        max-width: 660px;
    }
    .fondos-gen-acompanamos-titulo {
        font-size: 18px;
    }
    .fondos-gen-acompanamos-texto {
        font-size: 14px;
    }
    .fondos-gen-acompanamos-btn {
        flex-shrink: 0;
        padding: 10px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fondos-gen-acompanamos-btn {
        transition: none;
    }
}
