/* Landing Komistar v3 — paleta de marca de Sistema C con tipografía propia de la landing:
   Fraunces suave (títulos) + Libre Franklin (texto). El panel sigue con Sistema C, y el logo con Bricolage.
   Menos tarjetas: filetes, espacio y tipografía; las cajas quedan para lo que en la vida real es un objeto
   (el celular, el ticket de la cocina, el papel impreso). */
:root {
  --cream: #F4EDE0;
  --cream-2: #EDE3D1;
  --cream-3: #E2D4BB;
  --ink: #1B1813;
  --ink-2: #2D2820;
  --ink-soft: #5C544A;
  --ink-bg-3: #2E2920;
  --orange: #F17B3A;
  --orange-deep: #D85F1F;
  --orange-soft: #FFB985;
  --accent-soft: rgba(241, 123, 58, 0.16);
  --pine: #1F3A2D;
  --pine-2: #2A4C3B;
  --pine-soft: #84C2A4;
  --mustard: #E2A638;
  --red: #B73E2A;
  --wa-bg: #EFE7DD;
  --wa-out: #D9FDD3;
  --hair: rgba(27, 24, 19, 0.16);
  --hair-light: rgba(244, 237, 224, 0.16);
  --cream-dim: rgba(244, 237, 224, 0.74);
  --cream-faint: rgba(244, 237, 224, 0.14);
  --shadow-lg: 0 18px 50px -18px rgba(27, 24, 19, 0.3);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Libre Franklin", system-ui, sans-serif;
  --font-brand: "Bricolage Grotesque", system-ui, sans-serif;
  /* Lo que imita a WhatsApp va con la letra del sistema, como en el celular. */
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Solo para lo impreso por la impresora térmica. */
  --font-print: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  /* La estrella de cuatro puntas de la placa K, como viñeta. */
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-7 -7 14 14'%3E%3Cpath fill='%23F17B3A' d='M0 -7C1.05 -2.8 4.2 -1.05 7 0C4.2 1.05 1.05 2.8 0 7C-1.05 2.8 -4.2 1.05 -7 0C-4.2 -1.05 -1.05 -2.8 0 -7Z'/%3E%3C/svg%3E");
  --gutter: 18px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }

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

/* ---------- Piezas comunes ---------- */
.title {
  font-size: clamp(33px, 4.7vw, 58px);
  line-height: 1.02;
  text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--ink-soft); max-width: 56ch; margin-top: 16px; }
.body-lg { font-size: clamp(17px, 1.45vw, 18.5px); color: var(--ink-2); max-width: 54ch; margin-top: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.005em;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  cursor: pointer;
  border: 0;
  text-align: center;
}
.btn svg { width: 21px; height: 21px; flex-shrink: 0; }
.btn-lg { min-height: 56px; padding: 15px 26px; font-size: 17.5px; }
.btn-small { min-height: 44px; padding: 9px 16px; font-size: 15px; border-radius: 10px; }
.btn-small svg { width: 16px; height: 16px; }
.btn-primary { background: var(--orange); color: var(--cream); box-shadow: 0 4px 14px rgba(216, 95, 31, 0.25); }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-pine { background: var(--pine); color: var(--cream); }
.btn-pine:hover { background: var(--pine-2); }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }

/* Enlace con subrayado naranja (en vez de un segundo botón con borde). */
.link-more {
  display: inline-flex; align-items: center; min-height: 50px;
  font-weight: 600; font-size: 16.5px; color: var(--cream);
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.link-more:hover { text-decoration-color: var(--cream); }

/* Etiquetas de los mockups del producto (ticket, comprobante): imitan al panel. */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 5px;
  line-height: 1.4;
  white-space: nowrap;
}
.badge-delivery, .badge-pagado { background: var(--pine); color: var(--cream); }
.badge-retiro { background: var(--mustard); color: var(--ink); }
.badge-queja { background: var(--red); color: var(--cream); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--cream);
  border-bottom: 1px solid var(--cream-faint);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-name { font-family: var(--font-brand); font-weight: 800; font-size: 23px; letter-spacing: -0.03em; }
.header-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.link-panel {
  display: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--cream-dim);
  text-decoration: none;
  padding: 10px;
}
.link-panel:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.header .btn { min-height: 40px; padding: 8px 13px; font-size: 14.5px; }
.header .btn svg { width: 18px; height: 18px; }
.header .btn .long { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: 40px 0 60px;
}
.hero-grid { position: relative; display: grid; gap: 44px; align-items: center; }
.hero h1 {
  font-size: clamp(42px, 7vw, 84px);
  letter-spacing: -0.03em;
  line-height: 0.96;
  text-wrap: balance;
}
.hero h1 .hl { color: var(--orange); }
.hero-lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 19.5px); color: var(--cream-dim); max-width: 50ch; }
.hero-points { margin-top: 22px; max-width: 50ch; border-top: 1px solid var(--hair-light); }
.hero-points li { padding: 10px 0 10px 24px; border-bottom: 1px solid var(--hair-light); font-size: 16px; position: relative; }
.hero-points li::before { content: ""; position: absolute; left: 1px; top: 16px; width: 12px; height: 12px; background: var(--star) center / contain no-repeat; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 14px; color: rgba(244, 237, 224, 0.55); }

/* Escena: chat de WhatsApp → ticket en la cocina */
.scene { position: relative; max-width: 440px; margin: 0 auto; width: 100%; padding: 28px 0 36px; }
.scene-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  color: rgba(244, 237, 224, 0.62);
  display: flex; align-items: center; gap: 8px;
}
.scene-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #25D366; }
.scene-label-wa { position: absolute; top: 0; left: 4px; }
.scene-label-kds { position: absolute; bottom: -30px; right: 4px; }
.scene-label-kds::before { background: var(--orange); }

.phone {
  position: relative;
  width: 80%;
  max-width: 315px;
  border-radius: 30px;
  background: var(--ink-bg-3);
  padding: 9px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(244, 237, 224, 0.08);
}
.phone-screen { border-radius: 23px; overflow: hidden; background: var(--wa-bg); }
.wa-top {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: #F7F3EC;
  border-bottom: 1px solid rgba(27, 24, 19, 0.07);
  font-family: var(--font-ui);
}
.wa-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--mustard);
  display: grid; place-items: center;
  font-weight: 700; color: var(--ink); font-size: 15px;
  flex-shrink: 0;
}
.wa-avatar-k { background: var(--cream-2); }
.wa-name { font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.2; }
.wa-status { font-size: 11.5px; color: var(--ink-soft); }
.wa-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px 16px; min-height: 318px; }
.msg {
  max-width: 84%;
  padding: 7px 10px 6px;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.38;
  color: #111B21;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  position: relative;
}
.msg small { display: block; text-align: right; font-size: 10.5px; color: rgba(17, 27, 33, 0.5); margin-top: 1px; }
.msg-in { align-self: flex-start; background: #FFFFFF; border-top-left-radius: 3px; }
.msg-out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 3px; }
.msg-receipt { display: flex; align-items: center; gap: 8px; }
.msg-receipt .file {
  width: 30px; height: 36px; border-radius: 4px; background: var(--cream-2);
  border: 1px solid var(--cream-3); flex-shrink: 0;
  display: grid; place-items: center; font-size: 8px; font-weight: 700; color: var(--ink-soft);
}
.msg-audio { display: flex; align-items: center; gap: 8px; min-width: 190px; }
.msg-audio svg { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: #25D366; color: #fff; flex-shrink: 0; }
.msg-audio .wave { flex: 1; height: 18px; background: repeating-linear-gradient(90deg, #7FA89A 0 2px, transparent 2px 5px); opacity: .8; border-radius: 2px; }
.msg-audio .dur { font-size: 11px; color: rgba(17, 27, 33, 0.55); }
.msg-transcript { display: block; margin-top: 5px; font-size: 12px; color: var(--ink-soft); font-style: italic; }
.typing { align-self: flex-start; background: #fff; border-radius: 10px; padding: 9px 12px; display: flex; gap: 4px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9AA3A8; display: block; animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

/* El ticket de la pantalla de la cocina: es un objeto del producto, por eso sí es una tarjeta. */
.ticket {
  position: relative;
  background: #FFFFFF;
  color: var(--ink);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 270px;
}
.ticket-hero {
  z-index: 3;
  margin: -78px 0 0 auto;
  width: 64%;
  overflow: visible;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.6);
}
.ticket-hero .ticket-head { border-radius: 0 11px 0 0; }
.ticket-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; background: var(--cream-2);
}
.ticket-code { font-family: var(--font-display); font-weight: 800; font-size: 23px; letter-spacing: -0.02em; color: var(--orange-deep); line-height: 1; }
.ticket-new {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--orange-deep); display: inline-flex; align-items: center; gap: 5px;
}
.ticket-new::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(241, 123, 58, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(241, 123, 58, 0); } }
.ticket-body { padding: 10px 12px 12px; font-size: 14px; }
.ticket-badges { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.ticket-items { display: grid; gap: 2px; }
.ticket-items b { color: var(--orange-deep); font-variant-numeric: tabular-nums; }
.ticket-items .mod { color: var(--ink-soft); font-size: 13px; padding-left: 22px; position: relative; }
.ticket-items .mod::before { content: "↳"; position: absolute; left: 7px; color: var(--orange); }
.ticket-note { margin-top: 7px; font-size: 12.5px; color: var(--ink-2); background: var(--cream); border-radius: 6px; padding: 4px 7px; }
.ticket-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px;
  margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--cream-3);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; color: var(--ink-soft);
}
.ticket-foot strong { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; margin-left: auto; }
.ticket-btn {
  margin-top: 10px; width: 100%; border-radius: 9px; background: var(--pine); color: var(--cream);
  font-weight: 700; font-size: 14px; text-align: center; padding: 8px;
}

.replay {
  position: absolute; left: 0; bottom: 4px;
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 600;
  color: var(--cream-dim); padding: 10px 4px;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--cream-faint);
}
.replay svg { width: 15px; height: 15px; }
.replay:hover { color: var(--cream); }

/* Secuencia del hero: los mensajes entran de a uno y al final cae el ticket. */
.js .seq { opacity: 0; transform: translateY(6px); }
.js .play .seq { animation: rise .45s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: var(--d, 0s); }
.js .typing.seq { display: flex; }
.js .play .typing.seq { animation: rise .3s ease forwards, out .2s ease forwards; animation-delay: var(--d, 0s), var(--h, 0s); }
.js .ticket.seq { transform: translateY(24px) rotate(2deg); }
.js .play .ticket.seq { animation: drop .6s cubic-bezier(.2, .9, .25, 1.15) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes out { to { opacity: 0; height: 0; padding: 0; margin: -6px 0 0; } }
@keyframes drop { to { opacity: 1; transform: rotate(-1.5deg); } }

/* ---------- Secciones ---------- */
.section { padding: 68px 0; }
.section-head { max-width: 800px; }

/* Capítulos (01 · 02 · 03): problema → con Komistar → algo para tocar */
.chapter-alt { background: var(--cream-2); }
.chapter .title { font-size: clamp(33px, 3.9vw, 50px); }
.chapter-grid { display: grid; gap: 48px; align-items: start; }
.chapter-n {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px;
  border-top: 2px solid var(--ink); padding-top: 14px;
  font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 19px; line-height: 1.2;
  color: var(--ink-2);
}
.chapter-n span {
  font-style: normal; font-weight: 800; font-size: 46px; line-height: .8; letter-spacing: -0.03em;
  color: var(--orange);
}
.with-k { margin-top: 30px; max-width: 54ch; }
.with-k-title { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--pine); }
.ticks { margin-top: 8px; }
.ticks li { position: relative; padding: 11px 0 11px 26px; border-top: 1px solid var(--hair); color: var(--ink-2); font-size: 16.5px; }
.ticks li::before { content: ""; position: absolute; left: 1px; top: 17px; width: 13px; height: 13px; background: var(--star) center / contain no-repeat; }

/* --- Simulador del viernes: sin tarjeta, en columna con filete --- */
.sim { min-width: 0; border-top: 2px solid var(--ink); padding-top: 6px; }
.sim-top { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 20px; }
.seg-btn {
  border: 0; background: none; cursor: pointer;
  min-height: 46px; padding: 6px 2px;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--ink-soft);
  box-shadow: inset 0 -3px 0 transparent;
  transition: color .15s ease, box-shadow .15s ease;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.seg-btn[data-mode="con"][aria-pressed="true"] { color: var(--orange-deep); box-shadow: inset 0 -3px 0 var(--orange); }
.seg-btn.nudge { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { box-shadow: inset 0 -3px 0 transparent; } 50% { box-shadow: inset 0 -3px 0 var(--orange); color: var(--orange-deep); } }
.sim-clock { display: flex; align-items: baseline; gap: 7px; }
.sim-clock span { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; line-height: 1; }
.sim-clock small { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 16px; color: var(--ink-soft); }
.sim-who { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.sim-counters { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.sim-counters div { padding: 12px 10px 12px 0; min-width: 0; }
.sim-counters div + div { border-left: 1px solid var(--hair); padding-left: 12px; }
.sim-counters b { display: block; font-family: var(--font-display); font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.sim-counters span { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.3; color: var(--ink-soft); }
.sim-counters .bad b { color: var(--red); }
.sim-list {
  height: 352px;
  overflow: hidden;
  display: flex; flex-direction: column;
  mask-image: linear-gradient(#000 80%, transparent);
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
}
.sim-row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--hair);
  animation: rowin .35s cubic-bezier(.2, .7, .2, 1);
}
@keyframes rowin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.sim-av {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: var(--ink); background: var(--cream-3);
}
.sim-txt { min-width: 0; }
.sim-name { display: block; font-weight: 700; font-size: 14px; line-height: 1.2; }
.sim-prev { display: block; font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-st {
  font-size: 11.5px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap; text-align: right;
}
.st-wait { background: rgba(226, 166, 56, 0.24); color: #6E4B0C; }
.st-late { background: rgba(183, 62, 42, 0.13); color: var(--red); }
.st-busy { background: var(--accent-soft); color: #B04A14; }
.st-ok { background: var(--pine); color: var(--cream); }
.st-info { background: var(--cream-3); color: var(--ink-2); }
.st-gone { background: var(--red); color: var(--cream); }
.sim-row.gone { opacity: .62; }
.sim-row.gone .sim-prev { text-decoration: line-through; }
.sim-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.sim-result { font-size: 15px; color: var(--ink-2); flex: 1 1 220px; }
.sim-result b { color: var(--ink); }
.sim-note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); line-height: 1.45; }

/* --- Manifiesto --- */
.manifesto { background: var(--pine); color: var(--cream); padding: 72px 0; }
.manifesto-big {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 5.6vw, 70px); letter-spacing: -0.025em; line-height: 1.0;
  max-width: 19ch; text-wrap: balance;
}
.manifesto-big span { color: var(--orange-soft); font-style: italic; font-weight: 600; }
.manifesto-body { margin-top: 26px; max-width: 58ch; font-size: clamp(17px, 1.5vw, 19px); color: rgba(244, 237, 224, 0.84); }

/* --- Probalo: chat → comanda --- */
.try { min-width: 0; border-top: 2px solid var(--ink); padding-top: 12px; }
.try-title { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 22px; line-height: 1.2; }
.chips { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 4px; }
.chip {
  border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 0;
  font-size: 15.5px; font-weight: 600; color: var(--ink-soft);
}
.chip::before {
  content: ""; width: 15px; height: 15px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid currentColor; transition: background-color .15s ease, border-color .15s ease;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); }
.chip[aria-pressed="true"]::before { border-color: var(--orange); background: var(--orange); box-shadow: inset 0 0 0 2.5px var(--cream-2); }
.chip[disabled] { cursor: default; opacity: .6; }
/* Dos pantallas pegadas: el WhatsApp del cliente y la pantalla oscura de la cocina. */
.try-stage { display: grid; margin-top: 10px; }
.try-chat, .try-kds { padding: 12px; min-height: 260px; position: relative; min-width: 0; }
.try-chat { background: var(--wa-bg); }
.try-kds { background: var(--ink); }
.try-chat-label {
  font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 15px;
  color: var(--ink-soft); margin-bottom: 8px;
}
.try-kds .try-chat-label { color: rgba(244, 237, 224, 0.6); }
.try-msgs { display: flex; flex-direction: column; gap: 6px; }
.try-msgs .msg { animation: rise .35s cubic-bezier(.2, .7, .2, 1) both; opacity: 0; transform: translateY(6px); }
.try-msgs .typing { animation: rise .25s ease both; opacity: 0; }
.try-kds-body { display: grid; place-items: center; min-height: 210px; }
.kds-empty { text-align: center; }
.kds-empty .stamp {
  width: 58px; height: 58px; border-radius: 16px; background: var(--ink-bg-3); margin: 0 auto;
  display: grid; place-items: center;
}
.kds-empty .stamp svg { width: 34px; height: 34px; opacity: .8; }
.kds-empty .listen {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--pine-soft);
}
.kds-empty .listen::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pine-soft); animation: ping-pine 1.8s infinite; }
@keyframes ping-pine { 0% { box-shadow: 0 0 0 0 rgba(132, 194, 164, .5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(132, 194, 164, 0); } }
.try-kds .ticket { animation: drop-in .6s cubic-bezier(.2, .9, .25, 1.15) both; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.7); }
@keyframes drop-in { from { opacity: 0; transform: translateY(-20px) rotate(3deg); } to { opacity: 1; transform: rotate(-1deg); } }
.try-foot { margin-top: 14px; display: flex; }

/* --- Aviso de queja: el aviso es rojo entero, como suena en el local --- */
.esc { display: grid; gap: 14px; min-width: 0; border-top: 2px solid var(--ink); padding-top: 20px; }
.esc-chat { display: flex; flex-direction: column; gap: 6px; max-width: 360px; }
.esc-alert {
  justify-self: end; width: 100%; max-width: 380px;
  background: var(--red); color: var(--cream);
  border-radius: 6px; padding: 16px 18px 18px;
  box-shadow: 0 18px 40px -20px rgba(183, 62, 42, 0.8);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.esc-alert-top { display: flex; justify-content: space-between; align-items: center; }
.esc-alert .badge-queja { background: var(--cream); color: var(--red); }
.esc-ring { font-size: 19px; animation: ring 1.8s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30%, 50% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } }
.esc-alert.taken { background: var(--pine); box-shadow: 0 18px 40px -20px rgba(31, 58, 45, 0.8); }
.esc-alert.taken .badge-queja { color: var(--pine); }
.esc-alert.taken .esc-ring { animation: none; opacity: .35; }
.esc-who { margin-top: 12px; font-size: 14.5px; color: rgba(244, 237, 224, 0.85); }
.esc-who b { font-family: var(--font-display); color: var(--cream); font-size: 20px; letter-spacing: -0.01em; }
.esc-quote { margin-top: 4px; font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 21px; line-height: 1.25; }
.esc-alert .btn { margin-top: 14px; width: 100%; background: var(--cream); color: var(--ink); }
.esc-alert .btn:hover { background: #FFFFFF; }
.esc-alert :focus-visible { outline-color: var(--cream); }
.esc-done { margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; font-size: 15px; font-weight: 600; }
.esc-done svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--pine-soft); }
.esc-caption {
  justify-self: end; max-width: 380px; width: 100%;
  font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 15px; color: var(--ink-soft);
}

/* --- Después del chat: pestañas como índice, sin botones-píldora --- */
.after { background: var(--cream-2); }
.tour { margin-top: 34px; }
.tour-tabs {
  position: relative;
  display: flex; gap: 24px; overflow-x: auto;
  border-bottom: 1px solid var(--hair);
  scrollbar-width: none;
}
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tab {
  flex-shrink: 0; display: inline-flex; align-items: baseline; gap: 7px; cursor: pointer;
  border: 0; background: none; padding: 10px 0 12px; min-height: 48px;
  box-shadow: inset 0 -3px 0 transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; color: var(--ink-soft);
  transition: color .15s ease, box-shadow .15s ease;
}
.tour-tab span { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--orange-deep); }
.tour-tab:hover { color: var(--ink); }
.tour-tab[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--orange); }
.tour-panel {
  margin-top: 30px;
  display: grid; gap: 26px; align-items: center;
  animation: fade .35s ease;
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tour-text h3 { font-size: clamp(25px, 2.6vw, 36px); line-height: 1.06; text-wrap: balance; }
.tour-text p { margin-top: 12px; color: var(--ink-soft); font-size: 16.5px; max-width: 46ch; }
.tour-text .why { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--hair); color: var(--ink-2); font-size: 16px; }
.tour-text .why b { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 17.5px; color: var(--pine); }
/* El escenario del producto: un bloque pino a sangre, sin borde ni radio. */
.tour-visual {
  background: var(--pine); padding: 32px 16px; min-height: 300px;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; min-width: 0;
}
.tv-cocina .ticket { max-width: 240px; transform: rotate(-1.5deg); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6); }
.paper {
  width: 190px; background: #FFFFFF; padding: 14px 14px 18px;
  font-family: var(--font-print); font-size: 11px; line-height: 1.55; color: var(--ink); letter-spacing: 0.02em;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6); transform: rotate(2deg);
  mask: radial-gradient(5px at 50% 100%, transparent 98%, #000) 50% 100% / 10px 100% repeat-x;
  -webkit-mask: radial-gradient(5px at 50% 100%, transparent 98%, #000) 50% 100% / 10px 100% repeat-x;
}
.paper-c { text-align: center; }
.paper-big { font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
.paper-line { border-top: 1px dashed var(--ink-soft); margin: 7px 0; }
.comp {
  width: 100%; max-width: 250px; background: #FFFFFF; border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6);
}
.comp-ok { border-left: 4px solid var(--pine-soft); }
.comp-warn { border-left: 4px solid var(--mustard); }
.comp-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.comp-top .ticket-code { font-size: 20px; }
.comp-row { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.comp-row b { font-family: var(--font-display); color: var(--ink); font-size: 17px; }
.comp-check { display: flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 13px; color: var(--pine); font-weight: 600; }
.comp-check svg { width: 14px; height: 14px; }
.comp-check-warn { color: #7A5410; }
.phone-sm { width: 100%; max-width: 280px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(244, 237, 224, 0.12); }
.wa-body-sm { min-height: 0; }
.msg-map { padding: 5px 5px 6px; }
.map {
  display: block; width: 190px; height: 74px; border-radius: 7px; margin-bottom: 5px; position: relative;
  background:
    linear-gradient(90deg, transparent 46%, #fff 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 40%, #fff 40% 47%, transparent 47%),
    linear-gradient(35deg, transparent 60%, #f6e7b8 60% 66%, transparent 66%),
    #DDE8D5;
}
.map i { position: absolute; left: 50%; top: 42%; width: 16px; height: 16px; margin: -16px 0 0 -8px; border-radius: 50% 50% 50% 0; background: var(--red); transform: rotate(-45deg); }
.moto-btns { display: flex; gap: 6px; margin-top: 2px; font-family: var(--font-ui); }
.moto-btns span {
  flex: 1; text-align: center; background: #FFFFFF; border-radius: 8px; padding: 7px 4px;
  font-size: 13px; font-weight: 600; color: #027EB5; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}
.dash { width: 100%; max-width: 380px; background: #FFFFFF; border-radius: 12px; padding: 14px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6); }
.dash-title { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin-top: 12px; padding-bottom: 18px; }
.bars div { flex: 1; height: var(--h); background: var(--cream-3); border-radius: 4px 4px 1px 1px; position: relative; }
.bars div.peak { background: var(--orange); }
.bars span { position: absolute; bottom: -19px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.dash-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-top: 12px; }
.dash-top, .dash-pause { background: var(--cream); border-radius: 8px; padding: 10px; }
.dash-top ol { margin-top: 6px; list-style: decimal; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.pause-btn {
  display: block; margin-top: 8px; text-align: center; background: var(--mustard); color: var(--ink);
  font-weight: 700; font-size: 13px; border-radius: 8px; padding: 7px 4px;
}
.also { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 16px; color: var(--ink-soft); max-width: 72ch; }

/* --- Números: el ticket impreso --- */
.numbers { background: var(--ink); color: var(--cream); }
.numbers .lead { color: var(--cream-dim); }
.numbers-grid { display: grid; gap: 44px; align-items: center; }
.receipt {
  width: 100%; max-width: 400px; margin: 0 auto;
  background: #FBF8F2; color: var(--ink);
  font-family: var(--font-print); font-size: 13px;
  padding: 26px 22px 30px;
  transform: rotate(1.2deg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  mask:
    radial-gradient(6px at 50% 0, transparent 98%, #000) 50% 0 / 12px 51% repeat-x,
    radial-gradient(6px at 50% 100%, transparent 98%, #000) 50% 100% / 12px 51% repeat-x;
  -webkit-mask:
    radial-gradient(6px at 50% 0, transparent 98%, #000) 50% 0 / 12px 51% repeat-x,
    radial-gradient(6px at 50% 100%, transparent 98%, #000) 50% 100% / 12px 51% repeat-x;
}
.receipt-k { display: flex; justify-content: center; margin-bottom: 8px; }
.receipt-c { text-align: center; font-weight: 700; letter-spacing: 0.18em; }
.receipt-small { font-size: 10.5px; font-weight: 400; letter-spacing: 0.14em; color: var(--ink-soft); margin-top: 2px; }
.receipt-cut { border-top: 1.5px dashed rgba(27, 24, 19, 0.35); margin: 16px 0; }
.receipt-row { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.receipt-row:first-of-type { margin-top: 0; }
.receipt-row span { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; font-weight: 700; }
.receipt-row span::after { content: ""; flex: 1; border-bottom: 1.5px dotted rgba(27, 24, 19, 0.4); transform: translateY(-3px); min-width: 12px; }
.receipt-row b { font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: var(--orange-deep); line-height: 1; white-space: nowrap; }
.receipt-sub { margin-top: 4px; font-size: 11.5px; color: var(--ink-soft); line-height: 1.45; }

/* --- ¿Es para tu local? --- */
.fit-grid { display: grid; gap: 40px; align-items: start; }
.not-for { margin-top: 30px; }
.not-for-title { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--red); }
.not-for ul { margin-top: 8px; }
.not-for li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 16px; color: var(--ink-2); }
.not-for svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 4px; color: var(--red); }
.quiz { border-top: 2px solid var(--ink); }
.q {
  display: flex; align-items: center; gap: 14px; padding: 15px 0; cursor: pointer;
  border-bottom: 1px solid var(--hair);
  font-size: 16.5px; color: var(--ink-2);
}
.q input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-box {
  width: 26px; height: 26px; border-radius: 5px; flex-shrink: 0;
  border: 2px solid var(--ink-soft); display: grid; place-items: center; color: transparent;
  transition: background-color .15s ease, border-color .15s ease;
}
.q:hover .q-box { border-color: var(--ink); }
.q-box svg { width: 16px; height: 16px; }
.q input:checked + .q-box { background: var(--pine); border-color: var(--pine); color: var(--cream); }
.q input:checked ~ span:last-child { color: var(--ink); font-weight: 600; }
.q input:focus-visible + .q-box { outline: 3px solid var(--orange); outline-offset: 2px; }
.quiz-out { margin-top: 20px; }
.quiz-meter { height: 6px; background: var(--hair); overflow: hidden; }
.quiz-meter i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .35s cubic-bezier(.2, .7, .2, 1), background-color .2s ease; }
.quiz-out p { margin-top: 12px; font-size: 16px; color: var(--ink-2); }
.quiz-out p b { font-family: var(--font-display); font-size: 23px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); display: block; margin-bottom: 2px; }
.quiz-out .btn { margin-top: 14px; }

/* --- Cómo trabajamos: un horario, no tres tarjetas --- */
.how { background: var(--cream-2); }
.timeline { display: grid; gap: 0 32px; margin-top: 40px; }
.timeline li { border-top: 2px solid var(--ink); padding: 14px 0 28px; }
.tl-when { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 26px; line-height: 1.1; color: var(--orange-deep); }
.timeline h3 { margin-top: 10px; font-size: 25px; line-height: 1.08; }
.timeline p { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }
.support { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 16px; color: var(--ink-2); max-width: 72ch; }

/* --- FAQ: filetes, sin tarjetas --- */
.faq-grid { display: grid; gap: 28px; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; line-height: 1.25;
}
.faq summary:hover { color: var(--ink-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0;
  font-family: var(--font-body); font-size: 28px; font-weight: 400; line-height: .8; color: var(--orange-deep);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 20px; color: var(--ink-2); font-size: 16.5px; max-width: 64ch; }
.faq .answer p + p { margin-top: 10px; }

/* --- Cierre + calculadora: texto tinta sobre naranja, sin tarjeta blanca --- */
.cta { background: var(--orange); color: var(--ink); padding: 72px 0; }
.cta :focus-visible { outline-color: var(--ink); }
.cta-grid { display: grid; gap: 40px; align-items: center; }
.cta h2 { font-size: clamp(38px, 5.8vw, 72px); letter-spacing: -0.03em; line-height: 0.98; text-wrap: balance; }
.cta-copy p { margin-top: 18px; max-width: 46ch; font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-2); }
.cta-copy .btn { margin-top: 28px; }
.calc { border-top: 2px solid var(--ink); padding-top: 16px; }
.calc-field + .calc-field { margin-top: 20px; }
.calc-label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.stepper { display: inline-flex; align-items: stretch; margin-top: 10px; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.stepper button {
  width: 48px; height: 48px; border: 0; cursor: pointer; background: transparent;
  font-size: 24px; font-weight: 600; color: var(--ink);
}
.stepper button:hover { background: rgba(27, 24, 19, 0.1); }
.stepper output {
  min-width: 64px; display: grid; place-items: center; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 28px; font-variant-numeric: tabular-nums lining-nums;
}
.calc input[type="range"] { width: 100%; margin-top: 12px; accent-color: var(--ink); height: 28px; }
.calc-ticket-val { font-family: var(--font-display); font-weight: 800; font-size: 23px; font-variant-numeric: tabular-nums lining-nums; }
.calc-out { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(27, 24, 19, 0.3); }
.calc-out-label { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 19px; }
.calc-out-val { margin-top: 4px; font-family: var(--font-display); font-weight: 900; font-size: clamp(42px, 5.2vw, 60px); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.calc-out-sub { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* Footer */
.footer { background: var(--ink); color: var(--cream-dim); padding: 44px 0 110px; }
.footer .brand { color: var(--cream); }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--cream-faint);
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  font-size: 13px; color: rgba(244, 237, 224, 0.5);
}
.footer-bottom a { color: var(--orange-soft); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* Barra fija de WhatsApp en el celular */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  transform: translateY(140%); transition: transform .25s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; box-shadow: 0 10px 30px -6px rgba(216, 95, 31, 0.55); }

/* ---------- Breakpoints ---------- */
@media (max-width: 559.98px) {
  /* En el celular, las dos pantallas del «Probalo» y el escenario del producto van a sangre. */
  .try-stage, .tour-visual { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .try-chat, .try-kds { padding: 14px var(--gutter); }
  .btn-lg { padding: 15px 18px; font-size: 16.5px; }
  /* Las cuatro pestañas a la vista, en dos renglones, en vez de una fila que se esconde a la derecha. */
  .tour-tabs { flex-wrap: wrap; overflow: visible; gap: 0 18px; }
  .tour-tab { font-size: 19px; }
}
@media (min-width: 560px) {
  :root { --gutter: 24px; }
  .header .btn .long { display: inline; }
  .link-panel { display: inline-block; }
  .try-stage { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; }
  .scene { margin: 0 0 0 auto; }
  .section { padding: 104px 0; }
  .manifesto { padding: 104px 0; }
  .chapter-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 64px; }
  .chapter-grid-rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .chapter-grid-rev .chapter-copy { order: 2; }
  .tour-panel { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; }
  .tour-visual { min-height: 340px; }
  .numbers-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 64px; }
  .fit-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 64px; }
  .faq-grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
  .faq-grid .title { position: sticky; top: 96px; }
  .cta { padding: 104px 0; }
  .cta-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 72px; }
  .sticky-cta { display: none; }
  .footer { padding-bottom: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .seq { opacity: 1 !important; transform: none !important; }
  .js .typing.seq { display: none; }
}
