:root {
  --ocean:        #072a40;
  --ocean-soft:   #13567f;
  --ocean-light:  #2b7fb0;
  --coral:        #ff7f50;
  --coral-soft:   #ffaa80;
  --cream:        #f7f3ec;
  --bg:           #fafaf7;
  --ink:          #0f1820;
  --muted:        #5d7585;
  --border:       #e6e0d4;
  --success:      #2e9b6e;
  --warn:         #d97706;
  --shadow:       0 8px 28px rgba(7,42,64,.08);
  --shadow-lg:    0 18px 60px rgba(7,42,64,.18);
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

.wrap { max-width: 940px; margin: 0 auto; padding: 0 20px; }

/* ---- Topbar ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--ocean); color: var(--cream);
  font-size: 13px; font-weight: 800; letter-spacing: -.5px;
}
.brand-text { font-size: 15px; }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 14px; }
.cta-mini {
  background: var(--ocean); color: var(--cream) !important;
  padding: 8px 16px; border-radius: 100px; font-weight: 600 !important;
}
@media (max-width: 560px) { .topbar nav a:not(.cta-mini) { display: none; } }

/* ---- Hero ---- */
.hero {
  padding: 34px 0 14px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  color: var(--coral); letter-spacing: .15em;
  text-transform: uppercase;
  background: rgba(255,127,80,.1); padding: 6px 12px; border-radius: 100px;
}
.hero h1 {
  font-size: clamp(26px, 6vw, 44px); font-weight: 800; letter-spacing: -.03em;
  margin: 10px 0 8px; line-height: 1.05;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: none;
}
.hero h1 em { color: var(--coral); font-style: normal; display: inline-block; }
@media (max-width: 440px) {
  .hero h1 em { display: block; margin-top: 2px; }
}
.hero .lead {
  max-width: 54ch; margin: 0 auto;
  font-size: 15.5px; color: var(--muted); line-height: 1.5;
}

/* ---- Calc ---- */
.calc { padding: 16px 0 80px; }

/* ---- Pestañas (crédito / ahorro) ---- */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 11px 8px 10px; border: 1.5px solid var(--border); background: #fff;
  border-radius: 14px; cursor: pointer; font: inherit; text-align: center; transition: all .15s;
}
.tab:hover { border-color: var(--ocean-light); }
.tab .tab-ico { font-size: 19px; line-height: 1; }
.tab > span:nth-child(2) { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.tab .tab-sub { font-size: 11px; color: var(--muted); }
.tab.is-active { border-color: var(--ocean); background: var(--ocean); box-shadow: var(--shadow); }
.tab.is-active > span:nth-child(2) { color: var(--cream); }
.tab.is-active .tab-sub { color: rgba(247,243,236,.72); }
.tabpanel.is-hidden { display: none; }

select#tarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px;
  border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--ink); cursor: pointer;
}

.metric.metric-fecha .value { font-size: clamp(30px, 6.4vw, 46px); line-height: 1.08; }

/* ---- Hero dinámico (ticker animado) ---- */
.hero-dyn { padding: 26px 0 18px; text-align: center; }
.hd-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ocean-soft); margin-bottom: 16px;
}
.hd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: hd-pulse 1.8s infinite; }
@keyframes hd-pulse { 0% { box-shadow: 0 0 0 0 rgba(46,155,110,.5); } 70% { box-shadow: 0 0 0 9px rgba(46,155,110,0); } 100% { box-shadow: 0 0 0 0 rgba(46,155,110,0); } }
.hd-stat { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.hd-stat.show { opacity: 1; transform: none; }
.hd-num { font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--coral); font-size: clamp(44px, 12vw, 78px); font-variant-numeric: tabular-nums; }
.hd-num .hd-suf { color: var(--coral); }
.hd-cap { margin: 12px auto 0; max-width: 32ch; font-size: 15px; color: var(--ink); opacity: .8; line-height: 1.45; min-height: 2.7em; }

/* ---- Casos de uso ---- */
.casos-intro { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0 auto 18px; text-align: center; max-width: 62ch; }
.casos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.caso {
  display: flex; flex-direction: column; gap: 10px; text-align: left;
  background: #fff; border: 1.5px solid var(--border); border-radius: 16px;
  padding: 18px 18px 16px; cursor: pointer; font: inherit; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s;
  opacity: 0; transform: translateY(12px); animation: caso-in .5s ease forwards; animation-delay: var(--d);
}
@keyframes caso-in { to { opacity: 1; transform: none; } }
.caso:hover { transform: translateY(-3px); border-color: var(--ocean-light); box-shadow: var(--shadow-lg); }
.caso-top { display: flex; align-items: center; gap: 10px; }
.caso-ico { font-size: 24px; line-height: 1; }
.caso:hover .caso-ico { animation: caso-bob .6s ease; }
@keyframes caso-bob { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-5px); } }
.caso-sector { font-weight: 700; font-size: 15.5px; line-height: 1.2; }
.caso-ia { font-size: 13px; color: var(--muted); line-height: 1.45; }
.caso-nums { display: flex; gap: 10px; margin-top: 2px; }
.caso-n { flex: 1; background: var(--bg); border-radius: 11px; padding: 10px 12px; }
.caso-n b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 700; color: var(--ocean); font-variant-numeric: tabular-nums; line-height: 1; }
.caso-n:last-child b { color: var(--success); }
.caso-n i { display: block; margin-top: 4px; font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: .03em; }
.caso-paga { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.caso-paga strong { color: var(--coral); }
.caso-cta { font-weight: 700; font-size: 13.5px; color: var(--ocean); display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }
.caso-arrow { transition: transform .18s; }
.caso:hover .caso-arrow { transform: translateX(4px); }
@media (max-width: 640px) { .casos-grid { grid-template-columns: 1fr; } }

/* Bloque de ejemplos dentro de 'Cuánto ahorras' */
.casos-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.casos-h { font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 6px; text-align: center; }

/* ---- Demo IA en vivo ('Prueba la IA') ---- */
.demo-intro { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0 auto 16px; text-align: center; max-width: 60ch; }
.demo-sectores { justify-content: center; margin-bottom: 18px; }
.demo-sectores .chip.selected { background: var(--ocean); border-color: var(--ocean); color: var(--cream); }
.ds-ico { margin-right: 1px; }
.demo-io { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.demo-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.demo-prompt { width: 100%; resize: vertical; font: inherit; font-size: 15px; line-height: 1.5; color: var(--ink); border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--bg); }
.demo-prompt:focus { outline: none; border-color: var(--ocean-light); }
.demo-run { width: 100%; margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.demo-run-ico { font-size: 16px; }
.demo-out-wrap { margin-top: 16px; background: #fff; border: 1.5px solid var(--ocean); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.demo-out-wrap.is-hidden { display: none; }
.demo-out-head { display: flex; align-items: center; gap: 9px; padding: 12px 16px; background: var(--ocean); color: var(--cream); font-size: 13.5px; font-weight: 600; }
.demo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); animation: hd-pulse 1.6s infinite; }
.demo-out { padding: 16px 18px; white-space: pre-wrap; font-size: 14.5px; line-height: 1.6; color: var(--ink); max-height: 460px; overflow-y: auto; min-height: 44px; }
.demo-out.is-loading::after { content: 'Pensando…'; color: var(--muted); font-style: italic; }
.demo-foot { margin: 0; padding: 0 18px 16px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.demo-foot strong { color: var(--coral); }
.spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Saludo personalizado (links ?e=slug) ---- */
.saludo { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #eaf7f0, #dff0ea); border: 1.5px solid #bfe6d4; border-radius: 14px; padding: 13px 16px; margin-bottom: 14px; font-size: 15px; color: var(--ink); line-height: 1.4; }
.saludo.is-hidden { display: none; }
.saludo-ic { font-size: 22px; flex-shrink: 0; }

/* ---- 4 pestañas: 2x2 en móvil ---- */
.tabs { flex-wrap: wrap; }
@media (max-width: 600px) { .tab { flex: 1 1 42%; } }

/* ---- Lo que has perdido (aversión a la pérdida, mismo estilo que el resto) ---- */
#results-perdido { display: flex; flex-direction: column; gap: 14px; }
.metric.metric-cierre { display: block; }            /* texto corrido que respira (no flex-column) */
.metric.metric-perdido .value { color: #ff9180; }    /* coral suave sobre navy, sin "tanto rojo" */
.metric.metric-perdido .label { padding-right: 96px; }  /* deja sitio al badge, sin solaparse */
.perd-years { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.perd-yc { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 13px 10px; text-align: center; box-shadow: var(--shadow); }
.perd-yc-y { display: block; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.perd-yc-a { display: block; font-weight: 800; font-size: 16px; color: var(--coral); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .perd-years { grid-template-columns: repeat(2, 1fr); } }

/* ---- La hucha del 0,7 % en directo ---- */
.hucha { text-align: center; position: relative; background: linear-gradient(135deg, #eef7f1, #e1f0e9); border: 1.5px solid #bfe6d4; border-radius: 18px; padding: 24px 22px 22px; box-shadow: var(--shadow); }
.hucha-badge { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--success); background: rgba(46,155,110,.12); border: 1px solid rgba(46,155,110,.3); padding: 4px 9px; border-radius: 100px; }
.hucha-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: hd-pulse 1.4s infinite; }
.hucha-ic { font-size: 34px; display: block; margin-bottom: 4px; }
.hucha-label { display: block; font-size: 14px; color: var(--ink); opacity: .8; max-width: 30ch; margin: 0 auto 4px; line-height: 1.4; }
.hucha-num { display: block; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--success); font-size: clamp(40px, 11vw, 66px); font-variant-numeric: tabular-nums; }
.hucha-bar { height: 10px; background: #cfeadd; border-radius: 6px; overflow: hidden; margin: 16px auto 12px; max-width: 380px; }
.hucha-bar span { display: block; height: 100%; background: linear-gradient(90deg, #39b87f, #2e9b6e); border-radius: 6px; transition: width 1.2s ease; }
.hucha-sub { display: block; font-size: 13.5px; color: var(--ink); opacity: .85; max-width: 46ch; margin: 0 auto; line-height: 1.5; }
.hucha-sub strong { color: var(--success); }

.card-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-weight: 700; font-size: 14px;
  margin-bottom: 8px;
}
.input-with-suffix {
  position: relative;
}
.input-with-suffix input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 70px 14px 16px;
  font: inherit; font-size: 17px;
  background: var(--bg);
  transition: border .15s, background .15s;
  -moz-appearance: textfield;
}
.input-with-suffix input::-webkit-outer-spin-button,
.input-with-suffix input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-with-suffix input:focus {
  outline: none;
  border-color: var(--ocean);
  background: white;
}
.input-with-suffix .suffix {
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted); font-size: 13px; font-weight: 500;
  pointer-events: none;
}
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 2px 0; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: 100px;
  padding: 10px 16px;
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s;
}
.chip:hover { border-color: var(--ocean-light); }
.chip.selected {
  background: var(--ocean); color: var(--cream);
  border-color: var(--ocean);
}

.advanced {
  margin-top: 26px; padding-top: 22px;
  border-top: 1px dashed var(--border);
}
.advanced summary {
  cursor: pointer; font-weight: 600; color: var(--ocean);
  font-size: 14px;
  list-style: none;
  display: flex; align-items: center; gap: 6px;
  user-select: none;
}
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::before {
  content: '+'; display: inline-block;
  width: 18px; height: 18px;
  background: var(--ocean); color: white;
  border-radius: 50%;
  text-align: center; line-height: 18px; font-size: 14px; font-weight: 700;
  transition: transform .2s;
}
.advanced[open] summary::before { content: '−'; }
.advanced > .field { margin-top: 18px; }

/* ---- Results dashboard ---- */
.results {
  margin: 36px 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.metric {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative; overflow: hidden;
}
.metric .label {
  font-size: 12px; font-weight: 600;
  color: var(--muted); letter-spacing: .04em;
  text-transform: uppercase;
}
.metric .value {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ocean);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.metric .sub  { font-size: 13px; color: var(--muted); }

.metric.metric-hero {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-soft) 100%);
  color: var(--cream);
  border: none;
  padding: 30px 28px 28px;
}
.metric.metric-hero::after {
  content: ''; position: absolute;
  top: -50px; right: -50px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,127,80,.35), transparent 70%);
  pointer-events: none;
}
.metric.metric-hero .label { color: rgba(247,243,236,.7); }
.metric.metric-hero .value { color: var(--cream); font-size: clamp(48px, 9vw, 70px); }
.metric.metric-hero .sub   { color: rgba(247,243,236,.85); font-size: 14px; }
.metric.metric-hero .hero-badge {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255,127,80,.2);
  border: 1px solid rgba(255,127,80,.45);
  color: var(--coral-soft);
  padding: 5px 10px; border-radius: 100px;
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  z-index: 2;
}

.metric.is-success { border-color: rgba(46,155,110,.3); }
.metric.is-success .value { color: var(--success); }
.metric.is-success::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--success);
}

.metric.is-coste-cero .value { color: var(--success); font-size: clamp(26px, 4.5vw, 32px); }
.metric.is-coste-cero .badge {
  display: inline-block; align-self: flex-start;
  background: rgba(46,155,110,.12); color: var(--success);
  padding: 4px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700; margin-top: 4px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: .05em;
}
.metric.is-cofin .value { color: var(--warn); font-size: clamp(26px, 4.5vw, 32px); }
.metric.is-cofin .badge {
  display: inline-block; align-self: flex-start;
  background: rgba(217,119,6,.12); color: var(--warn);
  padding: 4px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700; margin-top: 4px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: .05em;
}

.metric.metric-curso .value { font-size: clamp(22px, 4vw, 28px); color: var(--ocean); }

.metric.metric-cierre {
  grid-column: 1 / -1;
  background: var(--cream);
  border: 1px solid var(--border);
  font-size: 16px; color: var(--ink);
  line-height: 1.55;
  font-weight: 500;
  padding: 22px 24px;
}
.metric.metric-cierre strong { color: var(--coral); }

/* ---- Cierre nuevo: tarjeta destacada con CTA integrado ---- */
.cierre {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-soft) 100%);
  color: var(--cream);
  border-radius: 22px;
  padding: 36px 32px 32px;
  position: relative; overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cierre::before {
  content: ''; position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,127,80,.32), transparent 65%);
  pointer-events: none;
}
.cierre::after {
  content: ''; position: absolute;
  bottom: -100px; left: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(43,127,176,.4), transparent 65%);
  pointer-events: none;
}
.cierre > * { position: relative; z-index: 1; }
.cierre-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  color: var(--coral-soft); letter-spacing: .18em;
  text-transform: uppercase;
  background: rgba(255,127,80,.15);
  border: 1px solid rgba(255,127,80,.3);
  padding: 6px 14px; border-radius: 100px;
}
.cierre-frase {
  font-size: clamp(22px, 4.2vw, 30px);
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 18px 0 12px;
  line-height: 1.3;
  color: var(--cream);
}
.cierre-frase strong {
  color: var(--cream);
  font-weight: 800;
  white-space: nowrap;
}
.cierre-importe {
  display: block;
  font-size: clamp(48px, 9vw, 68px);
  font-weight: 900;
  color: var(--coral-soft);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.cierre-sub {
  font-size: 15px;
  color: rgba(247,243,236,.78);
  margin: 0 0 26px;
}
.cierre-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  max-width: 420px;
  margin: 0 auto;
}
.cierre-cta-primary {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 10px;
  background: #25d366;
  color: white;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: 100px;
  text-decoration: none;
  width: 100%;
  transition: transform .12s, background .15s, box-shadow .15s;
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
}
.cierre-cta-primary:hover {
  background: #1fbf5a;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
}
.cierre-cta-primary:active { transform: translateY(0); }
.cierre-cta-primary svg { flex-shrink: 0; }
.cierre-cta-alt {
  color: rgba(247,243,236,.7);
  font-size: 13.5px;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0;
}
.cierre-cta-alt:hover { color: var(--coral-soft); text-decoration: underline; }

@media (max-width: 640px) {
  .cierre { padding: 28px 22px 26px; border-radius: 18px; }
  .cierre-frase { font-size: 22px; }
  .cierre-importe { font-size: 44px; }
}

.banner-warn {
  grid-column: 1 / -1;
  background: rgba(217,119,6,.08);
  border: 1px solid rgba(217,119,6,.3);
  color: var(--warn);
  padding: 14px 18px 14px 44px;
  border-radius: 14px;
  font-size: 14px; line-height: 1.5;
  position: relative;
}
.banner-warn::before { content: '⚠'; position: absolute; left: 16px; top: 12px; font-size: 18px; }
.banner-warn strong { color: var(--warn); }

.banner-info {
  grid-column: 1 / -1;
  background: rgba(43,127,176,.08);
  border: 1px solid rgba(43,127,176,.3);
  color: var(--ocean-soft);
  padding: 14px 18px 14px 42px;
  border-radius: 14px;
  font-size: 14px; line-height: 1.5;
  position: relative;
}
.banner-info::before { content: 'ℹ'; position: absolute; left: 18px; top: 13px; font-weight: 700; font-size: 16px; }

.banner-error {
  grid-column: 1 / -1;
  background: rgba(217,67,67,.08);
  border: 1px solid rgba(217,67,67,.3);
  color: #c0392b;
  padding: 18px 20px;
  border-radius: 14px;
  font-size: 15px;
}
.banner-error strong { display: block; margin-bottom: 4px; font-size: 16px; }

/* ---- Lead CTA ---- */
.lead-cta { margin-top: 30px; }
.lead-card {
  background: var(--ocean);
  color: var(--cream);
  padding: 30px 28px;
  border-radius: 20px;
  text-align: center;
  position: relative; overflow: hidden;
}
.lead-card::after {
  content: ''; position: absolute;
  bottom: -80px; left: -50px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,127,80,.25), transparent 70%);
  pointer-events: none;
}
.lead-card h3 {
  margin: 0 0 8px;
  font-size: 22px; letter-spacing: -.01em;
}
.lead-card > p {
  max-width: 52ch; margin: 0 auto 22px;
  font-size: 15px; color: rgba(247,243,236,.85);
}
#lead-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 540px) { #lead-form .row { grid-template-columns: 1fr; } }
#lead-form input {
  border: none; border-radius: 12px;
  padding: 14px 16px;
  font: inherit; font-size: 15px;
  background: rgba(255,255,255,.95);
  color: var(--ink);
}
#lead-form input:focus { outline: 2px solid var(--coral); }
.btn-primary {
  background: var(--coral); color: white;
  border: none; padding: 14px 24px;
  border-radius: 12px;
  font: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: #ff6a35; }
.btn-primary:active { transform: scale(.98); }
.btn-primary[disabled] { opacity: .6; cursor: not-allowed; }
.lead-legal { font-size: 11.5px; color: rgba(247,243,236,.7); margin: 10px 0 0; }
.lead-legal a { color: var(--coral-soft); }
.alt-cta {
  display: inline-block; margin-top: 14px;
  color: rgba(247,243,236,.85); font-size: 13.5px; text-decoration: none;
  font-weight: 500;
}
.alt-cta:hover { color: var(--coral); }

.lead-success {
  background: rgba(46,155,110,.12);
  border: 1px solid var(--success);
  color: var(--success);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

/* ---- Disclaimer ---- */
.disclaimer {
  margin-top: 30px;
  padding: 16px 18px;
  background: rgba(0,0,0,.03);
  border-radius: 12px;
  font-size: 13px; color: var(--muted);
  line-height: 1.55;
}
.disclaimer a { color: var(--ocean); }

/* ---- Info section ---- */
.info { margin-top: 60px; }
.info h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -.02em;
  text-align: center;
  margin: 0 0 28px;
}
/* Flujo de 4 pasos en línea */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 24px; left: 13%; right: 13%; height: 2px;
  background: linear-gradient(90deg, var(--coral-soft), var(--ocean-light)); z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-n {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 14px; background: var(--ocean); color: var(--cream);
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 20px;
  box-shadow: 0 4px 14px rgba(7,42,64,.18); border: 3px solid var(--bg);
}
.step h3 { font-size: 15.5px; margin: 0 0 6px; color: var(--ink); font-weight: 700; }
.step p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .steps::before { display: none; }
}

/* ---- FAQ ---- */
.faq { margin-top: 70px; }
.faq h2 {
  font-size: 28px; font-weight: 800; letter-spacing: -.02em;
  text-align: center; margin: 0 0 8px;
}
.faq-lead {
  text-align: center; color: var(--muted);
  font-size: 15px; margin: 0 0 28px;
}
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.faq-item[open] {
  border-color: var(--ocean-light);
  box-shadow: 0 4px 18px rgba(7,42,64,.06);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ocean);
  display: flex; align-items: center; gap: 12px;
  position: relative;
  user-select: none;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex-shrink: 0;
  width: 12px; height: 12px;
  border-right: 2.5px solid var(--ocean);
  border-bottom: 2.5px solid var(--ocean);
  transform: rotate(45deg);
  margin-left: auto;
  margin-bottom: 4px;
  transition: transform .2s;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-bottom: -2px;
}
.faq-item summary:hover { background: rgba(7,42,64,.02); }
.faq-body {
  padding: 0 22px 22px 22px;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.65;
}
.faq-body p { margin: 0 0 12px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ul {
  margin: 8px 0 12px;
  padding-left: 22px;
}
.faq-body li { margin-bottom: 6px; }
.faq-body strong { color: var(--ocean); }
.faq-body a { color: var(--coral); }
.faq-foot {
  text-align: center;
  margin: 26px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}
.faq-foot a { color: var(--ocean); font-weight: 600; }

@media (max-width: 640px) {
  .faq h2 { font-size: 24px; }
  .faq-item summary { font-size: 15px; padding: 16px 18px; }
  .faq-body { padding: 0 18px 18px 18px; font-size: 14px; }
}

/* ---- Caducidad: aviso de pérdida + cuenta atrás + calendario ---- */
.caducidad { grid-column: 1 / -1; display: grid; gap: 14px; }

.cad-alert {
  border-radius: 16px; padding: 20px 22px;
  background: linear-gradient(135deg, #fff4ec, #ffe9dc);
  border: 1.5px solid var(--coral-soft);
  box-shadow: var(--shadow);
}
.cad-alert.is-urgente {
  background: linear-gradient(135deg, #fff1ec, #ffe0e0);
  border-color: #ff6b5e;
}
.cad-alert-top { display: flex; align-items: flex-start; gap: 14px; }
.cad-warn-icon { font-size: 30px; line-height: 1; flex-shrink: 0; }
.cad-alert-title { display: block; font-size: clamp(18px, 3.4vw, 22px); font-weight: 800; color: var(--ink); line-height: 1.2; }
.cad-alert-title strong { color: #e23d2e; }
.cad-alert-sub { display: block; margin-top: 4px; font-size: 14.5px; color: var(--ink); opacity: .85; }
.cad-alert-sub strong { white-space: nowrap; }

.cad-timer {
  display: flex; gap: 8px; margin-top: 16px;
}
.cad-unit {
  flex: 1; text-align: center;
  background: var(--ocean); color: var(--cream);
  border-radius: 12px; padding: 10px 4px 7px;
}
.cad-unit b {
  display: block; font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(22px, 5vw, 30px); font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cad-unit i {
  display: block; margin-top: 5px; font-style: normal;
  font-size: 10px; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(247,243,236,.65);
}
.cad-arr-note {
  margin-top: 14px; padding: 11px 14px; border-radius: 10px;
  background: rgba(226,61,46,.08); border: 1px solid rgba(226,61,46,.2);
  font-size: 13.5px; color: var(--ink); line-height: 1.5;
}

.cad-cal {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow);
}
.cad-cal-title {
  display: block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 12px;
}
.cad-bar {
  display: flex; height: 14px; border-radius: 8px; overflow: hidden; gap: 2px; margin-bottom: 16px;
}
.cad-seg { display: block; min-width: 6px; }
.cad-seg.cad-rojo  { background: #e23d2e; }
.cad-seg.cad-ambar { background: var(--coral); }

.cad-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cad-tramo {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 4px; border-bottom: 1px solid var(--border);
}
.cad-tramo:last-child { border-bottom: 0; }
.cad-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; background: var(--muted); }
.cad-tramo.cad-rojo  .cad-dot { background: #e23d2e; box-shadow: 0 0 0 4px rgba(226,61,46,.15); }
.cad-tramo.cad-ambar .cad-dot { background: var(--coral); box-shadow: 0 0 0 4px rgba(255,127,80,.15); }
.cad-info { flex: 1; min-width: 0; }
.cad-tlabel { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.cad-tnota { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cad-timporte { font-weight: 800; font-size: 15px; color: var(--ink); white-space: nowrap; }
.cad-tramo.cad-rojo  .cad-timporte { color: #e23d2e; }
.cad-tramo.cad-gris  .cad-tlabel,
.cad-tramo.cad-gris  .cad-timporte { color: var(--muted); font-weight: 600; }

/* ---- Footer ---- */
footer {
  background: var(--ocean); color: var(--cream);
  padding: 30px 0; margin-top: 60px;
  font-size: 13.5px;
}
footer .wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
footer a { color: var(--coral-soft); text-decoration: none; }
footer a:hover { color: var(--coral); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .results { grid-template-columns: 1fr; }
  .card-form { padding: 22px 18px; }
  .lead-card { padding: 26px 20px; }
  .hero { padding: 18px 0 8px; }
  .hero h1 { margin: 6px 0 6px; }
  .hero h1 span { font-size: .5em !important; }
  .hero .lead { font-size: 14px; }
  .calc { padding: 10px 0 60px; }
  .tab { padding: 9px 6px 8px; }
  .tab > span:nth-child(2) { font-size: 13px; }
  .tab .tab-sub { font-size: 10px; }
  .metric { padding: 18px 18px 16px; }
  .metric.metric-hero { padding: 24px 22px 22px; }
  .metric.metric-hero .hero-badge {
    top: 14px; right: 14px;
    font-size: 9px; padding: 4px 8px;
  }
  .wrap { padding: 0 16px; }
  .input-with-suffix input { padding: 14px 60px 14px 14px; font-size: 16px; }
  .input-with-suffix .suffix { right: 12px; font-size: 12px; }
  .chips { gap: 6px; }
  .chip { padding: 9px 13px; font-size: 13px; }
}
