/* =========================================================
   Asesores de Isapres — Landing v2
   Marca: azul #1a3a79 · rosa #c24b67 · crema #f2f0e4
   ========================================================= */

:root {
    --navy: #1a3a79;
    --navy-deep: #122a5a;
    --navy-ink: #14244a;
    --blue: #3a69b4;
    --pink: #c24b67;
    --pink-dark: #a53d55;
    --pink-soft: #fbe9ee;
    --cream: #f2f0e4;
    --cream-soft: #f8f6ee;
    --paper: #fdfcf9;
    --white: #ffffff;
    --ink: #1f2638;
    --muted: #586078;
    --line: #e2dfd3;
    --line-strong: #cfcbbd;
    --on-navy: #ffffff;
    --on-navy-muted: #c9d4ea;
    --error: #b3261e;
    --ok: #1d7a4f;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-card: 0 1px 2px rgba(20, 36, 74, .06), 0 18px 40px -18px rgba(20, 36, 74, .28);
    --shadow-soft: 0 1px 2px rgba(20, 36, 74, .05), 0 10px 24px -14px rgba(20, 36, 74, .22);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --header-h: 118px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
    caret-color: var(--pink);
}

::selection {
    background: var(--pink);
    color: #fff;
}

img {
    max-width: 100%;
    display: block;
}

[hidden] {
    display: none !important;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--navy);
    line-height: 1.15;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

a {
    color: var(--blue);
    text-underline-offset: 3px;
}

:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 2px;
    border-radius: 6px;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

section[id] {
    scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font: 600 1rem/1.2 'Inter', sans-serif;
    border-radius: 999px;
    padding: 14px 28px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}

.btn-primary {
    background: var(--pink);
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(194, 75, 103, .9);
}

.btn-primary:hover {
    background: var(--pink-dark);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    border-color: var(--blue);
    color: var(--blue);
    background: transparent;
}

.btn-outline:hover {
    background: var(--blue);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    padding: 14px 10px;
}

.btn-ghost:hover {
    color: var(--navy);
}

.btn[disabled] {
    opacity: .7;
    cursor: progress;
    transform: none;
}

.btn-sm {
    padding: 10px 20px;
    font-size: .92rem;
}

/* ---------- Header ---------- */
.main-header {
    background: var(--white);
    box-shadow: 0 1px 0 var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    background: var(--navy);
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: .88rem;
}

.top-bar strong {
    color: #fff;
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.logo img {
    height: 54px;
    width: auto;
}

/* ---------- Hero ---------- */
.hero {
    background: var(--cream);
    padding: 64px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    /* bloque diagonal de marca detrás del formulario */
    content: '';
    position: absolute;
    right: -8%;
    top: 0;
    bottom: 0;
    width: 46%;
    background: var(--navy);
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.3rem, 4.4vw, 3.55rem);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 22px;
}

.hero-text h1 span {
    color: var(--pink);
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 34rem;
    margin-bottom: 30px;
}

.trust-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 14px 28px;
}

.trust-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--navy-ink);
    font-size: .98rem;
}

.trust-list i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white);
    color: var(--pink);
    display: grid;
    place-items: center;
    font-size: .8rem;
    box-shadow: 0 2px 6px -2px rgba(20, 36, 74, .25);
    flex-shrink: 0;
}

/* ---------- Form card ---------- */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 4px rgba(10, 20, 45, .08), 0 40px 70px -30px rgba(10, 20, 45, .55);
    padding: 30px 30px 26px;
}

.form-card-header h2 {
    font-size: 1.55rem;
    margin-bottom: 6px;
}

.form-card-header p {
    color: var(--muted);
    font-size: .93rem;
    margin-bottom: 20px;
}

.form-progress {
    list-style: none;
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    counter-reset: step;
}

.form-progress li {
    flex: 1;
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    padding-top: 10px;
    border-top: 4px solid var(--line);
    transition: border-color .4s var(--ease-out), color .4s var(--ease-out);
}

.form-progress li.is-current,
.form-progress li.is-done {
    border-top-color: var(--pink);
    color: var(--navy-ink);
}

.form-progress li span {
    font-variant-numeric: tabular-nums;
    color: var(--pink);
    margin-right: 4px;
}

.form-step {
    border: 0;
    min-width: 0;
}

.form-step legend {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--navy);
    margin-bottom: 14px;
}

.js .form-step:not(.is-active) {
    display: none;
}

.js .form-step.is-active {
    animation: stepIn .45s var(--ease-out);
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateX(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field {
    margin-bottom: 14px;
    min-width: 0;
}

.field>label,
.field .label {
    display: block;
    font-size: .84rem;
    font-weight: 600;
    color: var(--navy-ink);
    margin-bottom: 6px;
}

.field .optional {
    font-weight: 400;
    color: var(--muted);
}

.input,
.select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font: 400 1rem 'Inter', sans-serif;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}

.select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231a3a79' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.input::placeholder {
    color: #7d8497;
}

.input:hover,
.select:hover {
    border-color: #b4af9e;
}

.input:focus,
.select:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 4px rgba(26, 58, 121, .14);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"] {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(179, 38, 30, .1);
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--cream-soft);
    border: 1.5px solid var(--line-strong);
    border-right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-weight: 600;
    color: var(--navy-ink);
    font-size: .95rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.input-group .input {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.input-group:focus-within .input-prefix {
    border-color: var(--navy);
}

.input-group:has(.input[aria-invalid="true"]) .input-prefix {
    border-color: var(--error);
}

.field-hint {
    font-size: .8rem;
    color: var(--muted);
    margin-top: 6px;
}

.renta-hint {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 7px 12px;
    border-radius: 8px;
    background: var(--cream-soft);
    color: var(--navy-ink);
    font-size: .84rem;
    font-variant-numeric: tabular-nums;
}

.renta-hint.is-visible {
    display: flex;
}

.renta-hint i {
    color: var(--pink);
}

.field-error {
    display: none;
    align-items: flex-start;
    gap: 6px;
    color: var(--error);
    font-size: .8rem;
    font-weight: 500;
    margin-top: 6px;
}

.field-error.is-visible {
    display: flex;
}

.field-error::before {
    content: '';
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 2px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 100 14A7 7 0 008 1zm-.75 3.5h1.5v5h-1.5v-5zm0 6h1.5V12h-1.5v-1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 100 14A7 7 0 008 1zm-.75 3.5h1.5v5h-1.5v-5zm0 6h1.5V12h-1.5v-1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* segmented radios */
.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px;
    background: var(--cream-soft);
    border: 1.5px solid var(--line);
    border-radius: 12px;
}

.segmented input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    border-radius: 9px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background-color .2s, color .2s, box-shadow .2s;
    margin: 0;
}

.segmented input:checked+label {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 1px 2px rgba(20, 36, 74, .12), 0 4px 10px -4px rgba(20, 36, 74, .25);
}

.segmented input:focus-visible+label {
    outline: 3px solid var(--pink);
    outline-offset: 1px;
}

.cargas-detail {
    margin-top: 12px;
    padding: 14px;
    border-radius: 12px;
    background: var(--cream-soft);
}

.cargas-detail[hidden] {
    display: none;
}

.cargas-ages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.cargas-ages label {
    display: block;
    font-size: .76rem;
    font-weight: 600;
    color: var(--navy-ink);
    margin-bottom: 4px;
}

.cargas-ages .input {
    height: 40px;
    font-variant-numeric: tabular-nums;
}

.field>.checkbox,
.checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .84rem;
    font-weight: 400;
    color: var(--muted);
    cursor: pointer;
    line-height: 1.45;
    margin-bottom: 0;
}

.checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: var(--navy);
    cursor: pointer;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.form-actions .btn-primary {
    flex: 1;
    min-height: 52px;
    border-radius: 14px;
}

.form-footnote {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: .78rem;
    color: var(--muted);
}

.form-footnote i {
    color: var(--ok);
    margin-right: 4px;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    animation: spin .8s linear infinite;
    display: none;
}

.is-loading .spinner {
    display: inline-block;
}

.is-loading .btn-icon {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Logos ---------- */
.logos-section {
    padding: 56px 0 48px;
    background: var(--white);
}

.logos-section h2 {
    text-align: center;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 600;
    color: var(--navy-ink);
    margin-bottom: 26px;
}

.logos-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logos-track {
    display: flex;
    width: max-content;
    animation: marquee 38s linear infinite;
}

.logos-marquee:hover .logos-track {
    animation-play-state: paused;
}

.logos-list {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    list-style: none;
}

.logos-list li {
    width: 176px;
    flex-shrink: 0;
}

.logos-list img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: contain;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logos-marquee {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .logos-track {
        animation: none;
        width: auto;
        justify-content: center;
    }

    .logos-list {
        flex-wrap: wrap;
        justify-content: center;
        padding-right: 0;
    }

    .logos-list[aria-hidden="true"] {
        display: none;
    }
}

/* ---------- Video ---------- */
.video-section {
    padding: 24px 0 88px;
    background: var(--white);
}

.video-section h2 {
    text-align: center;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin-bottom: 28px;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 60px -24px rgba(20, 36, 74, .45);
    position: relative;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 0;
    width: 100%;
    display: block;
    padding: 0;
}

.video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease-out);
}

.video-wrapper:hover img {
    transform: scale(1.04);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 55%);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
    background: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
    transition: transform .4s var(--ease-out), background-color .3s;
}

.play-button::after {
    content: '';
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 24px solid var(--pink);
    margin-left: 6px;
    transition: border-color .3s;
}

.video-wrapper:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--pink);
}

.video-wrapper:hover .play-button::after {
    border-left-color: #fff;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ---------- Calculadora ---------- */
.calc-section {
    background: var(--navy);
    color: var(--on-navy);
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}

.calc-section::before {
    content: '';
    position: absolute;
    left: -120px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 70px solid rgba(255, 255, 255, .04);
}

.calc-head {
    max-width: 44rem;
    margin-bottom: 44px;
    position: relative;
}

.calc-head h2 {
    color: #fff;
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    letter-spacing: -.015em;
    margin-bottom: 14px;
}

.calc-head p {
    color: var(--on-navy-muted);
    font-size: 1.08rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 40px;
    align-items: start;
    position: relative;
}

.calc-controls {
    display: grid;
    gap: 30px;
}

.calc-label {
    display: block;
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 10px;
    color: #fff;
}

.calc-money {
    display: flex;
    align-items: baseline;
    gap: 4px;
    border-bottom: 2px solid rgba(255, 255, 255, .25);
    padding-bottom: 6px;
    margin-bottom: 16px;
    transition: border-color .2s;
}

.calc-money:focus-within {
    border-bottom-color: var(--pink);
}

.calc-money span {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--on-navy-muted);
}

.calc-money input {
    font-family: 'Outfit', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    background: transparent;
    border: 0;
    outline: none;
    width: 100%;
    min-width: 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}

.calc-money input:focus-visible {
    outline: none;
}

.range {
    --fill: 20%;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 28px;
    background: transparent;
    cursor: pointer;
}

.range::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--pink) var(--fill), rgba(255, 255, 255, .18) var(--fill));
}

.range::-moz-range-track {
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .18);
}

.range::-moz-range-progress {
    height: 8px;
    border-radius: 99px;
    background: var(--pink);
}

.range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    margin-top: -9px;
    border-radius: 50%;
    background: #fff;
    border: 6px solid var(--pink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    transition: transform .2s var(--ease-out);
}

.range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 6px solid var(--pink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

.range:active::-webkit-slider-thumb {
    transform: scale(1.12);
}

.range:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 4px;
}

.range-scale {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--on-navy-muted);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

.calc-section .segmented {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
    max-width: 360px;
}

.calc-section .segmented label {
    color: var(--on-navy-muted);
}

.calc-section .segmented input:checked+label {
    background: #fff;
    color: var(--navy);
}

.plan-input {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.plan-input .input {
    height: 52px;
    font-size: 1.15rem;
    font-weight: 600;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
    max-width: 200px;
    font-variant-numeric: tabular-nums;
}

.plan-input .input::placeholder {
    color: var(--on-navy-muted);
}

.plan-input .input:focus {
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .15);
}

.plan-input .segmented {
    width: 130px;
}

.calc-hint {
    font-size: .84rem;
    color: var(--on-navy-muted);
    margin-top: 10px;
}

.calc-hint[hidden] {
    display: none;
}

.uf-line {
    font-size: .8rem;
    color: var(--on-navy-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    font-variant-numeric: tabular-nums;
}

.uf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f0b429;
}

.uf-dot.is-live {
    background: #3ddc97;
}

/* result card */
.calc-result {
    background: var(--white);
    color: var(--ink);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
}

.calc-result h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    margin-bottom: 4px;
}

.result-main {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-bottom: 26px;
}

.result-main strong {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.4rem, 4.5vw, 3.2rem);
    color: var(--navy);
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.result-main span {
    color: var(--muted);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.result-bar {
    display: flex;
    height: 18px;
    border-radius: 99px;
    overflow: hidden;
    background: var(--cream);
    margin-bottom: 12px;
}

.result-bar i {
    display: block;
    height: 100%;
    transition: width .7s var(--ease-out);
}

.bar-covered {
    background: var(--navy);
}

.bar-extra {
    background: repeating-linear-gradient(-45deg, var(--pink), var(--pink) 6px, #cf5f79 6px, #cf5f79 12px);
}

.bar-left {
    background: transparent;
}

.result-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    list-style: none;
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 26px;
}

.result-legend li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.result-legend b {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.result-legend .lg-covered {
    background: var(--navy);
}

.result-legend .lg-extra {
    background: var(--pink);
}

.result-legend .lg-left {
    background: var(--cream);
    border: 1px solid var(--line-strong);
}

.result-rows {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
    margin-bottom: 24px;
}

.result-rows div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
}

.result-rows dt {
    color: var(--muted);
}

.result-rows dd {
    font-weight: 700;
    color: var(--navy-ink);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.result-rows .is-extra dd {
    color: var(--pink-dark);
}

.result-rows .is-save dd {
    color: var(--ok);
}

.result-message {
    font-size: .95rem;
    color: var(--ink);
    background: var(--cream-soft);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 22px;
}

.calc-result .btn-primary {
    width: 100%;
    min-height: 54px;
    border-radius: 14px;
}

.calc-note {
    font-size: .76rem;
    color: var(--muted);
    margin-top: 14px;
    line-height: 1.5;
}

/* ---------- Pasos ---------- */
.steps-section {
    padding: 96px 0;
    background: var(--white);
}

.section-head {
    text-align: center;
    max-width: 50rem;
    margin: 0 auto 48px;
}

.section-title {
    font-size: clamp(1.9rem, 3.4vw, 2.5rem);
    letter-spacing: -.015em;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
}

.steps-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.step-card {
    padding: 48px 38px;
    position: relative;
}

.step-number {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 26px;
    opacity: .9;
    font-variant-numeric: tabular-nums;
}

.step-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.card-light {
    background: var(--cream);
}

.card-light .step-number {
    color: var(--pink);
}

.card-pink {
    background: var(--pink);
    color: #fff;
}

.card-blue {
    background: var(--navy);
    color: #fff;
}

.card-pink h3,
.card-blue h3,
.card-pink .step-number,
.card-blue .step-number {
    color: #fff;
}

.card-pink p {
    color: #fff4f6;
}

.card-blue p {
    color: var(--on-navy-muted);
}

.card-blue p strong {
    color: #fff;
}

/* ---------- Testimonios ---------- */
.testimonials-section {
    padding: 96px 0;
    background: var(--cream);
    overflow: hidden;
}

.testimonials-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 36px;
}

.testimonials-head .section-title {
    margin-bottom: 8px;
    max-width: 30rem;
}

.testimonials-head p {
    color: var(--muted);
}

.carousel-controls {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1rem;
    transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.carousel-btn:disabled {
    opacity: .4;
    cursor: default;
}

.t-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 6px 2px 20px;
    list-style: none;
    overscroll-behavior-x: contain;
}

.t-track::-webkit-scrollbar {
    display: none;
}

.t-card {
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
    background: var(--white);
    border-radius: 20px;
    padding: 30px 28px 26px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}

.t-stars {
    color: var(--pink);
    font-size: .9rem;
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
}

.t-card blockquote {
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--ink);
    flex: 1;
    margin-bottom: 22px;
}

.t-person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.t-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.t-person strong {
    display: block;
    color: var(--navy-ink);
    font-size: .95rem;
}

.t-person small {
    color: var(--muted);
    font-size: .82rem;
}

.t-tag {
    margin-left: auto;
    font-size: .74rem;
    font-weight: 600;
    color: var(--pink-dark);
    background: var(--pink-soft);
    padding: 5px 10px;
    border-radius: 99px;
    white-space: nowrap;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}

.carousel-dots button {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.carousel-dots button::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--line-strong);
    transition: width .35s var(--ease-out), background-color .35s;
}

.carousel-dots button[aria-current="true"]::after {
    width: 22px;
    background: var(--navy);
}

/* ---------- FAQ ---------- */
.faq-section {
    padding: 96px 0;
    background: var(--white);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
}

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

.faq-item summary::after {
    content: '';
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23c24b67' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
    transition: transform .35s var(--ease-out), background-color .2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    background-color: var(--pink-soft);
}

.faq-item summary:hover {
    color: var(--pink-dark);
}

.faq-answer {
    padding: 0 52px 24px 4px;
    color: var(--muted);
    max-width: 68ch;
}

/* ---------- CTA + Empresas ---------- */
.cta-section {
    padding: 88px 0 40px;
    text-align: center;
    background: var(--paper);
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 2.7rem);
    color: var(--pink);
    margin-bottom: 14px;
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 38rem;
    margin: 0 auto 30px;
    color: var(--muted);
}

.teams-section {
    padding: 40px 0 88px;
    background: var(--paper);
}

.teams-banner {
    background: var(--navy);
    color: #fff;
    padding: 40px 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 28px;
}

.teams-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .1);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: #fff;
    flex-shrink: 0;
}

.teams-banner h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.teams-banner p {
    color: var(--on-navy-muted);
}

.teams-banner a {
    color: #fff;
    font-weight: 600;
}

/* ---------- Superintendencia ---------- */
.supersalud-section {
    padding: 80px 0;
    background: var(--white);
    border-top: 1px solid var(--line);
}

.supersalud-inner {
    display: grid;
    grid-template-columns: minmax(0, 380px) 1fr;
    gap: 56px;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
}

.supersalud-logo {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    box-shadow: var(--shadow-soft);
}

.supersalud-logo img {
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

.supersalud-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 14px;
}

.supersalud-text p {
    color: var(--muted);
    margin-bottom: 24px;
    max-width: 36rem;
}

/* ---------- Footer ---------- */
.main-footer {
    background: var(--cream);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    margin-bottom: 18px;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    text-decoration: none;
    color: var(--blue);
    font-size: .92rem;
}

.footer-col a:hover {
    color: var(--navy);
    text-decoration: underline;
}

.footer-legal {
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid var(--line-strong);
    font-size: .8rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 12px 32px;
    flex-wrap: wrap;
}

/* ---------- CTA móvil ---------- */
.mobile-cta {
    display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .calc-grid {
        grid-template-columns: 1fr;
    }

    .t-card {
        flex-basis: calc((100% - 24px) / 2);
    }
}

@media (max-width: 860px) {
    :root {
        --header-h: 104px;
    }

    .hero {
        padding: 40px 0 56px;
    }

    .hero::after {
        top: auto;
        height: 58%;
        width: 100%;
        right: 0;
        clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-lead {
        margin-bottom: 22px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        padding: 36px 28px;
    }

    .step-number {
        font-size: 3rem;
        margin-bottom: 16px;
    }

    .testimonials-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .supersalud-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .supersalud-logo {
        max-width: 360px;
        margin: 0 auto;
    }

    .supersalud-text p {
        margin-left: auto;
        margin-right: auto;
    }

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

    .teams-banner {
        flex-direction: column;
        text-align: center;
        padding: 34px 24px;
    }
}

@media (max-width: 640px) {
    :root {
        --header-h: 0px;
    }

    /* En móvil el header no es fijo: la acción persistente es el botón flotante */
    .main-header {
        position: relative;
    }

    .logo img {
        height: 40px;
    }

    .container-header {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .top-bar {
        font-size: .8rem;
    }

    .hero {
        padding-top: 28px;
    }

    .hero-text h1 {
        font-size: 2.05rem;
        margin-bottom: 14px;
    }

    .hero-lead {
        font-size: .98rem;
        margin-bottom: 18px;
    }

    .trust-list {
        grid-template-columns: 1fr 1fr;
        gap: 10px 12px;
    }

    .trust-list li {
        font-size: .84rem;
        gap: 8px;
        align-items: flex-start;
        line-height: 1.3;
    }

    .trust-list i {
        width: 22px;
        height: 22px;
        font-size: .68rem;
    }

    .form-card {
        padding: 24px 18px 20px;
        border-radius: 20px;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .calc-section,
    .steps-section,
    .testimonials-section,
    .faq-section {
        padding: 72px 0;
    }

    .calc-result {
        padding: 26px 20px;
    }

    .calc-money input {
        font-size: 2.1rem;
    }

    .calc-money span {
        font-size: 1.8rem;
    }

    .plan-input {
        flex-wrap: wrap;
    }

    .plan-input .input {
        max-width: none;
        flex: 1;
    }

    .t-card {
        flex-basis: 86%;
        padding: 26px 22px 22px;
    }

    .t-tag {
        display: none;
    }

    .logos-list li {
        width: 136px;
    }

    .faq-item summary {
        font-size: 1.04rem;
    }

    .faq-answer {
        padding-right: 4px;
    }

    .footer-legal {
        flex-direction: column;
    }

    .mobile-cta {
        display: block;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 90;
        transform: translateY(140%);
        transition: transform .45s var(--ease-out);
    }

    .mobile-cta.is-visible {
        transform: none;
    }

    .mobile-cta .btn {
        width: 100%;
        min-height: 54px;
        border-radius: 16px;
        box-shadow: 0 14px 30px -10px rgba(194, 75, 103, .75);
    }

    .main-footer {
        padding-bottom: 96px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
