/* 1MGROWTH · rediseño 2, variante con el lenguaje de hsu.es.
   Campo oscuro arriba y abajo (aquí el azul marino de la marca, no negro), papel blanco en medio,
   titulares de grotesca apretada a dos tonos, tarjetas de esquina 24 sin bordes ni sombras,
   botones píldora y las ilustraciones a dos tintas como personajes recortados. */
:root {
  --white: #ffffff;
  --navy: #082549;
  --navy-2: #143560;      /* superficie levantada sobre el azul: campos */
  --card: #f5f7fa;        /* tarjeta clara */
  --band: #eaeff5;        /* banda y campos sobre tarjeta clara */
  --ring: #cfd9e5;
  --soft: #3d5273;        /* texto secundario sobre claro */
  --dim: #74839a;         /* segunda línea de los titulares, sobre claro */
  --dim-dark: #8ea3c4;    /* segunda línea de los titulares, sobre azul */
  --pale: #cdd9ea;        /* texto corrido sobre azul */
  --green: #18bc42;
  --red: #ff8f87;

  --bg: var(--white);
  --ink: var(--navy);

  --m: clamp(1rem, 2.8vw, 2.5rem);
  --max: 75rem;                         /* 1200: contenido de 1120 con 40 de margen */
  --g: 1rem;                            /* 16 entre tarjetas */
  --r: 1.5rem;                          /* 24 */
  --gap: clamp(5rem, 9.5vw, 8.75rem);   /* 80 → 140 entre secciones */

  --small: 0.875rem;
  --body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --lead: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  --disp: clamp(2.375rem, 0.9rem + 6.2vw, 5rem);
  --big: clamp(2.75rem, 1rem + 7.6vw, 6rem);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --text: "Inter Tight", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--navy) var(--band); scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--green); color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.hero :focus-visible, .dark :focus-visible, .contact :focus-visible, .end :focus-visible, .step :focus-visible { outline-color: var(--white); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; background: var(--white); color: var(--navy); padding: .75rem 1.25rem; border-radius: 99px; font-weight: 500; }
.skip:focus { top: 1rem; }

h1, h2 { font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--disp); line-height: 1.05; }
h2 { font-size: var(--h2); line-height: 1.2; }
h1 span, h2 span { display: block; color: var(--dim); }
h3 { font-size: var(--lead); line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
.lead { font-size: var(--lead); line-height: 1.35; text-wrap: pretty; }
p { text-wrap: pretty; }
.num, .ledger b, .sheet dd, .ratio, .amount { font-variant-numeric: tabular-nums lining-nums; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--m); }
.card { background: var(--card); border-radius: var(--r); padding: clamp(1.25rem, 2.4vw, 2rem); position: relative; overflow: hidden; }
.card.dark { background: var(--navy); color: var(--white); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); }
.sec-head { text-align: center; max-width: 46rem; margin-inline: auto; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head .lead { margin-top: .75rem; color: var(--soft); }

/* botón píldora; al pasar, un círculo verde lo llena desde el centro */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: 0 2rem;
  background: var(--navy); color: var(--white);
  font-family: var(--text); font-weight: 500; font-size: 1.0625rem; line-height: 1;
  text-decoration: none; border: 0; border-radius: 99px; cursor: pointer; white-space: nowrap;
  transition: color .25s, background-color .2s .3s, transform .2s var(--ease);
}
.btn::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 110%; aspect-ratio: 1; border-radius: 50%; background: var(--green);
  transform: translate(-50%, -50%) scale(0); transition: transform .5s var(--ease); /* taste-skill-ignore: es el relleno del botón al pasar, no una entrada */
}
.btn:hover, .btn:focus-visible { color: var(--navy); background-color: var(--green); }
.btn:hover::before, .btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
.btn:active { transform: scale(.97); }
.btn.on-dark { background: var(--white); color: var(--navy); }
.btn.small { min-height: 2.625rem; padding: 0 1.375rem; font-size: 1rem; }

/* ---------- navegación: una píldora blanca que flota ---------- */
.top {
  position: fixed; z-index: 20; top: .75rem; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem);
  padding: .1875rem .1875rem .1875rem 1.25rem;
  background: var(--white); color: var(--navy); border-radius: 2rem; text-align: left;
  box-shadow: 0 2px 8px 1px rgba(8, 37, 73, .16); /* taste-skill-ignore: la barra flota sobre la página, es lo único con sombra */
  max-width: calc(100vw - 1.5rem);
  width: max-content; /* sin esto, con left: 50% la barra solo disponía de la mitad de la pantalla y apretaba el botón entre 900 y 1450 px */
}
.top .logo { flex: none; display: block; padding: .5rem 0; }
.top .logo img { width: 6.75rem; }
/* el PNG del dueño tiene un fondo #fefefe; esto lo sube al blanco sin tocar el archivo */
.logo img, .e-logo img { filter: brightness(1.02); }
.links { display: flex; gap: clamp(1rem, 2vw, 1.75rem); font-weight: 500; font-size: 1rem; white-space: nowrap; }
.links a { display: inline-block; padding: .625rem 0; text-decoration: underline transparent 2px; text-underline-offset: 6px; transition: text-decoration-color .25s; }
.links a:hover { text-decoration-color: currentColor; }
.top :focus-visible { outline-color: var(--navy); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--white);
  min-height: min(100svh - 3rem, 53.125rem);
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(7rem, 20svh, 12.5rem) var(--m) clamp(11rem, 26svh, 15rem);
  text-align: center;
}
.pitch { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 60rem; }
.hero h1 span { color: var(--dim-dark); }
.pitch .lead { margin-top: clamp(1.25rem, 3svh, 2rem); max-width: 35ch; }
.whom { margin-top: .875rem; max-width: 48ch; color: var(--pale); }
.act-row { display: flex; flex-direction: column; align-items: center; gap: .875rem; margin-top: clamp(1.25rem, 3.4svh, 2rem); }
.fact { font-weight: 500; color: var(--pale); }
.hero-pic { position: absolute; z-index: 1; bottom: 0; width: clamp(11.5rem, 25vw, 21.5rem); will-change: transform; }
.hero-coin { left: max(var(--m), 50% - 39rem); transform: translateY(24%) rotate(var(--spin, -10deg)); }
.hero-till { right: max(var(--m), 50% - 39rem); transform: translateY(14%) rotate(5deg); }

/* ---------- sectores: una cinta gris bajo el hero ---------- */
.line {
  max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) var(--m) 0;
  display: flex; align-items: center; gap: 2rem;
  color: var(--soft); font-size: var(--lead); font-weight: 500;
}
.line-label { flex: none; font-size: var(--body); font-weight: 400; color: var(--soft); }
.mask { flex: 1 1 0; min-width: 0; display: flex; overflow: hidden; border-radius: 99px; }
.track { display: flex; flex: none; white-space: nowrap; animation: mq var(--mq-t, 90s) linear infinite; will-change: transform; }
.track span { padding-right: clamp(2.5rem, 5vw, 4.5rem); }
.line:hover .track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- el recorrido: a la izquierda las cuatro cifras, a la derecha una tarjeta por paso ---------- */
.trail { padding-top: var(--gap); }
.trail .scene-stage { max-width: var(--max); margin-inline: auto; padding-inline: var(--m); display: flex; flex-direction: column; }
.trail-head { text-align: center; }
.trail-head p { margin-top: .5rem; color: var(--soft); }
.trail-body { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: var(--g); }

.steps-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--g); }
.step {
  position: relative; overflow: hidden;
  min-height: 27rem;
  background: var(--navy); color: var(--white);
  border-radius: var(--r); padding: clamp(1.25rem, 2.6vw, 2rem);
}
.step.sale { background: var(--green); color: var(--navy); }
.step-say { position: relative; z-index: 2; }
.step-say h3 { font-size: var(--h2); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.step-say p { margin-top: .75rem; max-width: 34ch; font-size: var(--lead); line-height: 1.3; color: var(--pale); }
.step.sale .step-say p { color: var(--navy); }
.step-pic { position: absolute; z-index: 1; right: -3%; bottom: -6%; width: 70%; height: 66%; }
.step-pic img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: right bottom; }

.ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); }
.ledger a {
  display: grid; align-content: start; row-gap: .125rem;
  background: var(--card); border-radius: var(--r); padding: 1rem 1.5rem;
  text-decoration: none;
  outline: 3px solid transparent; outline-offset: -3px;
  transition: opacity .5s var(--ease), background-color .4s, outline-color .4s;
}
.ledger span { font-size: var(--lead); font-weight: 500; letter-spacing: -0.01em; }
.ledger small { font-size: var(--small); color: var(--soft); }
.ledger b { order: -1; margin-bottom: .25rem; font-weight: 700; font-size: var(--h2); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.ledger a:hover { background: var(--band); }
.ledger a:focus-visible { outline-color: var(--navy); }

/* la escena en marcha: el escenario se queda quieto y las tarjetas se relevan */
html.js .scene.is-live { height: calc((var(--hold, 3) + 1) * 100svh); padding-top: 0; }
html.js .scene.is-live > .scene-stage {
  position: sticky; top: 0; height: 100svh; overflow: clip;
  padding-block: clamp(5.25rem, 11svh, 6.5rem) clamp(1.25rem, 5svh, 3rem);
}
.is-live .trail-body { flex: 1 1 0; min-height: 0; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(1.5rem, 5.5vw, 5rem); margin-top: clamp(1rem, 3.5svh, 2.5rem); }
.is-live .steps-list { display: block; position: relative; grid-column: 2; grid-row: 1; min-height: 0; }
.is-live .steps-list::before { content: ""; position: absolute; inset: 0; border-radius: var(--r); background: var(--navy); }
.is-live .step { position: absolute; inset: 0; min-height: 0; will-change: transform, opacity; }
.is-live .step.off { visibility: hidden; }
.is-live .step-pic img, .is-live .step-say { will-change: transform, opacity; }
.is-live .ledger { grid-column: 1; grid-row: 1; grid-template-columns: 1fr; align-content: center; gap: .75rem; }
.is-live .ledger a { opacity: .45; padding-block: clamp(.75rem, 2.4svh, 1.5rem); grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 1rem; row-gap: 0; }
.is-live .ledger small { grid-column: 1; }
.is-live .ledger b { order: 0; margin: 0; grid-column: 2; grid-row: 1 / 3; }
.is-live .ledger a.reached { opacity: 1; }
.is-live .ledger a.now { background: var(--white); outline-color: var(--ring); }
.is-live .ledger a:focus-visible { opacity: 1; outline-color: var(--navy); }

/* ---------- ahora con tus números ---------- */
.yours { padding-top: var(--gap); }
.rows { grid-column: 1 / 8; display: grid; gap: .625rem; grid-auto-rows: 1fr; padding: clamp(.75rem, 1.6vw, 1.25rem); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: .75rem; row-gap: 2px;
  align-items: center;
  background: var(--white); border-radius: 1rem; padding: .875rem .875rem .875rem 1.25rem;
}
.row label { font-weight: 500; cursor: pointer; }
.row output { grid-column: 1 / 2; grid-row: 2; color: var(--soft); font-size: var(--small); }
.row .num { grid-row: 1 / 3; grid-column: 2; }
.row .steps { grid-row: 1 / 3; grid-column: 3; }
.num { display: flex; align-items: center; background: var(--band); height: 3rem; padding: 0 .875rem; border-radius: .625rem; outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .18s; }
.num:focus-within { outline-color: var(--navy); }
.grow { display: block; }
.num input {
  width: 6.2ch; padding: 0; margin: 0; border: 0; background: transparent; outline: none; border-radius: 0;
  font-size: var(--lead); font-weight: 500; letter-spacing: -0.01em; text-align: right; caret-color: var(--green);
}
.num input:disabled { opacity: 1; color: var(--soft); -webkit-text-fill-color: var(--soft); }
.unit { font-size: var(--lead); font-weight: 500; margin-left: .25em; width: .7em; }
.steps { display: flex; gap: .375rem; flex: none; justify-content: flex-end; }
.steps button {
  width: 3rem; height: 3rem; padding: 0;
  background: var(--navy); color: var(--white);
  border: 0; border-radius: 99px; cursor: pointer;
  font-weight: 500; font-size: var(--lead); line-height: 1;
  transition: transform .18s var(--ease), background-color .18s, color .18s;
}
.steps button:hover { background: var(--green); color: var(--navy); }
.steps button:active { transform: scale(.9); }
.steps button:disabled { opacity: .3; cursor: default; background: var(--navy); color: var(--white); }
.steps .dunno { width: auto; padding: 0 1rem; white-space: nowrap; font-size: var(--small); background: var(--band); color: var(--navy); }
.steps .dunno[aria-pressed="true"] { background: var(--navy); color: var(--white); }

.result { grid-column: 8 / 13; display: flex; flex-direction: column; }
.coins { display: flex; --c: clamp(4rem, 6vw, 5.25rem); min-height: var(--c); }
.coins span { display: block; width: var(--c); height: var(--c); margin-left: calc(var(--c) * var(--lap, -.42)); flex: none; }
.coins span:first-child { margin-left: 0; }
.coins img { width: 100%; transform: rotate(var(--r, 0deg)) scale(var(--s, 1)); transition: transform .6s var(--ease), opacity .3s; }
.result h3 { margin-top: auto; padding-top: 2rem; max-width: 17ch; font-weight: 400; color: var(--pale); }
.ratio { font-weight: 700; font-size: var(--disp); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; margin-top: .1em; }
.reading { margin-top: 1.25rem; display: grid; row-gap: .625rem; color: var(--pale); }
.reading .note { font-size: var(--small); color: var(--dim-dark); }
.reading .btn { justify-self: start; margin-top: .75rem; }

/* ---------- lo que hacemos ---------- */
.work { padding-top: var(--gap); }
.jobs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); }
.job { grid-column: span 5; min-height: 21.5rem; display: flex; flex-direction: column; }
.job.wide { grid-column: span 7; }
.job-say { position: relative; z-index: 2; max-width: 62%; }
.job-say p { margin-top: .5rem; color: var(--soft); max-width: 30ch; }
.job.dark .job-say p { color: var(--pale); }
.job > ul { position: relative; z-index: 2; margin-top: auto; padding-top: 2rem; display: grid; row-gap: .375rem; max-width: 62%; }
.job-pic { position: absolute; z-index: 1; right: 1.25rem; top: 1.25rem; bottom: 1.25rem; width: 33%; }
.job.wide .job-pic { width: 36%; }
.job.full { grid-column: 1 / -1; min-height: 17rem; }
.job.full .job-pic { width: 24%; }
.job-pic img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: right center; transition: transform .6s var(--ease); }
.job:hover .job-pic img { transform: rotate(-4deg) scale(1.05); }

.monday { margin-top: var(--gap); background: var(--band); padding-block: clamp(4rem, 8vw, 7.5rem); }
.monday .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: center; }
.monday-say { grid-column: 1 / 6; }
.monday-say img { width: clamp(8rem, 14vw, 12.5rem); margin-bottom: clamp(1.5rem, 2.5vw, 2rem); transform: rotate(-5deg); }
.monday-say h3 { font-size: var(--h2); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.monday-say p { margin-top: 1rem; max-width: 36ch; color: var(--soft); }
.sheet { grid-column: 7 / 13; background: var(--white); border-radius: var(--r); padding: clamp(1.25rem, 2.6vw, 2rem); }
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; font-weight: 500; }
.tag { background: var(--band); border-radius: 99px; padding: .25rem .875rem; font-size: var(--small); font-weight: 500; }
.sheet dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-top: 1.5rem; }
.sheet dl div { display: flex; flex-direction: column-reverse; background: var(--card); border-radius: .625rem; padding: .875rem 1rem; }
.sheet dd { font-weight: 700; font-size: calc(var(--h2) * .8); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.sheet dt { margin-top: .375rem; font-size: var(--small); color: var(--soft); }
.sheet-notes { margin-top: 1.5rem; display: grid; row-gap: .75rem; }
.sheet-notes p { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); column-gap: .75rem; }
.sheet-notes b { font-weight: 500; }
.sheet-notes span { color: var(--soft); }

/* ---------- para quién ---------- */
.who { padding-top: var(--gap); }
.fit.yes { grid-column: 1 / 8; }
.fit.no { grid-column: 8 / 13; }
.fit h3 { font-size: var(--h2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.fit ul { position: relative; z-index: 2; margin-top: clamp(2rem, 3.4vw, 2.75rem); display: grid; gap: 1.5rem var(--g); }
.fit.yes ul { grid-template-columns: 1fr 1fr; margin-top: clamp(5rem, 10vw, 8.5rem); }
/* tick y cruz: un disco del alto de la primera línea (1,45em) con el trazo dentro, del peso del 500 */
.fit li { display: grid; grid-template-columns: 1.375em minmax(0, 1fr); column-gap: .75rem; align-content: start; }
.fit li > * { grid-column: 2; }
.fit li .mark { grid-column: 1; grid-row: 1 / span 2; width: 1.375em; height: 1.375em; margin-top: .0375em; }
.mark path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fit.yes .mark circle, .job .mark circle, .incl .mark circle { fill: var(--green); }
.fit.yes .mark path, .job .mark path, .incl .mark path { stroke: var(--navy); }
/* el mismo tick, algo menor (1,125em), centrado en la primera línea (1,45em) en las listas de «Lo que hacemos» y del precio */
.job > ul li, .incl li { display: grid; grid-template-columns: 1.125em minmax(0, 1fr); column-gap: .625em; align-items: start; }
.job > ul li .mark, .incl li .mark { width: 1.125em; height: 1.125em; margin-top: .1625em; }
.fit.no .mark circle { fill: var(--navy-2); }
.fit.no .mark path { stroke: var(--pale); }
.fit li b { display: block; font-weight: 500; margin-bottom: .25rem; }
.fit li span { color: var(--soft); }
.fit.no li span { color: var(--pale); }
.who-pic { position: absolute; z-index: 1; right: 2rem; top: 1.5rem; width: min(36%, 13.5rem); }
.who-pic img { transform: rotate(5deg); transition: transform .6s var(--ease); }
.fit.yes:hover .who-pic img { transform: rotate(-2deg) scale(1.04); }

/* ---------- precio ---------- */
.price { padding-top: var(--gap); }
.price-incl { grid-column: 1 / 6; display: flex; flex-direction: column; }
.price-pic { width: min(64%, 15rem); margin: .5rem auto 0; }
.price-pic img { transform: rotate(-4deg); transition: transform .6s var(--ease); }
.price-incl:hover .price-pic img { transform: rotate(2deg) scale(1.04); }
.incl { margin-top: auto; padding-top: 2rem; display: grid; row-gap: .375rem; }
.price-say { grid-column: 6 / 13; display: flex; flex-direction: column; padding: clamp(1.5rem, 3.4vw, 3rem); }
.amount { font-weight: 700; font-size: var(--big); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.amount small { font-size: var(--lead); font-weight: 400; letter-spacing: 0; margin-left: .5em; white-space: nowrap; color: var(--dim-dark); }
.price-say .tiers { margin-top: 1.5rem; max-width: 44ch; font-size: var(--lead); line-height: 1.35; color: var(--pale); }
.price-foot { margin-top: auto; padding-top: 2.5rem; display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.75rem; }
.price-foot p { font-size: var(--small); color: var(--dim-dark); max-width: 38ch; }

/* ---------- contacto y pie: un solo cierre oscuro ---------- */
.contact { margin-top: var(--gap); background: var(--navy); color: var(--white); padding-top: var(--gap); }
.contact .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start; }
.contact h2 span, .end h2 span { color: var(--dim-dark); }
.c-say { grid-column: 1 / 6; }
.c-say p { margin-top: 1.25rem; max-width: 38ch; font-size: var(--lead); line-height: 1.35; color: var(--pale); }
.c-form { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.25rem; align-content: start; }
.f { display: grid; align-content: start; cursor: text; }
.f.full, .ok, .c-form .btn, .status { grid-column: 1 / 3; }
.f > span, .f > label { font-size: var(--small); color: var(--dim-dark); margin-bottom: .5rem; }
.f input, .f select {
  width: 100%; min-height: 3rem; margin: 0; padding: 0 .875rem;
  background: var(--navy-2); color: var(--white); border: 0; border-radius: .625rem;
  font-size: var(--body); outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .18s;
  caret-color: var(--green);
}
.f input:focus-visible, .f select:focus-visible { outline-color: var(--white); }
.f select { cursor: pointer; }
.f select option { color: var(--navy); background: var(--white); }
.f.bad input, .f.bad select { outline-color: var(--red); }
.f .err { font-size: var(--small); font-weight: 500; margin-top: .375rem; color: var(--red); }
.f .err:empty { display: none; }
.ok { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--small); line-height: 1.4; color: var(--pale); cursor: pointer; }
.ok input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--green); flex: none; }
.c-form .btn { width: 100%; }
.c-form .btn:disabled { opacity: .6; cursor: default; pointer-events: none; }
.status { min-height: 1.5em; font-weight: 500; font-size: var(--small); }

.end { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding-top: var(--gap); text-align: center; }
.end h2 { font-size: var(--big); line-height: 1; letter-spacing: -0.025em; }
.e-coin { position: relative; z-index: 2; width: clamp(11rem, 23vw, 20rem); margin: clamp(1.5rem, 3vw, 2.5rem) auto clamp(-7.5rem, -9vw, -5rem); transform: rotate(-12deg); transition: transform .8s var(--ease); }
.end:hover .e-coin { transform: rotate(6deg); }
.e-sign { position: relative; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--g); padding-bottom: 1.5rem; font-size: var(--small); color: var(--dim-dark); text-align: left; }
.e-id, .e-nav { display: grid; gap: .625rem; max-width: 22rem; }
.e-nav { justify-items: end; text-align: right; }
.e-logo { justify-self: start; display: block; background: var(--white); border-radius: 99px; padding: .5rem 1.125rem; }
.e-logo img { width: 6.75rem; }
.e-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 1.25rem; color: var(--white); font-weight: 500; }
.e-links a { display: inline-block; padding: .25rem 0; text-decoration: underline transparent 2px; text-underline-offset: 5px; transition: text-decoration-color .25s; }
.e-links a:hover { text-decoration-color: currentColor; }
.e-legal { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.e-legal a { display: inline-block; padding: .25rem 0; text-decoration: underline; text-underline-offset: 4px; }
.e-credit { font-size: .625rem; line-height: 1.4; } /* línea de créditos de las ilustraciones: 10 px, lo mínimo que sigue siendo legible */

/* ---------- movimiento: poco, solo transform y opacidad ---------- */
.js .rv { transform: translateY(18px); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js .rv.in { transform: none; }
.bump { animation: bump .4s var(--ease); }
@keyframes bump { 0% { transform: translateY(-3px); } 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { animation: none; }
  .js .rv { transition: none; transform: none; }
  .bump { animation: none; }
  .btn::before { transition: none; }
  .job:hover .job-pic img, .fit.yes:hover .who-pic img, .price-incl:hover .price-pic img, .end:hover .e-coin { transition: none; }
  .ledger a, .coins img { transition: none; }
}

/* ---------- tableta ---------- */
@media (max-width: 900px) {
  .links { display: none; }
  .top { gap: 1.5rem; }
  .steps-list { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr 1fr; }
  .is-live .trail-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; row-gap: .75rem; margin-top: 1rem; }
  .is-live .steps-list { grid-column: 1; grid-row: 1; }
  .is-live .ledger { grid-column: 1; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
  .is-live .ledger a { grid-template-columns: 1fr; padding: .75rem .875rem; border-radius: 1rem; }
  .is-live .ledger b { grid-column: 1; grid-row: auto; font-size: var(--lead); order: -1; }
  .is-live .ledger small { display: none; }
  .is-live .ledger span { font-size: var(--small); margin-top: .25rem; }
  .is-live .ledger small { display: none; }

  .rows, .result { grid-column: 1 / 13; }
  .result h3 { margin-top: 0; }
  .job, .job.wide { grid-column: 1 / 13; min-height: 17rem; }
  .monday-say, .sheet { grid-column: 1 / 13; }
  .sheet { margin-top: 2.5rem; }
  .fit.yes, .fit.no { grid-column: 1 / 13; }
  .price-incl { grid-column: 1 / 6; }
  .price-say { grid-column: 6 / 13; }
  .c-say, .c-form { grid-column: 1 / 13; }
  .c-form { margin-top: 2.5rem; }
  .fit.yes ul { margin-top: 7rem; }
  .who-pic { width: 10.5rem; }
  .e-sign { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .e-nav { justify-items: start; text-align: left; }
  .e-links { justify-content: flex-start; }
  .e-coin { margin-bottom: 1.5rem; }
}

/* ---------- móvil ---------- */
@media (max-width: 600px) {
  :root { --r: 1.25rem; --g: .75rem; }
  .top { top: .5rem; padding-left: 1rem; gap: 1rem; width: max-content; }
  .top .logo img { width: 6rem; }
  .hero { min-height: min(100svh - 1.5rem, 50rem); padding-top: 6.75rem; padding-bottom: 14rem; }
  .pitch .lead { max-width: 30ch; }
  .whom { font-size: var(--small); max-width: 40ch; }
  .hero-pic { width: 52vw; }
  .hero-coin { left: -5vw; }
  .hero-till { right: -4vw; }
  .line { gap: 1rem; padding-top: 1.75rem; }

  .step { min-height: 24rem; }
  html.js .scene.is-live > .scene-stage { padding-block: 4.75rem 1rem; }
  .trail-head p { font-size: var(--small); }
  .step-say p { font-size: var(--body); line-height: 1.4; }
  .step-pic { width: 84%; height: 54%; }

  .rows { padding: .625rem; }
  .row { grid-template-columns: minmax(0, 1fr) auto; padding: .75rem; row-gap: .5rem; }
  .row label { grid-column: 1 / 3; }
  .row .num { grid-row: 2; grid-column: 1; justify-self: start; }
  .row .steps { grid-row: 2; grid-column: 2; }
  .row output { grid-row: 3; grid-column: 1 / 3; }
  .steps .dunno { padding: 0 .75rem; }
  .num input { width: 5.4ch; }

  .job, .job.wide { min-height: 0; }
  .job-say, .job > ul { max-width: none; }
  .job-say { padding-right: 34%; min-height: 7.5rem; }
  .job-pic, .job.wide .job-pic, .job.full .job-pic { width: 28%; bottom: auto; height: 7.5rem; right: 1rem; top: 1rem; }
  .job-pic img { object-position: right top; }
  .job > ul { padding-top: 1.25rem; }
  .sheet dl { grid-template-columns: 1fr 1fr; }
  .sheet-notes p { grid-template-columns: 1fr; }
  .fit.yes ul { grid-template-columns: 1fr; margin-top: 2rem; }
  .fit.yes h3 { padding-right: 45%; min-height: 6.5rem; }
  .who-pic { right: 1rem; top: 1rem; width: 40%; }
  .price-incl, .price-say { grid-column: 1 / 13; }
  .price-say { grid-row: 1; }
  .amount small { display: block; margin: .5rem 0 0; }
  .price-foot .btn { width: 100%; }
  .c-form { grid-template-columns: 1fr; }
  .f.full, .ok, .c-form .btn, .status { grid-column: 1; }
}
