/*
 * La landing de Balance. Lleva la marca en su versión sobre oscuro
 * (`docs/marca/entrega/ruta-a/`: índigo #8C80FF y menta #3DDCAE sobre
 * #16161A), Outfit en títulos y cifras, y un bloque de color por tema
 * (dinero índigo, precios lima, comida menta clara).
 *
 * Es un escenario: siempre oscuro, sea cual sea el tema del equipo, para que
 * la luz, el volumen y el papel blanco del ticket se vean.
 *
 * El movimiento lo pone `main.js`. Lo de ".is-live" solo vale cuando corre;
 * sin él la página se lee entera, quieta.
 */
:root {
  color-scheme: dark;

  --bg: #16161a;
  --bg-deep: #0f0f13;
  --surface: #1e1e24;
  --surface-2: #27272f;
  --border: #33333c;
  --text: #ededf2;
  --text-muted: #a4a5b0;

  --indigo: #8c80ff;
  --indigo-deep: #5b4bff;
  --mint: #3ddcae;
  --lime: #d9f27e;

  --accent: #8c80ff;
  --accent-text: #15161a;

  --block-money: #5b4bff;
  --block-money-text: #ffffff;
  --block-money-muted: #f1efff;
  --block-food: #9bf0d6;
  --block-food-text: #15161a;
  --block-food-muted: #2b3a35;
  --block-prices: #d9f27e;
  --block-prices-text: #15161a;
  --block-prices-muted: #363d1c;
  --half-1: #ffffff;
  --half-2: #9bf0d6;
  /* Fuera de un bloque de color: las personas y las barras, sobre el fondo de la página. */
  --person-1: #ffffff;
  --person-2: #9bf0d6;
  --streak: #ffffff;

  /* El papel de un ticket: blanco con su tinta. */
  --paper: #ffffff;
  --paper-text: #15161a;
  --paper-muted: #5e5f6b;
  --paper-line: #c9c9d6;
  --paper-money: #dedbff;
  --paper-food: #c4f5e6;

  --radius-block: 24px;

  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: 20px;
  --tap: 44px;
  --top-h: 64px;

  /* Cuánto se desliza entre un paso y el siguiente de "Cómo funciona". */
  --beat: 95svh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed;
  left: var(--gutter);
  top: -100px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
}

.skip:focus {
  top: 12px;
}

/* --- Letra --- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 5.8vw, 78px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.05;
}

h3 {
  font-size: 22px;
  line-height: 1.15;
}

.body {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--text-muted);
  max-width: 44ch;
  text-wrap: pretty;
}

/* La etiqueta de una parte: una píldora con un punto encendido. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  padding: 6px 14px 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

/* --- Lo que se toca --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 0 0 rgb(140 128 255 / 0);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgb(140 128 255 / 0.45);
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  min-height: var(--tap);
  padding: 0 18px;
  font-size: 16px;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  box-shadow: none;
}

.link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s ease;
}

.link:hover {
  text-decoration-color: currentColor;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

/* --- Cabecera --- */

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--top-h);
}

.top__logo img {
  height: 28px;
  width: auto;
}

.top__nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* --- El ticket (portada, escenario y "dos lados") --- */

.ticket {
  position: relative;
  width: 252px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--paper-text);
}

.ticket__paper {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 22px 40px rgb(0 0 0 / 0.55));
}

/* La máscara que corta la orilla del papel se comería la sombra: va por dentro. */
.ticket__paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}

.ticket__ink {
  position: relative;
  padding: 20px 18px 28px;
}

.ticket__head {
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--paper-line);
}

.ticket__rows {
  padding-block: 10px;
}

.ticket__rows li,
.ticket__total {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.ticket__rows span {
  white-space: nowrap;
  padding-inline: 4px;
  margin-inline: -4px;
  border-radius: 4px;
}

.ticket__total {
  padding-top: 10px;
  border-top: 1px dashed var(--paper-line);
  font-weight: 700;
}

.ticket__foot {
  margin-top: 12px;
  text-align: center;
  color: var(--paper-muted);
}

/* --- Las dos mitades: planas, y en volumen cuando `main.js` puede --- */

.b3d {
  position: relative;
}

.halves {
  display: grid;
  gap: calc(100% * 4 / 40);
}

.half {
  display: block;
  aspect-ratio: 40 / 36;
  border-radius: 0 999px 999px 0;
}

.half--top {
  background: var(--indigo);
}

.half--bottom {
  background: var(--mint);
}

/* El lienzo sobra por los lados para que la B gire sin cortarse. */
.b3d canvas {
  position: absolute;
  left: -50%;
  top: -22%;
  width: 200%;
  height: 144%;
  pointer-events: none;
}

/* La B que cae sobre el Excel: su lienzo cubre toda la escena (`main.js` lo mide). */
.b3d__wide {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.b3d.is-3d .halves {
  visibility: hidden;
}

/* --- 4 · Cómo funciona, leído de corrido --- */

.how {
  position: relative;
  padding: 96px var(--gutter) 48px;
}

.how__stage {
  display: grid;
  gap: 28px;
  max-width: var(--wrap);
  margin-inline: auto;
}

.how__head {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.how__head .pill {
  justify-self: center;
}

/* El escenario: un marco con cuadrícula tenue y una retícula que sigue al puntero. */
.panel {
  position: relative;
  height: 520px;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--border);
  background:
    radial-gradient(60% 70% at 50% 0%, rgb(140 128 255 / 0.22), transparent 70%),
    linear-gradient(var(--surface-2) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--surface-2) 1px, transparent 1px) 0 0 / 56px 100%,
    var(--bg-deep);
}

.panel__cross {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.panel:hover .panel__cross {
  opacity: 1;
}

.panel__cross--x {
  inset: 0 0 auto;
  top: var(--py, 50%);
  height: 1px;
  background: radial-gradient(circle 280px at var(--px, 50%) 50%, var(--mint), transparent);
  box-shadow: 0 0 14px rgb(61 220 174 / 0.6);
}

.panel__cross--y {
  inset: 0 auto 0 0;
  left: var(--px, 50%);
  width: 1px;
  background: radial-gradient(circle 280px at 50% var(--py, 50%), var(--mint), transparent);
  box-shadow: 0 0 14px rgb(61 220 174 / 0.6);
}

.world-wrap {
  position: absolute;
  inset: 0;
}

/*
 * La escena se dibuja en un cuadro de 560 × 640 y se escala entera (`--ws`,
 * que pone `main.js`) para caber en su hueco. Cada pieza nace centrada.
 */
.world {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 560px;
  height: 640px;
  translate: -50% -50%;
  scale: var(--ws, 0.74);
}

.w {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  margin: 0;
}

/* La mira de la cámara, alrededor del ticket. */
.w-finder {
  width: 360px;
  height: 500px;
}

.corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid var(--mint);
  filter: drop-shadow(0 0 8px rgb(61 220 174 / 0.7));
}

.corner:nth-child(1) {
  left: 0;
  top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 12px 0 0 0;
}

.corner:nth-child(2) {
  right: 0;
  top: 0;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 12px 0 0;
}

.corner:nth-child(3) {
  left: 0;
  bottom: 0;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 12px;
}

.corner:nth-child(4) {
  right: 0;
  bottom: 0;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 12px 0;
}

.scan {
  width: 400px;
  height: 90px;
  margin-top: -300px;
  background: linear-gradient(to bottom, transparent, rgb(61 220 174 / 0.28));
  border-bottom: 2px solid var(--mint);
  box-shadow: 0 10px 30px rgb(61 220 174 / 0.35);
  opacity: 0;
}

.flash {
  width: 1400px;
  height: 900px;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
}

/* El ticket ya leído. */
.w-read {
  width: 300px;
  opacity: 0;
  color: var(--text);
}

.w-read li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 8px;
  padding-block: 10px;
  border-bottom: 1px solid var(--border);
}

.w-read b {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.tag {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.tag--food {
  background: var(--block-food);
  color: var(--block-food-text);
}

.tag--price {
  justify-self: end;
  background: var(--block-prices);
  color: var(--block-prices-text);
}

.tag--none {
  background: var(--border);
  color: var(--text-muted);
}

.w-read__total {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

/*
 * Las tres tarjetas. `.block` es lo que mueve la escena; `.block__in`, lo que
 * se ve, y se levanta al pasar el puntero o tocarla.
 */
.block {
  width: 330px;
  opacity: 0;
}

.block:hover {
  z-index: 9 !important;
}

.block__in {
  min-height: 300px;
  padding: 26px 24px;
  border-radius: 30px;
  display: grid;
  align-content: start;
  gap: 12px;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.5);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.block:hover .block__in {
  transform: translateY(-14px) scale(1.05);
}

.block--money .block__in {
  background: var(--block-money);
  color: var(--block-money-text);
  --ink-muted: var(--block-money-muted);
  --inset: rgb(255 255 255 / 0.16);
}

.block--prices .block__in {
  background: var(--block-prices);
  color: var(--block-prices-text);
  --ink-muted: var(--block-prices-muted);
  --inset: rgb(21 22 26 / 0.1);
}

.block--food .block__in {
  background: var(--block-food);
  color: var(--block-food-text);
  --ink-muted: var(--block-food-muted);
  --inset: rgb(21 22 26 / 0.1);
}

.block__kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.block__label {
  font-size: 16px;
  color: var(--ink-muted);
  margin-top: 6px;
}

.block__figure {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.block b {
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.block__note {
  font-size: 15px;
  font-weight: 500;
}

/* Las personas son las dos mitades: blanco y menta clara sobre el índigo. */
.bar {
  display: flex;
  gap: 4px;
  height: 18px;
  margin-top: 10px;
}

.bar span {
  transform-origin: left center;
}

.bar__a {
  flex: 4610;
  background: var(--half-1);
  border-radius: 999px 0 0 999px;
}

.bar__b {
  flex: 3810.5;
  background: var(--half-2);
  border-radius: 0 999px 999px 0;
}

.legend {
  display: grid;
  gap: 6px;
  font-size: 16px;
  margin-top: 4px;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend b {
  margin-left: auto;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot--a {
  background: var(--half-1);
}

.dot--b {
  background: var(--half-2);
}

.pair li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 8px;
  font-size: 16px;
}

.pair li + li {
  border-top: 1px solid var(--inset);
}

.pair b {
  font-size: 34px;
}

.meter {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.meter li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  font-size: 16px;
}

.meter i {
  grid-column: 1 / -1;
  width: var(--w);
  height: 12px;
  border-radius: 999px;
  background: var(--block-food-text);
  transform-origin: left center;
}

/* Los tres pasos. */
.steps__bar {
  display: none;
}

.steps {
  display: grid;
  gap: 28px;
}

.steps li {
  display: grid;
  gap: 6px;
}

.steps__n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}

/* --- 7 · Por qué conviene --- */

.why {
  padding-block: 96px;
}

.why__head {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.why__head .pill {
  justify-self: center;
}

.why__head h2 {
  max-width: 18ch;
}

.why__grid {
  display: grid;
  gap: 14px;
  margin-top: 44px;
}

/* La luz que sigue al puntero: un círculo del color del tema en `--x`, `--y`. */
.card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px 22px 28px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 300px at var(--x, 50%) var(--y, 0%), var(--glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--glow);
  box-shadow: 0 24px 60px -20px var(--glow);
}

.card:hover::before {
  opacity: 0.32;
}

.card > * {
  position: relative;
}

.card--money {
  --glow: var(--indigo);
}

.card--food {
  --glow: var(--mint);
}

.card--prices {
  --glow: var(--lime);
}

.card--ticket {
  --glow: var(--text);
}

.card > p {
  color: var(--text-muted);
}

/* El dibujo de cada razón: un hueco oscuro con una pieza de la app. */
.card__art {
  display: grid;
  align-content: center;
  gap: 12px;
  height: 168px;
  margin-bottom: 12px;
  padding: 22px;
  border-radius: 18px;
  background: radial-gradient(90% 120% at 50% 0%, color-mix(in srgb, var(--glow) 22%, transparent), transparent 70%), var(--bg-deep);
}

.art-prices p {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.art-prices i {
  width: var(--w);
  height: 12px;
  border-radius: 999px;
  background: var(--lime);
}

.art-prices p + p i {
  opacity: 0.4;
}

.art-prices b {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
}

.art-money div {
  display: flex;
  gap: 4px;
  height: 26px;
}

.art-money i:first-child {
  flex: 55;
  background: var(--person-1);
  border-radius: 999px 0 0 999px;
}

.art-money i:last-child {
  flex: 45;
  background: var(--person-2);
  border-radius: 0 999px 999px 0;
}

.art-money p {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}

.art-food i {
  width: var(--w);
  height: 14px;
  border-radius: 999px;
  background: var(--person-2);
}

.art-ticket {
  position: relative;
  justify-items: center;
}

.art-ticket span {
  width: 78px;
  height: 104px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(#ffffff 0 12px, #c9c9d6 12px 14px) 12px 16px / 54px 70px no-repeat,
    #ffffff;
}

.art-ticket i {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--mint);
}

.art-ticket i:nth-of-type(1) {
  left: calc(50% - 64px);
  top: 16px;
  border-right: 0;
  border-bottom: 0;
}

.art-ticket i:nth-of-type(2) {
  right: calc(50% - 64px);
  top: 16px;
  border-left: 0;
  border-bottom: 0;
}

.art-ticket i:nth-of-type(3) {
  left: calc(50% - 64px);
  bottom: 16px;
  border-right: 0;
  border-top: 0;
}

.art-ticket i:nth-of-type(4) {
  right: calc(50% - 64px);
  bottom: 16px;
  border-left: 0;
  border-top: 0;
}

.why__not {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
  color: var(--text-muted);
}

.why__not b {
  color: var(--text);
  font-weight: 600;
  margin-right: 4px;
}

.why__not span {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 15px;
}

/* --- 8 · Preguntas ---
 * A un lado, las preguntas en cápsulas: una abierta a la vez. Al otro, un
 * tablero a dos tonos con el dibujo de la que está abierta. En el teléfono
 * el tablero va debajo. */

.faq {
  padding-block: 64px 96px;
}

.faq__in {
  display: grid;
  gap: 28px;
}

.faq__head {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.faq__head .pill {
  justify-self: center;
}

.faq__body {
  display: grid;
  gap: 14px;
}

.faq__list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.faq__item {
  border-radius: 28px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.3s ease;
}

.faq__item.is-open {
  box-shadow: inset 0 0 0 1px var(--border);
}

.faq__item h3 {
  margin: 0;
  font: inherit;
}

.faq__item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 10px 22px 10px 26px;
  border: 0;
  border-radius: 28px;
  background: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.faq__item button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq__chev {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: rotate 0.35s ease;
}

.faq__item.is-open .faq__chev {
  rotate: 180deg;
}

/* La respuesta se abre creciendo: de cero renglones a los suyos. */
.faq__answer {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.35s ease;
}

.faq__answer > div {
  min-height: 0;
  overflow: hidden;
}

.faq__answer p {
  max-width: 46ch;
  padding: 2px 26px 22px;
  font-size: 16px;
  color: var(--text-muted);
}

.is-ready .faq__item:not(.is-open) .faq__answer {
  grid-template-rows: 0fr;
}

/* El tablero. Sus dibujos se miden en `em`, y el `em` sale del alto del
 * tablero: así caben igual en el tablero grande que en el del teléfono. */
.faq__show {
  position: relative;
  min-height: 200px;
  aspect-ratio: 16 / 11;
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
  container-type: size;
}

.faq__art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, var(--tone-a) 0 50%, var(--tone-b) 50%);
  color: #15161a;
  font-family: var(--font-text);
  font-size: clamp(5px, 4.3cqh, 17px);
  line-height: 1.3;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
}

.faq__art.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}

.faq__art--install {
  --tone-a: #b9b2ff;
  --tone-b: #5b4bff;
}

.faq__art--manual {
  --tone-a: #d9f27e;
  --tone-b: #363d1c;
}

.faq__art--home {
  --tone-a: #9bf0d6;
  --tone-b: #12785c;
}

.mock {
  background: #ffffff;
  box-shadow: 0 1.4em 3em rgb(0 0 0 / 0.3);
  transform: translateY(1.4em) scale(0.95);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq__art.is-on .mock {
  transform: none;
}

.mock--phone {
  display: grid;
  align-content: start;
  gap: 1.1em;
  width: 11.4em;
  height: 19em;
  padding: 1em 0.9em;
  border-radius: 2em;
}

.mock__url {
  padding: 0.5em 0.4em;
  border-radius: 1em;
  background: #ecebf5;
  font-size: 0.62em;
  text-align: center;
  color: #5e5f6b;
  white-space: nowrap;
  overflow: hidden;
}

.mock__apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8em;
}

.mock__apps li {
  aspect-ratio: 1;
  border-radius: 26%;
  background: #e4e3ee;
}

.mock__apps .is-b {
  background: none;
  box-shadow: 0 0.4em 1.2em rgb(91 75 255 / 0.5);
}

.mock__apps img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 26%;
}

.mock__chip {
  justify-self: center;
  padding: 0.55em 1em;
  border-radius: 2em;
  background: #5b4bff;
  color: #ffffff;
  font-size: 0.72em;
  font-weight: 600;
  white-space: nowrap;
}

.mock--card {
  display: grid;
  gap: 1em;
  width: 15.5em;
  padding: 1.4em;
  border-radius: 1.5em;
}

.mock__title {
  font-family: var(--font-display);
  font-size: 1.15em;
  font-weight: 600;
}

.mock__rows li {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding-block: 0.6em;
  border-top: 1px solid #e4e3ee;
  font-size: 0.86em;
}

.mock__rows span {
  color: #5e5f6b;
}

.mock__rows b {
  font-weight: 600;
}

.mock__btn {
  padding: 0.7em;
  border-radius: 2em;
  background: #15161a;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.9em;
  font-weight: 600;
  text-align: center;
}

.mock__btn--line {
  background: none;
  box-shadow: inset 0 0 0 1.5px #15161a;
  color: #15161a;
}

.mock__figure {
  font-family: var(--font-display);
  font-size: 3.2em;
  font-weight: 600;
  line-height: 1;
  color: #12785c;
}

.mock__people {
  display: grid;
  gap: 0.6em;
}

.mock__people li {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.7em 0.8em;
  border-radius: 1em;
  background: #f3f3f8;
  font-size: 0.9em;
  font-weight: 500;
}

.mock__people i {
  flex: none;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: #5b4bff;
}

.mock__people li + li i {
  background: #3ddcae;
}

.mock__lock {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.82em;
  color: #5e5f6b;
}

.mock__lock svg {
  width: 1.3em;
  height: 1.3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (min-width: 900px) {
  .faq__body {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr);
    gap: 24px;
  }

  .faq__show {
    aspect-ratio: auto;
    min-height: 400px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq__answer,
  .faq__chev,
  .faq__art,
  .faq__art.is-on,
  .mock {
    transition: none;
  }
}

/* --- Pie --- */

.foot {
  position: relative;
  z-index: 3;
  background: var(--bg-deep);
  padding-block: 24px 40px;
}

.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 15px;
  color: var(--text-muted);
}

.foot__note {
  font-size: 13px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

/* ================================================================
 * En marcha: `main.js` pone `.is-live` en la raíz y la página deja de
 * bajar. Todo ocurre en una sola pantalla fija: cada parte es una
 * escena (`.scene`) y cada gesto lleva la película a su parada siguiente
 * (`main.js`). La página no tiene a dónde deslizarse, ni rebota.
 * ================================================================ */

.is-live,
.is-live body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.is-live main {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.is-live .scene {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: auto;
  display: grid;
  align-content: center;
  padding: calc(var(--top-h) + 12px) 0 28px;
  overflow: hidden;
  visibility: hidden;
}

.is-live .scene:first-child {
  visibility: visible;
}

/* El pie solo aparece en la última escena, abajo. */
.is-live .foot {
  position: fixed;
  inset: auto 0 0;
  z-index: 6;
  padding-block: 12px 16px;
  background: transparent;
  visibility: hidden;
}

/* Por dónde va la película: una raya fina a la derecha, que se llena. */
.reel-mark {
  display: none;
}

.is-live .reel-mark {
  display: block;
  position: fixed;
  right: 14px;
  top: 50%;
  z-index: 25;
  width: 2px;
  height: 120px;
  translate: 0 -50%;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}

.reel-mark i {
  display: block;
  height: 100%;
  background: var(--mint);
  transform-origin: center top;
  transform: scaleY(0);
}

/* --- Cómo funciona --- */

.is-live .how {
  padding-inline: var(--gutter);
  align-content: stretch;
}

.is-live .how__stage {
  height: 100%;
  width: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 14px;
}

.is-live .how__head h2 {
  font-size: clamp(22px, 3.2vw, 40px);
}

.is-live .panel {
  height: auto;
}

/* Tres rayas: se llena la del paso que va. */
.is-live .steps__bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.steps__bar i {
  height: 3px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}

.steps__bar b {
  display: block;
  height: 100%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  transform-origin: left center;
  transform: scaleX(0);
}

/* En el teléfono se ve solo el paso que va; en pantalla ancha, los tres. */
.is-live .steps {
  position: relative;
  display: block;
  min-height: 118px;
}

.is-live .steps li {
  pointer-events: none;
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.35s ease, translate 0.35s ease;
}

.is-live .steps li.is-on {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

.is-live .steps h3 {
  font-size: 20px;
}

/* --- Por qué conviene: las cuatro razones pasan de lado, una tras otra --- */

.is-live .why {
  padding-inline: 0;
}

/* El carril de tarjetas mide más que la pantalla: el título y la nota no deben estirarse con él. */
.is-live .why .wrap {
  display: block;
  max-width: none;
  padding: 0;
}

.is-live .why__head,
.is-live .why__not {
  width: 100vw;
}

.is-live .why__head {
  padding-inline: var(--gutter);
}

.is-live .why__head h2 {
  font-size: clamp(24px, min(4vw, 5.4svh), 50px);
}

.is-live .why__grid {
  display: flex;
  gap: 16px;
  width: max-content;
  margin-top: 24px;
}

.is-live .card {
  flex: none;
  width: min(400px, 80vw);
}

.is-live .card__art {
  height: min(190px, 22svh);
  padding: 22px;
}

.is-live .why__not {
  margin-top: 20px;
  padding-inline: var(--gutter);
  font-size: 15px;
}

/* --- Preguntas ---
 * En el teléfono, las preguntas piden lo suyo y el tablero se queda con el
 * resto de la pantalla. */

.is-live .faq {
  align-content: stretch;
}

.is-live .faq__in {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  min-height: 0;
}

.is-live .faq__head {
  gap: 10px;
}

.is-live .faq__body {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.is-live .faq__list {
  gap: 8px;
}

.is-live .faq__item button {
  min-height: 54px;
  padding: 8px 20px 8px 22px;
  font-size: 18px;
}

/* En el teléfono, dos pantallas de tres (`main.js` pone `data-page`). */
.is-live [data-page="1"] .faq__item:nth-child(n + 4),
.is-live [data-page="2"] .faq__item:nth-child(-n + 3) {
  display: none;
}

.is-live .faq__answer p {
  padding: 0 20px 14px;
  font-size: 15px;
}

.is-live .faq__show {
  aspect-ratio: auto;
  min-height: 0;
  max-height: 320px;
}

/* --- "Desliza": la portada dice que hay más. Se toca y avanza. --- */

.is-live .hint {
  position: absolute;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 3;
  translate: -50% 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 88px;
  min-height: 44px;
  padding: 6px 16px 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.is-live .hint i {
  width: 1px;
  height: 22px;
  background: currentColor;
  transform-origin: top;
  animation: hint 2s ease-in-out infinite;
}

@keyframes hint {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  45% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: translateY(14px) scaleY(0.2);
    opacity: 0;
  }
}

/* Teléfono bajo: la etiqueta se va y el título se achica. */
@media (max-height: 760px) and (max-width: 899px) {
  .is-live .faq__head .pill {
    display: none;
  }

  .is-live .faq__head h2 {
    font-size: 26px;
  }

  .is-live .faq__in {
    gap: 12px;
  }
}

@media (min-width: 900px) {
  .is-live .faq {
    align-content: center;
  }

  .is-live .faq__list {
    gap: 10px;
  }

  .is-live .faq__item button {
    min-height: 54px;
    padding: 8px 22px 8px 26px;
    font-size: clamp(18px, 1.6vw, 21px);
  }

  .is-live .faq__answer p {
    padding: 0 26px 18px;
  }

  .is-live .faq__in {
    grid-template-rows: auto auto;
    gap: 28px;
  }

  .is-live .faq__body {
    grid-template-rows: auto;
  }

  .is-live .faq__show {
    min-height: 0;
    max-height: none;
    height: min(440px, 52svh);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* --- Pantalla ancha --- */

@media (min-width: 900px) {
  :root {
    --gutter: 32px;
    --top-h: 72px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  /* En marcha, con espacio: las escenas respiran más. */
  .is-live .scene {
    padding-block: calc(var(--top-h) + 16px) 40px;
  }

  .is-live .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    min-height: 0;
  }

  .is-live .steps li {
    pointer-events: auto;
    position: static;
    opacity: 0.32;
    translate: none;
  }

  .is-live .steps li.is-on {
    opacity: 1;
  }

  .is-live .reel-mark {
    right: 20px;
    height: 160px;
  }
}

/* ================================================================
 * El modo claro. La página nace oscura; el botón de la cabecera pone
 * `data-theme="claro"` en la raíz y `main.js` lo recuerda. Son los
 * colores de la marca sobre claro (`docs/marca/entrega/ruta-a/`).
 * ================================================================ */

:root[data-theme="claro"] {
  color-scheme: light;

  --bg: #f7f7fb;
  --bg-deep: #ecebf5;
  --surface: #ffffff;
  --surface-2: #efeff6;
  --border: #dcdce8;
  --text: #15161a;
  --text-muted: #5e5f6b;

  --indigo: #5b4bff;
  /* La menta, cuando es letra o raya sobre claro, va en su tono oscuro: la de marca no alcanza contraste. */
  --mint: #12785c;
  --lime: #a8c234;

  --accent: #5b4bff;
  --accent-text: #ffffff;

  --person-1: #5b4bff;
  --person-2: #20b98f;
  --streak: #5b4bff;
}

/* Cada cosa que solo va en un tema. */
.only-light,
:root[data-theme="claro"] .only-dark {
  display: none;
}

:root[data-theme="claro"] .only-light {
  display: block;
}

/* El botón del tema. */
.theme {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.2s ease;
}

.theme:hover {
  border-color: var(--text-muted);
  transform: rotate(24deg);
}

/* Sobre claro la luz no se suma, se resta: los resplandores bajan y las sombras se aclaran. */
:root[data-theme="claro"] .btn:hover {
  box-shadow: 0 10px 30px rgb(91 75 255 / 0.3);
}

:root[data-theme="claro"] .btn--ghost:hover {
  box-shadow: none;
}

:root[data-theme="claro"] .ticket__paper {
  filter: drop-shadow(0 18px 30px rgb(21 22 26 / 0.2));
}

:root[data-theme="claro"] .block__in {
  box-shadow: 0 24px 48px rgb(21 22 26 / 0.18);
}

:root[data-theme="claro"] .panel {
  background:
    radial-gradient(60% 70% at 50% 0%, rgb(91 75 255 / 0.14), transparent 70%),
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 56px 100%,
    var(--surface);
}

/* En el teléfono la cabecera lleva una cosa más: se aprieta un poco. */
@media (max-width: 899px) {
  .top__logo img {
    height: 24px;
  }

  .top__nav {
    gap: 10px;
  }

  .btn--sm {
    padding: 0 14px;
  }

  .theme {
    width: 40px;
    height: 40px;
  }
}

/* En los teléfonos más angostos "Entrar" cede su lugar: sigue en el pie. */
@media (max-width: 400px) {
  .top__nav .link {
    display: none;
  }
}

/* ================================================================
 * El recorrido corto (2026-10-12). La portada y el cierre son el mismo
 * dibujo visto desde los dos extremos: el icono con sus ondas y un
 * horizonte, que en la portada asoma desde abajo y en el cierre cuelga
 * desde arriba. En medio: "Rompe el Excel", los dos lados del mes y
 * para qué sirve el orden.
 * ================================================================ */

/* --- El horizonte: el borde redondo de una mitad, enorme, con su luz --- */

.horizon {
  position: absolute;
  left: 50%;
  width: 240vw;
  height: 240vw;
  min-width: 1800px;
  min-height: 1800px;
  translate: -50% 0;
  border-radius: 50%;
  pointer-events: none;
}

/* Asoma desde abajo: empieza. */
.horizon--rise {
  top: var(--arc-rise);
  background: radial-gradient(circle at 50% 0%, #201d44 0, var(--bg-deep) 22%);
  box-shadow:
    0 -2px 0 rgb(140 128 255 / 0.9),
    0 -24px 90px rgb(140 128 255 / 0.55),
    0 -80px 220px rgb(61 220 174 / 0.22),
    inset 0 30px 80px rgb(140 128 255 / 0.25);
}

/* Cuelga desde arriba: termina. */
.horizon--set {
  bottom: calc(100% - var(--arc-set));
  background: radial-gradient(circle at 50% 100%, #201d44 0, var(--bg-deep) 22%);
  box-shadow:
    0 2px 0 rgb(140 128 255 / 0.9),
    0 24px 90px rgb(140 128 255 / 0.55),
    0 80px 220px rgb(61 220 174 / 0.22),
    inset 0 -30px 80px rgb(140 128 255 / 0.25);
}

/* Renglones que cruzan el cielo, como rayas de un ticket. */
.sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero .sky {
  bottom: 34%;
}

.closing .sky {
  top: 40%;
}

.sky i {
  position: absolute;
  width: 140px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--streak));
  rotate: 150deg;
  opacity: 0;
  animation: cruza 6.5s linear infinite;
  animation-delay: var(--d);
}

@keyframes cruza {
  0% {
    translate: 160px -90px;
    opacity: 0;
  }
  6% {
    opacity: 0.9;
  }
  16% {
    translate: -220px 130px;
    opacity: 0;
  }
  100% {
    translate: -220px 130px;
    opacity: 0;
  }
}

/* El icono, con tres aros que salen de él uno tras otro. */
.orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-block: min(44px, 5svh) min(26px, 3svh);
}

.orb img {
  position: relative;
  border-radius: 20px;
  box-shadow: 0 0 60px rgb(140 128 255 / 0.6);
}

.orb i {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  border: 2px solid var(--indigo);
  opacity: 0;
  animation: onda 3.6s ease-out infinite;
}

.orb i:nth-child(2) {
  animation-delay: 1.2s;
}

.orb i:nth-child(3) {
  animation-delay: 2.4s;
}

@keyframes onda {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(3.4);
    opacity: 0;
  }
}

/* --- 1 · Portada --- */

.hero {
  --arc-rise: 80%;
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: calc(var(--top-h) + 8px) 0 0;
  overflow: hidden;
  text-align: center;
}

.hero__in {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 20px;
}

.hero h1 {
  max-width: 17ch;
  font-size: clamp(36px, min(5.6vw, 9svh), 80px);
}

.hero .body {
  max-width: 52ch;
}

.hero .actions {
  justify-content: center;
}

.is-live .hero {
  align-content: start;
  justify-items: center;
}

/* --- 3b · Rompe el Excel --- */

.offer {
  display: grid;
  justify-items: center;
  gap: 32px;
  padding-block: 96px;
  overflow: hidden;
  text-align: center;
}

.offer__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 360px;
}

.offer__art .b3d {
  z-index: 2;
  width: min(150px, 34vw);
}

.offer__ticket {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 150px;
  translate: 12% -46%;
  rotate: -6deg;
  font-size: 8px;
}

.offer__ticket .ticket__ink {
  padding: 12px 11px 18px;
}

.offer__text {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.offer__big {
  font-size: clamp(44px, 11vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-shadow: 0 0 70px rgb(140 128 255 / 0.5);
}

.offer__text .body {
  max-width: 46ch;
}

/* La hoja de cálculo y la onda del golpe solo existen con movimiento. */
.sheet,
.offer__shock {
  display: none;
}

.is-live .offer {
  gap: min(28px, 3svh);
  justify-items: center;
}

.is-live .offer__art {
  height: min(46svh, 440px);
}

.is-live .offer__art .b3d {
  width: min(140px, 18svh, 30vw);
}

.is-live .offer__big {
  font-size: clamp(34px, min(9.6vw, 13svh), 150px);
}

/* La hoja: una celda por pieza, para que cada una salga volando por su lado. */
.is-live .sheet {
  display: grid;
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(88vw, 62svh, 600px);
  aspect-ratio: 16 / 10;
  grid-template-columns: 0.45fr repeat(5, 1fr);
  grid-template-rows: 1.25fr repeat(8, 1fr);
  font-family: var(--mono);
  font-size: clamp(7px, min(1.5svh, 2vw), 13px);
  line-height: 1;
  color: var(--paper-text);
  filter: drop-shadow(0 22px 40px rgb(0 0 0 / 0.5));
}

.sheet span {
  display: flex;
  align-items: center;
  padding-inline: 0.5em;
  overflow: hidden;
  white-space: nowrap;
  background: var(--paper);
  box-shadow: inset 0 0 0 0.5px var(--paper-line);
}

.sheet .is-bar {
  grid-column: 1 / -1;
  background: #1f7a4d;
  color: #ffffff;
  font-weight: 600;
  box-shadow: none;
}

.sheet .is-head {
  justify-content: center;
  background: #e9e9f0;
  color: var(--paper-muted);
}

.sheet .is-bold {
  font-weight: 700;
}

.sheet .is-err {
  color: #c62f4b;
  font-weight: 700;
}

.is-live .offer__shock {
  display: block;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid var(--indigo);
  box-shadow:
    0 0 60px var(--indigo),
    inset 0 0 40px var(--indigo);
  opacity: 0;
}

/* --- 5 · Los dos lados del mes --- */

.sides {
  padding-block: 96px;
  overflow: hidden;
}

.sides__row {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding-inline: var(--gutter);
  perspective: 1200px;
}

.sides__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 12vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.sides__word--money {
  color: var(--indigo);
}

.sides__word--food {
  color: var(--mint);
}

.sides__card {
  transform-style: preserve-3d;
}

.sides__card .ticket {
  width: 250px;
  font-size: 13px;
}

.sides__card .ticket__rows li {
  padding-inline: 6px;
  margin-inline: -6px;
  border-radius: 4px;
}

.sides__foot {
  max-width: calc(54ch + var(--gutter) * 2);
  margin-inline: auto;
  text-align: center;
}

.is-live .sides__row {
  gap: min(22px, 2.4svh);
  margin-bottom: min(30px, 3.4svh);
}

.is-live .sides__word {
  font-size: clamp(34px, min(12vw, 7.5svh), 88px);
}

/* --- 9 · Cierre --- */

/* Para qué sirve el orden, en tres renglones: cada uno entra por su lado. */
.closing__lines {
  display: grid;
  font-size: clamp(28px, 8vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.closing__lines span:nth-child(1) {
  color: var(--indigo);
}

.closing__lines span:nth-child(2) {
  color: var(--mint);
}

.is-live .closing__lines {
  font-size: clamp(26px, min(8vw, 5.4svh), 64px);
}

.closing .body {
  max-width: 50ch;
}

.closing {
  --arc-set: 20svh;
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: calc(var(--arc-set) + 16px) var(--gutter) 96px;
  overflow: hidden;
}

.closing__in {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
}

.is-live .closing {
  align-content: start;
  padding: calc(var(--arc-set) + 4px) var(--gutter) 0;
}

@media (prefers-reduced-motion: reduce) {
  .orb i,
  .sky i {
    animation: none;
  }
}

/* --- Pantalla ancha --- */

@media (min-width: 900px) {
  .hero {
    --arc-rise: 66%;
  }

  .closing {
    --arc-set: 26svh;
  }

  .offer {
    padding-block: 150px;
  }

  .is-live .offer__art .b3d {
    width: min(200px, 20svh);
  }

  .is-live .offer__ticket {
    width: 200px;
    translate: 20% -44%;
    font-size: 10.5px;
  }

  .is-live .offer__ticket .ticket__ink {
    padding: 16px 14px 22px;
  }

  .sides {
    padding-block: 150px;
  }

  .sides__row {
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    margin-bottom: 64px;
  }

  /* Cada palabra, pegada a su lado de la hoja. */
  .sides__word--money {
    justify-self: end;
  }

  .sides__word--food {
    justify-self: start;
  }

  .is-live .sides__row {
    gap: 48px;
    margin-bottom: min(52px, 6svh);
  }

  .is-live .sides__word {
    font-size: clamp(44px, min(5.2vw, 13svh), 120px);
  }

  .is-live .closing__lines {
    font-size: clamp(34px, min(3.8vw, 6.6svh), 68px);
  }
}

/* --- En claro --- */

:root[data-theme="claro"] .hero h1,
:root[data-theme="claro"] .offer__big {
  text-shadow: none;
}

:root[data-theme="claro"] .horizon--rise {
  background: radial-gradient(circle at 50% 0%, #d6d1ff 0, var(--bg-deep) 22%);
  box-shadow:
    0 -2px 0 rgb(91 75 255 / 0.8),
    0 -24px 90px rgb(91 75 255 / 0.3),
    0 -80px 220px rgb(32 185 143 / 0.16);
}

:root[data-theme="claro"] .horizon--set {
  background: radial-gradient(circle at 50% 100%, #d6d1ff 0, var(--bg-deep) 22%);
  box-shadow:
    0 2px 0 rgb(91 75 255 / 0.8),
    0 24px 90px rgb(91 75 255 / 0.3),
    0 80px 220px rgb(32 185 143 / 0.16);
}

:root[data-theme="claro"] .orb img {
  box-shadow: 0 0 50px rgb(91 75 255 / 0.4);
}

:root[data-theme="claro"] .sheet {
  filter: drop-shadow(0 18px 30px rgb(21 22 26 / 0.2));
}

/* En una pantalla ancha y baja el cierre se aprieta para no pisar el pie. */
@media (min-width: 900px) and (max-height: 720px) {
  .closing {
    --arc-set: 17svh;
  }

  .closing .orb {
    margin-block: 22px 10px;
  }

  .is-live .closing__in {
    gap: 14px;
  }
}

/* En un teléfono bajo, lo mismo (2026-10-23): el pie, fijo abajo, ya tocaba
   "Sin instalar nada." en 360 × 740, y la línea de dónde está disponible lo
   alargó. El horizonte baja menos y lo de en medio se junta. */
@media (max-width: 899px) and (max-height: 760px) {
  .closing {
    --arc-set: 11svh;
  }

  .is-live .closing__in {
    gap: 10px;
  }
}

/* --- Menor esfuerzo (2026-10-12): una línea bajo el botón y el botón del último paso --- */

.note {
  font-size: 14px;
  color: var(--text-muted);
}

/* Dónde está disponible (2026-10-23): un renglón más del mismo párrafo que
   "Sin instalar nada.". En el teléfono, en renglones parejos; en pantalla
   ancha cabe en uno. */
.note__where {
  display: block;
  max-width: 36ch;
  margin: 4px auto 0;
  text-wrap: balance;
}
@media (min-width: 760px) {
  .note__where { max-width: none; }
}

.steps__go {
  justify-self: start;
  margin-top: 8px;
}

.is-live .steps {
  min-height: 112px;
}

/* --- Por qué conviene, de vuelta: lo que pide en pantalla ancha y en claro --- */

@media (min-width: 900px) {
  .why {
    padding-block: 150px;
  }

  .why__grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .card {
    padding: 26px 26px 34px;
  }

  .card__art {
    height: 210px;
    padding: 32px;
  }

  .is-live .why__grid {
    gap: 20px;
    margin-top: 36px;
  }

  .is-live .card {
    width: 420px;
  }
}

:root[data-theme="claro"] .card:hover::before {
  opacity: 0.16;
}

:root[data-theme="claro"] .card:hover {
  box-shadow: 0 24px 50px -24px var(--glow);
}

:root[data-theme="claro"] .art-ticket span {
  box-shadow: 0 6px 16px rgb(21 22 26 / 0.14);
}
