/* ================================================================
   TallerPilot — Página de inicio
   Dirección "Colour chapters" (taste-skill, semilla 1548971609):
   cada sección es un capítulo de color plano, una sola letra
   (General Sans) y el magenta solo en la acción principal.
   Las "fotos" son pantallas reales de la app hechas en HTML ([data-ui]),
   con la letra y el morado de la app.
   ================================================================ */

:root {
  /* Paleta "Sky and sand" */
  --sky: #cbe4f2;
  --sky-2: #bcdcee;
  --sand: #f1e3b5;
  --sand-2: #e7d6a0;
  --yellow: #ffc013;
  --ink: #0a0a0a;
  --paper: #f2f2f2;
  --muted-sky: #3d5764;
  --muted-sand: #5a4d24;
  --muted-ink: #b4b4bb;
  --accent: #b0298f;
  --accent-strong: #921f76;
  --accent-ink: #ffffff;

  /* Cinco tamaños de letra */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.5rem, 1rem + 6.6vw, 7rem);

  --margin: 24px;
  --gutter: 24px;
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 140ms;
  --t-hover: 180ms;

  /* Pantallas de la app (product truth: morado e Inter) */
  --app: #4f46e5;
  --app-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body.lp {
  font-family: 'General Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--step-body);
  line-height: 1.45;
  color: var(--ink);
  background: var(--sky);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
.lp a { color: inherit; }
.lp img, .lp svg { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── Tipografía ─────────────────────────────────────────────────── */
.display,
.display-2 {
  font-size: var(--step-display);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.head { font-size: var(--step-head); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.lead { font-size: var(--step-lead); line-height: 1.3; }
.body { font-size: var(--step-body); }
.small { font-size: var(--step-small); }
.muted { color: var(--muted-sky); }

/* ─── Acciones ───────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink) !important;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button-small { min-height: 44px; padding: 0 20px; }
.button-ink { background: var(--ink); color: var(--paper) !important; }
.link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.07em;
  transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .button-ink:hover { background: #262626; }
  .link:hover { text-decoration-color: currentColor; }
}
.lp :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ─── Capítulos: rejilla común de 12 columnas ───────────────────── */
.chapter {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding: 120px var(--margin);
  min-height: 90svh;
}

/* ═══ Portada ═══════════════════════════════════════════════════════ */
.hero { position: relative; display: flex; flex-direction: column; background: var(--sky); }

.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  align-items: stretch;
  height: 56px;
}
.nav-mark {
  flex: 0 0 168px;
  display: flex;
  align-items: center;
  padding: 0 var(--margin);
  background: var(--ink);
  color: var(--paper) !important;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-tab {
  flex: 0 0 calc(42% - 168px);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
  background: var(--yellow);
}
.nav-tab a { text-decoration: none; font-weight: 500; }
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 var(--margin);
  background: var(--sky);
}

.band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: 1fr 1fr;
  height: 52svh;
  min-height: 400px;
  max-height: 560px;
}
.cell { position: relative; overflow: hidden; min-width: 0; }
.cell-orders { grid-column: 1 / 3; grid-row: 1; background: var(--sand); padding: 72px 0 0 var(--margin); }
.cell-yellow { grid-column: 3 / 4; grid-row: 1; background: var(--yellow); }
.cell-sand-tall { grid-column: 4 / 5; grid-row: 1 / 3; background: var(--sand-2); }
.cell-chat { grid-column: 5 / 7; grid-row: 1; background: var(--sky-2); padding: 76px 24px 0 24px; }
.cell-check { grid-column: 1 / 2; grid-row: 2; background: var(--paper); padding: 20px 0 0 var(--margin); }
.cell-check .ui-check { width: 100%; border-right: 0; border-radius: 14px 0 0 0; }
.cell-ink { grid-column: 2 / 3; grid-row: 2; background: var(--ink); }
.cell-ticket { grid-column: 3 / 4; grid-row: 2; background: var(--sky-2); padding: 24px 0 0 20px; }
.cell-sky { grid-column: 5 / 7; grid-row: 2; background: var(--yellow); }

.hero-text {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
  padding: 72px var(--margin) 88px;
}
.hero-lead { grid-column: 1 / 5; grid-row: 1; max-width: 30ch; padding-top: 10px; }
.hero-title { grid-column: 6 / -1; grid-row: 1; }
.hero-actions {
  grid-column: 6 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

/* Titular: cada línea sube desde su propia base (receta "Masked line reveal"). */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }

/* ═══ Lo que entrega tu mostrador ═══════════════════════════════════ */
.showcase { background: var(--sand); align-items: start; }
.showcase .muted, .showcase-note { color: var(--muted-sand); }
.showcase-index { grid-column: 1 / 7; display: flex; flex-direction: column; gap: 40px; padding-top: 24px; }
.outputs { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.output {
  border: 0;
  background: none;
  color: var(--muted-sand);
  font: inherit;
  font-size: var(--step-head);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
  transition: color var(--t-hover) ease;
}
.output.is-on { color: var(--ink); font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .output:hover { color: var(--ink); } }
.showcase-note { max-width: 36ch; }
/* La lista de documentos es lo grande; el título de la sección va a tamaño de entrada. */
.showcase-index .head { font-size: var(--step-lead); letter-spacing: 0; line-height: 1.2; }

.stage {
  grid-column: 7 / -1;
  position: relative;
  height: 88svh;
  max-height: 820px;
  min-height: 560px;
  padding: 72px 0 0 64px;
  overflow: clip;
  background: var(--sand-2);
}
.sheet[hidden] { display: none; }
.sheet.is-on { animation: sheet-in 200ms var(--ease-out); }
.sheet-caption { margin-top: 16px; max-width: 32ch; color: var(--muted-sand); font-size: var(--step-small); }
@keyframes sheet-in { from { opacity: 0; } to { opacity: 1; } }

/* ═══ Del mostrador a la entrega ═══════════════════════════════════ */
.journey { background: var(--ink); color: var(--paper); align-items: end; grid-template-rows: auto; }
.journey-title { grid-column: 1 / 8; grid-row: 1; align-self: start; max-width: 12ch; position: relative; z-index: 1; }
.tiles {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 10px;
  align-items: end;
}
.stage-tile { margin: 0; }
.tile-1 { grid-column: 1 / 4; }
.tile-2 { grid-column: 4 / 8; }
.tile-3 { grid-column: 8 / 13; }
.tile { display: grid; place-items: center; overflow: hidden; padding: 24px; }
.tile-1 .tile { height: 30vh; min-height: 220px; }
.tile-2 .tile { height: 44vh; min-height: 300px; }
.tile-3 .tile { height: 60vh; min-height: 400px; }
.tile-sky { background: var(--sky); }
.tile-sand { background: var(--sand); }
.tile-yellow { background: var(--yellow); }
.stage-tile figcaption { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; max-width: 34ch; }
.stage-tile figcaption b { font-size: 1.25rem; font-weight: 500; }
.stage-tile figcaption span { color: var(--muted-ink); }

/* ═══ Pruébala aquí ════════════════════════════════════════════════ */
.features { background: var(--sky); padding-top: 0; padding-bottom: 0; align-items: start; }
.features-output {
  grid-column: 1 / 7;
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  margin-left: calc(-1 * var(--margin));
  background: var(--yellow);
}
.features-read { grid-column: 8 / -1; padding: 120px 0 30vh; max-width: 44ch; }
.features-read .head { margin-bottom: 48px; }
.feature { min-height: 50vh; display: flex; flex-direction: column; gap: 12px; }
.feature .lead { font-weight: 500; font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem); }

.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.seg button {
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.seg button:active { transform: scale(0.97); }
.seg button.is-on { background: var(--ink); color: var(--paper); }
.field { display: flex; flex-direction: column; gap: 6px; max-width: 240px; margin-top: 8px; font-size: 1rem; font-weight: 500; }
.field input {
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
}
.switch { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; min-height: 44px; font-size: 1rem; font-weight: 500; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--muted-sky); transition: background-color var(--t-hover) ease; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #ffffff; transition: transform 200ms var(--ease-out); }
.switch input:checked + .switch-track { background: var(--ink); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ═══ App Android ═════════════════════════════════════════════════ */
.android { background: var(--yellow); align-items: center; }
.android-copy { grid-column: 1 / 8; display: flex; flex-direction: column; gap: 24px; }
.android-copy .display-2 { max-width: 11ch; }
.android-copy .lead { max-width: 34ch; }
.android-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.android-qr { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.qr-tile { width: min(100%, 280px); padding: 16px; background: #ffffff; }
.qr-tile svg { width: 100%; height: auto; }

/* ═══ Precios: el ticket ══════════════════════════════════════════ */
.pricing { background: var(--ink); color: var(--paper); align-content: start; row-gap: 56px; }
.pricing-head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; }
.pricing-head .lead { color: var(--muted-ink); }
.tickets { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.ticket {
  --ticket: var(--sky);
  position: relative;
  display: grid;
  grid-template-columns: 7fr 3fr;
  width: min(64vw, 1000px);
  aspect-ratio: 2.3 / 1;
  background: var(--ticket);
  color: var(--ink);
}
.ticket-yellow { --ticket: var(--yellow); }
/* Muescas: dos medias lunas del color del fondo donde se unen las partes. */
.ticket::before,
.ticket::after {
  content: '';
  position: absolute;
  left: 70%;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border-radius: 50%;
  background: var(--ink);
}
.ticket::before { top: -14px; }
.ticket::after { bottom: -14px; }
.ticket-main { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 40px; }
.ticket-title { font-size: var(--step-head); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.ticket-terms { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.ticket-stub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  padding: 32px 28px;
  border-left: 6px dotted var(--ink); /* la perforación */
  text-align: center;
}
.ticket-price { display: flex; justify-content: center; align-items: baseline; gap: 6px; font-size: var(--step-display); font-weight: 700; line-height: 0.9; letter-spacing: -0.02em; }
.ticket-price span { font-size: var(--step-lead); }
.ticket-price-free { font-size: var(--step-head); }
.ticket-per { font-size: var(--step-small); }
.ticket-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 16px;
  padding: 0 12px;
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-weight: 500;
  text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.ticket-action:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .ticket-action:hover { background: var(--accent-strong); } }

/* ═══ Preguntas: una banda por pregunta ═══════════════════════════ */
.faq { display: block; padding: 0; min-height: 0; }
.faq-head { display: flex; align-items: flex-end; min-height: 40svh; padding: 56px var(--margin); background: var(--yellow); }
.faq-band {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding: 56px var(--margin);
}
.faq-band:nth-of-type(odd) { background: var(--sky); }
.faq-band:nth-of-type(even) { background: var(--sand); }
.faq-q { grid-column: 1 / 6; font-size: var(--step-lead); font-weight: 700; line-height: 1.2; }
.faq-a { grid-column: 7 / 13; font-size: var(--step-body); line-height: 1.5; max-width: 60ch; }

/* ═══ Cierre: la frase con un espacio ═════════════════════════════ */
.cta { background: var(--sand); min-height: 70svh; align-content: center; }
.cta-form { grid-column: 1 / 12; display: flex; flex-direction: column; gap: 24px; }
.cta-sentence { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.25em; }
.cta-input {
  width: 7em;
  height: 1.05em;
  padding: 0 0.15em;
  border: 0;
  border-radius: var(--radius);
  background: var(--sand-2);
  color: var(--ink);
  font: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
}
.cta-input::placeholder { color: var(--muted-sand); }
.cta-submit {
  height: 1.05em;
  padding: 0 0.2em;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  letter-spacing: inherit;
  line-height: 0.9;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.cta-submit:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .cta-submit:hover { background: var(--accent-strong); } }
.cta .muted { color: var(--muted-sand); }

/* ═══ Pie de tiles ════════════════════════════════════════════════ */
.footer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 220px 320px;
  gap: 8px;
  padding: 10px;
  background: var(--sky);
}
.ftile { display: flex; flex-direction: column; justify-content: space-between; padding: 24px; text-decoration: none; min-width: 0; }
.ftile-statement { grid-column: 1 / 5; background: var(--sand); }
.ftile-statement p { font-size: 1.5rem; line-height: 1.25; max-width: 22ch; }
.ftile-statement small { font-size: var(--step-small); color: var(--muted-sand); }
.ftile-nav { grid-column: 5 / 8; justify-content: flex-start; gap: 8px; background: var(--yellow); }
.ftile-nav a { text-decoration: none; font-weight: 500; }
.ftile-time { grid-column: 8 / 10; background: var(--sky-2); }
.ftile-time b { font-size: 1.5rem; font-weight: 500; }
.ftile-login { grid-column: 10 / 13; background: var(--paper); transition: background-color var(--t-hover) ease; }
.ftile-login b { font-size: 1.25rem; font-weight: 500; }
.ftile-wordmark {
  grid-column: 1 / 9;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(3rem, 9vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.ftile-accent { grid-column: 9 / 13; background: var(--accent); color: var(--accent-ink) !important; transition: background-color var(--t-hover) ease; }
.ftile-accent span { font-size: 1.75rem; font-weight: 500; line-height: 1.15; max-width: 12ch; }
.ftile-accent svg { align-self: flex-end; width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: square; }
@media (hover: hover) and (pointer: fine) {
  .ftile-accent:hover { background: var(--accent-strong); }
  .ftile-login:hover { background: #ffffff; }
}

/* ═══ Pantallas de la app ([data-ui]): letra y colores de TallerPilot ═══ */
.ui { font-family: var(--app-font); font-size: 14px; line-height: 1.4; color: #0f172a; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.ui-appbar { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--app); color: #ffffff; }
.ui-appbar b { font-size: 16px; font-weight: 700; }
.ui-appbar span { font-size: 12px; opacity: 0.9; }
.ui-list { width: 420px; background: #f1f5f9; border-radius: 16px 0 0 0; overflow: hidden; }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: #ffffff; }
.ui-row > span { display: flex; flex-direction: column; min-width: 0; }
.ui-row strong { font-weight: 600; white-space: nowrap; }
.ui-row small { font-size: 12px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-badge { flex: none; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-style: normal; font-weight: 500; white-space: nowrap; }
.ui-badge-diag { background: #f3e8ff; color: #6b21a8; }
.ui-badge-quote { background: #fef3c7; color: #92400e; }
.ui-badge-repair { background: #ffedd5; color: #9a3412; }
.ui-badge-ready { background: #dcfce7; color: #166534; }
.ui-badge-done { background: #e2e8f0; color: #334155; }

.ui-chat { width: 360px; }
.ui-bubble { position: relative; max-width: 340px; padding: 10px 14px 22px; border-radius: 12px 12px 4px 12px; background: #d9fdd3; color: #111b21; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.ui-bubble time { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: #54656f; }
.ui-bubble-in { margin-right: auto; border-radius: 12px 12px 12px 4px; background: #ffffff; }

.ui-check { display: flex; flex-direction: column; width: 260px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; }
.ui-check-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid #f1f5f9; }
.ui-check-row:first-child { border-top: 0; }
.ui-check-row i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-style: normal; font-weight: 700; }
.ui-check-row i.ok { background: rgba(4, 120, 87, 0.12); color: #047857; }
.ui-check-row i.bad { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }
.ui-check-row.is-bad span { color: #b91c1c; font-weight: 500; }
.ui-check-small { width: 240px; }

.ui-receipt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 300px;
  padding: 22px 20px 28px;
  background: #ffffff;
  color: #111111;
  font-family: ui-monospace, 'Courier New', monospace; /* el ticket térmico real */
  font-size: 13px;
  line-height: 1.5;
}
.ui-receipt hr { border: 0; border-top: 1px dashed #111111; margin: 8px 0; }
.ui-receipt p { display: flex; justify-content: space-between; gap: 12px; }
.ui-receipt-shop, .ui-receipt-center { text-align: center; }
.ui-receipt-shop { font-size: 15px; }
.ui-receipt-sign { margin-top: 24px; text-align: center; }
.ui-receipt small { margin-top: 12px; font-size: 11px; }
.ui-receipt-crop { width: 220px; padding: 16px; font-size: 12px; }

.ui-wa { width: 440px; overflow: hidden; border-radius: 16px 16px 0 0; background: #efeae2; }
.ui-wa-top { display: flex; flex-direction: column; padding: 14px 18px; background: #1f2c34; color: #e9edef; }
.ui-wa-top b { font-size: 16px; }
.ui-wa-top span { font-size: 12px; color: #aebac1; }
.ui-wa-body { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding: 20px 16px 120px; }

.ui-label { display: flex; align-items: center; gap: 16px; width: 300px; padding: 16px; background: #ffffff; color: #111111; border: 2px solid #111111; }
.ui-label-qr { flex: none; width: 104px; }
.ui-label-qr svg { width: 100%; height: auto; }
.ui-label-text { display: flex; flex-direction: column; gap: 2px; font-family: var(--app-font); font-size: 13px; }
.ui-label-text b { font-size: 17px; }

.ui-progress { display: flex; flex-direction: column; gap: 10px; width: 340px; padding: 18px; background: #ffffff; border-radius: 16px; }
.ui-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 500; color: #475569; }
.ui-bar { height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.ui-bar i { display: block; height: 100%; border-radius: inherit; background: var(--app); transition: width 250ms var(--ease-out); }
.ui-note { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; background: #f8fafc; font-size: 13px; }
.ui-note b { font-size: 12px; color: #475569; font-weight: 600; }
.ui-note small { font-size: 12px; color: #64748b; }

.ui-phone { width: 340px; overflow: hidden; border-radius: 28px; background: #f1f5f9; box-shadow: 0 30px 60px rgba(10, 10, 10, 0.18); }
.ui-phone-body { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.ui-phone-live { width: 380px; }
.ui-section { margin-top: 4px; font-size: 13px; font-weight: 600; color: #334155; }
.ui-phone .ui-check { width: auto; }
.ui-kv { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: #ffffff; border: 1px solid #e2e8f0; }
.ui-kv b { font-weight: 600; }
.ui-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; background: var(--app); color: #ffffff; font-weight: 600; }
.ui-btn-ghost { background: #ffffff; color: #0f172a; border: 1px solid #e2e8f0; }
.ui-bubble-live { align-self: flex-end; }

/* ═══ Movimiento: solo con movimiento permitido y con JavaScript ═══ */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js [data-load] { opacity: 0; transform: translateY(12px); animation: load-rise 500ms var(--ease-out) forwards; animation-delay: var(--d, 420ms); }
  .js .band .cell { clip-path: inset(0 0 100% 0); animation: cell-open 900ms var(--ease-expo) forwards; }
  .js .band .cell:nth-child(2n) { animation-delay: 80ms; }
  .js .band .cell:nth-child(3n) { animation-delay: 160ms; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* El ticket "se imprime" la primera vez que aparece. */
  .js .stage.is-printing .sheet.is-on .ui-receipt { animation: print 900ms var(--ease-expo) both; }
  .js .tiles .stage-tile .ui { transform: scale(0.94); transition: transform 1100ms var(--ease-expo); }
  .js .tiles .stage-tile.is-in .ui { transform: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }
@keyframes cell-open { to { clip-path: inset(0); } }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

/* ═══ Tableta ════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  /* Tableta: el título toma todo el ancho (dos líneas como máximo) y el
     mosaico pasa a 3 columnas para que las pantallas no se partan. */
  .nav-tab { flex: 0 0 auto; gap: 20px; }
  .nav-actions .link, .nav-actions .button { white-space: nowrap; }
  .band { grid-template-columns: repeat(3, minmax(0, 1fr)); height: 44svh; min-height: 320px; }
  .cell-orders { grid-column: 1 / 3; grid-row: 1 / 3; padding-top: 80px; }
  .cell-yellow { grid-column: 3; grid-row: 1; }
  .cell-ink { grid-column: 3; grid-row: 2; }
  .cell-sand-tall, .cell-chat, .cell-check, .cell-ticket, .cell-sky { display: none; }
  .hero-text { row-gap: 24px; }
  .hero-title { grid-column: 1 / -1; grid-row: 1; }
  .hero-lead { grid-column: 1 / 9; grid-row: 2; padding-top: 0; }
  .hero-actions { grid-column: 1 / -1; grid-row: 3; margin-top: 8px; }
  .faq-band { grid-template-columns: 1fr; row-gap: 12px; }
  .faq-q, .faq-a { grid-column: 1; }
  /* Las etapas son angostas en tableta: la pantalla de la app se achica en vez de cortarse. */
  .tile .ui { zoom: 0.72; }
  /* Ticket: más ancho para el talón (precio y botón en una línea). */
  .ticket { grid-template-columns: 6fr 4fr; }
  .ticket::before, .ticket::after { left: 60%; }
  /* Pie: dos columnas, como en el teléfono pero con más aire. */
  .footer { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .ftile { min-height: 160px; }
  .ftile-wordmark { grid-column: 1 / -1; grid-row: 1; min-height: 220px; }
  .ftile-accent { grid-column: 1 / -1; grid-row: 2; }
  .ftile-nav { grid-column: 1; grid-row: 3; }
  .ftile-login { grid-column: 2; grid-row: 3; }
  .ftile-time { grid-column: 1; grid-row: 4; }
  .ftile-statement { grid-column: 2; grid-row: 4; }
  .showcase-index { grid-column: 1 / -1; }
  .stage { grid-column: 1 / -1; margin-top: 40px; }
  .features-output { grid-column: 1 / 7; }
  .features-read { grid-column: 7 / -1; }
  .ui-phone-live { width: 330px; }
  .ticket { width: min(92vw, 860px); }
}

/* ═══ Teléfono ═══════════════════════════════════════════════════ */
@media (max-width: 720px) {
  :root { --margin: 16px; --gutter: 12px; }
  .chapter { padding: 72px var(--margin); min-height: 0; }

  .nav { position: static; height: 56px; }
  .nav-mark { flex: 0 0 auto; padding: 0 16px; }
  .nav-tab { display: none; }
  .nav-actions { gap: 12px; padding: 0 12px; }
  .nav-actions .link { font-size: 15px; }

  .band { grid-template-columns: repeat(3, minmax(0, 1fr)); height: 38svh; min-height: 260px; }
  .cell-orders { grid-column: 1 / 3; grid-row: 1 / 3; padding: 20px 0 0 16px; }
  .cell-yellow { grid-column: 3; grid-row: 1; }
  .cell-sand-tall { display: none; }
  .cell-chat { display: none; }
  .cell-check { display: none; }
  .cell-ink { grid-column: 3; grid-row: 2; }
  .cell-ticket { display: none; }
  .cell-sky { display: none; }

  .hero-text { grid-template-columns: 1fr; padding: 32px var(--margin) 48px; row-gap: 20px; }
  .hero-title { grid-column: 1; grid-row: 1; font-size: 13vw; }
  .hero-lead { grid-column: 1; grid-row: 2; font-size: 17px; padding-top: 0; }
  .hero-actions { grid-column: 1; grid-row: 3; margin-top: 4px; }
  .hero-actions .button { width: 100%; }

  .showcase-index { gap: 20px; padding-top: 0; }
  .outputs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 6px; scrollbar-width: none; }
  .output { flex: none; font-size: 22px; scroll-snap-align: start; white-space: nowrap; min-height: 44px; }
  .stage { height: 70svh; min-height: 460px; padding: 16px 0 0 16px; margin-top: 24px; }

  .journey { grid-template-columns: 1fr; }
  .journey-title { grid-column: 1; grid-row: 1; font-size: 30px; max-width: none; margin-bottom: 28px; }
  .tiles { grid-column: 1; grid-row: 2; grid-template-columns: 1fr; row-gap: 28px; }
  .tile-1, .tile-2, .tile-3 { grid-column: 1; }
  .tile-1 .tile { height: 56vw; min-height: 0; }
  .tile-2 .tile { height: 70vw; min-height: 0; }
  .tile-3 .tile { height: 110vw; min-height: 0; }
  .stage-tile figcaption b { font-size: 18px; }
  .stage-tile figcaption span { font-size: 16px; }

  .features { grid-template-columns: 1fr; padding: 0; }
  .features-output { grid-column: 1; height: 42svh; margin: 0; align-items: start; overflow: hidden; padding-top: 16px; z-index: 2; }
  .ui-phone-live { width: 320px; }
  .features-read { grid-column: 1; padding: 40px var(--margin) 72px; max-width: none; }
  .feature { min-height: 0; padding-bottom: 48px; }
  .feature .lead { font-size: 22px; }
  .seg { display: flex; }
  .seg button { flex: 1 1 auto; }

  .android { grid-template-columns: 1fr; row-gap: 40px; }
  .android-copy, .android-qr { grid-column: 1; }
  .android-copy .display-2 { font-size: 13vw; }
  .android-actions .button { width: 100%; }

  .pricing { grid-template-columns: 1fr; row-gap: 40px; }
  .ticket {
    width: calc(100vw - 2 * var(--margin));
    aspect-ratio: auto;
    grid-template-columns: 1fr;
  }
  .ticket::before, .ticket::after { top: auto; bottom: auto; left: auto; margin: 0; }
  .ticket::before { left: -14px; top: calc(62% - 14px); }
  .ticket::after { right: -14px; top: calc(62% - 14px); }
  .ticket-main { padding: 24px; }
  .ticket-title { font-size: 9vw; }
  .ticket-terms { grid-template-columns: 1fr; font-size: 16px; }
  .ticket-stub { border-left: 0; border-top: 6px dotted var(--ink); padding: 24px; }
  .ticket-price { font-size: 16vw; }

  .faq-head { min-height: 30svh; padding: 32px 20px; }
  .faq-head .display-2 { font-size: 13vw; }
  .faq-band { grid-template-columns: 1fr; row-gap: 12px; padding: 32px 20px; }
  .faq-q, .faq-a { grid-column: 1; }
  .faq-q { font-size: 22px; }
  .faq-a { font-size: 17px; }

  .cta { min-height: 0; }
  .cta-sentence { font-size: 10vw; row-gap: 0.15em; }
  .cta-input { width: 100%; order: 0; height: 1.05em; }
  .cta .body { font-size: 15px; }

  .footer { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 6px; padding: 8px; }
  .ftile { padding: 20px; min-height: 140px; }
  .ftile-wordmark { grid-column: 1 / -1; grid-row: 1; min-height: 160px; font-size: 16vw; }
  .ftile-accent { grid-column: 1 / -1; grid-row: 2; }
  .ftile-nav { grid-column: 1; grid-row: 3; }
  .ftile-login { grid-column: 2; grid-row: 3; }
  .ftile-time { grid-column: 1; grid-row: 4; }
  .ftile-statement { grid-column: 2; grid-row: 4; }
  .ftile-statement p { font-size: 17px; }
  .ftile-accent span { font-size: 1.5rem; }
}

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

/* Textos cortos en el teléfono */
.only-phone { display: none; }
@media (max-width: 720px) {
  .only-wide { display: none; }
  .only-phone { display: inline; }
  .nav-actions .link, .nav-actions .button { white-space: nowrap; }
  .nav-actions .button-small { padding: 0 14px; }
}

/* En el teléfono las muescas van donde está la perforación (borde del talón). */
@media (max-width: 720px) {
  .ticket::before, .ticket::after { display: none; }
  .ticket-stub { position: relative; }
  .ticket-stub::before, .ticket-stub::after {
    content: "";
    position: absolute;
    top: -17px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink);
  }
  .ticket-stub::before { left: -14px; }
  .ticket-stub::after { right: -14px; }
}

/* Tableta angosta: el menú de secciones no cabe junto a las acciones. */
@media (max-width: 900px) {
  .nav-tab { display: none; }
}

/* En el teléfono cada etapa ocupa todo el ancho: tamaño real otra vez. */
@media (max-width: 720px) {
  .tile .ui { zoom: 1; }
}
