/* =========================================================
   Simulador de comisiones · BURS Advisory
   Misma línea gráfica que el brochure Método BURS 2.0:
   fondo noche con resplandor, títulos en dos niveles,
   tarjetas muy redondeadas y botones en forma de píldora.
   ========================================================= */

:root {
  /* ---------------------------------------------------------
     COLORES DE BURS: cambiar aquí (son los mismos del brochure)
     --------------------------------------------------------- */
  --night: #061518;          /* fondo principal oscuro */
  --night-card: #0B2326;     /* placas sobre fondo oscuro */
  --petrol: #0E3A50;         /* texto y botones sobre claro */
  --mint-title: #369A85;     /* títulos sobre fondo claro */
  --mint-name: #2E8C7A;      /* nombres y etiquetas sobre claro */
  --mint: #65C3B0;           /* íconos y etiquetas sobre oscuro */
  --glow: #A8F3E9;           /* títulos y botón principal sobre oscuro */
  --mint-soft: #E3F3EF;      /* tarjetas claras */
  --paper: #F6FBFA;          /* fondos claros */
  --orange: #F08A24;         /* único acento (usar con moderación) */
  --error: #D14343;

  /* Texto y líneas */
  --ink: #0E3A50;
  --ink-soft: #4E6A72;
  --on-dark: #E9F4F2;
  --on-dark-soft: #9DBFBA;
  --line: #D5EAE5;
  --line-dark: rgba(168, 243, 233, .16);

  /* Tipografía (las mismas del brochure) */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* Ritmo */
  --gutter: clamp(16px, 4.5vw, 48px);
  --radius: 24px;
  --radius-lg: 28px;
  --maxw: 1240px;
  --ease: cubic-bezier(.22, .72, .2, 1);
  --bar-h: 64px;
  --tabbar-h: 66px;

  --focus: 0 0 0 3px var(--night), 0 0 0 5px var(--glow);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* Resplandor verde desde abajo, fijo detrás de todo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 45% at 50% 108%, #0F4540 0%, rgba(6, 21, 24, 0) 70%),
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(15, 69, 64, .5) 0%, rgba(6, 21, 24, 0) 70%),
    var(--night);
}
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--glow); }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: fixed; top: 8px; left: 8px; z-index: 60; padding: 10px 16px; border-radius: 999px; background: var(--glow); color: var(--night); font-weight: 700; text-decoration: none; transform: translateY(-150%); }
.skip:focus { transform: none; }
.noscript { position: fixed; inset: auto 16px 16px; padding: 16px; border-radius: 12px; background: #fff; color: var(--ink); text-align: center; z-index: 60; }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }
.stack { display: grid; gap: 20px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn .ico { width: 18px; height: 18px; stroke-width: 2; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--glow); color: var(--night); }
.btn--primary:hover { background: #C3F7EF; box-shadow: 0 10px 30px -12px rgba(168, 243, 233, .6); }
.btn--ghost { background: transparent; border-color: var(--line-dark); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--glow); color: #fff; background: rgba(168, 243, 233, .06); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 58px; padding: 0 34px; font-size: 16px; }

/* ---------- Títulos en dos niveles (como el brochure) ---------- */
.hs { display: flex; flex-direction: column; }
.hs__eyebrow { margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mint-name); }
.hs__title { font-family: var(--font-display); text-transform: uppercase; line-height: 1.04; letter-spacing: -.005em; text-wrap: balance; }
.hs__line { display: block; font-weight: 400; font-size: clamp(18px, 4.4vw, 26px); color: var(--petrol); }
.hs__bold { display: block; font-weight: 700; font-size: clamp(32px, 7.6vw, 54px); color: var(--mint-title); }
.hs__sub { margin-top: 14px; max-width: 60ch; font-size: clamp(15px, 2vw, 18px); line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
.is-dark .hs__eyebrow { color: var(--mint); }
.is-dark .hs__line { color: var(--on-dark); }
.is-dark .hs__bold { color: var(--glow); }
.is-dark .hs__sub { color: var(--on-dark-soft); }

/* =========================================================
   ENCABEZADO FIJO
   ========================================================= */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  padding-top: env(safe-area-inset-top);
  background: rgba(6, 21, 24, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(168, 243, 233, .1);
}
.bar__row { display: flex; align-items: center; gap: 14px; height: var(--bar-h); max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.bar__logo { flex: none; border-radius: 8px; }
.bar__logo img { width: clamp(104px, 28vw, 128px); height: auto; }
.bar__name { display: none; padding-left: 14px; border-left: 1px solid var(--line-dark); font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-soft); white-space: nowrap; }
.bar__reset { margin-left: auto; }
@media (min-width: 1240px) { .bar__name { display: block; } }

/* Apartados arriba (escritorio) */
.tabs { display: none; }
@media (min-width: 900px) {
  .tabs { display: flex; gap: 4px; margin-left: auto; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); }
  .tabs .tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--on-dark-soft); text-decoration: none; transition: background-color .2s, color .2s; }
  .tabs .tab .ico { width: 18px; height: 18px; }
  .tabs .tab:hover { color: #fff; background: rgba(168, 243, 233, .08); }
  .tabs .tab.is-current { background: var(--glow); color: var(--night); }
  .bar__reset { margin-left: 8px; }
}

/* Barra de apartados abajo (celular) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 6px 6px env(safe-area-inset-bottom);
  background: var(--night);
  border-top: 1px solid rgba(168, 243, 233, .12);
  box-shadow: 0 -16px 32px -18px rgba(0, 0, 0, .7);
}
.tabbar .tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 0; border-radius: 16px; font-family: var(--font-display); font-size: 11px; font-weight: 600;
  color: var(--on-dark-soft); text-decoration: none; transition: color .2s, background-color .2s;
}
.tabbar .tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar .tab .ico { width: 22px; height: 22px; }
.tabbar .tab.is-current { color: var(--glow); background: rgba(168, 243, 233, .08); }
.tabbar .tab.is-current::before { content: ""; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--glow); }
@media (min-width: 900px) { .tabbar { display: none; } }

/* =========================================================
   APARTADOS
   ========================================================= */
main { padding-top: calc(var(--bar-h) + env(safe-area-inset-top)); outline: none; }
.view__head { padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(20px, 3.5vw, 36px); }
.view.is-entering { animation: enter .45s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Tarjeta blanca base */
.card {
  position: relative; min-width: 0;
  padding: 20px 16px; border-radius: var(--radius-lg);
  background: #fff; color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(168, 243, 233, .15);
}
@media (min-width: 560px) { .card { padding: 28px 28px; } }
.card--flush { padding: 0; overflow: hidden; }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--petrol); }
.card__hint { font-size: 13px; color: var(--ink-soft); }

/* ---------- 1 · Simulador ---------- */
.sim { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1000px) {
  .sim { grid-template-columns: minmax(0, 1.3fr) minmax(360px, .9fr); gap: 28px; }
  .result { position: sticky; top: calc(var(--bar-h) + 20px); }
}

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--petrol); }
.field input {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--paper);
  font-size: 16px; /* 16px evita el zoom automático en iPhone */
  color: var(--ink); transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #8AA6AD; }
.field input:hover { border-color: #B5D9D1; }
.field input:focus { outline: none; border-color: var(--mint-title); background: #fff; box-shadow: 0 0 0 4px rgba(54, 154, 133, .16); }

.sim__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin: 24px 0 10px; }

.rows { display: grid; gap: 10px; }
.row {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "info info" "step money";
  align-items: center; gap: 10px 12px;
  padding: 14px; border-radius: 20px; background: var(--paper); border: 1.5px solid transparent;
  transition: border-color .25s, background-color .25s;
}
.row.has-ventas { background: #fff; border-color: var(--mint); }
.row__info { grid-area: info; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.row__name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--petrol); }
.row__meta { margin-top: 3px; font-size: 13px; color: var(--ink-soft); }
.row__money { grid-area: money; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; text-align: right; }
.row__unit { font-size: 12.5px; color: var(--ink-soft); }
.row__sub { font-family: var(--font-display); font-size: 17px; color: var(--petrol); }
.row:not(.has-ventas) .row__sub { color: #8AA6AD; }
@media (min-width: 640px) {
  .row { grid-template-columns: minmax(0, 1fr) auto 120px; grid-template-areas: "info step money"; padding: 12px 16px 12px 20px; }
}

.pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-family: var(--font-body); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; background: var(--mint-soft); color: var(--mint-name); }
.pill--premium { background: var(--petrol); color: var(--glow); }
.pill--low-cost { background: #EEF2F3; color: var(--ink-soft); }

.stepper { grid-area: step; display: flex; align-items: center; gap: 6px; }
.stepper__btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff; color: var(--petrol); cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .15s var(--ease), color .2s;
}
.stepper__btn .ico { width: 20px; height: 20px; stroke-width: 2.2; }
.stepper__btn:hover:not(:disabled) { border-color: var(--mint-title); background: var(--mint-soft); }
.stepper__btn:active:not(:disabled) { transform: scale(.92); }
.stepper__btn[data-step="1"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.stepper__btn[data-step="1"]:hover { background: #164d68; border-color: #164d68; }
.stepper__btn:disabled { opacity: .35; cursor: default; }
.stepper__input {
  width: 54px; height: 44px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--petrol);
  -webkit-appearance: none; appearance: none;
}
.stepper__input:focus { outline: none; border-color: var(--mint-title); box-shadow: 0 0 0 4px rgba(54, 154, 133, .16); }

.sim__total { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 14px 18px; border-radius: 18px; background: var(--petrol); color: #fff; font-family: var(--font-display); font-weight: 600; }
.sim__total b { font-size: 24px; color: var(--glow); }

/* Resultado (tarjeta oscura con borde turquesa) */
.result {
  min-width: 0; padding: 24px 18px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0E2E31 0%, var(--night-card) 100%);
  border: 1px solid rgba(168, 243, 233, .28);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 60px -30px rgba(101, 195, 176, .5);
  scroll-margin-top: calc(var(--bar-h) + 12px);
}
@media (min-width: 560px) { .result { padding: 30px 28px; } }
.result__k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); overflow-wrap: anywhere; }
.result__total { margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 11vw, 56px); line-height: 1; letter-spacing: -.02em; color: var(--glow); }
.result__sub { margin-top: 6px; font-size: 14px; color: var(--on-dark-soft); }
.result__escala { margin-top: 22px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); }
.result__badge { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: baseline; font-size: 14px; color: var(--on-dark-soft); }
.result__badge b { font-family: var(--font-display); font-size: 16px; color: var(--on-dark); }
.result__badge.is-on b { color: var(--glow); }
.result__hint { margin-top: 26px; font-size: 13.5px; line-height: 1.45; color: var(--on-dark-soft); }
.result__hint b { color: var(--on-dark); }
.result__label { margin: 22px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.result__link { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 8px; }
.result__link .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.result__link:hover .ico { transform: translateX(3px); }

/* Barra de progreso con marcas */
.meter { position: relative; margin-top: 14px; padding-bottom: 18px; }
.meter__bar { height: 8px; border-radius: 999px; background: rgba(168, 243, 233, .14); overflow: hidden; }
.meter__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--glow)); transition: width .5s var(--ease); }
.meter__tick { position: absolute; top: -3px; width: 2px; height: 14px; margin-left: -1px; background: rgba(168, 243, 233, .3); border-radius: 2px; }
.meter__tick:last-child { margin-left: -2px; }
.meter__tick.is-on { background: var(--glow); }
.meter__tick i { position: absolute; top: 17px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 700; color: var(--on-dark-soft); }
.meter__tick:last-child i { left: auto; right: 0; transform: none; }
.meter__tick.is-on i { color: var(--glow); }
/* La misma barra dentro de tarjetas blancas */
.card .meter__bar { background: var(--mint-soft); }
.card .meter__bar span { background: linear-gradient(90deg, var(--mint-title), var(--mint)); }
.card .meter__tick { background: #B5D9D1; }
.card .meter__tick.is-on { background: var(--mint-name); }
.card .meter__tick i { color: var(--ink-soft); }
.card .meter__tick.is-on i { color: var(--mint-name); }

/* Los 3 pagos */
.pays { display: grid; gap: 8px; }
.pay { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(168, 243, 233, .08); }
.pay__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(168, 243, 233, .3); font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--on-dark-soft); }
.pay.is-on .pay__n { background: var(--glow); border-color: var(--glow); color: var(--night); }
.pay__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pay__txt b { font-size: 14.5px; color: var(--on-dark); }
.pay__txt small { margin-top: 2px; font-size: 12px; color: var(--on-dark-soft); }
.pay__amt { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--on-dark-soft); white-space: nowrap; }
.pay.is-on .pay__amt { color: var(--glow); }
.pay__amt em { font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: 11px; color: var(--on-dark-soft); }
.pay.is-on .pay__amt em { color: var(--mint); }

/* Resumen fijo (celular) */
.peek {
  position: fixed; left: 10px; right: 10px; z-index: 25;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 58px; padding: 8px 10px 8px 18px; border-radius: 999px;
  border: 1px solid rgba(168, 243, 233, .35);
  background: #0E2E31; color: var(--on-dark); text-align: left; cursor: pointer;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .8);
  transform: translateY(calc(100% + 90px)); transition: transform .35s var(--ease);
  pointer-events: none;
}
.peek.is-shown { transform: none; pointer-events: auto; }
.peek > span:first-child { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.peek small { font-size: 12px; color: var(--on-dark-soft); }
.peek b { font-family: var(--font-display); font-size: 20px; color: var(--glow); }
.peek__go { display: inline-flex; align-items: center; gap: 4px; min-height: 42px; padding: 0 14px; border-radius: 999px; background: var(--glow); color: var(--night); font-family: var(--font-display); font-weight: 600; font-size: 13px; white-space: nowrap; }
.peek__go .ico { width: 16px; height: 16px; stroke-width: 2.2; }
@media (min-width: 1000px) { .peek { display: none; } }

/* ---------- 2 · Comisiones ---------- */
.ctable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ctable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ctable th, .ctable td { padding: 12px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.ctable thead th { padding-top: 18px; padding-bottom: 14px; font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--petrol); vertical-align: bottom; background: var(--paper); }
.ctable thead th:first-child { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ctable small { display: block; margin-top: 2px; font-family: var(--font-body); font-size: 11.5px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; text-transform: none; }
.ctable tbody th { text-align: left; font-family: var(--font-display); font-weight: 700; color: var(--petrol); white-space: nowrap; }
.ctable td { font-family: var(--font-display); font-weight: 600; color: var(--petrol); white-space: nowrap; }
.ctable th:first-child, .ctable td:first-child { padding-left: 16px; }
.ctable th:last-child, .ctable td:last-child { padding-right: 16px; }
.ctable .is-current { background: var(--mint-soft); color: var(--mint-name); }
.ctable thead .is-current { background: var(--mint-title); color: #fff; }
.ctable thead .is-current small { color: rgba(255, 255, 255, .85); }
.ctable__group th { padding: 10px 16px 6px !important; text-align: left !important; font-family: var(--font-body) !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-name) !important; background: #fff; border-bottom: 0; }
.ctable__now { display: flex; align-items: flex-start; gap: 10px; padding: 16px; font-size: 14px; color: var(--ink-soft); }
.ctable__now .ico { width: 20px; height: 20px; color: var(--mint-title); margin-top: 1px; }
.ctable__now b { color: var(--petrol); }
.only-lg { display: none; }
@media (max-width: 639px) {
  .ctable td { padding: 12px 4px; font-size: 13.5px; }
  .ctable tbody th { padding-right: 4px; }
  .ctable tbody th small { white-space: nowrap; font-size: 11px; }
}
@media (min-width: 640px) {
  .only-sm { display: none; }
  .only-lg { display: inline; }
  .ctable { font-size: 16px; }
  .ctable th, .ctable td { padding: 14px 16px; }
  .ctable th:first-child, .ctable td:first-child { padding-left: 28px; }
  .ctable th:last-child, .ctable td:last-child { padding-right: 28px; }
  .ctable thead th { font-size: 15px; }
  .ctable__now { padding: 18px 28px; }
}

.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .chips { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.chip { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 20px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03); line-height: 1.3; }
.chip b { font-family: var(--font-display); font-size: 15px; color: var(--on-dark); }
.chip span { font-size: 13px; color: var(--on-dark-soft); }
.chip.is-current { border-color: var(--glow); background: rgba(168, 243, 233, .1); }
.chip.is-current b { color: var(--glow); }
.chip--off b { color: var(--on-dark-soft); }

.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); font-size: 14.5px; line-height: 1.55; color: var(--on-dark-soft); }
.note .ico { width: 20px; height: 20px; margin-top: 2px; color: var(--mint); }
.note b { color: var(--on-dark); }
.note--warn { border-color: rgba(240, 138, 36, .45); background: rgba(240, 138, 36, .07); }
.note--warn .ico { color: var(--orange); }
.note--privacy { border-color: rgba(168, 243, 233, .35); }

/* ---------- 3 · Bonos ---------- */
.bonos { display: grid; gap: 20px; }
@media (min-width: 900px) { .bonos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
.bono { display: flex; flex-direction: column; }
.bono__n { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-name); }
.bono__title { margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 4.6vw, 24px); line-height: 1.2; color: var(--petrol); }
.bono__text { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.bono__text b { color: var(--petrol); }
.bono .meter { margin-top: 22px; }
.tiers { display: grid; gap: 8px; margin-top: 12px; }
.tier { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--paper); border: 1.5px solid transparent; }
.tier__dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #B5D9D1; background: #fff; color: #fff; }
.tier__dot .ico { width: 16px; height: 16px; stroke-width: 2.6; }
.tier.is-on .tier__dot { background: var(--mint-title); border-color: var(--mint-title); }
.tier__k { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--petrol); }
.tier__k small { margin-left: 6px; font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.tier__v { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--petrol); }
.tier.is-current { border-color: var(--mint-title); background: var(--mint-soft); }
.bono__now { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 16px 18px; border-radius: 18px; background: var(--petrol); color: rgba(255, 255, 255, .85); font-size: 14px; }
.tiers { margin-bottom: 16px; }
.bono__now b { color: #fff; }
.bono__amt { font-family: var(--font-display); font-size: 22px; color: var(--glow) !important; white-space: nowrap; }

/* ---------- 4 · Precios ---------- */
.seg { display: inline-flex; justify-self: start; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); }
.seg__btn { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--on-dark-soft); cursor: pointer; transition: background-color .2s, color .2s; }
.seg__btn:hover { color: #fff; }
.seg__btn.is-on { background: var(--glow); color: var(--night); }
.plans { display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.plan { display: flex; flex-direction: column; padding: 24px 20px; border-radius: var(--radius-lg); background: #fff; color: var(--ink); border: 1.5px solid transparent; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }
.plan--premium { border-color: var(--glow); background: linear-gradient(180deg, #F2FCFA 0%, #fff 40%); }
.plan__cat { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-name); }
.plan__total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 7vw, 38px); line-height: 1.1; color: var(--petrol); }
.plan__total small { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.plan__benefit { margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.plan__mods { display: grid; margin-top: auto; padding-top: 16px; }
.plan__mods li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.plan__mods span { font-weight: 600; color: var(--petrol); }
.plan__mods b { font-family: var(--font-display); font-weight: 700; color: var(--petrol); text-align: right; }
.plan__mods b small { font-family: var(--font-body); font-weight: 600; font-size: 12px; color: var(--ink-soft); }
.plan__na { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: #A04C0B; }

/* Calculadora de soles */
.fx__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.fx__rate { display: flex; flex-direction: column; padding: 8px 16px; border-radius: 16px; background: var(--mint-soft); font-size: 12px; font-weight: 600; color: var(--mint-name); line-height: 1.35; }
.fx__rate b { font-family: var(--font-display); font-size: 16px; color: var(--petrol); }
.fx__grid { display: grid; gap: 8px; margin-top: 20px; }
.fx__eq { justify-self: center; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--mint-title); line-height: 1; }
@media (min-width: 720px) { .fx__grid { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 16px; } .fx__eq { padding-bottom: 16px; } }
.fx__input { display: flex; align-items: center; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.fx__input:focus-within { border-color: var(--mint-title); background: #fff; box-shadow: 0 0 0 4px rgba(54, 154, 133, .16); }
.fx__input span { padding-left: 16px; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink-soft); }
.field .fx__input input { min-height: 58px; border: 0; background: transparent; box-shadow: none; padding-left: 8px; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--petrol); }
.fx__input--pen { background: var(--petrol); border-color: var(--petrol); }
.fx__input--pen span { color: var(--mint); }
.field .fx__input--pen input { color: var(--glow); }
.fx__input--pen input::placeholder { color: rgba(168, 243, 233, .4); }
.fx__input--pen:focus-within { background: var(--petrol); }
.fx__input.is-flash { animation: flash .6s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(101, 195, 176, .7); } 100% { box-shadow: 0 0 0 10px rgba(101, 195, 176, 0); } }
.fx__k { margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--petrol); }
.fx__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fx__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: border-color .2s, background-color .2s; }
.fx__chip b { font-family: var(--font-display); color: var(--petrol); }
.fx__chip:hover { border-color: var(--mint-title); background: var(--mint-soft); }

/* ---------- 5 · Instrucciones ---------- */
.steps { display: grid; gap: 10px; counter-reset: paso; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; border-radius: 22px; background: #fff; color: var(--ink); }
.step__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mint-soft); font-family: var(--font-display); font-weight: 700; color: var(--mint-title); }
.step b { font-family: var(--font-display); font-size: 16px; color: var(--petrol); }
.step p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.steps__cta { justify-self: center; margin-top: 8px; }

/* ---------- Anterior / Siguiente ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: clamp(32px, 6vw, 56px); padding-bottom: 48px; }
.pager__btn {
  display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 18px;
  border-radius: 22px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03);
  color: var(--on-dark); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.25;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.pager__btn span { display: flex; flex-direction: column; min-width: 0; }
.pager__btn small { font-family: var(--font-body); font-weight: 600; font-size: 12px; color: var(--on-dark-soft); }
.pager__btn .ico { color: var(--glow); }
.pager__btn:hover { border-color: var(--glow); background: rgba(168, 243, 233, .07); }
.pager__btn--next { justify-content: flex-end; text-align: right; grid-column: 2; }
.pager__btn--prev { grid-column: 1; }

/* ---------- Pie ---------- */
.foot { border-top: 1px solid rgba(168, 243, 233, .08); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--on-dark-soft); }
.foot__row { display: flex; flex-direction: column; gap: 16px; }
.foot__logo { width: 104px; height: auto; opacity: .9; }
.foot__text { display: grid; gap: 6px; font-size: 13px; line-height: 1.55; }
@media (min-width: 820px) { .foot__row { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; } .foot__text { text-align: right; } }
/* Espacio para la barra inferior y el resumen fijo en celular */
@media (max-width: 899px) { .foot { padding-bottom: calc(var(--tabbar-h) + 90px + env(safe-area-inset-bottom)); } }

/* ---------- Aviso breve ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--bar-h) + env(safe-area-inset-top) + 12px); z-index: 40;
  padding: 10px 18px; border-radius: 999px; background: var(--glow); color: var(--night);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s;
}
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   Movimiento reducido
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
