@font-face {
    font-family: "FS Elliot Pro";
    src: url("../fonts/fs_elliot_proregular-webfont.woff2") format("woff2"), url("../fonts/fs_elliot_proregular-webfont.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FS Elliot Pro";
    src: url("../fonts/fs_elliot_probold-webfont.woff2") format("woff2"), url("../fonts/fs_elliot_probold-webfont.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FS Elliot Pro";
    src: url("../fonts/fs_elliot_prolight-webfont.woff2") format("woff2"), url("../fonts/fs_elliot_prolight-webfont.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FS Elliot Pro";
    src: url("../fonts/fs_elliot_prothin-webfont.woff2") format("woff2"), url("../fonts/fs_elliot_prothin-webfont.woff") format("woff");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FS Elliot Pro";
    src: url("../fonts/fs_elliot_prothinitalic-webfont.woff2") format("woff2"), url("../fonts/fs_elliot_prothinitalic-webfont.woff") format("woff");
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "FS Elliot Pro";
    src: url("../fonts/fs_elliot_prolightitalic-webfont.woff2") format("woff2"), url("../fonts/fs_elliot_prolightitalic-webfont.woff") format("woff");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "FS Elliot Pro";
    src: url("../fonts/fs_elliot_proitalic-webfont.woff2") format("woff2"), url("../fonts/fs_elliot_proitalic-webfont.woff") format("woff");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "FS Elliot Pro";
    src: url("../fonts/fs_elliot_probolditalic-webfont.woff2") format("woff2"), url("../fonts/fs_elliot_probolditalic-webfont.woff") format("woff");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "FS Elliot Pro";
    src: url("../fonts/fs_elliot_proheavy-webfont.woff2") format("woff2"), url("../fonts/fs_elliot_proheavy-webfont.woff") format("woff");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FS Elliot Pro";
    src: url("../fonts/fs_elliot_proheavyitalic-webfont.woff2") format("woff2"), url("../fonts/fs_elliot_proheavyitalic-webfont.woff") format("woff");
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --blue: #0076cf;
    --blue-strong: #005da8;
    --navy: #003e74;
    --navy-dark: #002d5f;
    --sky: #e8f8ff;
    --sky-strong: #d9f2ff;
    --yellow: #f6b313;
    --ink: #171d24;
    --muted: #68727c;
    --line: #e4edf2;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(0, 45, 95, 0.12);
    --calypso: #00c4d9;
    /* Ancho de los contenedores principales. En ≤1280px se mantiene el de antes. */
    --wrap-width: min(1360px, calc(100% - 144px));
}

@media (max-width: 1280px) {
    :root {
        --wrap-width: calc(100% - 96px);
    }
}

/* Font utilities */
.font-fs-elliot,
.font-apv {
    font-family: "FS Elliot Pro", "Segoe UI", sans-serif;
}

.font-thin,
.fw-100 {
    font-weight: 100;
}

.font-light,
.fw-300 {
    font-weight: 300;
}

.font-regular,
.fw-400 {
    font-weight: 400;
}

.font-bold,
.fw-700 {
    font-weight: 700;
}

.font-heavy,
.fw-900 {
    font-weight: 900;
}

.font-italic {
    font-style: italic;
}

/* Explicit FS Elliot Pro variants */
.font-thin-italic {
    font-weight: 100;
    font-style: italic;
}

.font-light-italic {
    font-weight: 300;
    font-style: italic;
}

.font-regular-italic {
    font-weight: 400;
    font-style: italic;
}

.font-bold-italic {
    font-weight: 700;
    font-style: italic;
}

.font-heavy-italic {
    font-weight: 900;
    font-style: italic;
}

strong,
b,
.font-strong,
.font-b {
    font-family: "FS Elliot Pro", "Segoe UI", sans-serif;
    font-weight: 700;
}

/* Text color utilities */
.text-blue {
    color: var(--blue);
}

.text-blue-strong {
    color: var(--blue-strong);
}

.text-navy {
    color: var(--navy);
}

.text-navy-dark {
    color: var(--navy-dark);
}

.text-sky {
    color: var(--sky);
}

.text-sky-strong {
    color: var(--sky-strong);
}

.text-yellow {
    color: var(--yellow);
}

.text-ink {
    color: var(--ink);
}

.text-muted {
    color: var(--muted);
}

.text-white {
    color: var(--white);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "FS Elliot Pro", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.45;
    overflow-x: hidden;
}

img,
svg {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.wrap {
    width: var(--wrap-width);
    margin-inline: auto;
}

.section {
    padding: 82px 0;
}

.btn {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.btn--primary {
    color: var(--white);
    background: var(--blue);
    /* box-shadow: 0 10px 20px rgba(0, 118, 207, 0.22); */
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--blue-strong);
}

.btn--accent {
    color: #1b1b1b;
    background: var(--yellow);
    box-shadow: 0 10px 18px rgba(246, 179, 19, 0.2);
}

.btn--outline {
    width: 185px;
    min-height: 43px;
    color: var(--blue);
    background: var(--white);
    border: 2px solid var(--blue);
    box-shadow: none;
}

/* "Calcular": celeste al pasar el mouse, sin moverse. */
.btn--outline:hover,
.btn--outline:focus-visible {
    color: var(--blue-strong);
    background: #b7e6f8;
    border-color: var(--blue-strong);
}

.hero {
    position: relative;
    width: min(1880px, calc(100% - 20px));
    min-height: clamp(650px, 36.5vw, 748px);
    margin: 10px auto 0;
    overflow: hidden;
    border-radius: 10px;
    color: var(--white);
    background: #101a2a;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("../img/hero-apv-b-600uf.webp") right center / auto 100% no-repeat;
    
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 11%, #000 72%);
    mask-image: linear-gradient(90deg, transparent 0%, transparent 11%, #000 72%);
}

.hero::after {
    /* content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(12, 9, 5, 0.95) 0%, rgba(12, 9, 5, 0.78) 29%, rgba(12, 9, 5, 0.24) 58%, rgba(12, 9, 5, 0.04) 100%),
        radial-gradient(circle at 72% 26%, transparent 0 24%, rgba(0, 0, 0, 0.18) 72%);
    pointer-events: none; */
}

.hero__nav {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    height: 96px;
    padding: 0 clamp(28px, 1.95vw, 40px);
}

.hero__logo img {
    width: 166px;
    height: auto;
}

.hero__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.5vw, 44px);
    flex: 1;
    min-width: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(13px, 0.72vw, 15px);
    font-weight: 400;
    transition: all 1s ease;
}

.hero__links a {
    position: relative;
    white-space: nowrap;
}

.hero__links a:hover  {
    text-shadow: 1px 0px 0px rgba(255, 255, 255, 0.573);

       /* font-weight: 600; */
}


.hero__links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    border-radius: 2px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.hero__links a:hover::after,
.hero__links a:focus-visible::after {
    transform: scaleX(1);
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero__actions .btn {
    min-height: 54px;
    padding-inline: 34px;
    font-size: 16px;
}

.hero__qr-trigger {
    box-sizing: content-box;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    color: var(--white);
    background: transparent;
    cursor: pointer;
}

.hero__qr-trigger img {
    width: 36px;
    height: 36px;
}

.hero__qr-trigger:hover,
.hero__qr-trigger:focus-visible {
    opacity: 0.82;
    outline: none;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.24);
    color: var(--white);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    max-width: 100vw;
    padding: 26px;
    color: var(--white);
    background: var(--navy-dark);
    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.mobile-menu__bar img {
    width: 124px;
}

.mobile-menu__bar button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: var(--white);
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.mobile-menu > a:not(.btn) {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 20px;
    font-weight: 700;
}

.hero__content {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: min(620px, 46vw);
    margin-left: clamp(94px, 9.7vw, 198px);
    transform: translateY(-50%);
}

.hero__content h1 {
    margin: 0 0 26px;
    font-size: clamp(42px, 3.06vw, 62px);
    line-height: 1;
    font-weight: 300;
    letter-spacing: 0;
}

.hero__content h1 b {
    font-weight: 700;
}

.hero__content h1 span {
    display: block;
    margin-top: 16px;
    font-weight: 300;
}

.hero__content p {
    width: min(590px, 100%);
    margin: 0 0 38px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(20px, 1.35vw, 28px);
    line-height: 1.25;
}


.hero__buttons {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero__buttons .btn--primary,
.hero__buttons .btn--outline-yellow {
    min-width: 258px;
    min-height: 64px;
    padding-inline: 38px;
    font-size: 18px;
}

.hero__buttons .btn--outline-yellow {
    color: var(--yellow);
    background: transparent;
    border: 1px solid var(--yellow);
}

.hero__buttons .btn--outline-yellow:hover,
.hero__buttons .btn--outline-yellow:focus-visible {
    color: #1b1b1b;
    background: var(--yellow);
}

.hero__text-link {
    color: var(--yellow);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    transition: color 0.2s ease;
}

.hero__text-link:hover,
.hero__text-link:focus-visible {
    color: #ffd34a;
}

.qr-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.qr-modal.is-open {
    display: flex;
}

.qr-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 18, 37, 0.72);
    backdrop-filter: blur(5px);
}

.qr-modal__panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    border-radius: 12px;
    padding: 40px 42px 36px;
    color: var(--ink);
    background: var(--white);
    text-align: center;
    box-shadow: 0 28px 80px rgba(0, 18, 37, 0.34);
}

.qr-modal__close {
    position: absolute;
    right: 18px;
    top: 16px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #2f3a44;
    background: var(--white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.qr-modal__brand {
    width: 132px;
    height: auto;
    margin: 0 auto 18px;
}

.qr-modal h2 {
    margin: 0 0 22px;
    color: var(--navy-dark);
    font-size: 32px;
    line-height: 1.1;
}

.qr-modal__code {
    display: grid;
    place-items: center;
    width: min(360px, 100%);
    margin: 0 auto 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px;
    background: #fbfdff;
}

.qr-modal__code img {
    width: 100%;
    max-width: 292px;
    height: auto;
}

.qr-modal p {
    width: min(430px, 100%);
    margin: 0 auto 22px;
    color: #53606a;
    font-size: 16px;
    line-height: 1.45;
}

.qr-modal__stores {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.qr-modal__stores img {
    width: 124px;
    height: auto;
}

.assumptions-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.assumptions-modal.is-open {
    display: flex;
}

.assumptions-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 18, 37, 0.72);
    backdrop-filter: blur(5px);
}

.assumptions-modal__panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    border-radius: 12px;
    padding: 40px 42px 36px;
    color: var(--ink);
    background: var(--white);
    text-align: left;
    box-shadow: 0 28px 80px rgba(0, 18, 37, 0.34);
}

.assumptions-modal__close {
    position: absolute;
    right: 18px;
    top: 16px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #2f3a44;
    background: var(--white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.assumptions-modal h2 {
    margin: 0 0 14px;
    color: var(--navy-dark);
    font-size: 26px;
    line-height: 1.15;
}

.assumptions-modal__intro {
    margin: 0 0 18px;
    color: #53606a;
    font-size: 15px;
    line-height: 1.45;
}

.assumptions-modal__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.assumptions-modal__list li {
    color: #53606a;
    font-size: 14px;
    line-height: 1.5;
    padding-left: 18px;
    border-left: 2px solid var(--line);
}

.assumptions-modal__list strong {
    color: var(--ink);
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.contact-modal.is-open {
    display: flex;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 18, 37, 0.72);
    backdrop-filter: blur(5px);
}

.contact-modal__panel {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    border-radius: 12px;
    padding: 42px 44px 38px;
    color: var(--ink);
    background: var(--white);
    text-align: left;
    box-shadow: 0 28px 80px rgba(0, 18, 37, 0.34);
}

.contact-modal__close {
    position: absolute;
    right: 18px;
    top: 16px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #2f3a44;
    background: var(--white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.contact-modal__brand {
    width: 132px;
    height: auto;
    margin: 0 0 18px;
}

.contact-modal h2 {
    margin: 0 48px 12px 0;
    color: var(--navy-dark);
    font-size: 30px;
    line-height: 1.12;
}

.contact-modal__intro {
    margin: 0 0 24px;
    color: #53606a;
    font-size: 16px;
    line-height: 1.45;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-form__field {
    display: grid;
    gap: 8px;
    margin: 0;
}

.contact-form__field--wide {
    grid-column: 1 / -1;
}

.contact-form__field span {
    color: #111820;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.contact-form__field input {
    width: 100%;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 18px;
    color: #111820;
    background: #fbfdff;
    font-size: 16px;
    font-weight: 400;
}

.contact-form__field input::placeholder {
    color: var(--muted);
    font-weight: 400;
    opacity: 1;
}

.contact-form__field input:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(0, 118, 207, 0.2);
    outline-offset: 2px;
}

.contact-form__phone {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.contact-form__phone-prefix {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    height: 54px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: #f2f6f9;
    font-size: 16px;
    font-weight: 700;
}

.contact-form__phone input {
    flex: 1 1 auto;
    min-width: 0;
}

.contact-form__error {
    display: block;
    min-height: 16px;
    color: #d1293d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.contact-form__error:empty {
    display: none;
}

.contact-form__field.has-error input {
    border-color: #d1293d;
}

.contact-form__field.has-error .contact-form__phone-prefix {
    border-color: #d1293d;
}

.contact-form .btn {
    justify-self: center;
    min-width: 220px;
    min-height: 56px;
    border: 0;
}

.contact-form__status {
    margin: -6px 0 0;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.contact-form__status:empty {
    display: none;
}

.section-note__link {
    display: inline;
    border: 0;
    padding: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.split-heading {
    /* display: grid; */
    /* grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr); */
    gap: clamp(46px, 8vw, 150px);
    align-items: start;
    margin: 46px 0px;
    text-align:center
}

.split-heading > *,
.simulator__panel > *,
.advisor > *,
.regime-grid > *,
.benefit-grid > *,
.advantage-grid > *,
.pension-board > *,
.app-banner > *,
.faq__grid > *,
.footer__grid > * {
    min-width: 0;
}

.split-heading h2,
.benefit-band h2,
.advantages h2,
.faq h2 {
    margin: 0;
    color: #22262c;
    font-size: clamp(36px, 2.75vw, 50px);
    line-height: 1.07;
    font-weight: 300;
    letter-spacing: 0;
}

.split-heading h2 strong,
.benefit-band h2 strong,
.advantages h2 strong,
.faq h2 strong {
    font-weight: 700;
}

.split-heading p {
    margin: 20px auto;
    max-width: 520px;
    color: #000000;
    font-size: 16px;
    line-height: 1.5;
}

.simulator {
    padding-top: 110px;
}

.simulator__panel {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 28px;
}

.calculator,
.calculator-result {
    border-radius: 9px;
    background: var(--sky-strong);
}

.calculator {
    padding: 36px 38px 38px;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.field span,
.radio-group legend {
    color: #24313e;
    font-size: 13px;
    font-weight: 700;
}

.field input {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    padding: 0 18px;
    color: #182432;
    background: var(--white);
    font-size: 16px;
    font-weight: 700;
    outline: none;
}

.field input:focus {
    box-shadow: 0 0 0 3px rgba(0, 118, 207, 0.2);
}

.radio-group {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 10px 22px;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

.radio-group legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4e5964;
    font-size: 12px;
}

.radio-group input {
    accent-color: var(--blue);
}

.range {
    width: 100%;
    margin: 2px 0 8px;
    accent-color: var(--blue);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    color: #000000;
    font-size: 11px;
    font-weight: 700;
}

.calculator .btn {
    margin: 0 auto;
}

.calculator-result {
    display: grid;
    place-items: center;
    min-height: 675px;
    padding: 44px;
    text-align: center;
    color: var(--blue);
}

.calculator-result__icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
}

.calculator-result p {
    margin: 0;
    color: #5b6f7b;
    font-size: 15px;
}

.calculator-result.is-filled {
    place-items: stretch;
    color: inherit;
    text-align: left;
}

.result-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

.result-card article {
    padding: 26px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 12px 34px rgba(0, 62, 116, 0.08);
}

.result-card span {
    display: block;
    margin-bottom: 10px;
    color: #5f6d78;
    font-size: 13px;
    font-weight: 700;
}

.result-card strong {
    color: var(--navy);
    font-size: clamp(26px, 2vw, 34px);
    line-height: 1;
}

.result-card p {
    margin-top: 10px;
    text-align: left;
}

.section-note {
    margin: 28px 0 0;
    color: #9aa7af;
    font-size: 13px;
    text-align: center;
}

.advisor {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: center;
    min-height: 250px;
    margin-top: 54px;
    margin-bottom: 88px;
    overflow: hidden;
    border-radius: 7px;
    padding: 48px 64px;
    color: var(--white);
    background: url("../img/bg.png") center / cover no-repeat;
}

.advisor::before {
    content: "";
    position: absolute;
    left: calc(50% - 92px);
    top: 0;
    width: 110px;
    height: 250px;
    background: url("../img/formas.png") center / contain no-repeat;
}

.advisor::after {
    content: none;
}

.advisor > * {
    position: relative;
    z-index: 1;
}

.advisor h2,
.advisor p {
    margin: 0;
}

.advisor h2 {
    font-size: clamp(28px, 2.5vw, 40px);
    line-height: 1.1;
    font-weight: 300;
}

.advisor h2 strong {
    font-weight: 700;
}

.advisor__copy p {
    margin-top: 2px;
    font-size: 24px;
    font-weight: 300;
}

.advisor__action {
    display: grid;
    justify-items: start;
    gap: 18px;
}

.advisor__action p {
    max-width: 560px;
    font-size: 14px;
    line-height: 1.5;
}

.regime-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 72px;
}

.regime-card__image {
    position: relative;
    display: flex;
    align-items: end;
    min-height: 318px;
    overflow: hidden;
    border-radius: 7px;
    padding: 34px;
    color: var(--white);
    background-size: cover;
    background-position: center;
}

.regime-card__image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.72));
}

.regime-card__image > * {
    position: relative;
    z-index: 1;
}

.regime-card__image--a {
    background-image: url("../img/foto_.png");
}

.regime-card__image--b {
    background-image: url("../img/img_2.png");
}

.regime-card__letter {
    position: absolute;
    left: 30px;
    top: 32px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    color: #6e7780;
    background: var(--white);
    font-size: 30px;
    font-weight: 700;
}

.regime-card__letter img {
    width: auto;
    max-width: 28px;
    height: 29px;
}

.regime-card h3 {
    margin: 0 0 4px;
    color: var(--blue);
    font-size: 22px;
    font-weight: normal;
}

.regime-card p {
    margin: 0;
    font-size: 20px;
}

.check-list {
    display: grid;
    gap: 22px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    min-height: 34px;
    padding-left: 48px;
    color: #4c5964;
    font-size: 16px;
    line-height: 1.45;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: -2px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    background: url("../img/check_.png") center / contain no-repeat;
}

.benefit-band {
    margin-top: 40px;
    padding: 104px 0 112px;
    background: #f0fbfe;
}

.benefit-band h2 {
    width: min(780px, 100%);
    margin-bottom: 94px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 130px;
}

.benefit-grid article,
.advantage-grid article {
    display: grid;
    align-content: start;
}

.icon-bubble {
    display: grid;
    place-items: center;
    width: 72px;
    padding: 10px;
    height: 72px;
    margin-bottom: 26px;
    border-radius: 50%;
    color: var(--white);
    background: var(--blue);
    /* box-shadow: 0 12px 28px rgba(0, 118, 207, 0.22); */
}

.icon-bubble img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* #multiplica h3, #multiplica  p {
 margin-left: 30px !important;
} */
.benefit-grid h3,
.advantage-grid h3 {
    margin: 5px 0 12px;
    color: var(--blue);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 400;
}

.benefit-grid p,
.advantage-grid p {
    margin: 0;
    color: #000000;
    font-size: 16px;
    line-height: 1.45;

}

.story .split-heading h2 span {
    display: block;
    font-weight: 300;
}

.pension-board {
    position: relative;
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr) 300px;
    gap: 30px;
    overflow: hidden;
    border-radius: 14px;
    padding: 30px 30px 0;
    /* background: #0b5294; */
    background: #0B5294;
background: linear-gradient(38deg, rgba(11, 82, 148, 1) 0%, rgba(21, 148, 210, 1) 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.persona-stack,
.saving-stack {
    display: grid;
    align-content: start;
    min-width: 0;
}

.persona-stack {
    position: relative;
    z-index: 0;
    gap: 30px;
    align-self: stretch;
    /* background: var(--navy-dark); */
    /* box-shadow: -30px 0 0 var(--navy-dark), 30px 0 0 var(--navy-dark); */
}

.profile-card {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    height: 167px;
    overflow: hidden;
    border-radius: 12px;
    padding: 0 30px 0 0;
    color: var(--ink);
    background: var(--white);
}

.profile-card > div {
    padding-left: 15px;
}

.profile-card > img {
    align-self: start;
    width: 135px;
    height: 185px;
    margin-top: 15px;
    transform: translateX(10px);
    object-fit: cover;
    object-position: top center;
}

.profile-card:nth-child(2) > img {
    align-self: end;
    width: 110px;
    aspect-ratio: 139 / 198;
    height: auto;
    margin: 0 auto;
    transform: translateX(10px);
}

.profile-card h3 {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

.profile-card p {
    margin: 0;
    font-size: 17px;
    line-height: 1.38;
}

.profile-card p strong {
    font-weight: 700;
}

.persona-stack .btn {
    min-height: 60px;
    margin-top: 20px;
    width: 100%;
    border-radius: 999px;
    font-size: 15px;
    white-space: normal;
    text-align: center;
}

.bar-chart {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    height: 646px;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    padding: 42px 60px 0 80px;
    background: var(--white);
}

.bar-chart::before,
.bar-chart::after,
.chart-line {
    content: "";
    position: absolute;
    z-index: 4;
    left: 80px;
    right: 54px;
    height: 1px;
    background: rgba(72, 84, 94, 0.42);
    pointer-events: none;
    z-index: 1;
}

.bar-chart::before {
    top: 42px;
}

.bar-chart::after {
    top: 43.9%;
}

.chart-line--bottom {
    top: 84.3%;
}

.age {
    position: absolute;
    z-index: 5;
    left: 16px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.age--top {
    top: 36px;
}

.age--mid {
    top: calc(43.9% - 6px);
}

.age--bottom {
    top: calc(84.3% - 6px);
}

.bar {
    position: relative;
    align-self: end;
    height: 604px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    color: var(--white);
    text-align: center;
    --fill: 83.333%;
    --bar-color: #147fc8;
}

.bar--pedro {
    --fill: 40%;
    --bar-color: #0b559c;
}

.bar::before,
.bar::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    z-index: 0;
}

.bar::before {
    top: 0;
    height: var(--fill);
    background: var(--bar-color);
}

.bar::after {
    top: var(--fill);
    bottom: 0;
    background:
        linear-gradient(to bottom, transparent 62%, rgba(184, 184, 184, 0.55) 100%),
        repeating-linear-gradient(135deg, #f4f4f4 0 3px, #e6e6e6 3px 4px, #f4f4f4 4px 8px);
}

.bar__copy {
    position: absolute;
    z-index: 2;
    top: 72px;
    left: 16px;
    right: 16px;
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.bar__copy strong {
    display: block;
    margin-top: 8px;
    font-size: 44px;
    font-weight: 400;
    line-height: 1;
}

.bar img {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 0;
    bottom: -28px;
    width: 166px;
    height: 232px;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: bottom center;
    z-index: 2;
}

.bar--pedro img {
    bottom: 0;
    width: 138px;
    height: 200px;
}

.saving-stack {
    gap: 30px;
}

.saving-card {
    display: grid;
    grid-template-rows: 70px 86px 96px;
    gap: 0;
    height: 293px;
    overflow: hidden;
    border-radius: 12px;
    padding: 20px;
    color: var(--ink);
    background: var(--white);
}

.saving-card__header {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.saving-card__header img {
    align-self: end;
    width: 78px;
    height: 104px;
    object-fit: contain;
    object-position: bottom center;
}

.saving-card__header span {
    font-size: 17px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.saving-card__metric {
    display: grid;
    align-content: center;
    border-radius: 11px;
    padding: 10px 20px;
    background: #cceefa;
}

.saving-card__metric strong {
    color: var(--blue);
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
}

.saving-card__metric em {
    margin-top: 4px;
    color: var(--ink);
    font-size: 15px;
    font-style: normal;
    line-height: 1.1;
}

.saving-card__metric--return {
    align-self: end;
    height: 86px;
    background: #0b559c;
}

.saving-card__metric--return strong,
.saving-card__metric--return em {
    color: var(--white);
}

.advantages {
    padding-top: 56px;
}

.advantages h2 {
    width: min(760px, 100%);
    margin-bottom: 78px;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.advantage-grid article {
    position: relative;
    padding-right: 54px;
}

.advantage-grid article + article {
    border-left: 1px solid var(--line);
    padding-left: 54px;
}

.line-icon {
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    color: var(--blue);
}

.line-icon img {
    width: auto;
    max-width: 52px;
    height: 52px;
    object-fit: contain;
}

.app-banner {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 360px;
    aspect-ratio: 1530 / 530;
    margin-top: 48px;
    margin-bottom: 98px;
    overflow: hidden;
    border-radius: 7px;
    padding: clamp(42px, 4.7vw, 72px) clamp(42px, 5.8vw, 92px);
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.5) 44%, rgba(0, 0, 0, 0) 72%),
        url("../img/bg_lo_simple.webp") center / cover no-repeat;
}

.app-banner__content {
    width: min(650px, 56%);
}

.app-banner h2 {
    width: min(560px, 100%);
    margin: 0 0 16px;
    font-size: clamp(36px, 3.1vw, 56px);
    line-height: 1.04;
}

.app-banner p {
    width: min(540px, 100%);
    margin: 0 0 32px;
    font-size: 17px;
}

.app-banner__actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.app-banner__qr-icon {
    width: 36px;
    height: 36px;
}

.download-card {
    position: absolute;
    left: clamp(350px, 32vw, 520px);
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    border-radius: 7px;
    padding: 12px 14px !important;
    color: #182432;
    background: var(--white);
    box-shadow: var(--shadow);
}

.download-card__qr {
    width: 142px;
    height: 142px;
    object-fit: cover;
}

.download-card > div {
    display: grid;
    justify-items: center;
    gap: 9px;
}

.download-card span {
    font-size: 12px;
    font-weight: 700;
}

.download-card__platforms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.download-card__platforms img {
    width: auto;
    height: 29px;
}

.download-card__direct {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 18px;
    color: var(--white);
    background: var(--blue);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.download-card__direct:hover,
.download-card__direct:focus-visible {
    background: var(--blue-strong);
}

.footer__contact img,
.footer__social > img {
    width: 37px;
    height: 37px;
    object-fit: contain;
}

.footer__social > img {
    width: 35px;
    height: 35px;
}

.footer__social a img {
    width: auto;
    max-width: 20px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(32%) sepia(99%) saturate(1950%) hue-rotate(185deg) brightness(96%) contrast(101%);
}

.app-banner small {
    display: block;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
}

.faq {
    padding-top: 0;
}

.faq__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 130px;
}

.faq h2 {
    max-width: 720px;
}

.faq-list {
    display: grid;
}

.faq-list details {
    border-bottom: 1px solid var(--line);
    padding: 0;
}

.faq-list summary {
    position: relative;
    display: block;
    padding: 22px 42px 22px 0;
    color: #3f4a54;
    font-size: 22px;
    font-weight: 400;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 2px;
    top: 20px;
    color: #000;
    font-size: 32px;
    font-weight: 300;
}

.faq-list details[open] summary::after {
    content: "-";
}

.faq-list p {
    /* max-width: 620px; */
    margin: -8px 0 20px;
    color: #000000;
    font-size: 16px;
    line-height: 1.55;
}


.footer {
    padding: 24px 0 92px;
    color: #5d5d5d;
    background: var(--white);
}

.footer .wrap {
    width: var(--wrap-width);
}

.footer__frame {
    border-top: 1px solid #e4e4e4;
}

.footer__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    padding: 60px 0 55px;
    border-bottom: 1px solid #e4e4e4;
}

.footer__brand img {
    width: 162px;
    height: auto;
}

.footer__contacts {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(210px, 1.15fr) minmax(210px, 1.1fr) minmax(178px, 0.85fr);
    width: min(100%, 860px);
    max-width: 100%;
    margin-top: 81px;
}

.footer-item {
    position: relative;
    min-width: 0;
}

.footer-item + .footer-item {
    padding-left: clamp(36px, 4vw, 72px);
}

.footer-item + .footer-item::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: auto;
    left: 0;
    width: 1px;
    height: 67px;
    background: #e4e4e4;
}

.footer-item > img {
    width: 37px;
    height: 37px;
    object-fit: contain;
}

.footer__social > img {
    width: 35px;
    height: 35px;
}

.footer-item > span {
    display: block;
    margin-top: 14px;
    color: #666;
    font-size: 14px;
    line-height: 1.2;
}

.footer-item > a {
    display: block;
    width: fit-content;
    margin-top: 5px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.1;
    text-shadow: 1px 0px 0px rgba(0, 0, 0, 0.15);
}

.footer-item > a u {
    color: var(--blue);
    text-underline-offset: 2px;
}

.footer__social div {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.footer__social a {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 2px;
    background: #0878c9;
}

.footer__social a img {
    width: auto;
    max-width: 18px;
    height: 17px;
    filter: brightness(0) invert(1);
}

.footer__social a[aria-label="X"] img {
    display: none;
}

.footer__social a[aria-label="X"]::before {
    content: "X";
    color: var(--white);
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
}

.footer__download {
    min-width: 0;
    border-left: 1px solid #e4e4e4;
    padding-left: 48px;
}

.footer__download p {
    margin: -5px 0 0;
    color: var(--ink);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.15;
}

.footer__download > div {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    min-width: 0;
    margin-top: 33px;
}

.footer__download > div > img {
    flex: 0 0 auto;
    width: 174px;
    height: 174px;
    margin: -16px -16px -16px -14px;
    object-fit: contain;
}

.footer__download span {
    display: grid;
    gap: 26px;
}

.footer__download span img {
    width: 197px;
    height: auto;
}

.footer__legal {
    margin: 34px 0 0;
    color: #666;
    font-size: 11px;
    line-height: 1.45;
}

@media (max-width: 1360px) {
    .hero__links {
        gap: 14px;
        font-size: 12px;
    }

    .hero__actions {
        gap: 14px;
    }

    .hero__actions .btn {
        min-height: 48px;
        padding-inline: 24px;
        font-size: 14px;
    }

    .hero__content {
        width: min(520px, 48vw);
        margin-left: clamp(56px, 6vw, 110px);
    }

    .simulator__panel {
        grid-template-columns: 430px minmax(0, 1fr);
    }

    .advisor {
        gap: 48px;
        padding-inline: 48px;
    }

    .regime-grid {
        gap: 56px;
    }

    .benefit-grid {
        gap: 88px;
    }

    .pension-board {
        grid-template-columns: 290px minmax(0, 1fr) 290px;
    }

    .app-banner {
        padding: 56px;
    }

    .faq__grid {
        gap: 80px;
    }

    .footer__grid {
        grid-template-columns: 1fr 0.8fr 0.9fr 0.9fr 0.6fr 1.4fr;
        gap: 24px;
    }
}

@media (max-width: 1280px) {
    .wrap {
        width: min(1120px, calc(100% - 56px));
    }

    .hero {
        min-height: 610px;
    }

    .hero__links {
        gap: 18px;
        font-size: 12px;
    }

    .hero__actions .btn {
        min-height: 48px;
        padding-inline: 24px;
        font-size: 14px;
    }

    .simulator__panel {
        grid-template-columns: 380px minmax(0, 1fr);
    }

    .calculator-result {
        min-height: 500px;
    }

    .benefit-grid {
        gap: 70px;
    }

    .pension-board {
        grid-template-columns: 270px minmax(0, 1fr) 270px;
    }

    .bar-chart {
        padding-left: 64px;
    }

    .footer__grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }

    .footer__download {
        justify-self: start;
    }
}

@media (max-width: 1180px) {
    .hero {
        min-height: 620px;
    }

    /* Corre la foto a la derecha para que la cara no quede bajo el texto. */
    .hero::before {
        background-position: right -220px center;
    }

    .hero__links,
    .hero__actions > .btn,
    .hero__actions > .hero__qr-trigger {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero__content {
        width: min(540px, 58vw);
        margin-left: clamp(34px, 5vw, 70px);

    }

    .split-heading {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
        gap: 40px;
    }

    .simulator__panel {
        grid-template-columns: 350px minmax(0, 1fr);
    }

    .calculator {
        padding: 28px;
    }

    .advisor {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
        gap: 36px;
        padding: 40px;
    }

    .regime-grid {
        gap: 36px;
    }

    .regime-card__image {
        min-height: 315px;
    }

    .benefit-grid,
    .advantage-grid {
        gap: 44px;
    }

    .pension-board {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .saving-stack {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-banner {
        padding: 48px;
    }

    .download-card {
        left: clamp(300px, 31vw, 390px);
    }

    .download-card__qr {
        width: 118px;
        height: 118px;
    }
}

@media (max-width: 980px) {
    .section {
        padding: 64px 0;
    }

    .hero {
        min-height: 660px;
        background:
            linear-gradient(180deg, rgba(16, 26, 42, 0.82) 0%, rgba(16, 26, 42, 0.66) 48%, rgba(16, 26, 42, 0.86) 100%),
            url("../img/hero-apv-b-600uf.webp") 85% center / cover no-repeat;
    }

    .hero::before {
        display: none;
    }

    .hero::after {
        background:
            linear-gradient(90deg, rgba(12, 9, 5, 0.84) 0%, rgba(12, 9, 5, 0.72) 32%, rgba(12, 9, 5, 0.52) 62%, rgba(12, 9, 5, 0.34) 82%, rgba(12, 9, 5, 0.22) 100%),
            radial-gradient(circle at 72% 26%, transparent 0 24%, rgba(0, 0, 0, 0.2) 72%);
    }

    .hero__links,
    .hero__actions > .btn,
    .hero__actions > .hero__qr-trigger {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero__content {
        width: auto;
        margin: 0;
        padding: 0 30px;
    }

    .hero__buttons,
    .app-banner__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero__text-link {
        display: block;
        padding: 8px 0;
        text-align: center;
    }

    .split-heading,
    .advisor,
    .faq__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .simulator__panel,
    .regime-grid,
    .benefit-grid,
    .advantage-grid,
    .pension-board,
    .app-banner {
        grid-template-columns: 1fr;
    }

    .calculator-result {
        min-height: 360px;
    }

    .advisor {
        padding: 36px 30px;
    }

    .regime-grid {
        gap: 48px;
    }

    .benefit-band {
        padding: 72px 0;
    }

    .benefit-band h2 {
        margin-bottom: 52px;
    }

    .benefit-grid,
    .advantage-grid {
        gap: 38px;
    }

    .advantage-grid article,
    .advantage-grid article + article {
        border-left: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .pension-board {
        padding: 18px;
    }

    .saving-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bar-chart {
        min-height: 480px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bar {
        min-height: 390px;
    }

    .bar--pedro {
        min-height: 280px;
    }

    .app-banner {
        aspect-ratio: auto;
        min-height: 480px;
        padding: 42px 28px;
        background-position: 64% center;
    }

    .app-banner__content {
        width: min(100%, 560px);
    }

    .download-card {
        position: static;
        width: fit-content;
        margin-top: 6px;
    }
}

@media (max-width: 820px) {
    .wrap {
        width: min(100% - 40px, 720px);
    }

    .hero {
        min-height: 620px;
    }

    .hero__content {
        padding: 0 26px;
    }

    .section {
        padding: 58px 0;
    }

    .split-heading {
        margin-bottom: 42px;
    }

    .simulator {
        padding-top: 76px;
    }

    .calculator-result {
        min-height: 320px;
    }

    .advisor {
        margin-top: 36px;
        margin-bottom: 56px;
    }

    .regime-card__image {
        min-height: 310px;
    }

    .benefit-band {
        margin-top: 22px;
    }

    .benefit-grid article,
    .advantage-grid article {
        max-width: 520px;
    }

    .bar-chart {
        padding: 34px 26px 0 58px;
    }

    .bar p {
        font-size: 18px;
    }

    .bar strong {
        font-size: 30px;
    }

    .app-banner {
        min-height: auto;
        margin-bottom: 70px;
    }

    .faq__grid {
        gap: 36px;
    }

    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer__download {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .wrap {
        width: min(100% - 32px, 520px);
    }

    .hero {
        width: calc(100% - 12px);
        min-height: 590px;
        margin-top: 6px;
    }

    .hero__nav {
        padding: 0 16px;
    }

    .hero__logo img {
        width: 118px;
    }

    .hero__content h1,
    .split-heading h2,
    .benefit-band h2,
    .advantages h2,
    .faq h2,
    .app-banner h2 {
        font-size: 34px;
    }

    .hero__content p {
        font-size: 16px;
    }

    .hero__content {
        padding: 0 22px;
    }

    .hero__buttons .btn,
    .app-banner__actions .btn {
        width: 100%;
    }

    .hero__buttons .btn--primary,
    .hero__buttons .btn--outline-yellow {
        min-width: 0;
        min-height: 48px;
    }

    .simulator__panel {
        gap: 16px;
    }

    .calculator {
        padding: 24px 20px;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }

    .result-card {
        grid-template-columns: 1fr;
    }

    .advisor {
        margin-top: 22px;
        margin-bottom: 40px;
    }

    .advisor::before {
        left: 58%;
        top: -155px;
        width: 360px;
        height: 360px;
    }

    .advisor::after {
        left: auto;
        right: 28px;
        top: 28px;
    }

    .regime-card__image {
        min-height: 290px;
        padding: 24px;
    }

    .pension-board {
        gap: 16px;
        padding: 14px;
    }

    .saving-stack {
        grid-template-columns: 1fr;
    }

    .persona-stack article {
        grid-template-columns: 58px 1fr;
    }

    .persona-stack img {
        width: 58px;
        height: 58px;
    }

    .bar-chart {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 30px 14px 0 46px;
    }

    .bar-chart::before,
    .bar-chart::after {
        left: 38px;
    }

    .age {
        left: 8px;
        font-size: 12px;
    }

    .bar {
        min-height: 340px;
        padding: 34px 8px 0;
    }

    .bar--pedro {
        min-height: 250px;
    }

    .bar p {
        font-size: 15px;
    }

    .bar strong {
        font-size: 22px;
    }

    .bar img {
        width: 100px;
        height: 150px;
    }

    .saving-stack strong {
        font-size: 25px;
    }

    .download-card {
        width: 100%;
        align-items: flex-start;
    }

    .download-card__qr {
        width: 108px;
        height: 108px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 520px) {
    .wrap {
        width: min(100% - 24px, 460px);
    }

    .section {
        padding: 48px 0;
    }

    .btn {
        min-height: 44px;
        padding-inline: 18px;
        font-size: 13px;
    }

    .hero {
        min-height: 560px;
    }

    .hero__content h1,
    .split-heading h2,
    .benefit-band h2,
    .advantages h2,
    .faq h2,
    .app-banner h2 {
        font-size: 31px;
    }

    .split-heading p {
        font-size: 15px;
    }

    .calculator-result {
        min-height: 250px;
        padding: 28px 18px;
    }

    .regime-card__image {
        min-height: 245px;
        padding: 20px;
    }

    .regime-card__letter {
        left: 20px;
        top: 20px;
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .check-list {
        gap: 18px;
    }

    .check-list li {
        padding-left: 36px;
        font-size: 13px;
    }

    .benefit-band {
        padding: 56px 0;
    }

    .icon-bubble {
        width: 68px;
        height: 68px;
    }

    .pension-board {
        padding: 12px;
    }

    .persona-stack article {
        grid-template-columns: 52px minmax(0, 1fr);
        min-height: auto;
        padding: 10px;
    }

    .persona-stack img {
        width: 52px;
        height: 68px;
    }

    .persona-stack p {
        font-size: 12px;
    }

    .bar-chart {
        min-height: 390px;
        gap: 8px;
        padding: 28px 8px 0 36px;
    }

    .bar-chart::before,
    .bar-chart::after {
        left: 32px;
    }

    .bar-chart::before {
        top: 62px;
    }

    .bar-chart::after {
        top: 292px;
    }

    .age--top {
        top: 54px;
    }

    .age--mid {
        top: 284px;
    }

    .age--bottom {
        bottom: 10px;
    }

    .bar {
        min-height: 295px;
        padding: 28px 6px 0;
    }

    .bar--pedro {
        min-height: 220px;
    }

    .bar img {
        width: 82px;
        height: 122px;
    }

    .app-banner {
        padding: 32px 20px;
    }

    .download-card {
        gap: 12px;
        padding: 10px;
    }

    .download-card__qr {
        width: 92px;
        height: 92px;
    }

    .download-card__platforms img {
        height: 25px;
    }

    .qr-modal {
        padding: 18px;
    }

    .qr-modal__panel {
        padding: 32px 22px 28px;
    }

    .qr-modal h2 {
        font-size: 27px;
    }

    .qr-modal__code {
        padding: 16px;
    }

    .contact-modal {
        padding: 18px;
    }

    .contact-modal__panel {
        padding: 34px 22px 28px;
    }

    .contact-modal h2 {
        margin-right: 42px;
        font-size: 27px;
    }

    .contact-form__grid {
        grid-template-columns: 1fr;
    }

    .contact-form__field--wide {
        grid-column: auto;
    }

    .contact-form .btn {
        width: 100%;
    }

    .footer__download > div {
        align-items: flex-start;
    }
}

/* Responsive refinements for the early-savings comparison. */
.bar-chart {
    min-height: 0;
}

.bar,
.bar--pedro {
    min-height: 0;
    padding: 0;
}

.age--bottom {
    bottom: auto;
}

/* Tablero de ahorro temprano: versión compacta en todos los anchos. Con el
   contenedor de 1360px la versión ancha (columnas 390/300, monto de 44px)
   ya no cabe y cortaba el monto. */
.pension-board {
    grid-template-columns: 260px minmax(0, 1fr) 250px;
    gap: 18px;
}

.persona-stack {
    gap: 18px;
}

.persona-stack .profile-card {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    height: auto;
    min-height: 156px;
    padding-right: 14px;
}

.profile-card > img {
    width: 86px;
    height: 140px;
}

.persona-stack .profile-card:nth-child(2) > img {
    width: 82px;
    height: auto;
}

.profile-card h3 {
    margin-bottom: 7px;
    font-size: 20px;
}

.profile-card p {
    font-size: 14px;
    line-height: 1.32;
}

.bar-chart {
    gap: 10px;
    padding-right: 20px;
    padding-left: 56px;
}

.bar-chart::before,
.bar-chart::after,
.chart-line {
    left: 56px;
    right: 18px;
}

.age {
    left: 10px;
    font-size: 11px;
}

.bar .bar__copy {
    left: 6px;
    right: 6px;
    font-size: 19px;
}

.bar__copy strong {
    font-size: 28px;
}

.saving-stack {
    gap: 18px;
}

.saving-card {
    padding: 16px;
}

.saving-card__header {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
}

.saving-card__header img {
    width: 58px;
    height: 62px;
}

.saving-card__header span {
    font-size: 15px;
}

.saving-card__metric {
    padding-inline: 14px;
}

.saving-card__metric strong {
    font-size: 28px;
}

@media (max-width: 1360px) {
    .pension-board {
        grid-template-columns: 250px minmax(0, 1fr) 240px;
        gap: 16px;
        padding: 24px;
    }

    .persona-stack {
        gap: 18px;
        /* box-shadow: -24px 0 0 var(--navy-dark), 24px 0 0 var(--navy-dark); */
    }

    .persona-stack .profile-card {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 10px;
        height: auto;
        min-height: 148px;
        padding: 0 12px 0 0;
    }

    .profile-card > img {
        width: 82px;
        height: 132px;
    }

    .persona-stack .profile-card:nth-child(2) > img {
        width: 78px;
        height: auto;
    }

    .profile-card h3 {
        margin-bottom: 6px;
        font-size: 19px;
    }

    .profile-card p {
        font-size: 13px;
        line-height: 1.32;
    }

    .persona-stack .btn {
        min-height: 54px;
        margin-top: 12px;
        font-size: 14px;
    }

    .bar-chart {
        height: 600px;
        gap: 10px;
        padding: 42px 18px 0 54px;
    }

    .bar-chart::before,
    .bar-chart::after,
    .chart-line {
        left: 54px;
        right: 16px;
    }

    .bar {
        height: 558px;
    }

    .bar .bar__copy {
        top: 62px;
        left: 6px;
        right: 6px;
        font-size: 18px;
    }

    .bar__copy strong {
        font-size: 27px;
    }

    .bar img {
        width: 160px;
        height: 230px;
    }

    .bar--pedro img {
        width: 150px;
        height: 215px;
    }

    .saving-stack {
        gap: 24px;
    }

    .saving-card {
        grid-template-rows: 60px 88px 88px;
        gap: 8px;
        height: 288px;
        padding: 16px;
    }

    .saving-card__header {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 8px;
    }

    .saving-card__header img {
        width: 58px;
        height: 60px;
    }

    .saving-card__header span {
        font-size: 15px;
    }

    .saving-card__metric {
        padding: 10px 14px;
    }

    .saving-card__metric strong {
        font-size: 28px;
    }

    .saving-card__metric em {
        font-size: 13px;
    }
}

@media (max-width: 1280px) {
    .pension-board {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .persona-stack .profile-card {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 12px;
    }

    .profile-card > img {
        width: 90px;
        height: 140px;
    }

    .persona-stack .profile-card:nth-child(2) > img {
        width: 90px;
        height: auto;
    }

    .profile-card p {
        font-size: 14px;
    }

    .bar-chart {
        gap: 22px;
        padding-right: 26px;
        padding-left: 58px;
    }

    .bar-chart::before,
    .bar-chart::after,
    .chart-line {
        left: 58px;
        right: 22px;
    }

    .age {
        left: 12px;
        font-size: 11px;
    }

    .bar .bar__copy {
        font-size: 19px;
    }

    .bar__copy strong {
        font-size: 34px;
    }

    .saving-card__header {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .saving-card__header img {
        width: 52px;
    }

    .saving-card__header span {
        font-size: 14px;
    }

    .saving-card__metric {
        padding-inline: 12px;
    }

    .saving-card__metric strong {
        font-size: 25px;
    }

    .saving-stack {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .pension-board {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .saving-stack {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .saving-card {
        grid-template-rows: 60px 82px 82px;
        height: 270px;
    }

    .saving-card__metric strong {
        font-size: 30px;
    }
}

@media (max-width: 980px) {
    .pension-board {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 18px;
    }

    .persona-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        box-shadow: -18px 0 0 var(--navy-dark), 18px 0 0 var(--navy-dark);
    }

    .persona-stack .btn {
        grid-column: 1 / -1;
        margin-top: 0;
    }

    .bar-chart {
        height: 600px;
        padding-right: 46px;
        padding-left: 70px;
    }

    .bar-chart::before,
    .bar-chart::after,
    .chart-line {
        left: 70px;
        right: 40px;
    }
}

@media (max-width: 820px) {
    .pension-board {
        gap: 20px;
        padding: 16px;
    }

    .persona-stack {
        box-shadow: -16px 0 0 var(--navy-dark), 16px 0 0 var(--navy-dark);
    }

    .bar-chart {
        height: 560px;
        gap: 20px;
        padding: 38px 24px 0 54px;
    }

    .bar-chart::before,
    .bar-chart::after,
    .chart-line {
        left: 54px;
        right: 20px;
    }

    .bar-chart::before {
        top: 38px;
    }

    .bar {
        height: 522px;
    }

    .age--top {
        top: 32px;
    }

    .bar .bar__copy {
        top: 55px;
        font-size: 19px;
    }

    .bar__copy strong {
        font-size: 33px;
    }

    .bar img {
        width: 140px;
        height: 210px;
    }

    .bar--pedro img {
        width: 135px;
        height: 195px;
    }

    .saving-card {
        height: 260px;
    }

    .saving-card__metric strong {
        font-size: 26px;
    }
}

@media (max-width: 680px) {
    .pension-board {
        gap: 16px;
        padding: 14px;
    }

    .persona-stack {
        grid-template-columns: 1fr;
        gap: 16px;
        box-shadow: -14px 0 0 var(--navy-dark), 14px 0 0 var(--navy-dark);
    }

    .persona-stack .profile-card {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
        height: 126px;
        padding: 0 16px 0 0;
    }

    .profile-card > img {
        width: 92px;
        height: 124px;
    }

    .persona-stack .profile-card:nth-child(2) > img {
        width: 92px;
        height: auto;
    }

    .profile-card h3 {
        font-size: 19px;
    }

    .profile-card p {
        font-size: 14px;
    }

    .bar-chart {
        height: 510px;
        gap: 12px;
        padding: 36px 14px 0 46px;
    }

    .bar-chart::before,
    .bar-chart::after,
    .chart-line {
        left: 46px;
        right: 12px;
    }

    .bar-chart::before {
        top: 36px;
    }

    .age {
        left: 8px;
        font-size: 10px;
    }

    .age--top {
        top: 31px;
    }

    .bar {
        height: 474px;
    }

    .bar .bar__copy {
        top: 48px;
        left: 6px;
        right: 6px;
        font-size: 15px;
    }

    .bar__copy strong {
        margin-top: 5px;
        font-size: 25px;
    }

    .bar img {
        width: 115px;
        height: 165px;
    }

    .bar--pedro img {
        width: 108px;
        height: 155px;
    }

    .saving-stack {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .saving-card {
        height: 260px;
    }
}

@media (max-width: 520px) {
    .pension-board {
        padding: 12px;
    }

    .persona-stack {
        box-shadow: -12px 0 0 var(--navy-dark), 12px 0 0 var(--navy-dark);
    }

    .persona-stack .profile-card {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 10px;
        height: 112px;
        padding: 0 10px 0 0;
    }

    .profile-card > img {
        width: 76px;
        height: 110px;
    }

    .persona-stack .profile-card:nth-child(2) > img {
        width: 76px;
        height: auto;
    }

    .profile-card h3 {
        margin-bottom: 6px;
        font-size: 18px;
    }

    .profile-card p {
        font-size: 12px;
    }

    .persona-stack .btn {
        min-height: 48px;
    }

    .bar-chart {
        height: 430px;
        gap: 8px;
        padding: 32px 8px 0 38px;
    }

    .bar-chart::before,
    .bar-chart::after,
    .chart-line {
        left: 38px;
        right: 8px;
    }

    .bar-chart::before {
        top: 32px;
    }

    .age--top {
        top: 27px;
    }

    .bar {
        height: 398px;
    }

    .bar .bar__copy {
        top: 40px;
        font-size: 14px;
    }

    .bar__copy strong {
        font-size: 20px;
    }

    .bar img {
        width: 90px;
        height: 135px;
    }

    .bar--pedro img {
        width: 84px;
        height: 125px;
    }

    .saving-card__metric strong {
        font-size: 24px;
    }
}

@media (max-width: 980px) {
    .pension-board {
        overflow: hidden;
        border-radius: 18px;
    }

    .persona-stack {
        box-shadow: none;
    }

    .bar-chart {
        border-radius: 12px;
    }
}

@media (max-width: 520px) {
    .pension-board {
        border-radius: 16px;
    }

    .bar-chart,
    .profile-card,
    .saving-card {
        border-radius: 12px;
    }
}

/* Responsive refinements for the footer. */
@media (max-width: 1247px) {
    .footer__layout {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        column-gap: 48px;
        row-gap: 46px;
    }

    .footer__primary,
    .footer__contacts {
        display: contents;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .footer-item {
        grid-column: span 2;
    }

    .footer__social {
        grid-column: 1 / span 3;
        padding-left: 0;
    }

    .footer__social::before {
        display: none;
    }

    .footer__download {
        grid-column: 4 / span 3;
        border-left: 1px solid #e4e4e4;
        padding-left: 48px;
    }

    .footer__download > div {
        gap: 18px;
    }

    .footer__download > div > img {
        width: 160px;
        height: 160px;
    }

    .footer__download span img {
        width: 180px;
    }
}

@media (max-width: 980px) {
    .footer__layout {
        grid-template-columns: 1fr;
    }

    .footer__primary {
        display: block;
    }

    .footer__contacts {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        width: 100%;
    }

    .footer-item {
        grid-column: span 2;
        padding-inline: clamp(18px, 3vw, 36px);
        text-align: center;
    }

    .footer-item + .footer-item {
        padding-left: clamp(18px, 3vw, 36px);
    }

    .footer-item > img {
        margin-inline: auto;
    }

    .footer-item > a {
        margin-inline: auto;
    }

    .footer__social {
        grid-column: 2 / span 4;
        justify-self: center;
        width: min(100%, 360px);
        padding-left: 0;
        text-align: center;
    }

    .footer__social::before {
        display: none;
    }

    .footer__social,
    .footer__social div {
        justify-content: center;
        justify-items: center;
    }

    .footer__social div {
        gap: 10px;
        margin-top: 10px;
    }

    .footer__social a {
        width: 34px;
        height: 34px;
    }

    .footer__social a img {
        max-width: 22px;
        height: 20px;
    }

    .footer__social a[aria-label="X"]::before {
        font-size: 20px;
    }

    .footer__download {
        grid-column: auto;
        justify-self: stretch;
        width: 100%;
        border-top: 1px solid #e4e4e4;
        border-left: 0;
        margin-top: 52px;
        padding: 52px 0 0;
        text-align: center;
    }

    .footer__download > div {
        justify-content: center;
        width: 100%;
        gap: 30px;
    }

    .footer__download p {
        font-size: 28px;
    }

    .footer__download > div > img {
        width: 196px;
        height: 196px;
    }

    .footer__download span img {
        width: 218px;
    }
}

@media (max-width: 980px) {
    .footer {
        padding-top: 24px;
        padding-bottom: 72px;
    }

    .footer .wrap {
        width: min(100% - 56px, 860px);
    }

    .footer__layout {
        padding-top: 24px;
        padding-bottom: 48px;
    }

    .footer__contacts {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        row-gap: 38px;
        margin-top: 60px;
    }

    .footer-item:nth-child(3) {
        border-left: 0;
        padding-left: clamp(18px, 3vw, 36px);
    }

    .footer__download {
        margin-top: 46px;
        padding-top: 42px;
    }
}

@media (max-width: 680px) {
    .footer {
        padding: 24px 0 54px;
    }

    .footer .wrap {
        width: min(100% - 32px, 520px);
    }

    .footer__layout {
        padding: 42px 0 38px;
    }

    .footer__brand img {
        width: 150px;
    }

    .footer__contacts {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        row-gap: 38px;
        margin-top: 46px;
    }

    .footer-item,
    .footer-item + .footer-item,
    .footer-item:nth-child(3) {
        display: block;
        grid-column: span 2;
        border-top: 0;
        padding: 0 clamp(12px, 2vw, 24px);
        text-align: center;
    }

    .footer-item:first-child {
        padding-left: 0;
    }

    .footer-item + .footer-item::before {
        display: block;
    }

    .footer-item + .footer__social::before {
        display: none;
    }

    .footer-item > img {
        width: 37px;
        height: 37px;
        margin: 0 auto;
    }

    .footer-item > span {
        margin-top: 14px;
    }

    .footer-item > a {
        margin-top: 4px;
    }

    .footer__social div {
        justify-content: center;
        margin-top: 5px;
    }

    .footer__social,
    .footer__social.footer-item {
        grid-column: 2 / span 4;
        width: min(100%, 360px);
        text-align: center;
    }

    .footer__social > img {
        width: 35px;
        height: 35px;
    }

    .footer__download {
        margin-top: 46px;
        padding-top: 42px;
    }

    .footer__download p {
        font-size: 28px;
    }

    .footer__download > div {
        flex-direction: row;
        gap: clamp(12px, 4vw, 30px);
    }

    .footer__download > div > img {
        width: clamp(132px, 39vw, 196px);
        height: clamp(132px, 39vw, 196px);
        margin: -14px;
    }

    .footer__download span img {
        width: clamp(156px, 43vw, 218px);
    }

    .footer__download span {
        width: auto;
        gap: clamp(12px, 4vw, 26px);
    }

    .footer__legal {
        margin-top: 28px;
    }
}

@media (max-width: 520px) {
    .footer__download > div {
        align-items: flex-start;
        flex-direction: row;
    }

    .footer__download > div > img {
        margin: -14px;
    }

    .footer__download span {
        width: auto;
        justify-items: start;
    }

    .footer__download span img {
        width: clamp(156px, 43vw, 218px);
    }
}

/* Precision refinements for the APV regimes comparison. */
.regime-grid {
    gap: 88px;
}

.regime-card__image {
    height: 421px;
    min-height: 0;
    border-radius: 11px;
    padding: 0 39px 51px;
}

.regime-card__image::before {
    z-index: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 34%, rgba(0, 0, 0, 0.78) 100%);
}

.regime-card__image::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: -53px;
    left: -420px;
    width: 662px;
    height: 662px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    pointer-events: none;
}

.regime-card__image > * {
    z-index: 2;
}

.regime-card__letter {
    top: 190px;
    left: 40px;
    width: 70px;
    height: 70px;
    border-radius: 11px;
}

.regime-card__orbit-dot {
    position: absolute;
    top: 31%;
    left: 28.5%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffc431;
    box-shadow: 0 0 0 1px rgba(255, 196, 49, 0.2);
    pointer-events: none;
}

.regime-card h3 {
    margin-bottom: 20px;
    color: #00c4d9;
}

.check-list {
    gap: 0;
    margin-top: 41px;
}

.check-list li {
    min-height: 0;
    border-bottom: 1px solid #e2e2e2;
    padding: 0 16px 26px 50px;
    color: #171d24;
}

.check-list li + li {
    padding-top: 25px;
}

.check-list li::before {
    top: -2px;
}

.check-list li + li::before {
    top: 23px;
}

@media (max-width: 1360px) {
    .regime-grid {
        gap: clamp(48px, 5vw, 68px);
    }

    .regime-card__image {
        height: clamp(340px, 32vw, 421px);
    }

    .regime-card__image::after {
        top: -12.6%;
        left: -58.3%;
        width: 92%;
        height: auto;
        aspect-ratio: 1;
    }

    .regime-card__letter {
        top: 45.1%;
        left: 5.55%;
    }
}

@media (max-width: 980px) {
    .regime-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .regime-card__image {
        height: clamp(320px, 55vw, 421px);
    }
}

@media (max-width: 680px) {
    .regime-grid {
        gap: 52px;
    }

    .regime-card__image {
        height: clamp(290px, 58vw, 370px);
        border-radius: 10px;
        padding: 0 24px 30px;
    }

    .regime-card__letter {
        top: 40%;
        left: 24px;
        width: 58px;
        height: 58px;
        border-radius: 9px;
    }

    .regime-card__orbit-dot {
        top: 30%;
        width: 10px;
        height: 10px;
    }

    .regime-card h3 {
        margin-bottom: 12px;
    }

    .check-list {
        margin-top: 30px;
    }

    .check-list li {
        padding-right: 0;
        padding-left: 44px;
    }
}

@media (max-width: 520px) {
    .regime-card__image {
        height: 270px;
    }

    .regime-card__letter {
        top: 38%;
    }
}

/* Precision refinements for the APV simulator. */
#simula > .wrap {
    width: var(--wrap-width);
}

.simulator__panel {
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 26px;
}

.calculator,
.calculator-result {
    border-radius: 18px;
    background: #e1f4fb;
}

.calculator {
    display: flex;
    flex-direction: column;
    min-height: 650px;
    height: auto;
    padding: 36px 30px 28px;
}

.calculator-result {
    min-height: 730px;
    height: auto;
}

.calculator .field {
    gap: 8px;
    margin: 0;
}

.calculator .field:first-of-type {
    margin-bottom: 24px;
}

.calculator .field:nth-of-type(2) {
    margin-bottom: 0;
}

.calculator .field span,
.calculator .radio-group legend {
    color: #111820;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.22;
}

.calculator .field input {
    height: 48px;
    border-radius: 16px;
    padding: 0 16px;
    color: #111820;
    font-size: 15px;
    font-weight: 700;
}

.calculator input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.calculator input[type="number"]::-webkit-inner-spin-button,
.calculator input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.calculator .radio-group {
    grid-template-columns: 120px 100px minmax(0, 1fr);
    gap: 0;
    margin: 0 0 26px;
}

.calculator .radio-group legend {
    margin-bottom: 10px;
}

.calculator .radio-group label {
    gap: 6px;
    color: #111820;
    font-size: 15px;
    line-height: 20px;
}

.calculator .radio-group input {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 0;
    border-radius: 7px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    cursor: pointer;
}

.calculator .radio-group input:checked {
    background: var(--blue);
    box-shadow: inset 0 0 0 6px #fff;
}

.calculator .radio-group input:focus-visible {
    outline: 3px solid rgba(0, 118, 207, 0.28);
    outline-offset: 2px;
}

.calculator .range {
    width: 100%;
    height: 20px;
    margin: 10px 0 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
}

.calculator .range::-webkit-slider-runnable-track {
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: #afe6fa;
}

.calculator .range::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    margin-top: -6px;
    border: 0;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: #1594d2;
}

.calculator .range::-moz-range-track {
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: #afe6fa;
}

.calculator .range::-moz-range-progress {
    height: 8px;
    border-radius: 999px;
    background: #afe6fa;
}

.calculator .range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: #1594d2;
}

.calculator .range:focus-visible {
    outline: 3px solid rgba(0, 118, 207, 0.24);
    outline-offset: 3px;
}

.calculator .range-labels {
    margin: 8px 0 22px;
    color: #111820;
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
}

.calculator .btn {
    width: 200px;
    min-height: 50px;
    margin: 20px auto 0;
    border-width: 2px;
    border-radius: 999px;
    padding: 0 20px;
    font-size: 14px;
}

.calculator-result {
    display: grid;
    place-items: center;
    padding: 44px;
}

.calculator-result__empty {
    display: grid;
    justify-items: center;
    transform: translateY(-42px);
}

.calculator-result__icon {
    margin: 0 0 30px;
}

.calculator-result__empty p {
    color: #111820;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.3;
}

.calculator-result.is-filled {
    display: block;
    overflow: auto;
    padding: 44px;
}

#simula .section-note,
#ahorro-temprano .section-note {
    margin-top: 36px;
    color: #92999f;
    font-size: 14px;
    line-height: 1.4;
}

#simula .section-note u,
#ahorro-temprano .section-note u {
    color: #343a40;
    text-underline-offset: 2px;
}

@media (max-width: 1360px) {
    .simulator__panel {
        grid-template-columns: 420px minmax(0, 1fr);
        gap: 24px;
    }

    .calculator-result {
        min-height: 700px;
        height: auto;
    }

    .calculator {
        padding-right: 34px;
        padding-left: 34px;
    }
}

@media (max-width: 1180px) {
    .simulator__panel {
        grid-template-columns: 350px minmax(0, 1fr);
        gap: 22px;
    }

    .calculator-result {
        min-height: 730px;
        height: auto;
    }

    .calculator {
        padding-right: 30px;
        padding-left: 30px;
    }

    .calculator .radio-group label {
        gap: 5px;
        font-size: 15px;
    }

    .calculator .radio-group {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .simulator__panel {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .calculator {
        height: auto;
        min-height: 0;
        padding-right: 40px;
        padding-left: 40px;
    }

    .calculator-result {
        height: auto;
        min-height: 420px;
    }

    .calculator-result__empty {
        transform: none;
    }

    .calculator-result.is-filled {
        min-height: 0;
    }
}

@media (max-width: 820px) {
    #simula > .wrap {
        width: min(520px, calc(100% - 32px));
    }
}

@media (max-width: 520px) {
    .calculator,
    .calculator-result {
        border-radius: 16px;
    }

    .calculator {
        padding: 36px 24px 32px;
    }

    .calculator .field input {
        height: 56px;
        border-radius: 16px;
    }

    .calculator .radio-group {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .calculator .radio-group label {
        font-size: 14px;
    }

    .calculator .radio-group input {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
    }

    .calculator .btn {
        width: min(240px, 100%);
    }

    .calculator-result {
        min-height: 300px;
        padding: 28px 20px;
    }

    .calculator-result__empty p {
        font-size: 20px;
    }

    .calculator-result.is-filled {
        padding: 24px 18px;
    }
}

/* Filled APV simulator result. */
.simulator {
    padding: 25px 0 48px;
}

#simula .simulator__panel {
    align-items: stretch;
    min-width: 0;
}

.calculator .radio-group input:checked {
    background: radial-gradient(circle at center, #000000 0 6px, #ffffff 7px);
    box-shadow: none;
}

#simula .calculator-result.is-filled {
    display: flex;
    place-items: stretch;
        align-items: center;
    justify-content: center;
    padding: 0 16px;
    overflow: visible;
    padding: 0;
    color: #111820;
    text-align: left;
}

.apv-result {
    display: flex;
    width: 100%;
    min-height: 100%;
    flex-direction: column;
}

.apv-result__body {
    flex: 1 1 auto;
    padding: 47px 50px 28px;
}

.calculator-result .apv-result__headline {
    margin: 0 0 22px;
    color: #111820;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.2;
}

.apv-result__summary {
    display: grid;
    gap: 16px;
    min-height: 140px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.apv-metric {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 140px;
    align-items: center;
}

.apv-metric img {
    flex: 0 0 auto;
    object-fit: contain;
}

.apv-metric div {
    flex: 1 1 auto;
    min-width: 0;
}

.apv-metric span {
    display: block;
    margin-bottom: 13px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.15;
}

.apv-metric__emphasis {
    font-size: inherit;
    font-weight: 700;
}

.apv-metric strong {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 4px;
    font-size: clamp(37px, 2.8vw, 48px);
    font-weight: 300;
    line-height: 0.95;
    white-space: nowrap;
}

.apv-metric small {
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
}

.apv-metric__unit {
    position: relative;
    display: inline-flex;
    align-items: baseline;
}

.apv-metric .apv-metric__unit-info {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    width: 14px;
    height: 14px;
    margin: 0;
    transform: translateX(-50%);
    object-fit: contain;
}

.apv-metric__info {
    position: absolute;
    width: 14px;
    height: 14px;
    margin: 0;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.apv-metric--pension {
    z-index: 1;
    margin-right: 0;
    min-height: 158px;
    padding: 30px 86px 30px 38px;
    border-radius: 20px;
    color: #ffffff;
    background: #15589d;
}

.apv-metric--pension img {
    /* width: 57px; */
    /* height: 57px; */
    margin-right: 20px;
}

.apv-metric--pension .apv-metric__info {
    right: 28px;
    bottom: 28px;
}

.apv-metric--savings {
    display: none;
    padding: 28px 52px 25px 106px;
    border-radius: 0 20px 20px 0;
    color: #111820;
    background: #ffffff;
}

.apv-metric--savings img {
    /* width: 60px; */
    /* height: 60px; */
    margin-right: 24px;
}

.apv-metric--savings strong {
    color: #1594d2;
    font-size: clamp(40px, 2.8vw, 49px);
}

.apv-metric--savings .apv-metric__info {
    right: 1px;
    bottom: 41px;
}

.apv-recommendation {
    position: relative;
    margin-top: 33px;
    min-height: 100px;
    border-radius: 20px;
    padding: 21px 31px 17px;
    background: #ffffff;
}

.apv-recommendation > span {
    position: absolute;
    top: -13px;
    left: 31px;
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    border-radius: 999px;
    padding: 0 12px;
    color: #ffffff;
    background: #ffc544;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.apv-recommendation > span::before {
    content: "★";
    margin-right: 5px;
    font-size: 11px;
}

.apv-recommendation h3 {
    margin: 0 0 4px;
    color: #000000;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
}

.apv-recommendation p {
    margin: 0;
    color: #000000;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.38;
}

.apv-recommendation--summary {
    min-height: 140px;
    margin-top: 0;
    border-radius: 20px;
    padding: 25px 31px 20px;
}

.apv-recommendation--summary > span {
    left: 31px;
}

.apv-recommendation__heading {
    display: block;
}

.apv-recommendation .apv-recommendation__intro {
    flex: 0 0 auto;
    margin: 0;
    font-size: 15px;
    line-height: 1.1;
}

.apv-recommendation .apv-recommendation__regime {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 7px;
    line-height: 1;
}

.apv-recommendation__regime span {
    font-size: 21px;
    font-weight: 700;
}

.apv-recommendation__regime strong {
    color: #1594d2;
    font-size: 44px;
    font-weight: 900;
    line-height: 0.9;
}

.apv-recommendation .apv-recommendation__copy {
    font-size: 14px;
    line-height: 1.3;
}

.apv-recommendation .apv-recommendation__benefit {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 8px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
}

.apv-recommendation__benefit strong {
    color: #1594d2;
    font-size: 27px;
    font-weight: 900;
    white-space: nowrap;
}

.apv-recommendation__benefit small {
    color: #111820;
    font-size: 12px;
    font-weight: 400;
}

.apv-breakdown {
    margin-top: 30px;
    border-top: 1px solid rgba(17, 24, 32, 0.16);
    padding-top: 27px;
}

.apv-breakdown h3 {
    margin: 0 0 6px;
    color: #111820;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.25;
}

.apv-breakdown h3 strong {
    font-weight: 700;
}

.apv-breakdown__subtitle {
    margin: 0 0 18px;
    color: rgba(17, 24, 32, 0.7);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}

.apv-breakdown__bar,
.apv-breakdown__labels {
    display: grid;
    width: 100%;
}

.apv-breakdown__bar {
    min-height: 60px;
    overflow: hidden;
    border-radius: 17px;
}

.apv-breakdown__segment {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.apv-breakdown__segment + .apv-breakdown__segment {
    border-left: 1px solid rgba(255, 255, 255, 0.78);
}

.apv-breakdown__segment--state {
    color: #000000;
    background: #b4e5f8;
}

.apv-breakdown__segment--pocket {
    background: #1594d2;
}

.apv-breakdown__segment--return {
    background: #15589d;
}

.apv-breakdown__labels {
    margin-top: 12px;
    color: #000000;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
}

.apv-breakdown__labels span {
    min-width: 0;
    padding: 0 10px;
}

.apv-result__cta {
    display: grid;
    min-height: 168px;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 42px;
    align-items: center;
    padding: 18px 50px 18px 59px;
    background: #b7e6f8;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

.apv-result__cta p {
    margin: 0;
    color: #111820;
    font-size: 30px;
    font-weight: 300;
    line-height: 1.15;
    transform: none;
}

.apv-result__cta span,
.apv-result__cta strong {
    display: block;
}

.apv-result__cta strong {
    font-weight: 900;
}

.apv-result__cta .btn {
    width: 300px;
    min-height: 60px;
    border-radius: 999px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
}

@media (max-width: 1360px) {
    .apv-result__body {
        padding-right: 38px;
        padding-left: 38px;
    }

    .apv-result__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .apv-metric--pension {
        min-height: 176px;
        padding-right: 72px;
        padding-left: 30px;
    }

    .apv-metric span {
        font-size: 16px;
    }

    .apv-result__cta {
        min-height: 182px;
        grid-template-columns: minmax(0, 1fr) 270px;
        padding: 24px 38px 24px 46px;
    }

    .apv-result__cta .btn {
        width: 270px;
    }
}

@media (max-width: 1180px) {
    .apv-result__body {
        padding: 40px 30px 32px;
    }

    .apv-result__summary {
        min-height: 0;
    }

    .apv-metric {
        min-height: 0;
    }

    .apv-metric--pension {
        min-height: 190px;
        padding: 34px 76px 34px 30px;
    }

    .apv-metric--pension img,
    .apv-metric--savings img {
        width: 48px;
        height: 48px;
        margin-right: 14px;
    }

    .apv-metric--pension .apv-metric__info {
        right: 24px;
        bottom: 24px;
    }

    .apv-metric strong,
    .apv-metric--savings strong {
        font-size: 34px;
    }

    .apv-metric small {
        font-size: 11px;
    }

    .apv-recommendation p {
        font-size: 14px;
    }

    .apv-breakdown__bar {
        grid-template-columns: 1fr !important;
        min-height: 0;
        border-radius: 16px;
    }

    .apv-breakdown__labels {
        display: none;
    }

    .apv-breakdown__segment {
        min-height: 60px;
        padding: 10px 16px;
        flex-direction: column;
        gap: 5px;
        border-left: 0;
        font-size: 16px;
        white-space: normal;
    }

    .apv-breakdown__segment + .apv-breakdown__segment {
        border-top: 1px solid rgba(255, 255, 255, 0.78);
        border-left: 0;
    }

    .apv-breakdown__segment::after {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 400;
        line-height: 1.2;
        text-align: center;
    }

    .apv-result__cta {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: 0;
        padding: 30px;
    }
}

@media (max-width: 980px) {
    .simulator {
        padding-top: 48px;
    }

    #simula > .wrap {
        width: min(680px, calc(100vw - 32px));
    }

    #simula .simulator__panel,
    #simula .calculator,
    #simula .calculator-result {
        width: 100%;
        min-width: 0;
    }

    #simula .calculator-result.is-filled {
        min-height: 0;
    }

    .apv-result {
        min-height: 0;
    }
}

@media (max-width: 980px) {
    .apv-result__body {
        padding: 32px 24px 30px;
    }

    .apv-result__headline {
        margin-bottom: 18px;
        font-size: 18px;
    }

    .apv-result__summary {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .apv-metric,
    .apv-result__summary {
        min-height: 0;
    }

    .apv-metric--pension,
    .apv-metric--savings {
        min-height: 128px;
        margin-right: 0;
        border-radius: 18px;
        clip-path: none;
        padding: 24px;
    }

    .apv-metric--pension .apv-metric__info,
    .apv-metric--savings .apv-metric__info {
        top: 18px;
        right: 20px;
        bottom: auto;
    }

    .apv-metric strong,
    .apv-metric--savings strong {
        flex-wrap: wrap;
        font-size: 36px;
        line-height: 1;
        white-space: normal;
    }

    .apv-recommendation {
        padding: 24px 22px 20px;
    }

    .apv-recommendation > span {
        left: 22px;
    }

    .apv-breakdown__segment {
        min-height: 66px;
    }

    .apv-result__cta {
        padding: 28px 24px 30px;
    }

    .apv-result__cta p {
        font-size: 27px;
    }
}

@media (max-width: 520px) {
    .simulator {
        padding-top: 36px;
    }

    .apv-result__body {
        padding: 28px 18px 26px;
    }

    .apv-metric--pension {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        column-gap: 14px;
        align-items: center;
        padding: 22px 18px;
    }

    .apv-metric--pension img,
    .apv-metric--savings img {
        width: 46px;
        height: 46px;
        margin-right: 0;
    }

    .apv-metric span {
        margin-bottom: 8px;
        font-size: 15px;
    }

    .apv-metric strong,
    .apv-metric--savings strong {
        font-size: 30px;
    }

    .apv-metric__info {
        top: 18px;
        right: 18px;
        bottom: auto;
    }

    .apv-recommendation h3,
    .apv-breakdown h3 {
        font-size: 18px;
    }

    .apv-recommendation__regime strong {
        font-size: 38px;
    }

    .apv-recommendation__benefit strong {
        font-size: 24px;
    }

    .apv-recommendation p {
        font-size: 14px;
    }

    .apv-result__cta p {
        font-size: 24px;
    }

    .apv-result__cta .btn {
        width: 100%;
    }
}

/* Carousel behavior for the APV benefits band. */
#multiplica > .wrap {
    width: min(1280px, calc(100% - 240px));
}

#multiplica .benefit-carousel {
    --benefit-items: 3;
    --benefit-gap: 130px;
}

#multiplica .benefit-carousel__viewport {
    overflow: hidden;
}

#multiplica .benefit-grid {
    display: flex;
    gap: var(--benefit-gap);
    will-change: transform;
    transition: transform 0.36s ease;
}

#multiplica .benefit-grid article {
    flex: 0 0 calc((100% - (var(--benefit-items) - 1) * var(--benefit-gap)) / var(--benefit-items));
    max-width: none;
}

#multiplica .benefit-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 54px;
}

#multiplica .benefit-carousel.is-static .benefit-carousel__controls {
    display: none;
}

#multiplica .benefit-carousel__button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--blue);
    border-radius: 50%;
    color: var(--blue);
    background: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

#multiplica .benefit-carousel__button span {
    display: block;
    font-size: 32px;
    font-weight: 300;
    line-height: 0.8;
    transform: translateY(-1px);
}

#multiplica .benefit-carousel__button:hover,
#multiplica .benefit-carousel__button:focus-visible {
    color: #ffffff;
    background: var(--blue);
}

#multiplica .benefit-carousel__button:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

#multiplica .benefit-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

#multiplica .benefit-carousel__dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: #9fdff5;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

#multiplica .benefit-carousel__dot[aria-current="true"] {
    background: var(--blue);
    transform: scale(1.25);
}

@media (max-width: 1360px) {
    #multiplica .benefit-carousel {
        --benefit-gap: 88px;
    }
}

@media (max-width: 1280px) {
    #multiplica .benefit-carousel {
        --benefit-gap: 70px;
    }
}

@media (max-width: 980px) {
    #multiplica > .wrap {
        width: calc(100% - 64px);
    }

    #multiplica .benefit-carousel {
        --benefit-items: 2;
        --benefit-gap: 44px;
    }
}

@media (max-width: 680px) {
    #multiplica > .wrap {
        width: calc(100% - 40px);
    }

    #multiplica .benefit-carousel {
        --benefit-items: 1;
        --benefit-gap: 24px;
    }

    #multiplica .benefit-grid article {
        justify-items: center;
        text-align: center;
    }

    #multiplica .icon-bubble {
        width: 86px;
        height: 86px;
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 30px;
        padding: 14px;
    }

    #multiplica .icon-bubble img {
        width: 42px;
        height: 42px;
    }

    #multiplica .benefit-grid h3 {
        margin-bottom: 14px;
        font-size: 26px;
    }

    #multiplica .benefit-grid p {
        width: min(100%, 360px);
        font-size: 17px;
        line-height: 1.5;
    }

    #multiplica .benefit-carousel__controls {
        margin-top: 38px;
    }

    #multiplica .benefit-carousel__button {
        width: 40px;
        height: 40px;
    }
}

/* Precision refinements for the APV advisor banner. */
.advisor {
    grid-template-columns: 834px minmax(0, 1fr);
    gap: 78px;
    align-items: center;
    width: var(--wrap-width);
    height: 250px;
    min-height: 250px;
    border-radius: 11px;
    padding: 0 38px;
    background-position: center;
    background-size: 100% 100%;
}

.advisor::before {
    top: 0;
    left: 756px;
    width: 110px;
    height: 250px;
}

.advisor__copy {
    align-self: center;
}

.advisor h2 {
    font-size: 36px;
    font-weight: 300;
    line-height: 1.15;
}

.advisor__copy p {
    margin-top: 0;
    font-size: 36px;
    font-weight: 300;
    line-height: 1.15;
}

.advisor__action {
    align-self: center;
    gap: 24px;
}

.advisor__action p {
    width: min(500px, 100%);
    max-width: none;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.35;
}

.advisor__action .btn {
    width: 240px;
    min-height: 60px;
    border-radius: 999px;
    padding: 0 24px;
    color: #003e74;
    background: #ffc544;
    box-shadow: none;
    font-size: 15px;
}

@media (max-width: 1360px) {
    .advisor {
        grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
        gap: 48px;
        padding: 0 36px;
    }

    .advisor::before {
        left: 49.4%;
    }

    .advisor h2,
    .advisor__copy p {
        font-size: 32px;
    }

    .advisor__action p {
        font-size: 16px;
    }
}

@media (max-width: 1180px) {
    .advisor {
        grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
        gap: 36px;
        padding: 0 32px;
    }

    .advisor h2,
    .advisor__copy p {
        font-size: 29px;
    }
}

@media (max-width: 980px) {
    .advisor {
        grid-template-columns: 1fr;
        gap: 32px;
        height: auto;
        min-height: 0;
        padding: 48px 38px;
    }

    .advisor::before {
        right: 26px;
        left: auto;
        opacity: 0.42;
    }

    .advisor__copy,
    .advisor__action {
        width: min(620px, 100%);
    }
}

@media (max-width: 520px) {
    .advisor {
        gap: 34px;
        width: min(100% - 24px, 460px);
        border-radius: 10px;
        padding: 38px 86px 36px 22px;
    }

    .advisor::before {
        right: 18px;
        width: 96px;
        opacity: 1;
    }

    .advisor__copy,
    .advisor__action {
        width: 100%;
    }

    .advisor__copy {
        display: grid;
        gap: 6px;
    }

    .advisor__action {
        gap: 26px;
    }

    .advisor h2,
    .advisor__copy p {
        font-size: 26px;
    }

    .advisor__action p {
        font-size: 15px;
    }

    .advisor__action .btn {
        width: min(240px, 100%);
    }
}

/* Precision refinements for the APV app-download banner. */
.app-banner {
    display: block;
    width: var(--wrap-width);
    height: 530px;
    min-height: 530px;
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 12px;
    padding: 99px 0 0 127px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.5) 44%, rgba(0, 0, 0, 0) 72%),
        url("../img/bg_lo_simple.webp") center / 100% 100% no-repeat;
}

.app-banner__content {
    width: 700px;
}

.app-banner h2 {
    width: 700px;
    margin: 0 0 26px;
    color: #fff;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
}

.app-banner p {
    width: 650px;
    margin: 0 0 45px;
    color: #fff;
    font-size: 23px;
    font-weight: 300;
    line-height: 1.3;
}

.app-banner__actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    margin-left: 5px;
}

.app-banner__actions > .btn {
    flex: 0 0 240px;
    width: 240px;
    min-height: 61px;
    border-radius: 999px;
    padding: 0 20px;
    font-size: 15px;
}

.app-banner__qr-mark {
    display: flex;
    flex: 0 0 69px;
    align-items: center;
    height: 48px;
    border-left: 1px solid rgba(255, 255, 255, 0.72);
    padding-left: 19px;
}

.app-banner__qr-icon {
    width: 48px;
    height: 48px;
}

.app-banner small {
    display: block;
    width: 650px;
    margin: 23px 0 0 5px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
}

.download-card {
    position: absolute;
    z-index: 3;
    top: 332px;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    align-items: center;
    border-radius: 6px;
    padding: 0 28px 0 0;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.download-card__qr {
    width: 222px;
    height: 222px;
    object-fit: contain;
}

.download-card > .download-card__details {
    display: flex;
    align-items: flex-start;
    align-self: stretch;
    flex-direction: column;
    gap: 0;
    justify-items: normal;
    min-width: 0;
    padding-top: 26px;
}

.download-card__title {
    color: #111820;
    font-size: 14px;
    font-weight: 700;
    line-height: 17px;
    white-space: nowrap;
}

.download-card__platforms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 17px;
}

.download-card__platforms span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 50px;
    border: 1px solid #dce2e6;
    border-radius: 999px;
    background: #fff;
}

.download-card__platforms img {
    width: auto;
    height: 29px;
}

.download-card__separator {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    width: 190px;
    margin-top: 19px;
    color: #111820;
}

.download-card__separator i {
    display: block;
    height: 1px;
    background: #9fa7ad;
}

.download-card__separator b {
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
}

.download-card__direct {
    width: 190px;
    min-height: 60px;
    margin-top: 7px;
    border-radius: 999px;
    padding: 0 18px;
    background: #167fce;
    font-size: 15px;
}

@media (max-width: 1467px) {
    .download-card {
        left: auto;
        right: clamp(36px, 5vw, 72px);
        transform: none;
    }
}

@media (max-width: 1360px) {
    .app-banner {
        padding-left: clamp(72px, 8.3vw, 127px);
    }

    .app-banner__content {
        width: min(650px, 58vw);
    }

    .app-banner h2 {
        width: min(650px, 55vw);
        font-size: 48px;
    }

    .app-banner p {
        width: min(600px, 54vw);
        font-size: 21px;
    }

    .download-card {
        left: auto;
        right: clamp(36px, 6vw, 72px);
        transform: none;
    }
}

@media (max-width: 980px) {
    .app-banner {
        height: auto;
        min-height: 0;
        overflow: hidden;
        padding: 52px 40px;
        background-position: 64% center;
        background-size: cover;
    }

    .app-banner__content {
        width: min(650px, 100%);
    }

    .app-banner h2 {
        width: min(650px, 100%);
        font-size: 46px;
    }

    .app-banner p {
        width: min(620px, 100%);
        margin-bottom: 34px;
    }

    .app-banner__actions {
        display: grid;
        grid-template-columns: 240px minmax(69px, 1fr);
        gap: 20px;
        align-items: center;
        width: min(453px, 100%);
        margin-left: 0;
    }

    .app-banner__qr-mark {
        justify-self: start;
        width: 69px;
    }

    .download-card {
        position: static;
        grid-column: 1 / -1;
        width: 453px;
        max-width: 100%;
        margin-top: 14px;
        padding: 0;
    }

    .app-banner small {
        width: min(650px, 100%);
        margin-left: 0;
    }
}

@media (max-width: 680px) {
    .app-banner {
        width: min(520px, calc(100% - 32px));
        padding: 42px 28px;
        background-position: 68% center;
    }

    .app-banner h2 {
        font-size: 38px;
    }

    .app-banner p {
        font-size: 18px;
    }
}

@media (max-width: 520px) {
    .app-banner {
        width: min(100% - 24px, 460px);
        border-radius: 10px;
        padding: 36px 24px;
    }

    .app-banner h2 {
        margin-bottom: 20px;
        font-size: 34px;
        line-height: 1.12;
    }

    .app-banner p {
        margin-bottom: 28px;
        font-size: 17px;
    }

    .app-banner__actions {
        grid-template-columns: minmax(0, 1fr) 56px;
        gap: 12px;
    }

    .app-banner__actions > .btn {
        width: 100%;
        min-width: 0;
        min-height: 54px;
        font-size: 13px;
    }

    .app-banner__qr-mark {
        flex-basis: 56px;
        width: 56px;
        padding-left: 15px;
    }

    .app-banner__qr-icon {
        width: 40px;
        height: 40px;
    }

    .download-card {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 14px;
        height: 210px;
        padding: 0 14px;
    }

    .download-card__qr {
        justify-self: center;
        width: 86px;
        height: 86px;
    }

    .download-card__details {
        align-items: center;
        justify-content: center;
        padding-top: 0;
    }

    .download-card__title {
        font-size: 11px;
    }

    .download-card__platforms {
        gap: 12px;
        margin-top: 10px;
    }

    .download-card__platforms span {
        width: 96px;
        height: 52px;
    }

    .download-card__platforms img {
        height: 30px;
    }

    .download-card__separator {
        width: 210px;
        margin-top: 12px;
    }

    .download-card__direct {
        width: 210px;
        min-height: 58px;
        margin-top: 12px;
        font-size: 14px;
    }

    .app-banner small {
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .download-card {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 10px;
        height: 200px;
        padding: 0 8px;
    }

    .download-card__qr {
        width: 74px;
        height: 74px;
    }

    .download-card__platforms {
        gap: 7px;
    }

    .download-card__platforms span {
        width: 84px;
    }

    .download-card__separator,
    .download-card__direct {
        width: 178px;
    }
}

.hero__bottom {
    position: absolute;
    right: clamp(28px, 3.5vw, 68px);
    bottom: 22px;
    left: clamp(28px, 3.5vw, 68px);
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 40px;
}

.hero__legal {
    flex: 1 1 auto;
    max-width: 880px;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.82);
}

.hero__legal p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

.hero__apv-logo {
    flex: 0 0 auto;
    width: clamp(100px, 7.3vw, 140px);
    height: auto;
}

@media (max-width: 980px) {
    .hero {
        min-height: 820px;
    }


    .hero__bottom {
        right: 24px;
        bottom: 18px;
        left: 24px;
        gap: 18px;
    }

    .hero__legal p {
        font-size: 11px;
    }

    .hero__apv-logo {
        width: 96px;
    }
}

@media (max-width: 560px) {
    .hero::after {
        background:
            linear-gradient(90deg, rgba(12, 9, 5, 0.86) 0%, rgba(12, 9, 5, 0.74) 38%, rgba(12, 9, 5, 0.56) 68%, rgba(12, 9, 5, 0.4) 86%, rgba(12, 9, 5, 0.28) 100%),
            linear-gradient(180deg, rgba(10, 8, 5, 0.16) 0%, rgba(10, 8, 5, 0.42) 100%);
    }
    .hero {
        min-height: 880px;
    }


    .hero__bottom {
        align-items: flex-end;
        gap: 12px;
    }

    .hero__legal p {
        font-size: 10px;
        line-height: 1.35;
    }

    .hero__apv-logo {
        width: 76px;
    }
}

/* Tarjeta de descarga del banner "Lo simple": oculta hasta hacer clic en el ícono QR. */
button.app-banner__qr-mark {
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    padding-top: 0;
    padding-right: 0;
    padding-bottom: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

button.app-banner__qr-mark:hover .app-banner__qr-icon,
button.app-banner__qr-mark[aria-expanded="true"] .app-banner__qr-icon {
    opacity: 0.8;
}

button.app-banner__qr-mark:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.download-card:not(.is-open) {
    display: none;
}

/* Íconos y botones de tienda convertidos en links (App Store / Google Play). */
.download-card__platforms a,
.qr-modal__stores a {
    display: block;
    border-radius: 999px;
}

.qr-modal__stores a {
    border-radius: 8px;
}

.download-card__platforms a:hover span {
    border-color: #167fce;
}

.download-card__platforms a:focus-visible,
.qr-modal__stores a:focus-visible {
    outline: 2px solid #167fce;
    outline-offset: 3px;
}

/* Modal "¿Cómo quieres ahorrar?" (CTA "Comenzar ahorrar"). Misma base que .qr-modal. */
.savings-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.savings-modal.is-open {
    display: flex;
}

.savings-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 18, 37, 0.72);
    backdrop-filter: blur(5px);
}

.savings-modal__panel {
    position: relative;
    z-index: 1;
    width: min(800px, 100%);
    border-radius: 12px;
    padding: 40px 32px 32px;
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 28px 80px rgba(0, 18, 37, 0.34);
}

.savings-modal__close {
    position: absolute;
    right: 18px;
    top: 16px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #2f3a44;
    background: var(--white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.savings-modal h2 {
    margin: 0 0 28px;
    color: var(--navy-dark);
    font-size: 32px;
    line-height: 1.1;
    text-align: center;
}

.savings-modal__options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.savings-modal__option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 20px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.savings-modal__option:hover,
.savings-modal__option:focus-visible {
    border-color: #0076cf;
    box-shadow: 0 8px 22px rgba(0, 118, 207, 0.14);
    outline: none;
}

.savings-modal__icon {
    flex: 0 0 28px;
    color: #0076cf;
}

.savings-modal__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.savings-modal__title {
    color: #2f3a44;
    font-size: 18px;
    line-height: 1.2;
}

.savings-modal__tag {
    align-self: flex-start;
    border-radius: 999px;
    padding: 2px 10px;
    color: #0076cf;
    background: #e8f3fc;
    font-size: 12px;
    font-weight: 700;
}

.savings-modal__text {
    color: #53606a;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 680px) {
    .savings-modal {
        padding: 18px;
    }

    .savings-modal__panel {
        padding: 32px 18px 22px;
    }

    .savings-modal h2 {
        margin-right: 30px;
        margin-left: 30px;
        font-size: 27px;
    }

    .savings-modal__options {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* "La importancia del ahorro temprano": en pantallas angostas (≤ ~370px) el monto
   de 20px no cabía en la barra ($128.460.385 se cortaba). Escala con el ancho. */
.bar__copy {
    container-type: inline-size;
}

@media (max-width: 520px) {
    .bar__copy strong {
        font-size: clamp(14px, 4.9vw, 20px);
        font-size: min(20px, 14.5cqi);
    }
}

/* Animaciones ----------------------------------------------------------------
   El hero y los modales se animan solo con CSS. Las apariciones al hacer scroll,
   las barras y los montos que cuentan son de assets/js/apv-motion.js (GSAP), que
   se activa con la clase .js-motion que el <head> pone en <html>. Sin JS, sin
   GSAP o con "reducir movimiento" activado, todo se ve quieto y visible. */
.js-motion [data-reveal],
.js-motion [data-reveal-stagger] > * {
    opacity: 0;
}

.js-motion [data-reveal-chart]:not(.is-revealed) .bar {
    clip-path: inset(100% 0 0 0 round 12px 12px 0 0);
}

@keyframes apv-subir {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
}

@keyframes apv-aparecer {
    from {
        opacity: 0;
    }
}

@keyframes apv-asentar {
    from {
        transform: scale(1.06);
    }
}

@keyframes apv-modal {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero::before {
        animation: apv-asentar 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
    }

    .hero__nav {
        animation: apv-aparecer 0.8s ease-out backwards;
    }

    .hero__content > h1,
    .hero__content > p,
    .hero__buttons {
        animation: apv-subir 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
    }

    .hero__content > p {
        animation-delay: 0.12s;
    }

    .hero__buttons {
        animation-delay: 0.24s;
    }

    .hero__bottom {
        animation: apv-aparecer 1s ease-out 0.45s backwards;
    }

    .qr-modal.is-open > .qr-modal__backdrop,
    .savings-modal.is-open > .savings-modal__backdrop,
    .assumptions-modal.is-open > .assumptions-modal__backdrop,
    .contact-modal.is-open > .contact-modal__backdrop {
        animation: apv-aparecer 0.25s ease-out;
    }

    .qr-modal.is-open > .qr-modal__panel,
    .savings-modal.is-open > .savings-modal__panel,
    .assumptions-modal.is-open > .assumptions-modal__panel,
    .contact-modal.is-open > .contact-modal__panel {
        animation: apv-modal 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    }
}

@media print {
    .js-motion [data-reveal],
    .js-motion [data-reveal-stagger] > * {
        opacity: 1 !important;
    }

    .js-motion [data-reveal-chart] .bar {
        clip-path: none !important;
    }
}

/* Simulador entre 981 y 1180px: en dos columnas la tarjeta del monto quedaba de
   ~240px, con el texto en una franja de 72px y "Régimen A" partido en dos
   líneas. Se apilan como en ≤980px. */
@media (min-width: 981px) and (max-width: 1180px) {
    .apv-result__summary {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .apv-metric--pension {
        min-height: 128px;
        padding: 24px 30px;
    }
}
