/* miplan360.cl — Corporativo con olas
   Azul corporativo, blanco y gris; banner con foto teñida, tarjeta de formulario limpia, olas que separan y cierran. */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 500 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-italic-latin.woff2") format("woff2");
  font-weight: 500 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}

:root {
  --blue-700: #14508f;
  --blue-600: #1f6fc4;
  --blue-500: #3c8ad8;
  --blue-100: #dcebf8;
  --blue-50: #eef5fc;
  --ink: #16324f;
  --ink-2: #425a73;
  --gray-600: #6f7378;
  --gray-300: #b6c2d0;
  --gray-200: #dfe4ea;
  --gray-100: #f3f5f7;
  --white: #fff;
  --madder: #b3261e;

  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --head-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 16px);
  scrollbar-color: var(--blue-600) var(--blue-50);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue-600); color: #fff; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; }
/* Sobre fondos azules el anillo de foco es blanco (el azul claro no se ve sobre el azul) */
.hero :focus-visible, .banner :focus-visible, .cta-band :focus-visible, .side-cta :focus-visible, .site-foot :focus-visible { outline-color: #fff; }
input, select, textarea, button { caret-color: var(--blue-600); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--blue-600); }
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; color: var(--ink); background: #fff; border-radius: 6px; transition: top 0.2s var(--ease); }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.wrap--mid { max-width: 940px; }
.wrap--narrow { max-width: 780px; }

/* ── Botones ──────────────────────────────────────────── */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 54px; padding: 0 30px;
  font: 700 1rem/1 var(--font-head); text-decoration: none; text-align: center;
  color: #fff; background: var(--blue-600);
  border: 2px solid var(--blue-600); border-radius: 8px; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { background: var(--blue-700); border-color: var(--blue-700); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(20, 80, 143, 0.7); }
.btn:active { transform: translateY(0); }
/* Brillo: un solo momento de atención, en el botón del formulario del héroe, tres pasadas */
.hero .lead-card .btn--primary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-130%); animation: sheen 3.8s 2.2s 3;
}
.btn--white { color: var(--blue-700); background: #fff; border-color: #fff; }
.btn--white:hover { color: var(--blue-700); background: var(--blue-50); border-color: var(--blue-50); }
.btn--ghost { color: #fff; background: transparent; border-color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 0.9375rem; }
.btn--lg { min-height: 62px; padding: 0 44px; font-size: 1.125rem; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.85; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font: 700 1rem var(--font-head); color: var(--blue-600); text-decoration: none; }
.link-arrow::after { content: ""; width: 0.6em; height: 0.6em; border: solid currentColor; border-width: 2px 2px 0 0; rotate: 45deg; transition: translate 0.25s var(--ease); }
.link-arrow:hover { color: var(--blue-700); }
.link-arrow:hover::after { translate: 4px 0; }

/* ── Cabecera ─────────────────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--gray-200); transition: box-shadow 0.3s; }
.site-head.is-scrolled { box-shadow: 0 8px 24px -16px rgba(20, 50, 90, 0.5); }
.site-head__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--head-h); }
.site-head.is-scrolled .site-head__bar { min-height: 64px; }
.brand { --logo-h: 38px; display: inline-flex; align-items: center; text-decoration: none; perspective: 700px; }
.brand__text { display: block; width: auto; height: var(--logo-h); }
/* Moneda 3D: dos caras (frente y dorso sin espejo) que dan una vuelta completa de 360° una vez por minuto.
   El giro dura 1,6 s (el 2,7 % del ciclo) y el resto del minuto el logo queda quieto. */
.brand__mark { position: relative; flex: none; width: var(--logo-h); height: var(--logo-h); transform-style: preserve-3d; animation: logoGiro 60s cubic-bezier(0.55, 0, 0.25, 1) 6s infinite; }
.brand__face { position: absolute; inset: 0; display: block; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.brand__face--back { transform: rotateY(180deg); }
@keyframes logoGiro { 0% { transform: rotateY(0deg); } 2.7% { transform: rotateY(360deg); } 100% { transform: rotateY(360deg); } }
/* Al pasar el mouse sobre el logo: vuelta 3D inmediata del icono, sin sombra */
.brand:hover .brand__mark, .brand:focus-visible .brand__mark { animation: logoVuelta 1.4s cubic-bezier(0.55, 0, 0.25, 1) 1; }

.site-head__menu { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.site-nav__link { position: relative; padding: 8px 0; font: 600 1rem var(--font-head); color: var(--ink); text-decoration: none; }
.site-nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 3px; background: var(--blue-600); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.site-nav__link:hover::after, .site-nav__link.is-active::after { transform: scaleX(1); }
.site-nav__link.is-active { color: var(--blue-600); }
.site-head__cta-m { display: none; margin-left: auto; }
.nav-toggle { display: none; width: 48px; height: 48px; padding: 0; background: transparent; border: 1px solid var(--gray-200); border-radius: 8px; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2px; margin-inline: auto; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.site-head.is-open .nav-toggle__bars { background: transparent; }
.site-head.is-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.site-head.is-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ── Olas ─────────────────────────────────────────────── */
.wave { position: absolute; left: 0; right: 0; height: clamp(56px, 8vw, 120px); overflow: hidden; pointer-events: none; }
.wave--in { bottom: -1px; }
.wave--above { top: 0; translate: 0 -99%; }
.wave--white { color: #fff; }
.wave--sky { color: var(--blue-100); }
.wave--mist { color: var(--blue-50); }
.wave--deep { color: var(--blue-700); }
.wave--blue { color: var(--blue-600); }
.wave__layer { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; fill: currentColor; }
.wave__layer--back { opacity: 0.45; animation: drift 46s linear infinite reverse; }
.wave__layer--front { animation: drift 30s linear infinite; }

/* ── Héroe (Home) y banners ───────────────────────────── */
.hero, .banner { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--blue-600); }
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(110px, 12vw, 170px); }
.hero__bg, .banner__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img, .banner__bg img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05); opacity: 0.6; }
.hero__bg img { object-position: 62% 30%; animation: zoom 26s ease-out both; }
.hero__bg::after, .banner__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 80, 143, 0.95) 0%, rgba(20, 80, 143, 0.86) 40%, rgba(31, 111, 196, 0.5) 68%, rgba(31, 111, 196, 0.3) 100%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-weight: 500; font-size: clamp(1.9rem, 1rem + 2.7vw, 3.1rem); line-height: 1.16; letter-spacing: -0.015em; text-wrap: balance; }
.hero__line { display: block; }
.hero__line--em { margin-top: 0.2em; font-style: italic; font-weight: 800; }
.hero__lead { margin-top: 20px; max-width: 46ch; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: #fff; }
.hero__points { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; font-weight: 700; }
.hero__points li { display: flex; align-items: center; gap: 12px; }
.hero__points svg { flex: none; width: 24px; height: 24px; fill: rgba(255, 255, 255, 0.18); stroke: #fff; stroke-width: 1.6; }
.hero__points svg path { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.banner { padding: clamp(36px, 5vw, 60px) 0 clamp(96px, 11vw, 150px); }
.banner--slim { padding-bottom: clamp(84px, 9vw, 120px); }
.banner__inner { position: relative; max-width: 1200px; }
.banner__title { max-width: 22ch; font-weight: 500; font-size: clamp(1.9rem, 1rem + 2.6vw, 3rem); line-height: 1.16; text-wrap: balance; }
.banner__title em { font-style: italic; font-weight: 800; }
.banner__title--article { max-width: 30ch; font-size: clamp(1.75rem, 1rem + 2.2vw, 2.6rem); font-weight: 700; }
.banner__lead { margin-top: 16px; max-width: 54ch; font-size: 1.1875rem; color: #fff; }
.banner__meta { margin-top: 14px; font-size: 0.9375rem; color: #fff; }
/* Banner compacto (Cotizar, Agentes): la tarjeta sube sobre la ola y el botón queda cerca del pliegue */
.banner--compact { padding: 22px 0 clamp(84px, 8vw, 112px); }
.banner--compact .banner__title { max-width: none; font-size: clamp(1.7rem, 1rem + 2vw, 2.6rem); }
.banner--compact .crumbs { margin-bottom: 10px; }
.banner--compact .banner__lead { margin-top: 10px; font-size: 1.0625rem; }
.banner--compact + .cotizar { position: relative; z-index: 3; margin-top: calc(-1 * clamp(52px, 6vw, 84px)); padding-top: 0; }
.banner__code { margin-bottom: 6px; font: 800 4rem/1 var(--font-head); color: rgba(255, 255, 255, 0.35); }
.banner__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 0.875rem; }
.crumbs a { color: inherit; opacity: 0.85; text-underline-offset: 0.2em; }
.crumbs--light { color: #fff; }

/* ── Tarjeta del formulario ───────────────────────────── */
.lead-card {
  position: relative; width: 100%; max-width: 560px; margin-inline: auto;
  padding: clamp(22px, 3vw, 32px); color: var(--ink); background: #fff;
  border: 1px solid var(--gray-200); border-radius: 12px;
  box-shadow: 0 28px 50px -26px rgba(12, 44, 84, 0.6);
}
.lead-card :focus-visible { outline-color: var(--blue-500); }
.lead-card__head { margin-bottom: 20px; }
.lead-card__title { font: 700 1.25rem var(--font-head); }
.stepper { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.stepper__item { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); }
.stepper__item + .stepper__item::before { content: ""; width: 26px; height: 2px; margin-right: 3px; background: var(--gray-200); }
.stepper__dot { display: inline-grid; place-items: center; width: 28px; height: 28px; font: 700 0.875rem var(--font-head); color: var(--blue-700); background: var(--blue-100); border-radius: 50%; transition: background-color 0.3s, color 0.3s; }
.stepper__item[aria-current="step"] { color: var(--ink); font-weight: 700; }
.stepper__item[aria-current="step"] .stepper__dot { color: #fff; background: var(--blue-600); }
.lead-card[data-paso="2"] .stepper__item[data-step="1"] .stepper__dot,
.lead-card[data-paso="3"] .stepper__dot { color: #fff; background: var(--blue-700); }

.form { display: grid; gap: 18px; }
.form[hidden], .done[hidden], .field[hidden] { display: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { display: block; margin-bottom: 7px; padding: 0; font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
.field__msg { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--madder); }
.field__msg:not(:empty) { margin-top: 7px; }
.input {
  display: block; width: 100%; min-height: 54px; padding: 12px 14px;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: #fff; border: 1px solid var(--gray-300); border-radius: 6px;
  appearance: none; -webkit-appearance: none; transition: border-color 0.2s, box-shadow 0.2s;
}
select.input {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2316324f' stroke-width='1.8'/%3E%3C/svg%3E");
  background-position: right 16px center; background-size: 12px 8px; background-repeat: no-repeat;
}
.input--area { min-height: 96px; resize: vertical; }
.input::placeholder { color: #66788c; opacity: 1; }
.input:hover { border-color: var(--blue-500); }
.input:focus-visible { outline: 3px solid rgba(60, 138, 216, 0.45); outline-offset: 0; border-color: var(--blue-600); }
.field.is-invalid .input, .field.is-invalid .input-wrap { border-color: var(--madder); box-shadow: inset 0 0 0 1px var(--madder); }
.input-wrap { display: flex; align-items: stretch; background: #fff; border: 1px solid var(--gray-300); border-radius: 6px; transition: border-color 0.2s; }
.input-wrap:hover { border-color: var(--blue-500); }
.input-wrap:focus-within { outline: 3px solid rgba(60, 138, 216, 0.45); border-color: var(--blue-600); }
.input-wrap__prefix { display: flex; align-items: center; padding-inline: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--blue-50); border-right: 1px solid var(--gray-300); border-radius: 5px 0 0 5px; }
.input--prefixed { flex: 1; min-width: 0; border: 0; background: transparent; font-variant-numeric: tabular-nums; }
.input--prefixed:focus-visible { outline: none; }
#rut { font-variant-numeric: tabular-nums; }

.plates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plate, .choice {
  position: relative; cursor: pointer; background: #fff; border: 1px solid var(--gray-300); border-radius: 8px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.plate { display: grid; gap: 1px; align-content: center; min-height: 68px; padding: 11px 14px 11px 46px; }
.plate__input, .choice__input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.plate__mark, .choice__mark { position: absolute; left: 15px; top: 50%; width: 20px; height: 20px; translate: 0 -50%; border: 2px solid var(--gray-300); border-radius: 50%; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.plate__name { font: 700 1.125rem var(--font-head); line-height: 1.15; }
.plate__sub { font-size: 0.875rem; color: var(--ink-2); }
.plate:hover, .choice:hover { border-color: var(--blue-500); }
.plate:has(:checked), .choice:has(:checked) { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 1px var(--blue-600); }
.plate:has(:checked) .plate__mark, .choice:has(:checked) .choice__mark { border-color: var(--blue-600); background: var(--blue-600); box-shadow: inset 0 0 0 3px #fff; }
.plate:has(:focus-visible), .choice:has(:focus-visible) { outline: 3px solid rgba(60, 138, 216, 0.55); outline-offset: 2px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { display: flex; align-items: center; min-height: 54px; padding: 10px 14px 10px 46px; }
.choice__text { line-height: 1.3; }

.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.check__input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.check__box { position: relative; width: 24px; height: 24px; margin-top: 1px; background: #fff; border: 1.5px solid var(--gray-300); border-radius: 5px; transition: background-color 0.2s, border-color 0.2s; }
.check__box::after { content: ""; position: absolute; left: 7px; top: 2px; width: 6px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; rotate: 40deg; opacity: 0; }
.check__input:checked + .check__box { background: var(--blue-600); border-color: var(--blue-600); }
.check__input:checked + .check__box::after { opacity: 1; }
.check__input:focus-visible + .check__box { outline: 3px solid rgba(60, 138, 216, 0.55); outline-offset: 2px; }
.check a { color: var(--blue-700); text-underline-offset: 0.2em; }
.field.is-invalid .check__box { border-color: var(--madder); box-shadow: inset 0 0 0 1px var(--madder); }

.form__hint { margin-top: -6px; font-size: 0.9375rem; text-align: center; color: var(--ink-2); }
/* Resumen del paso 1 dentro del paso 2, con el botón Editar */
.recap { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; font-size: 0.8125rem; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 8px; }
.recap__list { display: flex; flex-wrap: wrap; gap: 1px 14px; margin: 0; font-size: 0.8125rem; line-height: 1.35; }
.recap__list > div { display: flex; gap: 5px; }
.recap__list dt { color: var(--ink-2); }
.recap__list dd { margin: 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.recap__edit { flex: none; padding: 3px 11px; font: 700 0.8125rem var(--font-head); color: var(--blue-600); text-decoration: none; background: #fff; border: 1.5px solid var(--blue-600); border-radius: 6px; transition: background-color 0.2s, color 0.2s; }
.recap__edit:hover { color: #fff; background: var(--blue-600); }

/* Paso 2 compacto: todo cabe en una pantalla, también en móvil y tablet */
.form--compact { gap: 10px; }
.form--compact .field__label { margin-bottom: 3px; font-size: 0.8125rem; }
.form--compact .input { min-height: 42px; padding: 7px 11px; font-size: 0.9375rem; }
.form--compact .input-wrap__prefix { padding-inline: 11px; }
.form--compact .field__msg { font-size: 0.8125rem; }
.form--compact .field__msg:not(:empty) { margin-top: 3px; }
.form--compact .input--area { min-height: 58px; resize: none; line-height: 1.4; }
.form--compact .btn { min-height: 48px; margin-top: 2px; }
.form--compact select.input { padding-right: 32px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; background-position: right 11px center; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row > .field { min-width: 0; }
.row--name { grid-template-columns: minmax(0, 1fr) 84px; }
.row--region { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.input--num { text-align: center; font-variant-numeric: tabular-nums; }
.lead-card[data-paso="2"] { padding-block: 18px; }
.lead-card[data-paso="2"] .lead-card__head { margin-bottom: 10px; }
.lead-card[data-paso="2"] .lead-card__title { font-size: 1.0625rem; }
.lead-card[data-paso="2"] .stepper { margin-top: 6px; font-size: 0.8125rem; }
.lead-card[data-paso="2"] .stepper__dot { width: 24px; height: 24px; font-size: 0.75rem; }
.field__opt { font-weight: 400; color: var(--ink-2); }
.input:disabled { color: var(--ink-2); background: var(--gray-100); cursor: not-allowed; }
.input[type="number"] { appearance: textfield; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.alert { margin: 0 0 18px; padding: 11px 14px; font-weight: 600; color: var(--madder); background: #fdecea; border: 1px solid var(--madder); border-radius: 6px; }

.done { display: grid; justify-items: center; gap: 10px; padding: 8px 0; text-align: center; }
.done__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.done__text { max-width: 44ch; color: var(--ink-2); }
.done__text strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.done__again { margin-top: 6px; padding: 9px 18px; font: 700 0.9375rem var(--font-head); color: var(--blue-600); text-decoration: none; border: 2px solid var(--blue-600); border-radius: 8px; transition: background-color 0.2s, color 0.2s; }
.done__again:hover { color: #fff; background: var(--blue-600); }
.done__check { width: 88px; height: 88px; fill: none; stroke: var(--blue-600); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done__check circle { fill: var(--blue-50); }
.done:not([hidden]) .done__check circle { stroke-dasharray: 176; stroke-dashoffset: 176; animation: draw 0.9s var(--ease) 0.05s forwards; }
.done:not([hidden]) .done__check path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw 0.6s var(--ease) 0.6s forwards; }

/* ── Carrusel de Isapres ──────────────────────────────── */
.logos { padding: 28px 0 44px; background: #fff; }
.logos__head { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 20px; }
.logos__title { margin: 0; font: 700 1.125rem var(--font-head); color: var(--ink); }
.logos__pause { padding: 6px 14px; font: 600 0.8125rem var(--font-head); color: var(--ink-2); background: #fff; border: 1px solid var(--gray-300); border-radius: 999px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.logos__pause:hover { color: var(--blue-700); border-color: var(--blue-500); }
.logos.is-paused .logos__track, .logos:focus-within .logos__track { animation-play-state: paused; }
.logos__viewport { 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; margin: 0; padding: 0; list-style: none; animation: marquee 42s linear infinite; }
.logos__viewport:hover .logos__track { animation-play-state: paused; }
.logos__item { display: grid; place-items: center; min-width: 190px; padding: 6px 34px; }
.logos__word { font: 800 1.45rem var(--font-head); letter-spacing: -0.02em; color: #8a929b; white-space: nowrap; transition: color 0.25s; }
.logos__item:hover .logos__word { color: var(--blue-700); }
.logos__img { width: auto; height: 40px; filter: grayscale(1); opacity: 0.75; transition: filter 0.25s, opacity 0.25s; }
.logos__item:hover .logos__img { filter: none; opacity: 1; }

/* ── Caja «¿Sabías que?» ──────────────────────────────── */
.saber { padding: 24px 0 clamp(64px, 8vw, 100px); }
.saber__grid { display: flex; max-width: 900px; margin-inline: auto; }
.saber__tile { flex: 0 0 250px; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 28px; text-align: center; font: 700 1.125rem var(--font-head); color: #fff; background: var(--blue-600); border-radius: 10px 0 0 10px; }
.saber__tile svg { width: 96px; height: 96px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.saber__seal { fill: var(--blue-700); }
.saber__tick { stroke-width: 3.4; }
.saber__box { flex: 1; padding: 28px 34px; color: #fff; background: var(--gray-600); border-radius: 0 10px 10px 0; }
.saber__box h2 { margin-bottom: 12px; font-size: 1.0625rem; letter-spacing: 0.06em; text-transform: uppercase; }
.saber__box ul { display: grid; gap: 10px; margin: 0; padding-left: 1.1rem; font-size: 1rem; }
.saber__box li::marker { color: #d8e7f6; }
.saber__cta { margin-top: 32px; text-align: center; }
.saber__grid--stack { flex-direction: column; max-width: none; }
.saber__grid--stack .saber__tile { flex: none; border-radius: 10px 10px 0 0; }
.saber__grid--stack .saber__box { border-radius: 0 0 10px 10px; }

/* Recuadro azul de la página de una Isapre: el logo de la Isapre sobre una placa blanca.
   Al pasar el mouse la placa se levanta, se inclina y proyecta una sombra azul profunda. */
.saber__tile--marcas { gap: 18px; }
.marcas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.marca { display: inline-flex; align-items: center; min-height: 68px; padding: 14px 24px; background: #fff; border-radius: 14px; box-shadow: 0 4px 10px -4px rgba(9, 38, 84, 0.4); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.marca:hover { transform: translateY(-8px) rotate(-2deg) scale(1.05); box-shadow: 0 24px 30px -12px rgba(9, 38, 84, 0.9), 0 0 0 4px rgba(220, 235, 248, 0.35); }
.marca__logo { display: block; width: auto; max-width: 100%; height: 34px; }
.marca__nombre { font: 700 1.125rem var(--font-head); color: var(--ink); }
/* Vuelta 3D del icono del logo del encabezado al pasar el mouse */
@keyframes logoVuelta { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

/* ── Botón flotante de WhatsApp (todas las páginas) ───────
   Círculo verde fijo abajo a la derecha; al pasar el mouse o enfocarlo se despliega una etiqueta. Verde #1da851: el
   blanco del ícono llega a 3:1 de contraste; la etiqueta va en blanco con texto oscuro para leerse bien. */
.wa { --wa: #1da851; --wa-dark: #168a41; position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wa__btn { position: relative; display: grid; place-items: center; flex: none; width: 60px; height: 60px; color: #fff; background: var(--wa); border-radius: 50%; box-shadow: 0 8px 22px -6px rgba(22, 50, 79, 0.55), 0 2px 6px rgba(22, 50, 79, 0.25); transition: transform 0.35s var(--ease), background-color 0.25s, box-shadow 0.35s var(--ease); }
.wa__btn svg { width: 32px; height: 32px; fill: currentColor; }
.wa__btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--wa); animation: waOnda 3.6s ease-out infinite; }
.wa__label { padding: 9px 14px; font: 700 0.875rem var(--font-head); color: var(--ink); white-space: nowrap; background: #fff; border: 1px solid var(--gray-200); border-radius: 999px; box-shadow: 0 6px 18px -8px rgba(22, 50, 79, 0.5); opacity: 0; transform: translateX(12px); pointer-events: none; transition: opacity 0.25s, transform 0.35s var(--ease); }
.wa:hover .wa__label, .wa:focus-visible .wa__label { opacity: 1; transform: none; }
.wa:hover .wa__btn, .wa:focus-visible .wa__btn { background: var(--wa-dark); transform: scale(1.08) rotate(-6deg); }
.wa:focus-visible { outline: none; }
.wa:focus-visible .wa__btn { outline: 3px solid var(--ink); outline-offset: 3px; }
@keyframes waOnda { 0% { transform: scale(1); opacity: 0.45; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
@media (max-width: 640px) {
  .wa { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .wa__label { display: none; }
  .wa__btn { width: 52px; height: 52px; }
  .wa__btn svg { width: 29px; height: 29px; }
}
@media print { .wa { display: none; } }

/* ── Planes de Isapre (debajo del carrusel) ───────────────
   Cada calugas flota despacio (propiedad `translate`) y, al pasar el mouse o enfocar, se levanta con `transform`
   y un fondo de color sube desde abajo. Las dos propiedades no se pisan. */
.planes { position: relative; padding: clamp(56px, 7vw, 92px) 0; background: var(--blue-50); }
.planes--ola { padding-top: clamp(84px, 10vw, 140px); } /* deja espacio a la ola que sube sobre la sección anterior */
.planes__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 56px; margin-bottom: clamp(28px, 4vw, 44px); }
.planes__head .section-title { max-width: 22ch; margin: 0; }
.planes__perfil { max-width: 42ch; color: var(--ink-2); }
.planes__perfil strong { color: var(--ink); }
.planes__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 12px 0 0; list-style: none; }
.planes__cell:nth-child(2) { transition-delay: 0.11s; }
.planes__cell:nth-child(3) { transition-delay: 0.22s; }
.planes__cell:nth-child(4) { transition-delay: 0.33s; }
.planes__note { margin-top: 28px; max-width: 78ch; font-size: 0.9375rem; color: var(--ink-2); }

.plan {
  --tono: var(--blue-600);
  --tilt: -1.2deg;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  padding: 26px 22px 22px;
  color: var(--ink); background: #fff;
  border: 1px solid var(--gray-200); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(22, 50, 79, 0.06);
  animation: planFloat 6.5s ease-in-out infinite;
  transition: transform 0.45s var(--ease), color 0.3s, border-color 0.3s, box-shadow 0.45s var(--ease);
}
/* Cada calugas flota con su propio desfase y tiene su propio color de fondo al pasar el mouse */
.plan[data-tono="2"] { --tono: var(--gray-600); --tilt: 1.2deg; animation-delay: -1.6s; }
.plan[data-tono="3"] { --tono: var(--blue-700); animation-delay: -3.2s; }
.plan[data-tono="4"] { --tono: var(--ink); --tilt: 1.2deg; animation-delay: -4.8s; }
.plan::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tono); transform: translateY(101%); transition: transform 0.55s var(--ease); }
.plan::after { content: ""; position: absolute; top: 0; left: 22px; width: 44px; height: 4px; background: var(--tono); border-radius: 0 0 4px 4px; transition: width 0.45s var(--ease), background-color 0.3s; }
@keyframes planFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.plan:hover, .plan:focus-within, .plan:active { animation-play-state: paused; color: #fff; border-color: var(--tono); transform: translateY(-14px) rotate(var(--tilt)) scale(1.03); box-shadow: 0 26px 44px -16px rgba(20, 80, 143, 0.6); }
.plan:hover::before, .plan:focus-within::before, .plan:active::before { transform: translateY(0); }
.plan:hover::after, .plan:focus-within::after, .plan:active::after { width: calc(100% - 44px); background: rgba(255, 255, 255, 0.85); }

.plan__isapre { margin-top: 6px; font: 700 0.8125rem var(--font-head); letter-spacing: 0.09em; text-transform: uppercase; color: var(--tono); transition: color 0.3s; }
.plan__name { min-height: 2.5em; margin-top: 6px; font-size: 1.125rem; line-height: 1.25; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin: 20px 0 4px; }
.plan__uf { margin: 0 0 16px; font-size: 0.8125rem; color: var(--gray-600); transition: color 0.3s; }
.plan:hover .plan__uf, .plan:focus-within .plan__uf, .plan:active .plan__uf { color: rgba(255, 255, 255, 0.82); }
.plan__amount { font: 800 clamp(1.75rem, 1.4rem + 0.9vw, 2.15rem)/1 var(--font-head); letter-spacing: -0.02em; transform-origin: left bottom; transition: transform 0.45s var(--ease); }
.plan__per { font-size: 0.875rem; color: var(--gray-600); transition: color 0.3s; }
.plan__per { transition: color 0.3s, transform 0.45s var(--ease); }
.plan:hover .plan__amount, .plan:focus-within .plan__amount, .plan:active .plan__amount { transform: scale(1.06); }
.plan:hover .plan__per, .plan:focus-within .plan__per, .plan:active .plan__per { transform: translateX(10px); }

.plan__cov { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; padding: 14px 0; border-block: 1px solid var(--gray-200); transition: border-color 0.3s; }
.plan__cov dt { font-size: 0.75rem; line-height: 1.25; color: var(--gray-600); transition: color 0.3s; }
.plan__cov dd { margin: 2px 0 0; font: 800 1.3rem/1.1 var(--font-head); }
.plan__facts { display: grid; gap: 10px; margin: 16px 0 22px; padding: 0; list-style: none; font-size: 0.9375rem; }
.plan__facts li { display: grid; gap: 1px; }
.plan__facts span { font-size: 0.75rem; color: var(--gray-600); transition: color 0.3s; }
.plan__facts strong { font-weight: 700; line-height: 1.3; }

.plan__cta { position: static; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--gray-200); font: 700 0.9375rem var(--font-head); color: var(--blue-700); text-decoration: none; transition: color 0.3s, border-color 0.3s; }
.plan__cta::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* toda la calugas es clicable */
.plan__cta svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease); }
.plan:hover .plan__cta svg, .plan:focus-within .plan__cta svg { transform: translateX(6px); }
.plan__cta:focus-visible { outline-offset: -2px; outline-color: var(--blue-500); }

.plan:hover .plan__isapre, .plan:focus-within .plan__isapre, .plan:active .plan__isapre,
.plan:hover .plan__cta, .plan:focus-within .plan__cta, .plan:active .plan__cta { color: #fff; }
.plan:hover .plan__per, .plan:hover .plan__cov dt, .plan:hover .plan__facts span,
.plan:focus-within .plan__per, .plan:focus-within .plan__cov dt, .plan:focus-within .plan__facts span,
.plan:active .plan__per, .plan:active .plan__cov dt, .plan:active .plan__facts span { color: rgba(255, 255, 255, 0.82); }
.plan:hover .plan__cov, .plan:hover .plan__cta, .plan:focus-within .plan__cov, .plan:focus-within .plan__cta,
.plan:active .plan__cov, .plan:active .plan__cta { border-color: rgba(255, 255, 255, 0.3); }
.plan:focus-within .plan__cta:focus-visible { outline-color: #fff; }

/* Página de una Isapre: tres calugas, etiqueta de modalidad y enlace extra */
.planes__grid.planes__grid--tres { grid-template-columns: repeat(3, 1fr); }
.plan__mod { display: inline-block; margin-left: 6px; padding: 2px 8px; font: 700 0.6875rem var(--font-head); letter-spacing: 0.04em; color: var(--blue-700); background: var(--blue-100); border-radius: 999px; transition: color 0.3s, background-color 0.3s; }
.plan:hover .plan__mod, .plan:focus-within .plan__mod, .plan:active .plan__mod { color: var(--ink); background: #fff; }
.planes__more { margin-top: 14px; }
.logos__link { display: block; text-decoration: none; }
.logos__link:focus-visible { border-radius: 6px; }

/* Hub /isapres: una tarjeta por Isapre. Cada una cambia a un color propio al pasar el mouse */
.hub { padding: clamp(48px, 6vw, 80px) 0 clamp(72px, 9vw, 130px); background: #fff; }
.hub .section-title { margin-bottom: 28px; }
.isapres-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.isapres-hub li { --tono: var(--blue-600); }
.isapres-hub li:nth-child(4n + 2) { --tono: var(--gray-600); }
.isapres-hub li:nth-child(4n + 3) { --tono: var(--blue-700); }
.isapres-hub li:nth-child(4n) { --tono: var(--ink); }
.hub-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px 22px 20px; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; transition: transform 0.4s var(--ease), color 0.3s, border-color 0.3s, box-shadow 0.4s var(--ease); }
.hub-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tono); transform: translateY(101%); transition: transform 0.5s var(--ease); }
.hub-card:hover, .hub-card:focus-visible { color: #fff; border-color: var(--tono); transform: translateY(-8px); box-shadow: 0 22px 38px -16px rgba(20, 80, 143, 0.55); }
.hub-card:hover::before, .hub-card:focus-visible::before { transform: translateY(0); }
.hub-card:focus-visible { outline-offset: 4px; }
.hub-card__name { font: 700 1.25rem var(--font-head); }
.hub-card__price { font: 800 1.75rem/1.1 var(--font-head); letter-spacing: -0.02em; }
.hub-card__price small { display: block; margin-top: 2px; font: 400 0.8125rem var(--font-body); letter-spacing: 0; color: var(--gray-600); transition: color 0.3s; }
.hub-card__meta { margin-top: 4px; font-size: 0.875rem; color: var(--ink-2); transition: color 0.3s; }
.hub-card__go { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; font: 700 0.9375rem var(--font-head); color: var(--blue-700); transition: color 0.3s; }
.hub-card__go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease); }
.hub-card:hover .hub-card__go svg, .hub-card:focus-visible .hub-card__go svg { transform: translateX(6px); }
.hub-card:hover .hub-card__go, .hub-card:focus-visible .hub-card__go { color: #fff; }
.hub-card:hover .hub-card__price small, .hub-card:hover .hub-card__meta, .hub-card:focus-visible .hub-card__price small, .hub-card:focus-visible .hub-card__meta { color: rgba(255, 255, 255, 0.85); }

/* «Compara con otras Isapres» */
.otras { padding: clamp(40px, 5vw, 64px) 0 clamp(96px, 9vw, 130px); background: #fff; } /* el margen inferior deja espacio a la ola de la sección siguiente */
.otras .section-title { margin-bottom: 24px; }
/* Una sola fila con el logo de cada Isapre; si la pantalla es angosta, la fila se desliza hacia el lado en vez de partirse en dos líneas. */
.isapres-links { display: flex; flex-wrap: nowrap; gap: 12px; margin: 0; padding: 8px 2px 14px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.isapres-links > li { flex: 1 1 0; min-width: 168px; scroll-snap-align: start; }
.isapre-link { display: grid; justify-items: center; align-content: center; gap: 10px; height: 100%; padding: 16px 12px 14px; text-align: center; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--blue-100); border-radius: 10px; transition: transform 0.3s var(--ease), border-color 0.25s, box-shadow 0.3s var(--ease); }
.isapre-link__logo { display: block; width: auto; max-width: 100%; height: 26px; object-fit: contain; }
.isapre-link strong { font: 700 1rem var(--font-head); }
.isapre-link span { font-size: 0.8125rem; line-height: 1.3; color: var(--ink-2); }
.isapre-link:hover, .isapre-link:focus-visible { border-color: var(--blue-500); transform: translateY(-4px); box-shadow: 0 14px 26px -14px rgba(20, 80, 143, 0.55); }
.isapre-link:hover span, .isapre-link:focus-visible span { color: var(--blue-700); }

/* «[Isapre] vs [Isapre]»: tabla comparativa de precio y cobertura */
.comparar { padding: clamp(40px, 5vw, 64px) 0; background: #fff; }
.comparar__resp { max-width: 74ch; margin: 0 0 24px; color: var(--ink-2); }
.comparar__tabla-wrap { overflow-x: auto; margin-bottom: 14px; border: 1px solid var(--gray-200); border-radius: 10px; }
.tabla-comp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9375rem; }
.tabla-comp th, .tabla-comp td { padding: 12px 16px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--gray-200); }
.tabla-comp thead th { font: 700 0.8125rem var(--font-head); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--blue-600); }
.tabla-comp thead th:first-child { border-radius: 10px 0 0 0; }
.tabla-comp thead th:last-child { border-radius: 0 10px 0 0; }
.tabla-comp tbody th[scope="row"] { font: 700 1rem var(--font-head); color: var(--blue-700); }
.tabla-comp tbody tr:last-child th, .tabla-comp tbody tr:last-child td { border-bottom: 0; }
.tabla-comp tbody tr:hover { background: var(--blue-50); }
.comparar__nota { max-width: 74ch; margin: 0 0 20px; font-size: 0.875rem; color: var(--gray-600); }
.comparar__mas { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }

/* ── Secciones ────────────────────────────────────────── */
.section-title { max-width: 26ch; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.18; text-wrap: balance; color: var(--ink); }
.section-title--left { margin-inline: 0; text-align: left; }

.caminos { position: relative; padding: clamp(96px, 11vw, 150px) 0 clamp(56px, 7vw, 96px); background: var(--blue-100); }
.caminos__grid { display: grid; grid-template-columns: 1fr 1fr; }
.camino { padding-right: clamp(20px, 4vw, 56px); }
.camino + .camino { padding-right: 0; padding-left: clamp(20px, 4vw, 56px); border-left: 1px solid rgba(20, 80, 143, 0.3); }
.camino__title { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); line-height: 1.2; color: var(--blue-700); }
.camino__intro { margin-top: 12px; max-width: 46ch; color: var(--ink-2); }
.camino__list { margin: 22px 0 22px; padding: 0; }
.camino__list > div { padding: 15px 0; border-top: 1px solid rgba(20, 80, 143, 0.25); }
.camino__list dt { margin-bottom: 3px; font: 700 1.0625rem var(--font-head); }
.camino__list dd { max-width: 50ch; margin: 0; color: var(--ink-2); }

.pasos { position: relative; padding: clamp(72px, 9vw, 120px) 0; background: #fff; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.timeline__step { position: relative; text-align: center; }
.timeline__num { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 18px; font: 800 1.5rem var(--font-head); color: #fff; background: var(--blue-600); border: 5px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--blue-600); }
.timeline__step::before { content: ""; position: absolute; top: 29px; left: 50%; width: calc(100% + 28px); height: 2px; background: var(--gray-200); }
.timeline__step::after { content: ""; position: absolute; top: 29px; left: 50%; width: calc(100% + 28px); height: 2px; background: var(--blue-600); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) 0.25s; }
.timeline__step.is-in::after { transform: scaleX(1); }
.timeline__step:last-child::before, .timeline__step:last-child::after { display: none; }
.timeline__step h3 { margin-bottom: 8px; font-size: 1.1875rem; line-height: 1.25; }
.timeline__step p { max-width: 30ch; margin-inline: auto; color: var(--ink-2); font-size: 1rem; }

/* ── Blog ─────────────────────────────────────────────── */
.blog-teaser { padding: clamp(56px, 7vw, 96px) 0; background: var(--gray-100); }
.blog-teaser--related { background: #fff; }
.blog-teaser__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.blog-teaser__head .section-title { margin-bottom: 0; }
.blog-teaser__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.feature__media { display: block; overflow: hidden; border-radius: 12px; }
.feature__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.7s var(--ease); }
.feature:hover .feature__media img, .row-post:hover img { transform: scale(1.04); }
.feature__body { margin-top: 20px; }
.feature__body h2, .feature__body h3 { margin: 0 0 8px; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); line-height: 1.22; }
.feature__body .meta { margin-bottom: 10px; }
.feature__body h2 a, .feature__body h3 a, .row-post h2 a, .row-post h3 a { color: var(--ink); text-decoration: none; }
.feature__body h2 a:hover, .feature__body h3 a:hover, .row-post h2 a:hover, .row-post h3 a:hover { color: var(--blue-600); }
.feature__body p:not(.meta) { color: var(--ink-2); }
.feature--wide { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(40px, 5vw, 72px); }
.feature--wide .feature__body { margin-top: 0; }
.meta { margin-top: 4px; font: 600 0.875rem var(--font-body); color: var(--ink-2); }
.blog-teaser__list, .post-list { display: grid; gap: 22px; }
.row-post { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; overflow: hidden; }
.row-post img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; transition: transform 0.7s var(--ease); }
.row-post > a, .row-post > img { overflow: hidden; border-radius: 8px; }
.row-post h2, .row-post h3 { font-size: 1.1875rem; line-height: 1.28; }
.row-post p:not(.meta) { margin-top: 6px; color: var(--ink-2); font-size: 1rem; }
.row-post--lg { grid-template-columns: 240px 1fr; }
.blog-index { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.post-list--stack { grid-template-columns: 1fr; gap: 34px; }
.post-list--stack .row-post > div { max-width: 64ch; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); padding-block: clamp(28px, 4vw, 48px) clamp(56px, 7vw, 96px); align-items: start; }
.article__img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 32px; border-radius: 12px; }
.prose { max-width: 68ch; font-size: 1.125rem; line-height: 1.75; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { margin: 2em 0 0.6em; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); line-height: 1.25; color: var(--blue-700); }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.article__foot { max-width: 68ch; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--gray-200); font-size: 0.9375rem; color: var(--ink-2); }
.article__foot p + p { margin-top: 8px; }
.article__foot a { font-weight: 700; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--blue-600); font-weight: 700; }
.prose a { font-weight: 700; text-underline-offset: 0.2em; }
.prose em { color: var(--ink-2); }
.prose table { width: 100%; margin: 0 0 1.3em; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.prose thead th { font: 700 0.75rem var(--font-head); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--blue-600); }
.prose tbody th[scope="row"] { font-weight: 700; color: var(--blue-700); }
.side-cta { position: sticky; top: calc(var(--head-h) + 24px); padding: 28px; color: #fff; background: var(--blue-600); border-radius: 12px; }
.side-cta h2 { margin-bottom: 10px; font-size: 1.3rem; line-height: 1.25; }
.side-cta p { margin-bottom: 20px; color: #fff; }

.cotizar { padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); }
.cotizar__grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.cotizar__aside { max-width: 520px; }

/* Página /isapres: logos a la izquierda (5 en una fila y 2 centrados en la siguiente) y el formulario a la derecha */
.cotizar__grid--form-derecha { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(28px, 4vw, 44px); align-items: center; }
.cotizar__grid--form-derecha .cotizar__form { align-self: start; }
.logos-grid { --gap: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.logos-grid > li { flex: 0 0 calc((100% - 4 * var(--gap)) / 5); min-width: 0; }
.logos-grid__item { display: grid; place-items: center; min-height: 72px; padding: 12px 6px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--blue-100); border-radius: 12px; box-shadow: 0 1px 2px rgba(22, 50, 79, 0.06); transition: transform 0.3s var(--ease), border-color 0.25s, box-shadow 0.3s var(--ease); }
.logos-grid__item img { display: block; width: 100%; height: auto; max-height: 34px; object-fit: contain; }
.logos-grid__item strong { font: 700 0.9375rem var(--font-head); text-align: center; }
.logos-grid__item:hover, .logos-grid__item:focus-visible { transform: translateY(-4px); border-color: var(--blue-500); box-shadow: 0 14px 26px -14px rgba(20, 80, 143, 0.55); }
.texto { padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 7vw, 96px); background: var(--gray-100); }
.texto .section-title { margin-bottom: 24px; }
.texto h3 { margin: 1.5em 0 0.4em; font-size: 1.2rem; color: var(--blue-700); }
.texto p { margin-bottom: 1em; color: var(--ink-2); }
.texto a { font-weight: 700; }
.aside-photo { display: block; width: 100%; height: auto; margin-top: 24px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.legal { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(56px, 7vw, 96px); }
.error-page { padding-block: 120px; text-align: center; }
.error-page .btn { margin-top: 12px; }

/* ── Preguntas ────────────────────────────────────────── */
.faq { padding: clamp(64px, 8vw, 110px) 0; background: #fff; }
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq__intro p { margin-bottom: 22px; color: var(--ink-2); }
.faq__intro .section-title { margin-bottom: 14px; }
.faq__item { border-bottom: 1px solid var(--gray-200); }
.faq__item:first-child { border-top: 1px solid var(--gray-200); }
.faq__q { position: relative; display: block; min-height: 60px; padding: 18px 44px 18px 0; cursor: pointer; list-style: none; font: 600 1.0625rem/1.4 var(--font-head); transition: color 0.2s; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--blue-600); }
.faq__q::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border: solid var(--blue-600); border-width: 0 2.5px 2.5px 0; translate: 0 -70%; rotate: 45deg; transition: rotate 0.3s var(--ease), translate 0.3s var(--ease); }
.faq__item[open] .faq__q { color: var(--blue-600); }
.faq__item[open] .faq__q::after { translate: 0 -25%; rotate: 225deg; }
.faq__a { padding-bottom: 20px; color: var(--ink-2); }
.faq__item[open] .faq__a { animation: fadeDown 0.4s var(--ease); }

/* ── Cierre y pie ─────────────────────────────────────── */
.cta-band { padding: clamp(64px, 8vw, 104px) 0 clamp(120px, 13vw, 190px); text-align: center; color: #fff; background: var(--blue-600); }
.cta-band__title { max-width: 22ch; margin-inline: auto; font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.6rem); line-height: 1.18; text-wrap: balance; }
.cta-band__text { max-width: 50ch; margin: 14px auto 30px; font-size: 1.1875rem; color: #fff; }

.site-foot { position: relative; color: #fff; background: var(--blue-700); }
.site-foot__body { padding: 12px 0 28px; }
.site-foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; max-width: 1100px; padding: 36px clamp(20px, 4vw, 44px); background: var(--gray-600); border-radius: 10px; }
.site-foot__grid > * { min-width: 0; }
.foot-box p { margin-top: 12px; font-size: 0.9688rem; color: #f1f4f7; }
.foot-box__title { margin-bottom: 12px; font: 700 0.875rem var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; }
.foot-box ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.foot-box a { color: #fff; text-underline-offset: 0.2em; }
.foot-box a:hover { color: var(--blue-100); }
.site-foot__legal { margin-top: 24px; font-size: 0.875rem; color: #cfe0f2; text-align: center; }

/* ── Movimiento ───────────────────────────────────────── */
@keyframes lineUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes marquee { to { transform: translateX(-33.3333%); } }
@keyframes sheen { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.hero__line { animation: lineUp 0.9s var(--ease) both; }
.hero__line--em { animation-delay: 0.15s; }
.hero__lead { animation: lineUp 0.9s var(--ease) 0.3s both; }
.hero__points li { animation: lineUp 0.8s var(--ease) both; }
.hero__points li:nth-child(1) { animation-delay: 0.45s; }
.hero__points li:nth-child(2) { animation-delay: 0.55s; }
.hero__points li:nth-child(3) { animation-delay: 0.65s; }
.hero__form { animation: cardIn 1s var(--ease) 0.25s both; }
.banner__inner > * { animation: lineUp 0.8s var(--ease) both; }
.banner__inner > *:nth-child(2) { animation-delay: 0.1s; }
.banner__inner > *:nth-child(3) { animation-delay: 0.2s; }
.banner__inner > *:nth-child(4) { animation-delay: 0.3s; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.caminos__grid .camino:nth-child(2) { transition-delay: 0.14s; }
.timeline__step:nth-child(2) { transition-delay: 0.1s; }
.timeline__step:nth-child(3) { transition-delay: 0.2s; }
.timeline__step:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marca:hover { transform: none; }
  .plan:hover, .plan:focus-within, .plan:active, .hub-card:hover, .hub-card:focus-visible, .isapre-link:hover, .isapre-link:focus-visible { transform: none; }
  .hub-card::before { transform: none; opacity: 0; }
  .hub-card:hover::before, .hub-card:focus-visible::before { opacity: 1; }
  .plan::before { transform: none; opacity: 0; }
  .plan:hover::before, .plan:focus-within::before, .plan:active::before { opacity: 1; }
  .logos__pause { display: none; }
  .logos__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .logos__track { width: auto; flex-wrap: wrap; justify-content: center; }
  .logos__item[aria-hidden="true"] { display: none; }
  .timeline__step::after { transform: scaleX(1); }
  .done__check circle, .done__check path { stroke-dashoffset: 0 !important; }
}

/* ── Adaptación ───────────────────────────────────────── */
@media (max-width: 1180px) {
  .planes__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 980px) {
  .planes__grid.planes__grid--tres { grid-template-columns: repeat(2, 1fr); }
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .planes__grid, .planes__grid.planes__grid--tres { grid-template-columns: 1fr; }
  .plan__name { min-height: 0; }
}
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__form { max-width: 560px; }
  .cotizar__grid, .faq__grid, .blog-teaser__grid, .feature--wide, .article-layout { grid-template-columns: 1fr; }
  .cotizar__aside { max-width: 560px; }
  .cotizar__grid--form-derecha .cotizar__form { order: -1; max-width: 560px; } /* en pantallas angostas el formulario va primero */
  .cotizar__logos { max-width: 560px; }
  .side-cta { position: static; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline__step::before, .timeline__step::after { display: none; }
}
@media (max-width: 640px) {
  .logos-grid > li { flex-basis: calc((100% - 2 * var(--gap)) / 3); } /* 3 por fila en teléfonos, para que los logos se lean */
}
@media (max-width: 900px) {
  .site-head__bar { gap: 12px; }
  .site-head__cta-m { display: inline-flex; }
  .site-head__cta { display: none; }
  .nav-toggle { display: inline-block; }
  .js .site-head__menu { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px clamp(16px, 4vw, 32px) 22px; background: #fff; border-bottom: 1px solid var(--gray-200); box-shadow: 0 24px 30px -22px rgba(20, 50, 90, 0.5); }
  .js .site-head.is-open .site-head__menu { display: flex; }
  .js .site-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav__link { padding: 14px 4px; border-bottom: 1px solid var(--gray-200); }
  .js .site-nav__link::after { display: none; }
  .site-head__menu .btn { margin-top: 10px; }
  .site-head { --head-h: 68px; }
  .site-foot__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero__points, .hero__lead { display: none; }
  .hero { padding-top: 20px; }
  .hero__title { font-size: 1.55rem; line-height: 1.18; }
  .hero__grid { gap: 20px; }
  .lead-card { padding: 20px; }
  .lead-card__head { margin-bottom: 14px; }
  .form { gap: 14px; }
  .banner--compact .banner__lead { display: none; }
  .banner--compact { padding-bottom: 84px; }
  .grid-2, .choices { grid-template-columns: 1fr; }
  .grid-2 { gap: 14px; }
  .saber__grid { flex-direction: column; }
  .saber__tile { flex: none; border-radius: 10px 10px 0 0; }
  .saber__box { border-radius: 0 0 10px 10px; padding: 24px; }
  .caminos__grid { grid-template-columns: 1fr; }
  .camino { padding-right: 0; }
  .camino + .camino { margin-top: 44px; padding-top: 44px; padding-left: 0; border-left: 0; border-top: 1px solid rgba(20, 80, 143, 0.3); }
  /* Línea de tiempo vertical: la línea que une los pasos se conserva en móvil */
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline__step { padding: 0 0 34px 78px; text-align: left; }
  .timeline__num { position: absolute; left: 0; top: 0; margin: 0; }
  .timeline__step p { margin-inline: 0; }
  .timeline__step::before, .timeline__step::after { display: block; top: 60px; left: 29px; width: 2px; height: calc(100% - 60px); transform-origin: top; }
  .timeline__step::after { transform: scaleY(0); }
  .timeline__step.is-in::after { transform: scaleY(1); }
  .timeline__step:last-child::before, .timeline__step:last-child::after { display: none; }
  .row-post--lg { grid-template-columns: 120px 1fr; }
  .logos__item { min-width: 150px; padding-inline: 22px; }
}
@media (max-width: 460px) {
  .plates { gap: 10px; }
  .plate { min-height: 60px; padding: 10px 10px 10px 40px; }
  .plate__mark { left: 12px; }
  .plate__sub { display: none; }
  .brand { --logo-h: 30px; }
}
