/* ============================================================
   AGIT — sitio en negro (experiencia de deslizar)
   Marca: negro, blanco y coral #FF3951 · Poppins

   Medida base en celular: 390 × 664 px, que es lo que deja Safari
   en un iPhone 14/15 con sus barras visibles. Cada pantalla debe
   caber ahí. Abajo de 600 px de alto (iPhone SE) se compacta.
   ============================================================ */

:root {
  --bg: #000;
  --card: #0f0f11;
  --card-2: #1a1a1f;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.24);
  --text: #fff;
  --muted: #a6a6b0;
  --dim: #6e6e78;
  --red: #ff3951;
  --red-soft: rgba(255, 57, 81, 0.14);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 60px;
  --gutter: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  /* Una pantalla a la vez, como historias */
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Solo en escritorio */
.desk, .lead--desk { display: none; }

/* ── Barra superior ─────────────────────────────────────────── */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.7) 70%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.topbar__logo img { height: 32px; width: auto; }
.topbar__actions { display: flex; align-items: center; gap: 16px; }
.topbar__link { color: var(--muted); font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: color 0.2s; }
.topbar__link:hover, .topbar__link:focus-visible { color: #fff; }

/* Progreso tipo historias (celular) */
.progress {
  position: fixed;
  top: 6px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 60;
  display: flex;
  gap: 4px;
  pointer-events: none;
}
.progress span {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  position: relative;
}
.progress span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.progress span.is-done::after { transform: scaleX(1); }
.progress span.is-active::after { transform: scaleX(1); background: var(--red); }

/* Puntos laterales (escritorio) */
.dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.dots a {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.28);
  transition: height 0.4s var(--ease), background 0.3s;
}
.dots a.is-active { height: 26px; background: var(--red); }
.dots a:hover { background: #fff; }

/* ── Botones y etiquetas ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  font: 600 0.95rem/1 var(--font);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #ff5267; }
.btn--ghost { border-color: var(--line-2); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; }
.btn--sm { min-height: 38px; padding: 0 1.1rem; font-size: 0.85rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:focus-visible, .dots a:focus-visible, .topbar__logo:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1.5px solid var(--red);
  border-radius: 999px;
  color: var(--red);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ── Pantallas ──────────────────────────────────────────────── */
.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 12px) var(--gutter) 20px;
  overflow: hidden;
}
.panel__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
  align-items: center;
}
/* Que una tabla o texto largo no estire la columna más allá de la pantalla */
.panel__inner > * { min-width: 0; }

.title {
  margin: 14px 0 0;
  font-size: clamp(2.1rem, 9vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 300;
  text-wrap: balance;
}
.title strong { display: block; font-weight: 700; color: var(--red); }
.title--md { font-size: clamp(1.85rem, 7.8vw, 4rem); }

.lead {
  margin: 12px 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 3.6vw, 1.2rem);
  line-height: 1.55;
}
.lead b { color: #fff; font-weight: 600; }

.note { margin: 10px 0 0; color: var(--dim); font-size: 0.72rem; line-height: 1.45; }

/* Aparición al entrar a cada pantalla */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.panel.is-in .reveal { opacity: 1; transform: none; }

/* ── 1. Gancho ──────────────────────────────────────────────── */
.hero::before {
  content: "";
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  right: -32vmax;
  bottom: -38vmax;
  background: radial-gradient(circle, rgba(255, 57, 81, 0.22), rgba(255, 57, 81, 0) 62%);
  pointer-events: none;
}
.hero { padding-bottom: 56px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__brands {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  color: var(--dim);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__brands-label { flex-basis: 100%; }
.hero__brands img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.hero__brands img.tall { height: 30px; }

.swipe {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}
.swipe__arrow {
  width: 34px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.swipe__arrow svg { width: 10px; height: 10px; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }

/* ── 2. El problema: ticket ─────────────────────────────────── */
.ticket {
  width: 100%;
  max-width: 420px;
  background: #fff;
  color: #0b0b0c;
  border-radius: 18px;
  padding: 16px 16px 12px;
  box-shadow: 0 30px 80px rgba(255, 57, 81, 0.12);
  font-variant-numeric: tabular-nums;
}
.ticket__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e6e78;
  padding-bottom: 8px;
  border-bottom: 1.5px dashed #d9d9e0;
}
.ticket__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.9rem;
}
.ticket__row--sale { font-weight: 700; font-size: 1rem; }
.ticket__row .amt { font-weight: 600; white-space: nowrap; }
.ticket__row--cost { color: #4a4a52; }
.ticket__row--cost .amt { color: #8a8a94; }
.ticket__row small { color: #8a8a94; font-weight: 500; }
.ticket__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1.5px solid #0b0b0c;
}
.ticket__total span { font-weight: 600; }
.ticket__total strong { color: var(--red); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }

/* Filas que se van restando una por una */
.ticket .step {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.panel.is-in .ticket .step { opacity: 1; transform: none; }
.panel.is-in .ticket .step:nth-child(2) { transition-delay: 0.35s; }
.panel.is-in .ticket .step:nth-child(3) { transition-delay: 0.65s; }
.panel.is-in .ticket .step:nth-child(4) { transition-delay: 0.95s; }
.panel.is-in .ticket .step:nth-child(5) { transition-delay: 1.25s; }
.panel.is-in .ticket .step:nth-child(6) { transition-delay: 1.55s; }
.panel.is-in .ticket .step:nth-child(7) { transition-delay: 1.85s; }

.punch {
  margin: 14px 0 0;
  font-size: clamp(1.05rem, 4.2vw, 1.5rem);
  line-height: 1.35;
  font-weight: 300;
}
.punch b { font-weight: 700; }
.punch b.red { color: var(--red); }

/* ── 3. El motor: dashboard ─────────────────────────────────── */
.dash {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  font-variant-numeric: tabular-nums;
}
.dash__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.dash__brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.85rem; }
.dash__brand i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}
.dash__range { display: flex; gap: 4px; font-size: 0.66rem; font-weight: 600; color: var(--dim); }
.dash__range span { padding: 4px 8px; border-radius: 999px; }
.dash__range span.on { background: #fff; color: #000; }

.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
}
.kpi__label { font-size: 0.62rem; color: var(--muted); font-weight: 500; }
.kpi__value { margin-top: 2px; font-size: clamp(0.95rem, 3.8vw, 1.2rem); font-weight: 700; letter-spacing: -0.01em; }
.kpi--hl { border-color: rgba(255, 57, 81, 0.5); background: linear-gradient(180deg, rgba(255, 57, 81, 0.16), rgba(255, 57, 81, 0.04)); }

.dash__sub {
  margin: 12px 0 6px;
  display: flex;
  justify-content: space-between;
  font-size: 0.64rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bars { display: grid; gap: 6px; }
.bar {
  display: grid;
  grid-template-columns: 120px 1fr 32px;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
}
.bar__name { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__track { position: relative; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); }
.bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: 8px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease);
}
.bar--neg .bar__fill { background: var(--red); }
.bar__val { text-align: right; font-weight: 600; }
.bar--neg .bar__val { color: var(--red); }
.panel.is-in .bar__fill { transform: scaleX(1); }
.panel.is-in .bar:nth-child(2) .bar__fill { transition-delay: 0.1s; }
.panel.is-in .bar:nth-child(3) .bar__fill { transition-delay: 0.2s; }
.panel.is-in .bar:nth-child(4) .bar__fill { transition-delay: 0.3s; }
.panel.is-in .bar:nth-child(5) .bar__fill { transition-delay: 0.4s; }

.sources { margin-top: 22px; display: none; flex-wrap: wrap; gap: 8px; }
.sources span {
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── 4. Publicidad: plataformas ─────────────────────────────── */
.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tile {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3px;
}
.tile b { display: block; font-size: 0.92rem; font-weight: 700; line-height: 1.3; }
.tile span { display: block; font-size: 0.74rem; color: var(--muted); line-height: 1.4; }
.tile--wide { grid-column: 1 / -1; }
.panel .tile { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.3s; }
.panel.is-in .tile { opacity: 1; transform: none; }
.panel.is-in .tile:nth-child(2) { transition-delay: 0.08s; }
.panel.is-in .tile:nth-child(3) { transition-delay: 0.16s; }
.panel.is-in .tile:nth-child(4) { transition-delay: 0.24s; }
.panel.is-in .tile:nth-child(5) { transition-delay: 0.32s; }
.tile:hover { border-color: var(--red); }

/* ── 5. Después del clic ────────────────────────────────────── */
.list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; max-width: 32rem; }
.list li { padding-left: 14px; border-left: 2px solid var(--red); }
.list b { display: block; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.list span { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.4; margin-top: 2px; }

.chat {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--card-2);
  border-bottom: 1px solid var(--line);
}
.chat__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  flex: none;
}
.chat__avatar svg { width: 16px; height: 16px; }
.chat__who { display: grid; line-height: 1.25; }
.chat__who b { font-size: 0.84rem; font-weight: 600; }
.chat__who small { font-size: 0.68rem; color: var(--muted); }
.chat__who small i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; margin-right: 5px; vertical-align: 1px; }
.chat__body { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.msg {
  margin: 0;
  max-width: 82%;
  padding: 8px 11px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.msg--in { align-self: flex-start; background: var(--card-2); border-bottom-left-radius: 4px; }
.msg--out { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 4px; }
.msg u { text-underline-offset: 2px; }
.panel.is-in .msg { opacity: 1; transform: none; }
.panel.is-in .msg:nth-child(1) { transition-delay: 0.3s; }
.panel.is-in .msg:nth-child(2) { transition-delay: 1s; }
.panel.is-in .msg:nth-child(3) { transition-delay: 1.8s; }
.panel.is-in .msg:nth-child(4) { transition-delay: 2.5s; }

/* ── 6. Marcas ──────────────────────────────────────────────── */
.marcas .panel__inner { justify-items: center; text-align: center; gap: 28px; }
.logos {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 360px;
  display: grid;
  gap: 10px;
}
.logos li {
  height: 88px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  display: grid;
  place-items: center;
  padding: 0 24px;
}
.logos img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 46px;
  filter: brightness(0) invert(1);
}
.logos li.tr img { max-height: 54px; }

/* ── 7. Para quién ──────────────────────────────────────────── */
.checks {
  list-style: none;
  margin: 0;
  padding: 16px;
  width: 100%;
  max-width: 460px;
  background: #fff;
  color: #0b0b0c;
  border-radius: 18px;
  display: grid;
  gap: 10px;
}
.checks li {
  position: relative;
  padding-left: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks__cta { margin-top: 14px; }

/* ── 8. Aplicación ──────────────────────────────────────────── */
.aplicar { flex-direction: column; justify-content: center; }
.apply {
  width: 100%;
  max-width: 460px;
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.apply__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 230px; }
.apply__fields > * { grid-column: 1 / -1; }
.apply__fields > .field--half { grid-column: auto; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.field label .opt { font-weight: 400; color: var(--dim); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #000;
  color: #fff;
  font: 400 1rem/1.4 var(--font); /* 16px: evita el zoom de iPhone */
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 56px; resize: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5l3-3' fill='none' stroke='%23a6a6b0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
/* El autocompletar de Chrome/Safari pinta el campo de azul claro: se fuerza el negro */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #000 inset;
  box-shadow: 0 0 0 1000px #000 inset;
  caret-color: #fff;
  transition: background-color 9999s ease-out 0s;
}
.field input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #000 inset, 0 0 0 3px var(--red-soft); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--red); }

/* Preguntas de Sí / No como botones */
.field--chips { display: block; border: 0; padding: 0; margin: 0; min-width: 0; }
.field--chips legend { padding: 0; margin-bottom: 4px; font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.field--chips legend .opt { font-weight: 400; color: var(--dim); }
.chips { display: flex; gap: 8px; }
.chip { position: relative; flex: 1 1 0; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #000;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chip input:checked + span { border-color: var(--red); background: var(--red-soft); color: #fff; font-weight: 600; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--red-soft); border-color: var(--red); }
.field--chips.is-bad .chip span { border-color: var(--red); }
.skeleton { height: 46px; border-radius: 12px; background: linear-gradient(90deg, #000 0%, var(--card-2) 50%, #000 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.apply__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply__send { width: 100%; margin-top: 2px; }
.apply__send[disabled] { opacity: 0.6; cursor: progress; }
.apply__legal { margin: 0; font-size: 0.7rem; color: var(--dim); text-align: center; }
.apply__legal a { color: var(--muted); }
.apply__status { margin: 0; font-size: 0.85rem; text-align: center; color: var(--muted); }
.apply__status:empty { display: none; }
.apply__status.is-error { color: var(--red); }
.apply__status a { color: #fff; font-weight: 600; }

.apply-done {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.apply-done h3 { margin: 0; font-size: 1.4rem; font-weight: 700; }
.apply-done p { margin: 0; color: var(--muted); }

.foot {
  width: 100%;
  max-width: 1180px;
  margin: 40px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  font-size: 0.76rem;
  color: var(--dim);
}
.foot__social { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot__legal { margin: 0; flex-basis: 100%; }

.center { text-align: center; }

/* ── Método: índice ─────────────────────────────────────────── */
.indice {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 460px;
  border-top: 1px solid var(--line);
}
.indice li { border-bottom: 1px solid var(--line); }
.indice a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 2px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, padding 0.2s var(--ease);
}
.indice a span { color: var(--red); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.indice a:hover { color: var(--red); padding-left: 8px; }

/* ── Método: marcas de la portada ───────────────────────────── */
.marcas-fila {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  max-width: 460px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.marcas-fila li {
  height: 56px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 0 8px;
}
.marcas-fila img { width: auto; height: auto; max-width: 100%; max-height: 30px; filter: brightness(0) invert(1); }
.marcas-fila li.tr img { max-height: 34px; }

/* ── Método: cada paso ─────────────────────────────────────── */
.porque {
  margin: 12px 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  line-height: 1.55;
}
.porque b { color: #fff; font-weight: 600; }

.impactos { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.imp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--dim);
  opacity: 0.45;
  white-space: nowrap;
}
.imp::before {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
}
.imp:nth-child(1)::before, .imp:nth-child(2)::before { content: "↑"; }
.imp:nth-child(3)::before { content: "↓"; }
.imp:nth-child(4)::before { content: "↗"; }
.imp.on { opacity: 1; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.imp.on::before { background: var(--red); color: #fff; }

.paso-card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px 18px;
}
/* En celular el número se esconde (ya lo dice la etiqueta) y "Ejemplo" va junto a la métrica */
.paso-card__top { float: right; margin: 0 0 6px 8px; display: flex; align-items: center; justify-content: space-between; }
.paso-card__num {
  display: none;
  font-size: 2.6rem;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
}
.paso-card__tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 9px;
}
.ad__metrica { margin: 0 0 6px; font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.ad { clear: both; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.ad__col { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; min-width: 0; }
.ad__col small { display: block; font-size: 0.66rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad__col b { display: block; font-size: clamp(1.2rem, 5.4vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ad__col--hoy { border-color: rgba(255, 57, 81, 0.55); background: linear-gradient(180deg, rgba(255, 57, 81, 0.18), rgba(255, 57, 81, 0.05)); }
.ad__flecha { color: var(--red); font-weight: 700; font-size: 1.1rem; }
.panel .ad__col--hoy { transform: scale(0.94); opacity: 0.4; transition: transform 0.6s var(--ease) 0.5s, opacity 0.6s var(--ease) 0.5s; }
.panel.is-in .ad__col--hoy { transform: none; opacity: 1; }
.efecto { margin: 12px 0 0; font-size: 0.9rem; line-height: 1.45; }
.efecto b { color: var(--red); font-weight: 700; }
.paso-card__mide { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.76rem; line-height: 1.45; color: var(--muted); }
.paso-card__mide b { color: #fff; font-weight: 600; }
/* Celulares angostos (iPhone SE). Va después de los estilos base para que sí los reemplace. */
@media (max-width: 360px) {
  .marcas-fila li { height: 48px; padding: 0 6px; }
  .ad__col { padding: 7px 9px; }
  .imp { font-size: 0.66rem; padding: 3px 7px 3px 3px; gap: 4px; }
}

/* ── Método: tabla de resumen ───────────────────────────────── */
.matriz {
  width: 100%;
  max-width: 480px;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.matriz th, .matriz td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.matriz thead th {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}
.matriz tbody th { text-align: left; font-weight: 500; line-height: 1.25; }
.matriz td { text-align: center; color: var(--dim); width: 14%; }
.matriz td.si { color: transparent; position: relative; }
.matriz td.si::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}
/* Celulares angostos (iPhone SE): la tabla cabe sin cortar palabras.
   Va después de los estilos base de la tabla para que sí los reemplace. */
@media (max-width: 360px) {
  .matriz { font-size: 0.7rem; }
  .matriz th, .matriz td { padding: 7px 2px; }
  .matriz thead th { white-space: normal; letter-spacing: 0; font-size: 0.52rem; }
}

/* ── Páginas de texto (aviso de privacidad) ─────────────────── */
html.doc { scroll-snap-type: none; }
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}
.legal .title { margin-bottom: 8px; }
.legal__date { color: var(--dim); font-size: 0.82rem; margin: 0 0 32px; }
.legal h2 { color: #fff; font-size: 1.1rem; font-weight: 600; margin: 36px 0 8px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 1.2rem; }
.legal li { margin-bottom: 6px; }
.legal b { color: #fff; font-weight: 600; }
.legal a:not(.btn) { color: #fff; }
.legal__back { margin-top: 40px; }

/* ── Celulares bajitos (iPhone SE con barras: ~548 px) ──────── */
@media (max-height: 600px) and (max-width: 899px) {
  /* Si una pantalla no cabe, que se pueda recorrer sin pelear con el imán */
  html { scroll-snap-type: y proximity; }
  .title { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .title--md { font-size: clamp(1.65rem, 7.2vw, 2.2rem); }
  .panel__inner--split .lead { display: none; }
  .list span { display: none; }
  .msg:nth-child(n+3) { display: none; }
  .paso-card__mide, .paso .impactos { display: none; }
  .porque { font-size: 0.88rem; }
  .hero__brands { margin-top: 20px; }
  .ticket__row { padding: 4px 0; font-size: 0.85rem; }
  .logos li { height: 72px; }
}

/* ── Escritorio ─────────────────────────────────────────────── */
@media (min-width: 900px) {
  :root { --gutter: 48px; --header-h: 76px; }
  .desk { display: inline; }
  .lead--desk { display: block; }
  .topbar__logo img { height: 40px; }
  .progress { display: none; }
  .dots { display: flex; }
  .panel { padding-top: calc(var(--header-h) + 32px); padding-bottom: 64px; }
  .panel__inner { gap: 32px; }
  .panel__inner--split { grid-template-columns: 1.05fr 0.95fr; gap: 72px; }
  .panel__inner--split > .visual { justify-self: end; }
  .title { margin-top: 18px; }
  .hero .title { font-size: clamp(3.5rem, 6.6vw, 6rem); max-width: 14ch; }
  .hero .title--md { font-size: clamp(2.6rem, 4.6vw, 4.2rem); max-width: none; }
  .lead { margin-top: 20px; }
  .hero__ctas { margin-top: 32px; gap: 12px; }
  .hero__brands { margin-top: 44px; gap: 10px 28px; font-size: 0.72rem; }
  .hero__brands-label { flex-basis: auto; }
  .hero__brands img { height: 30px; }
  .hero__brands img.tall { height: 36px; }
  .swipe { bottom: 28px; }
  .pill { font-size: 0.7rem; padding: 0.4rem 0.85rem; }
  .ticket { padding: 26px 26px 20px; }
  .ticket__row { padding: 9px 0; font-size: 0.95rem; }
  .ticket__total strong { font-size: 2rem; }
  .punch { margin-top: 22px; }
  .dash { padding: 22px; }
  .bar { grid-template-columns: 132px 1fr 36px; font-size: 0.78rem; }
  .sources { display: flex; }
  .tiles { gap: 12px; }
  .tile { padding: 18px; }
  .tile b { font-size: 1rem; }
  .tile span { font-size: 0.8rem; }
  .list { gap: 14px; margin-top: 22px; }
  .chat__body { padding: 16px; gap: 8px; }
  .msg { font-size: 0.88rem; }
  .marcas .panel__inner { gap: 56px; }
  .logos { max-width: 1000px; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .logos li { height: 160px; }
  .logos img { max-height: 72px; }
  .logos li.tr img { max-height: 86px; }
  .checks { padding: 24px; gap: 14px; }
  .checks li { font-size: 0.95rem; padding-left: 34px; }
  .checks li::before { width: 22px; height: 22px; background-size: 13px; }
  .checks__cta { margin-top: 18px; }
  .apply { padding: 20px; gap: 12px; }
  .indice a { padding: 12px 2px; font-size: 1rem; }
  .paso-card__top { float: none; margin: 0 0 16px; }
  .paso-card__num { display: block; }
  .marcas-fila { gap: 10px; margin-top: 24px; }
  .marcas-fila li { height: 72px; }
  .marcas-fila img { max-height: 38px; }
  .marcas-fila li.tr img { max-height: 44px; }
  .porque { margin-top: 20px; }
  .impactos { margin-top: 20px; gap: 8px; }
  .imp { font-size: 0.82rem; padding: 6px 12px 6px 7px; }
  .paso-card { padding: 26px 28px 28px; }
  .paso-card__num { font-size: 4.5rem; -webkit-text-stroke-width: 2px; }
  .paso-card__top { margin-bottom: 16px; }
  .ad__metrica { font-size: 0.8rem; margin-bottom: 8px; }
  .ad__col { padding: 12px 16px; }
  .ad__col b { font-size: 2rem; }
  .efecto { font-size: 1rem; margin-top: 16px; }
  .paso-card__mide { font-size: 0.85rem; margin-top: 16px; padding-top: 14px; }
  .matriz { font-size: 0.92rem; }
  .matriz th, .matriz td { padding: 12px 8px; }
  .matriz thead th { font-size: 0.66rem; }
  .apply__fields { gap: 12px; }
  .foot { margin-top: 48px; }
  .foot__legal { flex-basis: auto; margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .ticket .step, .bar__fill, .tile, .msg, .ad__col--hoy { transition: none !important; opacity: 1 !important; transform: none !important; }
  .swipe__arrow svg, .skeleton { animation: none; }
}
