/* =========================================================
   KUNAN SOL — estilos
   1. Tokens  2. Base  3. Layout  4. Componentes  5. Secciones  6. Páginas  7. Responsive
   ========================================================= */

/* 1. Tokens ------------------------------------------------ */
:root {
  --ground: #FBF9F3;
  --surface: #FFFFFF;
  --surface-2: #F3F0E7;
  --ink: #16211F;
  --muted: #5E6A68;
  --line: #E7E1D3;
  --teal: #32BAB6;
  --teal-deep: #0E8F8B;
  --teal-ink: #0A5F5D;
  --teal-tint: #E2F5F4;
  --yellow: #FBC23C;
  --yellow-deep: #B57A05;
  --yellow-tint: #FDF1D2;
  --on-teal: #FFFFFF;
  --on-yellow: #3D2C04;
  --whatsapp: #25D366;
  --danger: #B42318;
  --shadow: 0 1px 2px rgba(22, 33, 31, .05), 0 14px 34px -14px rgba(22, 33, 31, .22);
  --shadow-lg: 0 2px 4px rgba(22, 33, 31, .05), 0 30px 60px -24px rgba(22, 33, 31, .35);
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1440px;
  --gutter: clamp(16px, 5vw, 72px);
  --band-y: clamp(56px, 8vw, 104px);
  --header-h: 72px;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Figtree", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0F1614; --surface: #17201E; --surface-2: #141D1B;
    --ink: #EEF3F1; --muted: #9CABA8; --line: #2C3A37;
    --teal: #45CFCB; --teal-deep: #45CFCB; --teal-ink: #BBEDEB; --teal-tint: #123230;
    --yellow: #FBC93C; --yellow-deep: #FBC93C; --yellow-tint: #2A2411;
    --on-teal: #052322; --danger: #F97066;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 42px -14px rgba(0, 0, 0, .65);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 30px 60px -24px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0F1614; --surface: #17201E; --surface-2: #141D1B;
  --ink: #EEF3F1; --muted: #9CABA8; --line: #2C3A37;
  --teal: #45CFCB; --teal-deep: #45CFCB; --teal-ink: #BBEDEB; --teal-tint: #123230;
  --yellow: #FBC93C; --yellow-deep: #FBC93C; --yellow-tint: #2A2411;
  --on-teal: #052322; --danger: #F97066;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 42px -14px rgba(0, 0, 0, .65);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 30px 60px -24px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

/* 2. Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.tnum { font-variant-numeric: tabular-nums; }
.hint { font-size: .84rem; color: var(--muted); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); }

/* 3. Layout ------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band-y); }
.band-soft { background: var(--surface-2); }
.band-teal { background: linear-gradient(120deg, #0A5F5D, #0E8F8B 55%, #1FA5A1); color: #fff; }
.band-yellow { background: var(--yellow); color: var(--on-yellow); }
.band-overlap { padding-top: 0; }
.band-overlap .wrap > :first-child { position: relative; margin-top: -64px; }

.sec-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; margin-top: 12px; }
.sec-head p:not(.eyebrow) { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }
.sec-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head-row > div { max-width: 720px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-top { align-items: start; }
.split-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; letter-spacing: -.02em; margin-top: 12px; }
.split-copy p:not(.eyebrow) { color: var(--muted); margin-top: 16px; font-size: 1.08rem; }
.split-copy .btn, .split-copy .link-arrow { margin-top: 26px; }
.split-top .split-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.split-media img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* 4. Componentes ------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 .98rem/1.2 var(--font-body);
  border-radius: 999px; padding: 12px 22px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s, filter .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { padding: 15px 28px; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn-teal { background: var(--teal-deep); color: var(--on-teal); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--teal-deep) 75%, transparent); }
.btn-teal:hover { filter: brightness(1.07); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); }
.btn-yellow { background: var(--yellow); color: var(--on-yellow); }
.btn-yellow:hover { filter: brightness(.96); }
.btn-dark { background: #16211F; color: #fff; }
.btn-dark:hover { background: #22312E; }
.btn-outline-dark { border-color: currentColor; color: var(--on-yellow); }
.btn-outline-dark:hover { background: rgba(61, 44, 4, .08); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal-deep); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(4px); }

.icon-btn {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  width: 42px; height: 42px; cursor: pointer; color: var(--ink);
  display: grid; place-items: center; flex: none;
}
.icon-btn:hover { background: var(--surface-2); }

.checks { display: grid; gap: 8px; margin-top: 16px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .96rem; }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--teal-deep); }

.fineprint { margin-top: 20px; font-size: .84rem; color: var(--muted); }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.18rem var(--font-display); letter-spacing: -.01em; text-decoration: none; margin-right: auto; }
.brand .sun { width: 36px; height: 36px; flex: none; }
.brand b { color: var(--teal-deep); }
.nav-links { display: flex; gap: clamp(16px, 2vw, 28px); margin-right: 12px; font-weight: 500; font-size: .96rem; }
.nav-links a { text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--yellow); }
.nav-links .nav-menu-cta { display: none; }
.nav-toggle { display: none; }

/* Breadcrumb */
.crumbs { margin-bottom: 20px; font-size: .9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s; }
.faq-item[open] { border-color: var(--teal); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font: 600 1.06rem/1.35 var(--font-body);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal-tint); color: var(--teal-deep); font-weight: 700; font-size: 1.1rem;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 22px 22px; color: var(--muted); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 90;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whatsapp); animation: wa-pulse 2.4s ease-out infinite; }
.wa-icon { width: 32px; height: 32px; }
.wa-tip {
  position: absolute; right: calc(100% + 14px); top: 50%;
  transform: translate(8px, -50%); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--ground);
  font-size: .9rem; font-weight: 600; white-space: nowrap;
  padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow);
  transition: opacity .2s ease, transform .2s ease;
}
.wa-tip::after { content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); border: 7px solid transparent; border-left-color: var(--ink); }
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip, .wa-float.is-intro .wa-tip { opacity: 1; transform: translate(0, -50%); }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100;
  transform: translateX(-50%) translateY(160%);
  background: var(--ink); color: var(--ground);
  padding: 14px 22px; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  max-width: min(90vw, 520px); text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* 5. Secciones compartidas --------------------------------- */

/* Banner de páginas internas */
.page-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0A5F5D, #0E8F8B 60%, #1FA5A1);
  color: #fff;
  padding: clamp(40px, 6vw, 72px) 0 clamp(88px, 10vw, 128px);
}
.page-banner-sun { position: absolute; right: -4vw; top: 50%; width: clamp(260px, 34vw, 520px); height: auto; aspect-ratio: 1; transform: translateY(-50%); opacity: .22; pointer-events: none; }
.page-banner-in { position: relative; }
.page-banner .crumbs { color: rgba(255, 255, 255, .8); }
.page-banner .crumbs a { color: #fff; }
.eyebrow-on-dark { color: var(--yellow); }
.page-banner h1 { margin-top: 12px; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -.02em; max-width: 18ch; }
.page-banner-lead { margin-top: 18px; font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 60ch; color: rgba(255, 255, 255, .88); }
/* Sin tarjeta superpuesta: menos espacio inferior */
.page-banner:not(:has(+ .band-overlap)) { padding-bottom: clamp(48px, 7vw, 88px); }

/* Indicadores de impacto */
.impact-band { padding-block: clamp(40px, 5vw, 64px); }
.impact { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px clamp(16px, 2.5vw, 36px); border-left: 1px solid rgba(255, 255, 255, .22); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font: 700 clamp(2.6rem, 4.6vw, 4rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--yellow); }
.stat-affix { font-size: .55em; margin: 0 3px; vertical-align: .22em; }
.stat-label { margin-top: 10px; font-weight: 600; color: rgba(255, 255, 255, .9); }

/* CTA final */
.cta-final { padding-block: clamp(48px, 6vw, 80px); }
.cta-final-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-final h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; }
.cta-final p { margin-top: 10px; font-size: 1.1rem; font-weight: 500; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Tarjetas genéricas */
.teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.teasers-2 { grid-template-columns: repeat(2, 1fr); }
.teaser { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.teaser-ic, .feature-ic, .cost-ic, .zone-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal-deep); }
.teaser h3 { font-size: 1.35rem; font-weight: 700; margin-top: 20px; }
.teaser p { color: var(--muted); margin-top: 8px; flex: 1; }
.teaser .link-arrow { margin-top: 20px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.feature-grid-3 { grid-template-columns: repeat(3, 1fr); }
.split .feature-grid { grid-template-columns: repeat(2, 1fr); }
.feature-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature-grid h3 { font-size: 1.15rem; font-weight: 700; margin-top: 18px; }
.feature-grid p { color: var(--muted); margin-top: 6px; font-size: .97rem; }
.feature-grid a { color: var(--teal-deep); font-weight: 600; }

.note-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 44px); box-shadow: var(--shadow);
}
.note-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--yellow-tint); color: var(--yellow-deep); }
.note-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; }
.note-card p { color: var(--muted); margin-top: 8px; max-width: 70ch; }

.steps-mini { display: grid; gap: 14px; counter-reset: s; }
.steps-mini li { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.steps-mini .num, .tl-num {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.1rem var(--font-display); background: var(--yellow); color: var(--on-yellow);
}
.steps-mini h3 { font-size: 1.15rem; font-weight: 700; }
.steps-mini p { color: var(--muted); margin-top: 4px; }
.steps-mini-compact li { background: transparent; border: 0; padding: 0; }

/* 6. Páginas ------------------------------------------------ */

/* Inicio: banner a todo el ancho.
   La escena (SVG 960x900) se ancla abajo a la derecha con la misma altura del banner;
   el cielo y el piso se pintan con CSS para cubrir todo el ancho a cualquier tamaño. */
.hero-banner {
  --banner-sky: #E2F5F4; --banner-floor: #C7E9E6;
  --hb-h: clamp(580px, calc(80svh - var(--header-h)), 780px);
  position: relative; display: flex; align-items: center; overflow: hidden;
  min-height: var(--hb-h);
  background: linear-gradient(90deg, var(--ground) 0%, var(--ground) 38%, var(--banner-sky) 100%);
}
:root[data-theme="dark"] .hero-banner { --banner-sky: #123230; --banner-floor: #1B3F3C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-banner { --banner-sky: #123230; --banner-floor: #1B3F3C; } }
.hero-banner::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 13.34%; background: var(--banner-floor); }
.hero-banner-media { position: absolute; right: 0; bottom: 0; height: 100%; aspect-ratio: 960 / 900; max-width: 60%; }
.hero-banner-media img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 100%; }
.hero-banner-in { position: relative; z-index: 1; padding-block: 48px calc(var(--hb-h) * .1334 + 32px); }
.hero-copy { max-width: min(640px, 44vw); }
.kunan-note { display: inline-flex; align-items: center; gap: 9px; background: var(--teal-tint); color: var(--teal-ink); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .9rem; margin-bottom: 26px; }
.hero-banner h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.hero-banner h1 .sol { color: var(--yellow-deep); }
.hero-banner .lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--muted); margin-top: 24px; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; font-weight: 600; font-size: .95rem; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { color: var(--teal-deep); }

/* Inicio: para quién */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.audience-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); }
.audience-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--yellow-tint); }
.audience-ic { position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--yellow); color: var(--on-yellow); }
.audience-card h3 { position: relative; z-index: 1; font-size: 1.45rem; font-weight: 700; margin-top: 22px; }
.audience-card p { position: relative; z-index: 1; color: var(--muted); margin-top: 8px; max-width: 34ch; }

/* Inicio: ejemplos de cuota */
.examples { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
.ex-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .15s, transform .15s; }
.ex-card:hover { border-color: var(--teal); transform: translateY(-3px); }
.ex-amount { color: var(--muted); font-weight: 500; }
.ex-amount b { color: var(--ink); }
.ex-weekly { font: 700 clamp(2rem, 3vw, 2.6rem)/1.1 var(--font-display); color: var(--teal-deep); letter-spacing: -.02em; }
.ex-weekly small { font: 600 .95rem var(--font-body); color: var(--muted); margin-left: 4px; }
.ex-total { font-size: .9rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 6px; }

/* Simulador */
.sim { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.sim-left { padding: clamp(24px, 4vw, 52px); }
.sim-title { font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 700; }
.sim-left .sub { color: var(--muted); margin-top: 8px; }
.amount-display { display: flex; align-items: baseline; gap: 8px; margin: 28px 0 8px; }
.amount-display .cur { font-size: 1.4rem; font-weight: 600; color: var(--muted); }
.amount-display .val { font: 700 clamp(3rem, 5vw, 4rem)/1 var(--font-display); letter-spacing: -.02em; }
.slider { width: 100%; -webkit-appearance: none; appearance: none; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--teal) var(--pct, 15%), var(--surface-2) var(--pct, 15%)); margin: 16px 0 8px; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); border: 5px solid var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: pointer; }
.slider::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); border: 5px solid var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: pointer; }
.slider-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.quick { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.quick button { font: 600 .9rem var(--font-body); border: 1px solid var(--line); background: var(--ground); color: var(--ink); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: .15s; }
.quick button:hover { border-color: var(--teal); }
.quick button.on { background: var(--teal-tint); border-color: var(--teal); color: var(--teal-ink); }
.sim-right { padding: clamp(24px, 4vw, 52px); background: linear-gradient(160deg, #0E8F8B, #0A5F5D); color: #fff; display: flex; flex-direction: column; }
.big-cuota > span { font-size: .95rem; font-weight: 600; opacity: .85; display: block; margin-bottom: 6px; }
.big-cuota b { font: 700 clamp(2.8rem, 4.6vw, 3.6rem)/1 var(--font-display); letter-spacing: -.02em; }
.big-cuota small { font-size: 1rem; font-weight: 600; opacity: .85; }
.sim-rows { margin: 24px 0; border-top: 1px solid rgba(255, 255, 255, .24); padding-top: 18px; display: grid; gap: 12px; }
.sim-rows .r { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sim-rows dt { opacity: .88; }
.sim-rows dd { margin: 0; font-weight: 700; text-align: right; }
.sim-note { margin-top: 18px; font-size: .8rem; line-height: 1.5; opacity: .85; }

.cost-list { display: grid; gap: 14px; }
.cost-list li { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.cost-ic { flex: none; }
.cost-list h3 { font-size: 1.12rem; font-weight: 700; }
.cost-list p { color: var(--muted); margin-top: 4px; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.table th, .table td { padding: 16px 22px; text-align: right; border-bottom: 1px solid var(--line); }
.table th:first-child { text-align: left; }
.table thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: var(--surface-2); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { font-weight: 700; }
.table td:nth-child(2) { color: var(--teal-deep); font-weight: 700; }

/* Cómo funciona */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.timeline::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); }
.tl-step { position: relative; }
.tl-body { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); height: calc(100% - 68px); }
.tl-body h3 { font-size: 1.4rem; font-weight: 700; margin-top: 8px; }
.tl-body > p:not(.eyebrow) { color: var(--muted); margin-top: 10px; }

/* Requisitos */
.req-list { display: grid; gap: 16px; }
.req-list li { display: flex; gap: 20px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.req-list .ic { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--teal-tint); color: var(--teal-deep); display: grid; place-items: center; }
.req-list h3 { font-size: 1.3rem; font-weight: 700; }
.req-list p { color: var(--muted); margin-top: 4px; }

/* Zonas */
.zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.zone-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow); }
.zone-ic { background: var(--yellow); color: var(--on-yellow); }
.zone-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; margin-top: 20px; }
.zone-card p { color: var(--muted); margin-top: 8px; flex: 1; }
.zone-card .link-arrow { margin-top: 22px; }

/* Solicitud */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(24px, 3.5vw, 44px); }
.form-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .88rem; font-weight: 600; }
.req-star { color: var(--teal-deep); }
.field input, .field select, .field textarea {
  font: 1rem var(--font-body); color: var(--ink); background: var(--ground);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; width: 100%;
  transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 20px; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--teal-deep); flex: none; }
.consent a { color: var(--teal-deep); font-weight: 600; }
.form-error { margin-bottom: 16px; color: var(--danger); font-weight: 600; }
.form-foot { margin-top: 12px; text-align: center; }
.form-aside { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.aside-card h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 18px; }
.aside-card-soft { background: var(--teal-tint); border-color: transparent; box-shadow: none; }
.aside-card-soft h2 { margin-bottom: 8px; }
.aside-card-soft p { color: var(--muted); margin-bottom: 14px; }

/* Footer */
.site-footer { background: #16211F; color: #EFF3F1; padding: clamp(48px, 6vw, 80px) 0 100px; }
:root[data-theme="dark"] .site-footer { background: #0A0F0E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #0A0F0E; } }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-grid .brand { color: #fff; }
.foot-grid .brand b { color: var(--yellow); }
.foot-title { font: 700 .8rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #9FB0AD; margin: 0 0 16px; }
.site-footer nav a, .site-footer div > a:not(.brand) { color: #D6DBD8; text-decoration: none; display: block; margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.foot-brand p { color: #9FB0AD; font-size: .95rem; margin-top: 14px; max-width: 34ch; }
.pay-badges { display: flex; gap: 8px; margin-top: 16px; }
.pay-badges span { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; padding: 5px 11px; font-size: .8rem; font-weight: 600; }
.legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8B9C99; font-size: .84rem; }

/* 7. Responsive -------------------------------------------- */
@media (max-width: 1120px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--ground); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--line); color: var(--teal-deep); font-weight: 600; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .examples { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1180px) and (min-width: 900px) {
  /* Tablet: la ilustración cuadrada como tarjeta a la derecha */
  .hero-banner { --hb-h: 600px; background: var(--ground); }
  .hero-banner::before { display: none; }
  .hero-banner-in { padding-bottom: 48px; }
  .hero-banner-media { top: 50%; bottom: auto; right: var(--gutter); height: auto; width: 42%; max-width: none; aspect-ratio: auto; transform: translateY(-50%); }
  .hero-banner-media img { height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
  .hero-copy { max-width: 45vw; }
}

@media (max-width: 899px) {
  /* Banner: texto arriba, ilustración completa abajo */
  .hero-banner { flex-direction: column; align-items: stretch; min-height: 0; background: var(--ground); }
  .hero-banner::before { display: none; }
  .hero-banner-media { position: static; order: 2; width: 100%; height: auto; max-width: none; aspect-ratio: auto; }
  .hero-banner-media img { height: auto; aspect-ratio: 640 / 560; }
  .hero-banner-in { padding-block: 40px 32px; }
  .hero-copy { max-width: 640px; }

  .split, .form-layout { grid-template-columns: 1fr; }
  .split-top .split-copy, .form-aside { position: static; }
  .sim { grid-template-columns: 1fr; }
  .audience, .teasers, .zones, .timeline { grid-template-columns: 1fr; }
  .feature-grid-3 { grid-template-columns: 1fr; }
  .timeline::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 10px, transparent 10px 18px); }
  .tl-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
  .tl-body { margin-top: 0; height: auto; }
  .impact { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .note-card { grid-template-columns: 1fr; }
  .band-overlap .wrap > :first-child { margin-top: -48px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav-cta { display: none; }
  .nav-links .nav-menu-cta { display: block; color: var(--teal-deep); font-weight: 700; border-bottom: 0; }
  .teasers-2, .feature-grid, .split .feature-grid, .examples, .grid2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-cta .btn, .cta-actions .btn { flex: 1 1 100%; }
  .wa-float { width: 58px; height: 58px; }
  .wa-tip { white-space: normal; width: 180px; }
  .page-banner-sun { opacity: .14; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
