/*
 * getbille.com · lista de espera (Vuelto)
 * Tokens copiados de docs/brand/identity/tokens.css (#121). Sin build: este archivo se sirve tal cual.
 * Tema claro por defecto; «Trasnoche» con prefers-color-scheme: dark.
 */

@font-face {
  font-family: 'Sen';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/sen-latin-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/inter-latin-wght.woff2') format('woff2');
}

:root {
  color-scheme: light dark;

  --font-brand: 'Sen', ui-rounded, system-ui, sans-serif;
  --font-ui: 'Inter', ui-sans-serif, system-ui, sans-serif;

  --verde-billete: #2fbf8f;
  --maiz: #f2c14e;
  --tinta: #12211c;

  --bg: #f4f0e3;
  --surface: #fcfaf2;
  --surface-muted: #ebe5d3;
  --text: #12211c;
  --text-muted: #54625b;
  --line: #e2d9c6;
  --line-strong: #7a857c;
  --accent-fill-hover: #2caf84;
  --accent-soft: #d9eedf;
  --income: #0c6e4e;
  --expense: #a2452a;
  --focus: #0c6e4e;
  --bubble-me-bg: #12211c;
  --bubble-me-text: #f4f0e3;
  --shadow-hoja: 0 1px 1px rgb(18 33 28 / 0.05), 0 10px 22px -16px rgb(18 33 28 / 0.22);
  --shadow-flota: 0 2px 4px rgb(18 33 28 / 0.06), 0 18px 36px -18px rgb(18 33 28 / 0.3);

  /* La franja del reloj: tinta de día, noche clara de noche. */
  --band-bg: #12211c;
  --band-text: #f1ecdd;
  --band-muted: #a7b3aa;

  --radius-cola: 4px;
  --radius-chico: 8px;
  --radius-tarjeta: 14px;
  --radius-globo: 18px;
  --oreja: 28px;
  --ease-suave: cubic-bezier(0.2, 0.8, 0.2, 1);

  --gutter: 1.25rem;
  --section: 4.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a16;
    --surface: #18261f;
    --surface-muted: #22332b;
    --text: #f1ecdd;
    --text-muted: #a7b3aa;
    --line: #2e4037;
    --line-strong: #6f7f76;
    --accent-fill-hover: #47c69c;
    --accent-soft: #173a2e;
    --income: #74c2a3;
    --expense: #e8a083;
    --focus: #74c2a3;
    --bubble-me-bg: #f1ecdd;
    --bubble-me-text: #12211c;
    --shadow-hoja: 0 0 0 1px #2e4037;
    --shadow-flota: 0 0 0 1px #2e4037, 0 18px 36px -18px rgb(0 0 0 / 0.6);
    --band-bg: #18261f;
  }
}

/* Una hoja de papel es papel también de noche: el formulario de Tally trae sus propios colores claros. */
.papel {
  color-scheme: light;
  --surface: #fcfaf2;
  --surface-muted: #ebe5d3;
  --text: #12211c;
  --text-muted: #54625b;
  --line: #e2d9c6;
  --line-strong: #7a857c;
  --income: #0c6e4e;
  --focus: #0c6e4e;
  --shadow-hoja: 0 1px 1px rgb(18 33 28 / 0.05), 0 10px 22px -16px rgb(18 33 28 / 0.22);
  --shadow-flota: 0 2px 4px rgb(0 0 0 / 0.06), 0 18px 36px -18px rgb(0 0 0 / 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}
body {
  margin: 0;
  font: 400 1rem/1.5 var(--font-ui);
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--maiz);
  color: var(--tinta);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.monto {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Estructura ──────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.section {
  padding-block: var(--section);
}
.titulo {
  font: 800 2rem/1.08 var(--font-brand);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.bajada {
  margin-top: 1rem;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}
.ceja {
  margin-bottom: 0.625rem;
  font: 600 0.875rem/1.3 var(--font-ui);
  color: var(--income);
}
.bajada strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Encabezado ──────────────────────────────────────────────── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: max(1rem, env(safe-area-inset-top));
}
.marca {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.marca img {
  height: 34px;
  width: auto;
}
.top__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ── Botón ───────────────────────────────────────────────────── */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--verde-billete);
  color: var(--tinta);
  font: 600 1.0625rem/1.2 var(--font-ui);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 120ms var(--ease-suave),
    transform 120ms var(--ease-suave);
}
.boton:hover {
  background: var(--accent-fill-hover);
}
.boton:active {
  transform: scale(0.97);
}
.boton:focus-visible {
  border-radius: 999px;
}
.boton--linea {
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.9375rem;
}
.boton--linea:hover {
  background: var(--surface-muted);
}
.boton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Héroe ───────────────────────────────────────────────────── */
.hero {
  display: grid;
  gap: 3rem;
  padding-top: 2rem;
  padding-bottom: var(--section);
}
.hero__punta {
  width: 132px;
  height: 132px;
  margin: 0 0 0.5rem -12px;
}
.hero h1 {
  font: 800 clamp(2.25rem, 10.7vw, 3.875rem) / 1 var(--font-brand);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
/* Dos oraciones, dos renglones: lo que hacés vos y lo que hace Bille. */
.hero h1 span {
  display: block;
}
.hero .ceja {
  font-size: 1rem;
}
.hero__sub {
  margin-top: 1.25rem;
  max-width: 31rem;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.hero__nota {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Video del héroe ─────────────────────────────────────────── */
/* Mudo y en bucle: el texto del video cuenta todo. En celular va la versión vertical. */
.hero__video {
  position: relative;
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
}
.hero__video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background: #f4f0e3;
}
/* Botón de sonido: pastilla tinta en la esquina, 44 px de área táctil. */
.hero__sonido {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 33, 28, 0.82);
  color: #f4f0e3;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(18, 33, 28, 0.18);
  transition:
    background-color 160ms var(--ease-suave),
    transform 160ms var(--ease-suave);
}
.hero__sonido:hover {
  background: #12211c;
}
.hero__sonido:active {
  transform: scale(0.94);
}
.hero__sonido:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.hero__sonido[hidden] {
  display: none;
}
.hero__sonido[aria-pressed='false'] .hero__sonido-on,
.hero__sonido[aria-pressed='true'] .hero__sonido-off {
  display: none;
}
.msg {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}
.msg--yo {
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.msg__avatar {
  flex: none;
  width: 32px;
  height: 32px;
}
.globo {
  max-width: min(24rem, 100% - 40px);
  padding: 9px 14px;
  border-radius: var(--radius-globo);
  text-wrap: pretty;
}
.globo--yo {
  background: var(--bubble-me-bg);
  color: var(--bubble-me-text);
  border-bottom-right-radius: var(--radius-cola);
}
.globo--bille {
  background: var(--surface);
  color: var(--text);
  border-bottom-left-radius: var(--radius-cola);
}

/* ── Tres formas de contarle ─────────────────────────────────── */
.formas__lista {
  display: grid;
  margin-top: 2rem;
  border-top: 1px solid var(--line-strong);
}
.forma {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-block: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.forma__modo {
  font: 600 0.875rem/1.3 var(--font-ui);
  color: var(--text-muted);
}
.globo--voz {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.globo--voz svg {
  flex: none;
  margin-top: 0.2em;
  opacity: 0.75;
}
.ticket {
  width: 6.5rem;
  height: auto;
  border-radius: var(--radius-tarjeta);
  border-bottom-right-radius: var(--radius-cola);
}
.aviso {
  max-width: min(20rem, 100% - 40px);
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-chico);
  text-wrap: pretty;
}
.aviso__de {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}
.ticket text {
  font-family: var(--font-ui);
}

/* ── Hoja de papel, con la oreja doblada ─────────────────────── */
.hoja {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-tarjeta);
  border-top-right-radius: 0;
  box-shadow: var(--shadow-hoja);
}
.hoja::before,
.hoja::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: var(--oreja);
  height: var(--oreja);
}
.hoja::before {
  /* 1 px más arriba y a la derecha: sin eso queda un filo de papel en el borde del recorte. */
  top: -1px;
  right: -1px;
  width: calc(var(--oreja) + 1px);
  height: calc(var(--oreja) + 1px);
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, calc(100% - 1px) 100%, 0 1px);
}
.hoja::after {
  background: var(--maiz);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  border-bottom-left-radius: var(--radius-chico);
}
/* ── El reloj ────────────────────────────────────────────────── */
.banda {
  background: var(--band-bg);
  color: var(--band-text);
  --text: var(--band-text);
  --text-muted: var(--band-muted);
  --focus: #74c2a3;
  --income: #74c2a3;
}
.reloj {
  display: grid;
  gap: 3rem;
}
/* En el celular van en zigzag, grandes: a media columna el texto del reloj no se lee. */
.relojes {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 34rem;
}
.relojes li {
  display: grid;
  grid-template-columns: 62% minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--band-muted);
  text-wrap: balance;
}
.relojes li:nth-child(2) {
  grid-template-columns: minmax(0, 1fr) 62%;
  text-align: right;
}
.relojes li:nth-child(2) svg {
  order: 2;
}
.relojes svg {
  width: 100%;
  height: auto;
}
.relojes text {
  font-family: var(--font-ui);
}
.relojes .sen {
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ── El conector ─────────────────────────────────────────────── */
.conector {
  display: grid;
  gap: 2.5rem;
}
.bajada--nota {
  font-size: 0.9375rem;
}
/* Un asistente cualquiera, sin marca: tu globo y texto suelto, como contestan los asistentes. */
.asistente {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
  max-width: 31rem;
  padding: 1rem 1.125rem 1.375rem;
  background: var(--surface);
  border-radius: var(--radius-tarjeta);
  box-shadow: var(--shadow-hoja);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.asistente__cabeza {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}
.asistente__conectado {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--income);
  white-space: nowrap;
}
.asistente__conectado::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--verde-billete);
}
.asistente__dice {
  max-width: 26rem;
  text-wrap: pretty;
}

/* ── Bille en el hero: respira, parpadea con los dos ojos a la vez y guiña una vez al llegar ── */
.punta {
  display: block;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
}
.punta__cuerpo,
.punta__ojo,
.punta__ondas path {
  transform-box: fill-box;
}
.punta__cuerpo {
  transform-origin: 50% 100%;
}
.punta__ojo {
  transform-origin: 50% 50%;
}
/* El guiño: el ojo derecho se vuelve un arquito, como un párpado sonriente. */
.punta__arco {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .punta__cuerpo {
    animation: punta-respira 4.2s ease-in-out 1.6s infinite;
  }
  .punta__ojo {
    animation: punta-parpadeo 5.6s ease-in-out 2.4s infinite;
  }
  .punta__guino-ojo {
    animation: punta-guino-ojo 0.62s ease-in-out 0.7s 1 both;
  }
  .punta__arco {
    animation: punta-guino-arco 0.62s ease-in-out 0.7s 1 both;
  }
  .punta__ondas path {
    transform-origin: 0% 50%;
    animation: punta-escucha 2.4s ease-in-out infinite;
  }
  .punta__ondas path + path {
    animation-delay: 0.3s;
  }
  .punta:hover .punta__ondas path {
    animation-duration: 0.9s;
  }
  .punta:hover .punta__cuerpo,
  .punta--toque .punta__cuerpo {
    animation: punta-salto 0.55s var(--ease-suave) 1;
  }
}
@keyframes punta-respira {
  0%,
  100% {
    transform: translateY(0) scale(1, 1);
  }
  50% {
    transform: translateY(-2.5px) scale(1.01, 0.99);
  }
}
@keyframes punta-parpadeo {
  0%,
  94%,
  100% {
    transform: scaleY(1);
  }
  96.5% {
    transform: scaleY(0.1);
  }
}
@keyframes punta-guino-ojo {
  0%,
  100% {
    opacity: 1;
  }
  12%,
  85% {
    opacity: 0;
  }
}
@keyframes punta-guino-arco {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.85, 0.6);
  }
  12%,
  85% {
    opacity: 1;
    transform: scale(1, 1);
  }
  20% {
    transform: scale(1.06, 1.12);
  }
}
@keyframes punta-escucha {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.55;
  }
}
@keyframes punta-salto {
  0% {
    transform: translateY(0) scale(1, 1);
  }
  30% {
    transform: translateY(1px) scale(1.05, 0.94);
  }
  60% {
    transform: translateY(-7px) scale(0.97, 1.03) rotate(-3deg);
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

/* ── El mail ─────────────────────────────────────────────────── */
.correo {
  display: grid;
  gap: 2.5rem;
}
.flujo {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 31rem;
  list-style: none;
  padding: 0;
}
.flujo__paso {
  position: relative;
  display: grid;
  gap: 0.5rem;
}
/* Un hilo une los pasos: el aviso baja hasta Bille. */
.flujo__paso + .flujo__paso {
  padding-top: 1.25rem;
}
.flujo__paso + .flujo__paso::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.375rem;
  width: 2px;
  height: 1.25rem;
  background: var(--line-strong);
  opacity: 0.5;
  transform-origin: top;
}
.flujo__rotulo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font: 600 0.8125rem/1.3 var(--font-ui);
  color: var(--text-muted);
}
.flujo__num {
  display: inline-grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text);
  font: 800 0.75rem/1 var(--font-brand);
}
.flujo__tarjeta {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.125rem;
  background: var(--surface);
  border-radius: var(--radius-tarjeta);
  box-shadow: var(--shadow-hoja);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.mail__punto {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--maiz);
}
.mail__texto {
  min-width: 0;
  flex: 1;
}
.mail__de {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 600;
}
.mail__hora,
.mail__extracto,
.gasto__detalle {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
}
.mail__asunto {
  font-weight: 600;
}
.flujo__dice {
  flex: 1;
  text-wrap: pretty;
}
.flujo__lectura {
  display: none;
  gap: 4px;
}
.flujo__lectura span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--income);
}
.gasto {
  justify-content: space-between;
  border-left: 4px solid var(--expense);
}
.gasto__titulo {
  font: 800 1.0625rem/1.2 var(--font-brand);
}
.gasto__monto {
  font: 800 1.1875rem/1 var(--font-brand);
  color: var(--expense);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: no-preference) {
  .flujo__paso {
    opacity: 0;
    transform: translateY(10px);
  }
  .flujo__paso + .flujo__paso::before {
    transform: scaleY(0);
  }
  .flujo--vivo .flujo__paso {
    animation: flujo-entra 0.6s var(--ease-suave) forwards;
  }
  .flujo--vivo .flujo__paso + .flujo__paso::before {
    animation: flujo-hilo 0.4s var(--ease-suave) forwards;
  }
  .flujo--vivo .flujo__paso--asistente,
  .flujo--vivo .flujo__paso--asistente::before {
    animation-delay: 0.9s;
  }
  .flujo--vivo .flujo__paso--bille,
  .flujo--vivo .flujo__paso--bille::before {
    animation-delay: 2.6s;
  }
  .flujo--vivo .mail__punto {
    animation: flujo-pulso 1.2s ease-out 0.3s 2;
  }
  .flujo--vivo .flujo__lectura {
    display: inline-flex;
    animation: flujo-fuera 0.2s linear 2.5s forwards;
  }
  .flujo--vivo .flujo__lectura span {
    animation: flujo-lee 0.9s ease-in-out infinite;
  }
  .flujo__lectura span:nth-child(2) {
    animation-delay: 0.15s;
  }
  .flujo__lectura span:nth-child(3) {
    animation-delay: 0.3s;
  }
  .flujo--vivo .gasto {
    animation: flujo-marca 1.4s ease-out 3.1s;
  }
}
@keyframes flujo-entra {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes flujo-hilo {
  to {
    transform: scaleY(1);
  }
}
@keyframes flujo-pulso {
  0% {
    box-shadow: 0 0 0 0 rgb(242 193 78 / 0.7);
  }
  100% {
    box-shadow: 0 0 0 10px rgb(242 193 78 / 0);
  }
}
@keyframes flujo-lee {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}
@keyframes flujo-fuera {
  to {
    opacity: 0;
    width: 0;
    overflow: hidden;
  }
}
@keyframes flujo-marca {
  0% {
    box-shadow:
      var(--shadow-hoja),
      0 0 0 0 rgb(47 191 143 / 0.5);
  }
  100% {
    box-shadow:
      var(--shadow-hoja),
      0 0 0 12px rgb(47 191 143 / 0);
  }
}

/* ── La promesa ──────────────────────────────────────────────── */
.promesa__frase {
  font: 800 clamp(2.25rem, 9.6vw, 4rem) / 1.02 var(--font-brand);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.promesa__frase em {
  font-style: normal;
  color: var(--income);
}
.confianza {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.confianza li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  max-width: 24rem;
}
.confianza svg {
  margin-top: 2px;
  color: var(--income);
}
.confianza b {
  display: block;
  font-weight: 600;
}
.confianza span {
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ── La lista ────────────────────────────────────────────────── */
.lista {
  display: grid;
  gap: 2rem;
  padding-bottom: var(--section);
}
.lista__hoja {
  width: 100%;
  max-width: 30rem;
  padding: 1.5rem 1.25rem 1.25rem;
  color: var(--text);
  box-shadow: var(--shadow-flota);
}
#waitlist {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.lista__label {
  font: 800 1.375rem/1.15 var(--font-brand);
  letter-spacing: -0.015em;
}
.campo {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.campo input {
  flex: 1;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.75rem 1.125rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  /* 16px: iOS Safari no hace zoom al enfocar */
  font-size: 1rem;
  caret-color: var(--income);
}
.campo input::placeholder {
  color: var(--text-muted);
}
.campo input:focus-visible {
  border-radius: 999px;
}
.tally-embed {
  display: block;
  width: 100%;
  min-height: 9rem;
  border: 0;
  margin: 0;
  background: transparent;
}
/* Mientras Tally no avisó que cargó, el iframe no ocupa lugar: se ve a Bille pensando, no un hueco. */
#waitlist[data-estado='cargando'] .tally-embed {
  height: 1px;
  min-height: 0;
  opacity: 0;
}
.estado {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}
.estado img {
  width: 72px;
  height: 72px;
  margin: -6px 0 -6px -8px;
}
.success {
  font: 800 1.375rem/1.15 var(--font-brand);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.note {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text);
}
.note--cargando {
  color: var(--text-muted);
}
.estado__redes {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.estado__redes a {
  display: inline-block;
  padding-block: 0.75rem;
  margin-block: -0.75rem;
  color: var(--text);
  font-weight: 500;
}
.privacy {
  padding-top: 0.875rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.privacy a {
  display: inline-block;
  padding-block: 0.875rem;
  margin-block: -0.875rem;
  color: var(--text);
  font-weight: 500;
}

/* ── Pie ─────────────────────────────────────────────────────── */
.pie {
  border-top: 1px solid var(--line);
  padding-block: 2rem max(2rem, env(safe-area-inset-bottom));
}
.pie .wrap {
  display: grid;
  gap: 1rem;
}
.pie__lema {
  font: 800 1.25rem/1.2 var(--font-brand);
  letter-spacing: -0.015em;
}
.pie__firma {
  display: grid;
  gap: 0.375rem;
}
.pie__hecho {
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.pie__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  font-size: 0.9375rem;
}
.pie__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.pie__lado {
  display: grid;
  gap: 0.25rem;
}
.pie__redes {
  display: flex;
  gap: 0.25rem;
  margin-left: -11px;
}
.pie__redes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--text-muted);
  transition:
    color 0.15s var(--ease-suave),
    background-color 0.15s var(--ease-suave);
}
.pie__redes a:hover {
  color: var(--text);
  background: var(--surface-muted);
}
.pie__redes a:focus-visible {
  border-radius: 999px;
}

/* ── Privacidad ──────────────────────────────────────────────── */
.legal {
  max-width: 40rem;
  padding-top: 2.5rem;
  padding-bottom: var(--section);
}
.legal h1 {
  font: 800 clamp(2rem, 8vw, 2.5rem) / 1.05 var(--font-brand);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.legal .meta {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-wrap: pretty;
}
.legal h2 {
  margin: 2.25rem 0 0.5rem;
  font: 800 1.375rem/1.15 var(--font-brand);
  letter-spacing: -0.015em;
}
.legal p,
.legal li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.legal ul {
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.legal li {
  margin-bottom: 0.25rem;
}
.legal li::marker {
  color: var(--line-strong);
}
.legal code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--surface-muted);
  font:
    0.875em ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.legal a {
  color: var(--income);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.legal .note {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Desde 480 ───────────────────────────────────────────────── */
@media (min-width: 480px) {
  .campo {
    flex-direction: row;
  }
  .relojes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
  .relojes li,
  .relojes li:nth-child(2) {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0.875rem;
    text-align: center;
  }
  .relojes li:nth-child(2) svg {
    order: 0;
  }
  .lista__hoja {
    padding: 2rem 1.75rem 1.5rem;
  }
}

/* ── Escritorio ──────────────────────────────────────────────── */
@media (min-width: 900px) {
  :root {
    --gutter: 4.5rem;
    --section: 4.5rem;
  }
  .titulo {
    font-size: 2.5rem;
    line-height: 1.05;
  }
  .bajada {
    font-size: 1.125rem;
  }
  .marca img {
    height: 40px;
  }
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 3.5rem;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }
  .hero h1 span {
    white-space: nowrap;
  }
  .hero__punta {
    width: 168px;
    height: 168px;
    margin-left: -16px;
  }
  .hero__sub {
    font-size: 1.25rem;
  }
  .hero__cta {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }
  .hero__video {
    max-width: none;
  }
  .hero__video video {
    aspect-ratio: 16 / 9;
  }
  .formas__cabeza,
  .reloj,
  .conector,
  .correo,
  .lista {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 5rem;
  }
  .formas__cabeza {
    display: grid;
    align-items: end;
  }
  .formas__cabeza .bajada {
    margin-top: 0;
  }
  .formas__lista {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 2.5rem 5rem;
    margin-top: 3rem;
    border-top: 0;
  }
  .forma {
    gap: 0.875rem;
    padding-block: 1.25rem 0;
    border-top: 1px solid var(--line-strong);
    border-bottom: 0;
    font-size: 1rem;
  }
  /* La foto va al lado de la respuesta: apilada, esta fila quedaba 75 px más alta. */
  .forma--foto {
    display: grid;
    grid-template: auto 1fr / minmax(0, 1fr) auto;
    align-items: end;
  }
  .forma--foto .forma__modo {
    grid-column: 1 / -1;
  }
  .forma--foto .msg--yo {
    grid-area: 2 / 2;
  }
  .forma--foto .msg--bille {
    grid-area: 2 / 1;
  }
  .forma--foto .globo {
    max-width: 100%;
  }
  .aviso {
    max-width: min(26rem, 100% - 40px);
  }
  .lista__hoja {
    justify-self: end;
    width: 100%;
  }
  .relojes {
    justify-self: end;
    gap: 2.5rem;
  }
  .flujo {
    justify-self: end;
  }
  .asistente {
    justify-self: end;
    padding: 1.25rem 1.5rem 1.75rem;
    font-size: 1rem;
  }
  .confianza {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 5rem;
    margin-top: 3rem;
  }
  .pie .wrap {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2.5rem;
  }
  .pie__lado {
    justify-items: end;
  }
  .pie__redes {
    margin-left: 0;
    margin-right: -11px;
  }
}

/* ── Pantallas anchas: todo un escalón más grande (cuerpo de 18 px) ── */
@media (min-width: 1280px) {
  html {
    font-size: 112.5%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .boton,
  .pie__redes a {
    transition: none;
  }
}
