/* Kobra — landing. Dirección: "The product performs". Hanken Grotesk, paleta de la marca (teal de la cobra). */

:root {
  --bg: #F1F2EE;
  --surface: #E4E7E1;
  --surface-2: #D6DBD3;
  --ink: #0B1311;
  --muted: #47524E;
  --accent: #2DD4BF;
  --accent-strong: #1FB8A5;
  --accent-ink: #04241F;
  --deep: #0B1311;
  --deep-2: #16211E;
  --deep-ink: #EAF0ED;
  --deep-muted: #A3B4AE;
  --pale: #CDEFE7;
  --bad: #C8372B;
  --warn: #A86A06;
  --ok: #157A5E;

  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  --step-display: clamp(2.75rem, 1.2rem + 5vw, 5.5rem);

  --margin: clamp(20px, 2.4vw, 36px);
  --gap: clamp(16px, 1.6vw, 24px);
  --section: clamp(96px, 12vw, 200px);
  --radius: 4px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
button, a, input, summary, [role="tab"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  letter-spacing: -0.005em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.deep :focus-visible { outline-color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tabular { font-variant-numeric: tabular-nums; }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.045em; line-height: 0.95; text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { padding-inline: var(--margin); max-width: 1680px; margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- botones y enlaces ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0 1.4em;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: var(--radius);
  font-weight: 500; font-size: 1.0625rem; text-decoration: none; letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); transition-duration: 100ms; }
.button .arrow { transition: transform var(--t-hover) var(--ease-out); }
.button.dark { background: var(--ink); color: var(--bg); }
.link {
  color: inherit; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .button:hover .arrow { transform: translateX(3px); }
  .button.dark:hover { background: #24302C; }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- cabecera ---------- */

.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--margin);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 1.375rem; letter-spacing: -0.04em; }
.brand img { width: 40px; height: 40px; }
.top nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.top nav a { text-decoration: none; font-size: 0.9375rem; }
.top nav a:not(.button) { padding: 10px 0; }
.top nav .button { min-height: 40px; font-size: 0.9375rem; padding: 0 1em; }
@media (hover: hover) and (pointer: fine) { .top nav a:not(.button):hover { text-decoration: underline; text-underline-offset: 0.25em; } }

/* ---------- hero ---------- */

.hero { position: relative; min-height: min(100svh, 980px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-inline: var(--margin); }
.hero-copy { grid-column: 1 / span 6; align-self: center; padding: 140px 0 72px; }
.hero h1 { font-size: clamp(2.5rem, 0.9rem + 4.4vw, 5.25rem); }
.hero h1 .line { white-space: nowrap; }
.hero .lead { margin-top: 28px; font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; color: var(--ink); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero-note { margin-top: 22px; font-size: var(--step-small); color: var(--muted); }

.hero-stage {
  grid-column: 7 / -1; margin-right: calc(var(--margin) * -1);
  background: var(--accent);
  display: flex; align-items: center; justify-content: flex-start;
  padding: 120px var(--margin) 64px clamp(24px, 4vw, 72px);
}

/* ---------- fragmentos de interfaz (data-ui) ---------- */

[data-ui] {
  --ok-dot: #2DBFA8;
  --ui-bg: #FFFFFF;
  --ui-line: #E3E7E2;
  --ui-soft: #F4F6F3;
  --ui-text: #0B1311;
  --ui-muted: #5A6662;
  font-family: var(--font);
  color: var(--ui-text);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.003em;
}

.today {
  width: 100%; max-width: 600px;
  background: var(--ui-bg); border-radius: 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 24px 48px -24px rgba(0,0,0,.35); /* taste-skill-ignore: data-ui fragment / photo scrim */
  overflow: hidden;
}
.today-head { padding: 20px 22px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.today-head h2 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; }
.today-head p { color: var(--ui-muted); margin-top: 2px; }
.today-sum { text-align: right; white-space: nowrap; }
.today-sum strong { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.today-sum span { color: var(--ui-muted); font-variant-numeric: tabular-nums; }
.bar { height: 6px; margin: 0 22px 14px; background: var(--ui-soft); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); border-radius: 3px; transition: width 600ms var(--ease-out); }
.today ul { border-top: 1px solid var(--ui-line); } /* taste-skill-ignore: data-ui fragment / photo scrim */
.row { border-bottom: 1px solid var(--ui-line); } /* taste-skill-ignore: data-ui fragment / photo scrim */
.row:last-child { border-bottom: 0; }
.row-main { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 22px; }
.ava { width: 36px; height: 36px; border-radius: 50%; background: var(--ui-soft); display: grid; place-items: center; font-weight: 600; font-size: 13px; color: #2B3633; }
.row[data-state="late"] .ava { background: #FBE4E1; color: #8E2318; }
.row[data-state="paid"] .ava { background: #DDF4EE; color: #0D5C47; }
.who b { display: block; font-weight: 600; font-size: 14.5px; }
.who span { color: var(--ui-muted); font-size: 13px; }
.who .late { color: #B42318; }
.amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.amt small { display: block; color: var(--ui-muted); font-weight: 400; font-size: 12.5px; }
.acts { display: flex; gap: 6px; }
.ui-btn {
  height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ui-line); background: var(--ui-bg); /* taste-skill-ignore: data-ui fragment / photo scrim */
  font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms var(--ease-out);
}
.ui-btn:active { transform: scale(0.96); }
.ui-btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.ui-btn.wa { width: 34px; padding: 0; justify-content: center; color: #128C4A; }
.ui-btn[aria-expanded="true"] { background: #E9F7EF; border-color: #BFE6CF; }
.ui-btn svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .ui-btn:hover { background: var(--ui-soft); }
  .ui-btn.primary:hover { background: #24302C; }
}
.row[data-state="paid"] .ui-btn.primary { background: #DDF4EE; color: #0D5C47; border-color: #BFE9DD; cursor: default; }
.msg { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease-out); }
.msg > div { overflow: hidden; }
.row.open .msg { grid-template-rows: 1fr; }
.bubble { margin: 0 22px 14px 70px; padding: 10px 12px; background: #DCF8C6; color: #111B21; border-radius: 10px 10px 10px 2px; font-size: 13.5px; line-height: 1.45; }
.bubble-actions { display: flex; gap: 8px; margin: -4px 22px 14px 70px; }
.bubble-actions button { height: 30px; font-size: 12.5px; }
.today-foot { padding: 12px 22px; background: var(--ui-soft); color: var(--ui-muted); display: flex; justify-content: space-between; font-size: 13px; }

/* ---------- secciones ---------- */

section { position: relative; }
.h2 { font-size: var(--step-head); }
.statement { font-size: var(--step-lead); line-height: 1.22; letter-spacing: -0.025em; font-weight: 500; max-width: 26ch; }
.body { font-size: var(--step-body); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: var(--step-small); }

/* ficha del cliente (sustituye a las fotos) */
.street { margin-top: var(--section); }
.street-grid { align-items: center; }
.street-copy { grid-column: 8 / -1; padding-left: clamp(0px, 2vw, 32px); }
.street-copy .statement { max-width: 22ch; }
.street-copy .body { margin-top: 24px; max-width: 40ch; }
.street-copy .hint { color: var(--muted); }
.profile-stage { grid-column: 1 / span 7; background: var(--deep); padding: clamp(28px, 4vw, 64px); margin-left: calc(var(--margin) * -1); border-radius: 0 var(--radius) var(--radius) 0; }
.profile { background: var(--ui-bg); border-radius: 14px; max-width: 640px; margin-inline: auto; overflow: hidden; }
.profile-tabs { display: flex; gap: 4px; padding: 8px; background: var(--ui-soft); }
.profile-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 8px; background: transparent; font-size: 13.5px; font-weight: 600; color: var(--ui-muted); cursor: pointer; transition: background-color 180ms ease, color 180ms ease, transform 120ms var(--ease-out); }
.profile-tabs button:active { transform: scale(0.97); }
.profile-tabs button[aria-selected="true"] { background: var(--ui-bg); color: var(--ui-text); }
@media (hover: hover) and (pointer: fine) { .profile-tabs button[aria-selected="false"]:hover { color: var(--ui-text); } }
.profile-body { padding: 22px 22px 20px; transition: opacity 200ms ease, filter 200ms ease; }
.profile-body.swap { opacity: 0.35; filter: blur(2px); transition-duration: 120ms; }
.pf-head { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; }
.pf-ava { width: 48px; height: 48px; border-radius: 50%; background: var(--ui-soft); display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.pf-who b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.pf-who span { color: var(--ui-muted); font-size: 13px; }
.pf-grade { width: 72px; height: 72px; padding: 8px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: #DDF4EE; color: #0D5C47; transition: background-color 240ms ease, color 240ms ease; }
.pf-grade strong { font-size: 24px; line-height: 1; font-weight: 600; }
.pf-grade span { font-size: 11.5px; font-weight: 600; margin-top: 2px; }
.pf-grade[data-g="B"] { background: #E3F0FB; color: #1D4E7A; }
.pf-grade[data-g="C"] { background: #FFF1D6; color: #7A4B00; }
.pf-grade[data-g="D"] { background: #FBE4E1; color: #8E2318; }
.pf-figs { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-figs div { background: var(--ui-soft); border-radius: 10px; padding: 10px 12px; }
.pf-figs dt { font-size: 12.5px; color: var(--ui-muted); }
.pf-figs dd { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.pf-strip-head { margin-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ui-muted); }
.pf-legend { display: inline-flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; }
.pf-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 3px; }
.pf-strip { margin-top: 8px; display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.pf-strip li { height: 28px; border-radius: 3px; background: var(--ok-dot); transform-origin: bottom; transition: background-color 260ms ease, transform 320ms var(--ease-out); transition-delay: calc(var(--i, 0) * 18ms); }
.pf-strip li.ok, .pf-legend .ok { background: #2DBFA8; }
.pf-strip li.late, .pf-legend .late { background: #E9A23B; }
.pf-strip li.miss, .pf-legend .miss { background: #D64535; }
.profile-body.swap .pf-strip li { transform: scaleY(0.4); transition-delay: 0ms; transition-duration: 120ms; }
.pf-limit { margin-top: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 14px; background: var(--ui-soft); border-radius: 10px; }
.pf-limit span { color: var(--ui-muted); font-size: 13px; }
.pf-limit strong { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hint { color: var(--muted); margin-top: 16px; font-size: var(--step-small); }

/* mora día a día (sustituye a la foto de la libreta) */
.mora-stage { grid-column: 1 / span 5; background: var(--accent); padding: clamp(24px, 3vw, 48px); border-radius: var(--radius); display: grid; align-content: center; }
.mora { position: relative; max-width: 460px; width: 100%; margin-inline: auto; padding-top: 152px; }
.mora-card { background: var(--ui-bg); border-radius: 14px; padding: 20px; }
.mora-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mora-top b { display: block; font-size: 16px; font-weight: 600; }
.mora-top span { color: var(--ui-muted); font-size: 13px; }
.mora-top strong { font-size: 20px; font-weight: 600; }
.mora-state { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mora-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px; font-weight: 600; font-size: 13px; background: #FFF1D6; color: #7A4B00; transition: background-color 220ms ease, color 220ms ease; }
.mora-state[data-s="gracia"] .mora-chip { background: #E3F0FB; color: #1D4E7A; }
.mora-state[data-s="atraso"] .mora-chip { background: #FBE4E1; color: #8E2318; }
.mora-fee { font-size: 14px; font-weight: 600; color: var(--ui-muted); }
.mora-state[data-s="atraso"] .mora-fee { color: #8E2318; }
.mora-days { margin-top: 16px; display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; }
.mora-days li { height: 10px; border-radius: 2px; background: var(--ui-soft); transition: background-color 200ms ease; }
.mora-days li.on { background: #FFD58A; }
.mora-days li.on.g { background: #B8D7F2; }
.mora-days li.on.a { background: #EF8A7E; }
.mora-ctl { margin-top: 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; }
.mora-ctl label { font-size: 13px; color: var(--ui-muted); font-weight: 500; }
.mora-ctl output { font-weight: 600; font-size: 15px; }
.mora-ctl input { grid-column: 1 / -1; width: 100%; height: 44px; }
.mora input[type="range"]::-webkit-slider-runnable-track { background: var(--ui-soft); }
.mora input[type="range"]::-webkit-slider-thumb { border-color: #fff; }
.notif { position: absolute; top: 0; left: 0; right: 0; z-index: 2; box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); background: var(--ui-bg); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; opacity: 0; transform: translateY(-12px) scale(0.98); transition: opacity 160ms ease, transform 160ms var(--ease-out); pointer-events: none; } /* taste-skill-ignore: data-ui fragment, floating notification */
.notif.on { opacity: 1; transform: none; pointer-events: auto; transition-duration: 280ms; }
.notif-app { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ui-muted); font-weight: 600; }
.notif-app time { margin-left: auto; font-weight: 400; }
.notif p { font-size: 14px; font-weight: 500; }
.notif .ui-btn { justify-self: start; height: 40px; }

/* tarjeta de cobro sellada (sustituye a la foto de monedas) */
.cta-side.l { background: var(--surface-2); display: flex; justify-content: flex-end; }
.stamp { width: 100%; max-width: 168px; padding: 22px 16px 22px 0; display: grid; align-content: start; gap: 12px; }
.stamp-title { font-size: 12.5px; font-weight: 600; color: var(--ui-text); }
.stamp-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }
.stamp-grid button { position: relative; min-height: 48px; border: 1.5px solid #CBD2CA; border-radius: 6px; background: var(--ui-bg); text-align: left; padding: 6px 8px; font-size: 11.5px; color: var(--ui-muted); cursor: pointer; transition: transform 120ms var(--ease-out), border-color 180ms ease; font-variant-numeric: tabular-nums; } /* taste-skill-ignore: data-ui fragment */
.stamp-grid button b { display: block; color: var(--ui-text); font-size: 12.5px; }
.stamp-grid button:active { transform: scale(0.96); }
.stamp-grid button::after { content: "Pagada"; position: absolute; inset: 0; display: grid; place-items: center; border-radius: 5px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 12px; transform: rotate(-6deg) scale(1.15); opacity: 0; transition: opacity 120ms ease, transform 120ms var(--ease-out); }
.stamp-grid button[aria-pressed="true"]::after { opacity: 1; transform: rotate(-6deg) scale(1); transition-duration: 220ms; }

/* libreta */
.notebook { margin-top: var(--section); }
.notebook-copy { grid-column: 7 / -1; align-self: center; }
.versus { margin-top: 40px; width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.versus th { text-align: left; font-weight: 500; font-size: var(--step-small); color: var(--muted); padding: 0 16px 12px 0; }
.versus td { padding: 18px 16px 18px 0; vertical-align: top; border-top: 1px solid var(--surface-2); width: 50%; }
.versus td:first-child { color: var(--muted); }
.versus td:last-child { font-weight: 500; }

/* simulador */
.sim-head { max-width: 760px; }
.sim-head p { margin-top: 18px; color: var(--muted); }
.sim {
  margin-top: 48px;
  display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
}
.sim-card { padding: clamp(20px, 3vw, 44px); background: var(--surface); }
.sim-controls { background: var(--surface-2); padding: clamp(20px, 2.4vw, 36px); display: flex; flex-direction: column; }
.sim-foot { margin-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: var(--step-small); }

.card {
  background: #FFFFFF; color: #1A1A17; border-radius: 6px; padding: 22px 22px 18px;
  font-family: var(--font); font-size: 14px;
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 1.5px dashed #CFCAB9; }
.card-top .card-label { font-size: 13px; letter-spacing: 0; line-height: 1.3; font-weight: 600; color: #6B675A; }
.card-top .big { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: #10100E; font-variant-numeric: tabular-nums; }
.card-top .per { color: #6B675A; }
.card-figs { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 22px; text-align: right; font-variant-numeric: tabular-nums; }
.card-figs dt { color: #6B675A; font-size: 12.5px; }
.card-figs dd { font-weight: 600; font-size: 15px; }
.boxes { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.box { border: 1.5px solid #D9D3C1; border-radius: 4px; padding: 6px 8px 7px; min-height: 58px; position: relative; font-variant-numeric: tabular-nums; animation: box-in 360ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 12ms); }
.box b { display: block; font-size: 11.5px; color: #8A8576; font-weight: 600; }
.box span { display: block; font-size: 12.5px; color: #3E3B33; }
.box strong { display: block; font-size: 13.5px; font-weight: 600; }
.box.last { background: #F3EFE2; }
.boxes .more { display: grid; place-items: center; color: #6B675A; border-style: dashed; }
@keyframes box-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card-note { margin-top: 14px; color: #6B675A; font-size: 12.5px; }

.ctl { min-height: 44px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; padding: 10px 0; }
.ctl + .ctl { margin-top: 4px; }
.ctl label, .ctl .lbl { font-size: 14px; font-weight: 500; }
.ctl output { font-variant-numeric: tabular-nums; font-weight: 500; font-size: 15px; }
.ctl input[type="range"] { grid-column: 1 / -1; width: 100%; }
.seg { grid-column: 1 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; background: var(--surface); border-radius: var(--radius); padding: 3px; }
.seg button { min-height: 38px; border: 0; background: transparent; border-radius: 3px; font-size: 13.5px; cursor: pointer; padding: 0 6px; transition: background-color var(--t-hover) ease; }
.seg button[aria-pressed="true"] { background: var(--bg); font-weight: 500; }
.seg.tipos { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
.ctl-help { grid-column: 1 / -1; font-size: 13px; color: var(--muted); line-height: 1.4; }

input[type="range"] { -webkit-appearance: none; appearance: none; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--surface); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--surface); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface-2); transition: transform var(--t-press) var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface-2); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

.switch { position: relative; width: 2.1em; height: 1.15em; border-radius: 1em; background: var(--surface-2); border: 0; padding: 0; cursor: pointer; flex: none; transition: background-color var(--t-ui) ease; }
.switch::after { content: ""; position: absolute; top: 0.12em; left: 0.12em; width: 0.91em; height: 0.91em; border-radius: 50%; background: #fff; transition: transform var(--t-ui) var(--ease-out); }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { transform: translateX(0.95em); }
.ctl .switch { font-size: 24px; }

/* cómo funciona */
.flow { margin-top: var(--section); }
.flow-col { grid-column: 4 / span 6; }
.flow h2 { margin-bottom: 56px; }
.step + .step { margin-top: 88px; }
.step > p { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); font-weight: 500; letter-spacing: -0.015em; }
.call { margin-top: 16px; background: var(--surface); border-radius: var(--radius); padding: 20px; }
.resp { margin: 16px 0 0 56px; }
.step.final .resp { margin-left: 0; width: min(150%, calc(100vw - var(--margin) * 2)); }

.form-frag { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.field { background: #fff; border: 1px solid #DCE1DB; border-radius: 8px; padding: 8px 10px; } /* taste-skill-ignore: data-ui fragment / photo scrim */
.field span { display: block; font-size: 11.5px; color: var(--ui-muted); }
.field b { font-weight: 600; font-size: 14.5px; }
.chip-out { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: #fff; border: 1px solid #DCE1DB; border-radius: 10px; padding: 12px 14px; } /* taste-skill-ignore: data-ui fragment / photo scrim */
.chip-out b { font-weight: 600; }
.chip-out .k { color: var(--ui-muted); }
.list-frag { background: #fff; border: 1px solid #DCE1DB; border-radius: 10px; overflow: hidden; } /* taste-skill-ignore: data-ui fragment / photo scrim */
.list-frag div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid #EEF1ED; } /* taste-skill-ignore: data-ui fragment / photo scrim */
.list-frag div:first-child { border-top: 0; font-weight: 600; background: #F7F8F6; }
.list-frag .late { color: #B42318; font-weight: 600; }
.wa-frag { background: #EFEAE2; border-radius: 12px; padding: 14px; max-width: 420px; }
.wa-frag .bubble { margin: 0 0 0 auto; max-width: 92%; border-radius: 10px 10px 2px 10px; }
.wa-frag time { display: block; text-align: right; font-size: 11px; color: #4A5A63; margin-top: 4px; }

.receipt { background: #fff; border-radius: 10px; border: 1px solid #DCE1DB; display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; } /* taste-skill-ignore: data-ui fragment / photo scrim */
.receipt-l { padding: 26px 28px; }
.receipt-r { padding: 26px 28px; background: #F7F8F6; display: grid; align-content: start; gap: 10px; }
.receipt-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.receipt-brand img { width: 28px; height: 28px; }
.receipt .rc-folio { margin: 18px 0 2px; font-size: 12.5px; color: var(--ui-muted); font-weight: 500; }
.receipt .paid { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.receipt dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-variant-numeric: tabular-nums; }
.receipt dt { color: var(--ui-muted); }
.receipt dd { font-weight: 600; text-align: right; }
.receipt .sig { margin-top: 22px; color: var(--ui-muted); font-size: 12.5px; }

/* bandas con interruptor */
.bands { margin-top: var(--section); }
.band { min-height: 20vh; display: grid; align-items: center; transition: background-color 420ms var(--ease-out), color 420ms var(--ease-out); color: var(--muted); }
.band-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; padding: 28px var(--margin); }
.band-text { grid-column: 1 / span 10; }
.band-text > p:first-child { font-size: var(--step-head); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; }
.band-conseq { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--ease-out); }
.band-conseq > div { overflow: hidden; }
.band-conseq p { padding-top: 12px; font-size: 1.0625rem; max-width: 64ch; }
.band .switch { grid-column: 11 / -1; justify-self: end; font-size: var(--step-head); }
.band.on { color: var(--ink); }
.band.on .band-conseq { grid-template-rows: 1fr; }
.band.on[data-fill="accent"] { background: var(--accent); }
.band.on[data-fill="pale"] { background: var(--pale); }
.band.on[data-fill="surface"] { background: var(--surface-2); }
.band.on[data-fill="deep"] { background: var(--deep); color: var(--deep-ink); }
.band.on[data-fill="deep"] .switch { background: var(--accent); }
.band.on[data-fill="accent"] .switch { background: var(--accent-ink); }
.cipher-inline { word-break: break-all; }

/* seguridad (campo oscuro) */
.deep { background: var(--deep); color: var(--deep-ink); }
.vault { padding-block: clamp(96px, 11vw, 180px); }
.vault-copy { grid-column: 1 / span 5; }
.vault-copy .body { margin-top: 28px; color: var(--deep-muted); }
.vault-copy dl { margin-top: 40px; display: grid; grid-template-columns: auto 1fr; gap: 14px 24px; font-size: 1rem; }
.vault-copy dt { color: var(--deep-muted); }
.vault-demo { grid-column: 7 / -1; display: grid; gap: 14px; align-content: start; }
.vault-pane { background: var(--deep-2); border-radius: 8px; padding: 22px; }
.vault-pane h3 { font-size: 14px; letter-spacing: 0; line-height: 1.3; color: var(--deep-muted); font-weight: 500; margin-bottom: 14px; }
.vault-pane label { display: block; font-size: 13px; color: var(--deep-muted); margin-bottom: 6px; }
.vault-pane input { width: 100%; min-height: 48px; background: #0F1816; color: var(--deep-ink); border: 1px solid #2C3A36; border-radius: 8px; padding: 0 14px; font-size: 16px; }
.vault-pane input:focus { outline: none; border-color: var(--accent); }
.vault-pane pre { margin: 0; white-space: pre-wrap; word-break: break-all; font-size: 13px; line-height: 1.55; color: #9FE7DA; }
.vault-pane pre .k { color: var(--deep-muted); }

/* construido con */
.built { padding-block: clamp(96px, 9vw, 150px); display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.built p { font-size: 1.125rem; color: var(--muted); }
.built ul { display: flex; flex: 1; justify-content: space-between; gap: 18px 36px; flex-wrap: wrap; font-size: clamp(1.125rem, 0.9rem + 0.6vw, 1.375rem); font-weight: 500; letter-spacing: -0.02em; }

/* precios */
.pricing-grid { align-items: start; }
.plans { grid-column: 1 / span 6; display: grid; align-content: start; }
.plans button {
  text-align: left; background: none; border: 0; padding: 0; cursor: pointer;
  font-size: clamp(2.5rem, 1rem + 5vw, 6rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1.1;
  color: color-mix(in srgb, var(--ink) 60%, var(--bg));
  display: flex; align-items: center; gap: 0.25em;
  transition: color var(--t-hover) ease;
}
.plans button::before { content: ""; width: 0.3em; height: 0.3em; border-radius: 50%; background: var(--ink); transform: scale(0.4); opacity: 0; transition: transform var(--t-ui) var(--ease-out), opacity var(--t-ui) ease; flex: none; }
.plans button[aria-selected="true"] { color: var(--ink); }
.plans button[aria-selected="true"]::before { transform: scale(1); opacity: 1; }
@media (hover: hover) and (pointer: fine) { .plans button:hover { color: color-mix(in srgb, var(--ink) 70%, var(--bg)); } .plans button[aria-selected="true"]:hover { color: var(--ink); } }
.plan-stage { grid-column: 8 / -1; display: grid; }
.plan-stage .plan-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s 200ms; }
.plan-stage .plan-panel.on { opacity: 1; visibility: visible; transition: opacity 200ms ease 60ms; }
.price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price strong { font-size: clamp(4rem, 2rem + 6vw, 8.5rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.price span { font-size: 1.125rem; color: var(--muted); }
.plan-panel p { margin-top: 28px; font-size: 1.125rem; max-width: 46ch; }
.plan-panel ul { margin-top: 22px; display: grid; gap: 8px; font-size: 1.0625rem; }
.plan-panel li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: baseline; }
.plan-panel li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
.plan-panel .button { margin-top: 36px; }
.plan-mobile { display: none; }

/* preguntas */
.faq-head { grid-column: 1 / span 4; }
.faq-head h2 { position: sticky; top: 96px; font-size: var(--step-head); }
.faq-list { grid-column: 5 / -1; display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: var(--radius); transition: background-color var(--t-ui) ease; }
.faq summary { min-height: 72px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 16px; height: 16px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; border-radius: 2px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.plus::after { transform: rotate(90deg); }
.faq details[open] { background: var(--accent); color: var(--accent-ink); }
.faq details[open] .plus::after { transform: rotate(0deg); }
.faq details p { padding: 0 24px 24px; max-width: 58ch; font-size: 1.0625rem; }
@media (hover: hover) and (pointer: fine) { .faq details:not([open]) summary:hover { background: var(--surface-2); border-radius: var(--radius); } }

/* llamada final */
.cta { overflow: hidden; }
.cta-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; margin-inline: calc(var(--margin) * -1 - 40px); }
.cta-tile { height: 380px; border-radius: var(--radius); overflow: hidden; }
.cta-side.l { grid-column: 1 / span 2; }
.cta-main { grid-column: 3 / span 8; background: var(--accent); color: var(--accent-ink); display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(32px, 5vw, 80px); }
.cta-main h2 { font-size: var(--step-head); max-width: 14ch; }
.cta-main p { margin-top: 18px; font-size: 1.125rem; max-width: 44ch; }
.cta-main .button { margin-top: 28px; align-self: flex-start; background: var(--ink); color: var(--bg); }
.cta-side.r { grid-column: 11 / span 2; background: var(--deep); }

/* pie */
.foot { padding-top: 30svh; padding-bottom: 30px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; font-size: 0.9375rem; color: var(--muted); }
.foot nav { display: flex; gap: 24px; }
.foot nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.foot .r { justify-self: end; display: flex; gap: 18px; align-items: baseline; }
.foot .r a { color: var(--ink); text-decoration: none; padding: 8px 0; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { text-decoration: underline; text-underline-offset: 0.25em; } }

.section-gap { margin-top: var(--section); }

/* ---------- movimiento ---------- */

@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes stage-in { to { clip-path: inset(0 0 0 0); } }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 380ms); }
  .js .hero-stage { clip-path: inset(0 0 0 100%); animation: stage-in 1100ms var(--ease-in-out) 120ms forwards; }
  .js .hero-stage .today { opacity: 0; transform: translateY(28px); animation: rise 900ms var(--ease-out) 700ms forwards; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter.is-in { clip-path: inset(0); }
  .js .shutter.is-in img { transform: none; }
  .js .versus tbody tr { opacity: 0; transform: translateX(-16px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + 200ms); }
  .js .versus.is-in tbody tr { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .profile-body.swap { filter: none; }
  .notif { transform: none; }
}

/* ---------- tableta ---------- */

@media (max-width: 1100px) {
  .hero { display: block; min-height: 0; padding: 0; }
  .hero-copy { padding: 132px var(--margin) 56px; }
  .hero-stage { margin: 0; padding: 48px var(--margin) 56px; justify-content: center; }
  .profile-stage { grid-column: 1 / span 12; }
  .street-copy { grid-column: 1 / span 9; margin-top: 40px; padding-left: 0; }
  .mora-stage { grid-column: 1 / span 6; }
  .notebook-copy { grid-column: 7 / -1; }
  .row-main { grid-template-columns: 32px 1fr auto; }
  .row-main .acts { grid-column: 2 / -1; }
  .sim { grid-template-columns: 1fr; }
  .flow-col { grid-column: 2 / span 10; }
  .step.final .resp { width: 100%; }
  .vault-copy { grid-column: 1 / span 6; }
  .vault-demo { grid-column: 7 / -1; }
}

/* ---------- teléfono ---------- */

@media (max-width: 760px) {
  .top { padding-top: 16px; }
  .top nav .hide-m { display: none; }
  .hero { display: block; min-height: 0; padding: 0; }
  .hero-copy { padding: 116px var(--margin) 48px; }
  .hero h1 { font-size: clamp(2.6rem, 11.5vw, 3.6rem); }
  .hero .lead { margin-top: 20px; }
  .hero-actions { margin-top: 30px; }
  .hero-actions .button { flex: 1 1 auto; }
  .hero-stage { margin: 0; padding: 28px 12px 36px; }
  .today-head { padding: 16px 14px 12px; }
  .bar { margin-inline: 14px; }
  .row-main { padding: 12px 14px; grid-template-columns: 34px 1fr auto; column-gap: 10px; row-gap: 10px; }
  .row-main .acts { grid-column: 2 / -1; }
  .row-main .acts .ui-btn.primary { flex: 1; justify-content: center; height: 40px; }
  .row-main .acts .ui-btn.wa { width: 40px; height: 40px; }
  .bubble, .bubble-actions { margin-left: 14px; margin-right: 14px; }
  .today-foot { padding: 12px 14px; flex-direction: column; gap: 2px; }

  .grid { display: block; }
  .profile-stage { margin-inline: calc(var(--margin) * -1); padding: 28px 12px; border-radius: 0; }
  .street-copy { margin-top: 32px; padding-left: 0; }
  .mora-stage { margin-inline: calc(var(--margin) * -1); padding: 28px 12px; border-radius: 0; }
  .notebook-copy { margin-top: 32px; }
  .versus td { padding: 14px 12px 14px 0; font-size: 1rem; }

  .sim { margin-inline: calc(var(--margin) * -1); border-radius: 0; }
  .sim-card { padding: 16px 12px; }
  .card { padding: 16px 14px; }
  .card-top { flex-direction: column; }
  .card-figs { text-align: left; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .boxes { grid-template-columns: repeat(3, 1fr); }
  .sim-controls { padding: 12px var(--margin) 20px; }
  .ctl { min-height: 52px; }
  .sim-controls .ctl.extra { display: none; }
  .sim-controls.all .ctl.extra { display: grid; }
  .more-ctl { display: inline-flex !important; }

  .resp { margin-left: 0; margin-top: 24px; }
  .form-frag { grid-template-columns: 1fr 1fr; }
  .receipt { grid-template-columns: 1fr; }
  .step.final .resp { margin-inline: calc(var(--margin) * -1); width: auto; }
  .step.final .receipt { border-radius: 0; border-inline: 0; }

  .band { min-height: 132px; }
  .band-in { grid-template-columns: 1fr auto; column-gap: 16px; padding: 22px var(--margin); }
  .band-text { grid-column: 1; }
  .band-text > p:first-child { font-size: 6.4vw; }
  .band .switch { grid-column: 2; font-size: 30px; }
  .band-conseq p { font-size: 0.9375rem; }

  .vault-copy dl { grid-template-columns: 1fr; gap: 2px; }
  .vault-copy dd + dt { margin-top: 12px; }
  .vault-demo { margin-top: 40px; }

  .built { display: block; }
  .built ul { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 1.125rem; }

  .plans, .plan-stage { display: none; }
  .plan-mobile { display: grid; gap: 4px; }
  .plan-mobile summary { list-style: none; cursor: pointer; font-size: 10vw; font-weight: 500; letter-spacing: -0.05em; line-height: 1.15; color: color-mix(in srgb, var(--ink) 60%, var(--bg)); display: flex; align-items: center; gap: 0.25em; min-height: 52px; }
  .plan-mobile summary::-webkit-details-marker { display: none; }
  .plan-mobile summary::before { content: ""; width: 0.3em; height: 0.3em; border-radius: 50%; background: var(--ink); transform: scale(0.4); opacity: 0; transition: transform var(--t-ui) var(--ease-out), opacity var(--t-ui) ease; }
  .plan-mobile details[open] summary { color: var(--ink); }
  .plan-mobile details[open] summary::before { transform: scale(1); opacity: 1; }
  .plan-mobile .plan-panel { padding: 12px 0 64px; }
  .plan-mobile .price strong { font-size: 20vw; }
  .plan-mobile .plan-panel p { font-size: 1.0625rem; margin-top: 18px; }
  .plan-mobile .button { width: 100%; }

  .faq-head h2 { position: static; font-size: 9vw; margin-bottom: 24px; }
  .faq-list { gap: 6px; }
  .faq summary { font-size: 1.125rem; min-height: 64px; padding: 18px 20px; }
  .faq details p { font-size: 1rem; padding: 0 20px 20px; }

  .cta-row { margin-inline: 0; grid-template-columns: 1fr 1fr; gap: 10px; }
  .cta-main { grid-column: 1 / -1; grid-row: 1; height: auto; min-height: 300px; padding: 32px 24px; }
  .cta-main h2 { font-size: 1.75rem; }
  .cta-main .button { width: 100%; align-self: stretch; }
  .cta-side.l { grid-column: 1; grid-row: 2; height: 120px; }
  .cta-side.r { grid-column: 2; grid-row: 2; height: 120px; }

  .foot { padding-top: 20svh; padding-bottom: 24px; grid-template-columns: 1fr; gap: 8px; font-size: 0.875rem; }
  .foot nav { flex-wrap: wrap; gap: 4px 18px; }
  .foot .r { justify-self: start; }
}
.more-ctl { display: none; margin-top: 8px; }
