:root {
  --steel: #23282B;
  --steel-kds: #1E2326;
  --steel-light: #DFE3E5;
  --bar: #1A1E21;
  --bar-kds: #15191B;
  --steel-line: #33393D;
  --steel-divider: #3A4146;
  --key: #30363A;
  --key-edge: #454C51;
  --key-shadow: #121517;
  --clip: #3B4247;
  --clip-hi: #5A636A;
  --rail-high: #E4E8EA;
  --rail-mid: #AEB6BB;
  --rail-low: #6F787E;
  --st-text: #E3E7E9;
  --st-strong: #EEF1F2;
  --st-muted: #9BA5AA;
  --st-meta: #B4BDC1;
  --st-stencil: #8C969B;
  --st-signal: #CFD5D8;
  --st-legend: #DCE1E4;
  --paper: #F5F6F3;
  --paper-field: #EBEDE8;
  --paper-band: #ECEEEA;
  --paper-track: #DADDD8;
  --perf: #9AA0A4;
  --ink: #16181A;
  --ink-muted: #5F6569;
  --ink-muted-strong: #4B5155;
  --red: #C2261A;
  --focus: #E0473A;

  --sans: "Archivo", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 40px);
  --shift-h: 60px;
  --zz: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 14px 8px repeat-x;
  --zz-sm: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 12px 7px repeat-x;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--shift-h) + 12px); }
body {
  margin: 0;
  background: var(--steel-kds);
  color: var(--st-text);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
* { scrollbar-color: var(--rail-low) var(--bar-kds); scrollbar-width: thin; }
input { caret-color: var(--red); }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 2px; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
img, svg, canvas { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 12px 16px; background: var(--paper); color: var(--ink); font-weight: 800; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.mono { font-family: var(--mono); font-stretch: 87.5%; font-variant-numeric: tabular-nums; }
.stencil { font: 800 13px/1 var(--sans); font-stretch: 75%; letter-spacing: .16em; text-transform: uppercase; color: var(--st-stencil); }
.ico { width: 20px; height: 20px; flex: none; }

/* Suelos */
.g-kds { background-color: var(--steel-kds); background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 4px); color: var(--st-text); }
.g-steel { background-color: var(--steel); background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 4px); color: var(--st-text); }
.g-light { background-color: var(--steel-light); background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.018) 0 1px, transparent 1px 4px); color: var(--ink); }

/* Tipografía */
.h-display {
  font-weight: 800; font-stretch: 68%;
  font-size: clamp(3.1rem, 1.6rem + 5.4vw, 6rem);
  line-height: .9; letter-spacing: .005em; text-transform: uppercase;
  text-wrap: balance; color: var(--st-strong);
}
.h-section {
  font-weight: 800; font-stretch: 70%;
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.6rem);
  line-height: .92; letter-spacing: .005em; text-transform: uppercase;
  text-wrap: balance;
}
.g-steel .h-section, .g-kds .h-section { color: var(--st-strong); }
.h-sub { font-weight: 800; font-stretch: 72%; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.1rem); line-height: 1; text-transform: uppercase; }
.lede { font-size: clamp(1.06rem, .98rem + .32vw, 1.26rem); line-height: 1.55; max-width: 58ch; text-wrap: pretty; }
.g-steel .lede, .g-kds .lede { color: var(--st-text); }
.g-light .lede { color: var(--ink-muted-strong); }

/* Papel */
.paper { background: var(--paper); color: var(--ink); -webkit-mask: var(--zz); mask: var(--zz); }
.hang { filter: drop-shadow(0 10px 12px rgba(0,0,0,.5)); }
.hang--light { filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.perf { border: 0; border-top: 1.5px dashed var(--perf); margin: 2px 0; width: 100%; }
.rail { height: 14px; border-radius: 7px; background: linear-gradient(180deg, var(--rail-high) 0%, var(--rail-mid) 45%, var(--rail-low) 100%); box-shadow: 0 3px 6px rgba(0,0,0,.5); }
.rail--thin { height: 12px; border-radius: 6px; box-shadow: 0 3px 5px rgba(0,0,0,.45); }
.clip { position: absolute; z-index: 2; top: -10px; left: 50%; width: 44px; height: 15px; margin-left: -22px; border-radius: 2px; background: var(--clip); box-shadow: inset 0 1px 0 var(--clip-hi); }
.mod { color: var(--red); font-weight: 800; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 22px;
  font: 800 16px/1 var(--sans); font-stretch: 85%; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out), border-color .18s var(--ease-out), transform .12s var(--ease-out);
}
.btn:active { transform: translateY(2px); }
.btn--sm { min-height: 44px; padding: 0 14px; font-size: 13px; }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--rail-high); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--key); }
.btn--line-steel { border: 2px solid var(--st-meta); color: var(--st-strong); background: transparent; }
.btn--line-steel:hover { border-color: var(--paper); background: rgba(245,246,243,.06); }
.btn--line-ink { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn--line-ink:hover { background: rgba(22,24,26,.07); }
.btn--sq { min-height: 50px; padding: 0 14px; font-family: var(--mono); font-stretch: 87.5%; font-size: 14px; letter-spacing: 0; }
.btn--dotted { border-style: dashed; border-color: var(--perf); color: var(--ink-muted-strong); }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.key-steel {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--key-edge); border-bottom-width: 4px; border-radius: 6px;
  background: var(--key); color: var(--st-legend);
  font: 700 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: background-color .15s, transform .1s;
}
.key-steel:hover { background: #363D41; }
.key-steel:active, .key-steel[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-bottom-width: 1px; transform: translateY(3px); }
.key-steel--lg { min-height: 58px; padding: 0 18px; font-size: 14px; }

.band-ink {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 14px; margin-top: 6px;
  background: var(--ink); color: var(--paper);
  font: 800 17px/1 var(--sans); font-stretch: 85%; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
.band-ink--btn { cursor: pointer; transition: background-color .15s; }
.band-ink--btn:hover { background: var(--key); }
.band-ink.is-off { background: transparent; color: var(--ink-muted); border: 2px dashed var(--perf); cursor: default; letter-spacing: .08em; font-size: 15px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Franja de turno */
.shift { position: sticky; top: 0; z-index: 30; height: var(--shift-h); background: var(--bar-kds); border-bottom: 1px solid var(--steel-line); color: var(--st-strong); }
.shift__in { height: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gut); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--st-strong); flex: none; }
.brand__mark { width: 30px; height: 30px; }
.brand__name { font: 800 21px/1 var(--sans); font-stretch: 75%; letter-spacing: .04em; }
.tabs { display: flex; align-self: stretch; gap: 2px; }
.tabs a {
  display: flex; align-items: center; padding: 0 12px; height: 100%;
  font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--st-muted); border-bottom: 3px solid transparent; transition: color .15s;
}
.tabs a:hover { color: var(--st-strong); }
.tabs a[aria-current="true"] { color: var(--paper); font-weight: 700; border-bottom-color: var(--paper); }
.shift__end { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.conn { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--sans); letter-spacing: .1em; color: var(--st-signal); white-space: nowrap; }
.conn__line { width: 22px; border-top: 3px solid currentColor; }
.conn.is-off .conn__line { border-top-style: dotted; }
.conn.is-off { color: var(--paper); }
.clock { font-size: 18px; font-weight: 700; color: var(--paper); }
.show-sm { display: none; }

/* Héroe */
.hero { position: relative; isolation: isolate; min-height: min(calc(100svh - var(--shift-h)), 960px); display: flex; overflow: hidden; }
.hero__stage { position: absolute; inset: 0; z-index: 0; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s var(--ease-out); touch-action: pan-y; }
.hero.is-3d .hero__canvas { opacity: 1; }
.hero.is-3d .fallback { display: none; }
.rail-label { position: absolute; left: 0; top: 0; z-index: 2; opacity: 0; pointer-events: none; white-space: nowrap; transition: opacity .6s; }
.hero.is-3d .rail-label { opacity: 1; }
.hero__in { position: relative; z-index: 1; display: flex; align-items: center; pointer-events: none; padding-block: clamp(40px, 7vh, 88px) clamp(96px, 14vh, 140px); }
.hero__copy { width: min(100%, 540px); display: flex; flex-direction: column; gap: 26px; pointer-events: auto; }
.hero__lede { color: var(--st-text); }
.proofs { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--st-meta); }
.proofs li { display: flex; align-items: center; gap: 12px; }
.proofs li::before { content: ""; width: 18px; border-top: 2px solid var(--st-signal); flex: none; }
.hero__hint { position: absolute; z-index: 2; right: var(--gut); top: 26px; display: flex; align-items: center; gap: 14px; opacity: 0; transition: opacity .6s .4s; }
.hero.is-3d .hero__hint { opacity: 1; }

.fallback { position: absolute; left: calc(max(0px, (100% - var(--wrap)) / 2) + var(--gut) + 660px); right: 0; top: 16%; overflow: hidden; padding-top: 12px; }
.fallback__row { display: flex; gap: 15px; padding: 0 8px; }

/* Comanda KDS (HTML) */
.kds { position: relative; width: 230px; flex: none; margin-top: -2px; }
.kds__paper { display: flex; flex-direction: column; gap: 9px; padding: 18px 14px 24px; }
.kds__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.kds__head--late { margin: 0 -14px; padding: 6px 14px; background: var(--red); color: var(--paper); }
.kds__where { font-weight: 800; font-stretch: 68%; font-size: 36px; line-height: 1; }
.kds__min { font-size: 14px; font-weight: 800; }
.kds__who { font-size: 12px; color: var(--ink-muted); }
.kds__line { display: flex; gap: 10px; align-items: flex-start; }
.kds__line > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kds__q { min-width: 26px; font-size: 22px; font-weight: 800; line-height: 1.1; }
.kds__n { font-weight: 800; font-stretch: 85%; font-size: 17px; line-height: 1.2; }
.kds .mod { font-size: 14px; }
.tbar { position: relative; height: 6px; background: var(--paper-track); }
.tbar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.tbar i.is-late { background: var(--red); }
.tbar b { position: absolute; top: -4px; left: 60%; width: 2px; height: 14px; background: var(--ink); }
.kds--big { width: min(100%, 390px); }
.kds--big .kds__where { font-size: 52px; }
.kds--big .kds__n { font-size: 19px; }
.kds--big .band-ink { min-height: 62px; letter-spacing: .06em; font-size: 16px; }

/* Secciones */
.sec { position: relative; padding-block: clamp(80px, 10vw, 150px); }
.sec--seam { border-top: 1px solid var(--steel-divider); }
.sec--seam-light { padding-top: clamp(24px, 4vw, 56px); }

/* Módulos */
.mods { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px); }
.mods__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.mods__head .h-section { max-width: 11ch; }
.mods__head .lede { max-width: 44ch; }
.mods__body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.key {
  position: relative; min-height: 112px; padding: 6px 6px 8px; text-align: left;
  background: var(--key); border: 1px solid var(--key-edge); border-bottom: 6px solid var(--key-shadow); border-radius: 7px;
  cursor: pointer; transition: transform .12s var(--ease-out);
}
.key__lg { height: 100%; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 10px 11px 9px; border-radius: 3px; background: var(--paper); color: var(--ink); transition: background-color .15s, color .15s; }
.key__n { font-weight: 700; font-stretch: 85%; font-size: 16px; line-height: 1.15; }
.key__m { font-size: 13px; line-height: 1.3; color: var(--ink-muted); transition: color .15s; }
.key:hover .key__lg { background: var(--paper-field); }
.key:active { transform: translateY(3px); border-bottom-width: 3px; }
.key[aria-pressed="true"] { transform: translateY(4px); border-bottom-width: 2px; margin-bottom: 4px; }
.key[aria-pressed="true"] .key__lg { background: var(--ink); color: var(--paper); }
.key[aria-pressed="true"] .key__m { color: var(--st-meta); }

.order { position: sticky; top: calc(var(--shift-h) + 34px); margin-top: 10px; }
.order::before { content: ""; position: absolute; left: -12px; right: -12px; top: -12px; height: 12px; border-radius: 6px; background: linear-gradient(180deg, var(--rail-high), var(--rail-mid) 45%, var(--rail-low)); box-shadow: 0 3px 5px rgba(0,0,0,.45); }
.order__paper { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px 30px; }
.order__head { display: flex; justify-content: space-between; align-items: baseline; }
.order__where { font-weight: 800; font-stretch: 68%; font-size: 40px; line-height: .9; }
.order__count { font-size: 14px; font-weight: 800; }
.order__who { font-size: 12px; color: var(--ink-muted); }
.order__lines { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-stretch: 87.5%; font-size: 13px; }
.order__lines li { display: flex; gap: 10px; animation: print-line .45s var(--ease-out); }
.order__lines li b { font-weight: 800; min-width: 18px; }
.order__empty { padding: 16px 12px; border: 2px dashed var(--perf); color: var(--ink-muted); font-size: 14px; text-align: center; }
.order__skip { align-self: center; font-size: 14px; color: var(--ink-muted-strong); padding: 10px 4px; }
@keyframes print-line { from { clip-path: inset(0 0 100% 0); transform: translateY(-4px); } to { clip-path: inset(0); transform: none; } }

/* Teclas de lo que viene: leyenda punteada, como lo que aún no sale a cocina */
.key--pronto .key__lg { padding: 15px 16px 14px; background: var(--steel); color: var(--st-text); outline: 2px dashed var(--perf); outline-offset: -6px; }
.key--pronto .key__m { color: var(--st-stencil); font-weight: 800; font-stretch: 75%; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; }
.key--pronto:hover .key__lg { background: var(--key); }
/* Presionada como cualquier tecla (tinta), con la línea punteada en color papel */
.key--pronto[aria-pressed="true"] .key__lg { background: var(--ink); color: var(--paper); outline-color: var(--paper); }
.key--pronto[aria-pressed="true"] .key__m { color: var(--st-meta); }

/* Menú QR: la tablet cambia, el celular lo sella */
.qr { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.qr__copy { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px 56px; align-items: start; }
.qr__copy .h-section { max-width: 13ch; }
.qr__side { display: flex; flex-direction: column; gap: 20px; }
.qr__points { display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--ink); }
.qr__points li { display: flex; align-items: center; gap: 12px; }
.qr__points li::before { content: ""; width: 18px; border-top: 2px solid var(--ink); flex: none; }
.qr__try { font-size: 15px; color: var(--ink-muted-strong); }
/* Tarjeta de mesa con un QR real, de pie junto al celular: abre la carta de ejemplo en el celular del visitante */
.mesa { width: 172px; margin: 0; display: flex; flex-direction: column; gap: 12px; align-self: end; margin-bottom: 40px; }
.mesa__colgada { transform: rotate(-2.5deg); }
.mesa__paper { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 14px 24px; text-align: center; }
.mesa__band { align-self: stretch; margin: 0 -14px; padding: 12px 10px 9px; background: #F2CF45; color: var(--ink); font: 800 23px/.95 var(--sans); font-stretch: 68%; letter-spacing: .01em; }
.mesa__qr { width: 124px; height: 124px; padding: 7px; background: #FFFFFF; }
.mesa__escanea { font: 800 11px/1.25 var(--sans); letter-spacing: .12em; }
.mesa__n { padding: 4px 9px 3px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 800; }
.mesa figcaption { font-size: 13px; line-height: 1.4; color: var(--ink-muted-strong); }
.qr__demo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px 172px; gap: clamp(20px, 3vw, 44px); align-items: center; }
@media (max-width: 1180px) {
  .qr__demo { grid-template-columns: minmax(0, 1fr) 300px; }
  .mesa { display: none; }
}
.qr__tablet { background: var(--steel-kds); border: 1px solid var(--steel-line); border-radius: 7px; overflow: hidden; }
.qr__tablet .net__bar { gap: 14px; }
.qr__panel { display: flex; flex-direction: column; gap: 20px; padding: 22px 18px 20px; }
.qr__list { display: flex; flex-direction: column; padding: 6px 14px 22px; -webkit-mask: var(--zz-sm); mask: var(--zz-sm); }
.qr__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 0; border-bottom: 1.5px dashed var(--paper-track); }
.qr__row:last-child { border-bottom: 0; }
.qr__dish { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-weight: 700; font-stretch: 85%; font-size: 16px; line-height: 1.2; }
.qr__dish .mono { font-size: 12px; font-weight: 400; color: var(--ink-muted); }
.qr__toggle {
  flex: none; min-height: 44px; min-width: 116px; padding: 0 12px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font: 800 12px/1 var(--sans); letter-spacing: .08em; cursor: pointer;
  transition: background-color .15s var(--ease-out), color .15s var(--ease-out), border-color .15s var(--ease-out);
}
.qr__toggle:hover { background: rgba(22,24,26,.07); }
.qr__toggle[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--paper); }
.qr__styles { display: flex; flex-direction: column; gap: 12px; }
/* Seis cartulinas en una cuadrícula pareja: nunca queda una sola en el último renglón */
.qr__sws { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qr__sw { padding-left: 8px; }
.qr__sw i { width: 18px; height: 18px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); flex: none; }
.qr__sw[aria-pressed="true"] i { box-shadow: inset 0 0 0 1px rgba(22,24,26,.4); }
.phone { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone__screen {
  width: 300px; height: 612px; padding: 12px; border-radius: 40px;
  background: var(--steel-kds); border: 1px solid var(--key-edge);
}
/* El iframe mide como un celular real (375 px) y se escala al hueco de la pantalla */
.phone__screen iframe { display: block; width: 375px; height: 799px; border: 0; border-radius: 38px; background: #F2CF45; transform: scale(.736); transform-origin: 0 0; }
.phone figcaption { font-size: 13px; color: var(--ink-muted-strong); }
.qr__stamp { position: absolute; left: 4px; bottom: 6%; }

/* Solicitud de prueba */
.solicitud { width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.solicitud::backdrop { background: rgba(11,13,14,.82); }
.solicitud[open] .solicitud__paper { animation: print-in .7s var(--ease-out); }
.solicitud__paper { display: flex; flex-direction: column; gap: 14px; padding: 24px 22px 34px; max-height: calc(100dvh - 32px); overflow: auto; }
.solicitud__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.solicitud__x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -8px -8px 0 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.solicitud__help { color: var(--ink-muted-strong); }
.solicitud__form { display: flex; flex-direction: column; gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld__in { width: 100%; height: 54px; padding: 0 14px; border: 0; border-bottom: 3px solid var(--ink); border-radius: 0; background: var(--paper-field); color: var(--ink); font: 600 17px/1 var(--sans); }
.fld__in.mono { font-family: var(--mono); font-weight: 700; }
.fld__in::placeholder { color: var(--ink-muted); font-weight: 400; }
.solicitud__ok { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 6px; }
.solicitud__ok[hidden], .solicitud__form[hidden] { display: none; }
.solicitud__ok .stamp { align-self: center; margin: 8px 0 6px; }

/* Páginas legales: una tira larga de papel sobre acero claro */
.legal { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 120px); }
.legal__paper { max-width: 760px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 52px) 56px; }
.legal__paper h1 { font-weight: 800; font-stretch: 70%; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); line-height: .92; text-transform: uppercase; }
.legal__paper h2 { margin-top: 34px; font-weight: 800; font-stretch: 72%; font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.legal__paper p, .legal__paper li { margin-top: 12px; color: var(--ink-muted-strong); max-width: 68ch; }
.legal__paper ul { padding-left: 20px; list-style: disc; }
.legal__meta { margin-top: 10px; font-size: 13px; color: var(--ink-muted); }
.legal__borrador { margin: 0 auto 22px; max-width: 760px; padding: 12px 16px; border: 2px dashed var(--red); color: var(--red); font-weight: 800; background: var(--paper); }
.llenar { padding: 0 4px; background: transparent; border: 2px solid var(--red); color: var(--red); font-weight: 800; }

/* Sin internet */
.net { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.net__copy { display: flex; flex-direction: column; gap: 24px; }
.net__try { font-size: 15px; color: var(--st-meta); padding-top: 4px; }
.net__demo { background: var(--steel-kds); border: 1px solid var(--steel-line); border-radius: 7px; overflow: hidden; }
.net__bar { height: 56px; display: flex; align-items: center; gap: 18px; padding: 0 18px; background: var(--bar); border-bottom: 1px solid var(--steel-line); }
.net__rest { font: 800 20px/1 var(--sans); font-stretch: 72%; letter-spacing: .02em; color: var(--st-strong); margin-right: auto; }
.net__clock { font-size: 16px; font-weight: 700; color: var(--paper); }
.net__floor { padding: 22px 18px 8px; display: flex; flex-direction: column; gap: 12px; min-height: 360px; }
.net__rail { display: flex; gap: 10px; padding: 0 6px; margin-top: -10px; min-height: 270px; overflow: hidden; }
.tk { position: relative; width: 140px; flex: none; filter: drop-shadow(0 8px 9px rgba(0,0,0,.45)); animation: print-in .7s var(--ease-out); }
.tk .clip { width: 36px; height: 14px; margin-left: -18px; top: -9px; }
.tk__paper { display: flex; flex-direction: column; gap: 7px; padding: 16px 12px 20px; -webkit-mask: var(--zz-sm); mask: var(--zz-sm); }
.tk__where { font-weight: 800; font-stretch: 68%; font-size: 34px; line-height: .9; }
.tk__meta { font-size: 11px; color: var(--ink-muted); }
.tk__lines { font-family: var(--mono); font-stretch: 87.5%; font-size: 12px; line-height: 1.45; display: flex; flex-direction: column; gap: 2px; }
.tk__foot { margin-top: 4px; padding-top: 7px; border-top: 2px solid var(--ink); font-family: var(--mono); font-stretch: 87.5%; font-size: 11px; font-weight: 800; }
.tk.is-queued .tk__paper { outline: 2px dashed var(--ink); outline-offset: -6px; }
.tk.is-queued .tk__foot { border-top-style: dashed; }
.tk.is-flushing .tk__paper { animation: flush .5s var(--ease-out); }
@keyframes print-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -20px 0); } }
@keyframes flush { 0% { transform: translateY(0); } 40% { transform: translateY(-6px); } 100% { transform: translateY(0); } }
.net__controls { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 18px 18px; border-top: 1px solid var(--steel-line); background: var(--steel); }
.net__controls .btn { flex: 1 1 200px; }
.net__controls .key-steel { flex: 1 1 200px; justify-content: center; }

/* Margen */
.mar { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px); position: relative; }
.mar__copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 48px; align-items: end; }
.mar__copy .h-section { max-width: 13ch; }
.mar__grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); grid-template-rows: auto auto; gap: 34px clamp(28px, 4vw, 56px); align-items: start; }
.ficha { grid-row: 1; grid-column: 1; }
.kardex { grid-row: 2; grid-column: 1; }
.sim { grid-row: 1 / span 2; grid-column: 2; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ficha__paper, .kardex__paper { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px 30px; }
.ficha__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ficha__name, .kardex__title, .clist__title, .msg__title { font-weight: 800; font-stretch: 72%; font-size: 26px; line-height: 1; letter-spacing: .01em; }
.ficha__price { font-size: 18px; font-weight: 800; }
.ficha__meta { font-size: 12px; color: var(--ink-muted); }
.ficha__goal { font-size: 11px; color: var(--ink-muted); margin-top: -4px; }
.dots { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.dots div { display: flex; align-items: baseline; gap: 6px; }
.dots div::before { content: ""; order: 2; flex: 1; min-width: 12px; border-bottom: 2px dotted var(--perf); transform: translateY(-4px); }
.dots dt { order: 1; white-space: nowrap; }
.dots dd { order: 3; font-weight: 800; white-space: nowrap; }
.dots--total { font-size: 14px; }
.dots--total div:last-child dd { font-size: 18px; }
.fcbar { position: relative; height: 10px; background: var(--paper-track); margin-top: 4px; }
.fcbar__zone { position: absolute; top: 0; bottom: 0; left: 56%; width: 14%; background: repeating-linear-gradient(45deg, rgba(22,24,26,.22) 0 2px, transparent 2px 5px); }
.fcbar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.fcbar i.is-over { background: var(--red); }
.fcbar--sm { height: 8px; margin: 0; min-width: 90px; }
.sim__help { color: var(--ink-muted-strong); max-width: 52ch; }
.sim__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font: 800 12px/1 var(--sans); letter-spacing: .1em; }
.field__input { width: 170px; height: 56px; padding: 0 14px; border: 0; border-bottom: 3px solid var(--ink); border-radius: 0; background: var(--paper-field); color: var(--ink); font-size: 26px; font-weight: 800; appearance: textfield; -moz-appearance: textfield; }
.field__input::-webkit-inner-spin-button, .field__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sim__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tablewrap { overflow-x: auto; background: var(--paper); filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); -webkit-mask: var(--zz); mask: var(--zz); padding-bottom: 14px; }
.mtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.mtable th { padding: 12px 14px; text-align: left; font: 800 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.mtable td { padding: 13px 14px; border-bottom: 1.5px dashed var(--paper-track); vertical-align: middle; }
.mtable tbody tr:nth-child(even) td { background: var(--paper-band); }
.mtable .num { text-align: right; font-family: var(--mono); font-stretch: 87.5%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mtable .dish { font-weight: 700; }
.mtable .pct { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-stretch: 87.5%; font-weight: 800; font-size: 13px; }
.mtable .pct small { font-weight: 800; color: var(--red); font-size: 11px; }
.tag { display: inline-flex; align-items: center; padding: 3px 6px 2px; font: 800 11px/1.1 var(--sans); font-stretch: 75%; letter-spacing: .08em; text-transform: uppercase; font-style: normal; white-space: nowrap; border: 2px solid var(--ink); color: var(--ink); }
.tag--alert { background: var(--red); border-color: var(--red); color: var(--paper); }
.tag--warn { border-color: var(--red); color: var(--red); }
.sim__note { font-size: 13px; color: var(--ink-muted); }
.kardex__sub { font-size: 13px; color: var(--ink-muted); }
.kardex__lines { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.kardex__lines li { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: baseline; }
.kardex__lines b { font-weight: 800; }
.kardex__lines .tag { margin-right: 4px; font-size: 11px; padding: 2px 4px 1px; }
.stamp-red { display: inline-block; padding: 4px 12px; border: 3px solid var(--red); color: var(--red); font: 900 18px/1.05 var(--sans); font-stretch: 75%; letter-spacing: .08em; transform: rotate(-5deg); text-transform: uppercase; }
.mar__stamp { position: absolute; right: var(--gut); top: -8px; }

/* Clientes */
.cli { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cli__copy { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--shift-h) + 40px); }
.cli__demo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.clist__paper, .msg__paper { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px 30px; }
.clist__head, .msg__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12px; font-weight: 800; }
.clist__rows { display: flex; flex-direction: column; gap: 6px; }
.crow { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px; min-height: 56px; text-align: left; background: transparent; border: 2px solid transparent; border-bottom: 1.5px dashed var(--paper-track); cursor: pointer; transition: background-color .15s; }
.crow:hover { background: var(--paper-band); }
.crow[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.crow[aria-checked="true"] .crow__m { color: var(--st-meta); }
.crow__n { font-weight: 800; font-stretch: 85%; font-size: 17px; }
.crow__m { font-size: 12px; color: var(--ink-muted); }
.msg { margin-top: 48px; }
.msg__paper { position: relative; }
.msg__text { font-size: 17px; line-height: 1.55; padding: 4px 0 0; }
.msg__text.is-printing { animation: print-line .6s var(--ease-out); }
.stamp { position: relative; align-self: flex-end; margin: 10px 4px 0 0; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 14px; border: 4px double var(--ink); color: var(--ink); font: 900 24px/1.05 var(--sans); font-stretch: 75%; letter-spacing: .06em; transform: rotate(-7deg); text-transform: uppercase; }
.stamp small { font-size: 10px; font-weight: 700; letter-spacing: 0; }
.cli__stamp { position: absolute; left: -10px; bottom: -46px; }

/* Pasos */
.go { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 40px; }
.step + .step { border-left: 1.5px dashed var(--perf); }
.step__n { font-weight: 800; font-stretch: 68%; font-size: 64px; line-height: .85; }
.step__t { font-weight: 800; font-stretch: 72%; font-size: 28px; line-height: 1; text-transform: uppercase; }
.step p { color: var(--ink-muted-strong); max-width: 34ch; }
.actions--light { padding-top: 4px; }

/* Preguntas */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq .h-section { max-width: 10ch; }
.faq__paper { padding: 8px 22px 34px; }
.faq details { border-bottom: 1.5px dashed var(--perf); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 800; font-stretch: 85%; font-size: 19px; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .25s var(--ease-out); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-muted-strong); max-width: 62ch; }

/* Cierre */
.close { overflow-x: clip; }
.close__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.close__copy { display: flex; flex-direction: column; gap: 26px; }
.close__rail { display: flex; flex-direction: column; align-items: center; }
.close__rail .rail { width: 60vw; align-self: flex-start; }
.close__trial { align-self: center; padding: 12px 4px 0; font-size: 14px; color: var(--ink-muted-strong); }

/* Pie */
.foot { background: var(--bar-kds); border-top: 1px solid var(--steel-line); color: var(--st-muted); padding-block: 36px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot__tag { font-size: 14px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--st-signal); }
.foot__nav a:hover { color: var(--paper); text-decoration: underline; }
.foot__legal { width: 100%; font-size: 12px; color: var(--st-stencil); }

/* Barra fija en celular */
.dock { display: none; }

/* Impresión al entrar en pantalla */
.js [data-print] { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out); }
.js [data-print].is-printed { clip-path: inset(-40px -40px -40px -40px); }

@media (max-width: 1180px) {
  .tabs { display: none; }
  .keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mar__grid { grid-template-columns: 300px minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .hero { flex-direction: column; min-height: 0; max-height: none; }
  .hero__stage { position: relative; order: 2; height: clamp(460px, 118vw, 640px); }
  .hero__in { order: 1; padding-block: 40px 8px; }
  .hero__copy { width: 100%; gap: 22px; }
  .hero__hint { top: auto; right: var(--gut); left: var(--gut); bottom: 16px; justify-content: space-between; gap: 12px; }
  .fallback { left: var(--gut); right: auto; top: 40px; }
  .mods__body { grid-template-columns: minmax(0, 1fr); }
  .order { position: relative; top: 0; max-width: 420px; }
  .net { grid-template-columns: minmax(0, 1fr); }
  .qr__copy { grid-template-columns: minmax(0, 1fr); }
  .mar__copy { grid-template-columns: minmax(0, 1fr); }
  .mar__grid { grid-template-columns: minmax(0, 1fr); }
  .ficha, .kardex, .sim { grid-column: 1; grid-row: auto; }
  .ficha, .kardex { max-width: 420px; }
  .cli { grid-template-columns: minmax(0, 1fr); }
  .cli__copy { position: static; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .close__in { grid-template-columns: minmax(0, 1fr); }
  .close__rail .rail { width: calc(100% + 2 * var(--gut)); margin-inline: calc(-1 * var(--gut)); }
  .shift .conn { display: none; }
}

@media (max-width: 640px) {
  :root { --shift-h: 56px; }
  .shift__in { gap: 12px; }
  .shift__end { gap: 12px; }
  .clock { display: none; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .h-display { font-size: clamp(2.9rem, 1.2rem + 9vw, 3.6rem); }
  .hero__in { padding-top: 26px; }
  .hero__copy { gap: 18px; }
  .proofs { display: none; }
  .mar__copy { order: 0; }
  .mar__stamp { order: 1; }
  .mar__grid { order: 2; }
  .cli__stamp { order: -1; }
  .tablewrap { overflow: visible; }
  .mtable, .mtable tbody { display: block; }
  .mtable thead { display: none; }
  .mtable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "dish tag" "price cost" "pct pct"; gap: 8px 12px; padding: 14px; border-bottom: 1.5px dashed var(--paper-track); }
  .mtable tbody tr:nth-child(even) { background: var(--paper-band); }
  .mtable td { display: block; padding: 0; border: 0; background: none !important; }
  .mtable td:nth-child(1) { grid-area: dish; font-size: 16px; }
  .mtable td:nth-child(2) { grid-area: price; text-align: left; }
  .mtable td:nth-child(3) { grid-area: cost; }
  .mtable td:nth-child(4) { grid-area: pct; }
  .mtable td:nth-child(5) { grid-area: tag; }
  .mtable td[data-l]::before { content: attr(data-l) " "; font-family: var(--sans); font-stretch: 100%; font-size: 12px; color: var(--ink-muted); }
  .mtable .pct { flex-direction: row; align-items: center; gap: 10px; }
  .mtable .fcbar--sm { flex: 1; }
  .actions .btn { width: 100%; }
  .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .key { min-height: 100px; }
  .key__lg { min-height: 80px; }
  .cli__demo { grid-template-columns: minmax(0, 1fr); }
  .msg { margin-top: 0; }
  .cli__stamp { position: static; justify-self: start; margin-top: 6px; }
  .mar__stamp { position: static; align-self: flex-start; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step + .step { border-left: 0; border-top: 1.5px dashed var(--perf); }
  .net__bar { gap: 12px; }
  .net__rest { font-size: 17px; }
  /* Celular arriba y tablet abajo: al tocar AGOTADO se ve el sello sin desplazarse */
  .qr__demo { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .phone { order: -1; }
  .phone { gap: 8px; }
  .phone__screen { width: 212px; height: 404px; padding: 8px; border-radius: 30px; }
  .phone__screen iframe { height: 742px; border-radius: 42px; transform: scale(.5227); }
  .phone figcaption { font-size: 12px; }
  .qr__panel { padding: 14px 12px 16px; gap: 16px; }
  .qr__list { padding-top: 2px; }
  .qr__row { min-height: 52px; padding: 4px 0; }
  .qr__row:nth-child(4) { display: none; }
  .qr__toggle { min-width: 104px; }
  .qr__sws { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr__stamp { position: static; justify-self: start; }
  .field__input { width: 100%; }
  .sim__row .field { flex: 1 1 100%; }
  .dock {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; gap: 4px; min-height: calc(58px + env(safe-area-inset-bottom)); padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--steel-line);
    transform: translateY(110%); transition: transform .35s var(--ease-out);
  }
  .dock.is-on { transform: none; }
  .foot { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-print] { clip-path: none; }
}

.dock__main { display: flex; align-items: center; justify-content: center; gap: 10px; }
.dock__line { font-size: 11px; font-weight: 800; letter-spacing: 0; color: var(--ink-muted); text-transform: uppercase; }
.dock__line.is-new { animation: print-line .45s var(--ease-out); }
.mesa__band { transition: background-color .3s var(--ease-out), color .3s var(--ease-out); }

/* ── Novedades (noviembre 2026): demo, servicio, caja y Analista ── */
.hero__demo { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--st-signal); text-decoration: underline; text-decoration-color: var(--st-stencil); }
.hero__demo:hover { color: var(--paper); text-decoration-color: var(--paper); }
.hero__demo .ico { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--paper); color: var(--ink); }

/* Demo y reel */
.demo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.demo__copy { display: flex; flex-direction: column; gap: 22px; }
.demo__copy .h-section { max-width: 12ch; }
.demo__live { position: relative; max-width: 440px; margin-top: 14px; }
.demo__paper { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 34px; }
.demo__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.demo__where { font-weight: 800; font-stretch: 68%; font-size: 38px; line-height: .9; }
.demo__min { font-size: 13px; font-weight: 800; }
.demo__who { font-size: 12px; color: var(--ink-muted); }
.demo__lines { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.demo__lines b { display: inline-block; min-width: 26px; font-weight: 800; }
.demo__note { font-size: 13px; color: var(--ink-muted-strong); text-align: center; }
.reel { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.reel__frame { position: relative; width: min(340px, 100%); aspect-ratio: 9 / 16; padding: 10px; border-radius: 40px; background: #0B0D0E; box-shadow: 0 0 0 2px #2C3236, 0 30px 60px rgba(0,0,0,.5); }
.reel__video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 30px; background: var(--bar-kds); }
.reel__sound { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); white-space: nowrap; }
.reel__sound[aria-pressed="true"] { transform: translateX(-50%) translateY(3px); }
.reel figcaption { font-size: 13px; color: var(--st-meta); }

/* Servicio */
.srv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.srv__copy { display: flex; flex-direction: column; gap: 22px; }
.srv__points { display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: var(--st-text); }
.srv__points li { padding-left: 30px; position: relative; line-height: 1.45; }
.srv__points li::before { content: ""; position: absolute; left: 0; top: .72em; width: 18px; border-top: 2px solid var(--paper); }
.srv__points b { color: var(--st-strong); }
.srv__demo { background: var(--steel-kds); border: 1px solid var(--steel-line); border-radius: 7px; overflow: hidden; }
.srv__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding: 18px; }
.srv__orden { grid-column: 1 / -1; display: flex; flex-direction: column; padding: 8px 16px 22px; }
.srv__row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 54px; padding: 8px 0; border-bottom: 1.5px dashed var(--paper-track); font-weight: 700; font-stretch: 85%; font-size: 17px; }
.srv__n { display: flex; flex-direction: column; gap: 2px; }
.srv__n em { font-style: normal; font-size: 13px; }
.srv__tag { font: 800 12px/1 var(--sans); font-style: normal; font-stretch: 78%; letter-spacing: .1em; padding: 7px 8px 6px; border: 2px dashed var(--ink-muted); color: var(--ink-muted); white-space: nowrap; }
.srv__tag.is-cocina { border: 2px solid var(--ink); background: var(--ink); color: var(--paper); }
.srv__tag--espera { border: 2px solid #F2C230; background: #F2C230; color: var(--ink); }
.srv__btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.srv__btns .btn { flex: 1 1 220px; }
.srv__marchar { background: #F2C230; color: var(--ink); }
.srv__marchar:hover { background: #F5D15E; }
.srv__marchar:disabled { background: transparent; color: var(--st-stencil); border: 2px dashed var(--steel-divider); cursor: default; transform: none; }
.srv__cocina { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.srv__cocina .net__rail { min-height: 210px; }
.srv__vacia { align-self: center; margin: 0 auto; font-size: 14px; color: var(--st-stencil); list-style: none; }
.tk--marchar .tk__paper { border-top: 10px solid #F2C230; }
.srv__teclas { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.srv__keys { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.srv__key--quieta { cursor: default; }
.srv__aviso { font-weight: 800; color: var(--red); }
.key.is-agotado .key__lg { outline: 4px solid var(--red); outline-offset: -4px; }
.key.is-agotado .srv__aviso { display: inline-block; align-self: flex-start; padding: 4px 6px 3px; background: var(--red); color: var(--paper); }

/* Caja */
.caja { position: relative; display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px); }
.caja__copy { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px 56px; align-items: start; }
.caja__copy .h-section { max-width: 11ch; }
.caja__side { display: flex; flex-direction: column; gap: 20px; }
.caja__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 34px clamp(28px, 4vw, 56px); justify-content: start; align-items: start; }
.corte { margin-top: 40px; }
.cuenta__paper { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px 18px 30px; }
.cuenta__partes { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.cuenta__partes li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; }
.cuenta__partes b { font-weight: 800; }
.stamp--rojo { border-color: var(--red); color: var(--red); transform: rotate(-5deg); }
.caja__stamp { align-self: flex-start; margin-top: -12px; }

/* Analista */
.an { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.an__copy { display: flex; flex-direction: column; gap: 22px; }
.an__panel { font-size: 15px; color: var(--st-meta); max-width: 52ch; }
.an__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.an__chips .key-steel { min-height: 48px; text-transform: none; letter-spacing: 0; font-size: 15px; }
.an__demo { position: relative; display: flex; flex-direction: column; gap: 18px; }
.an__q { align-self: flex-end; max-width: 80%; padding: 16px 22px; border-radius: 22px 22px 4px 22px; background: var(--paper); color: var(--ink); font-weight: 700; font-stretch: 85%; font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); }
.an__paper { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 38px; }
.an__k { font: 800 13px/1 var(--sans); font-stretch: 78%; letter-spacing: .16em; color: var(--ink-muted); }
.an__big { font-weight: 800; font-stretch: 64%; font-size: clamp(3rem, 2rem + 4vw, 5.2rem); line-height: .9; }
.an__rows { font-size: 15px; gap: 8px; margin-top: 6px; }
.an__rows dd.menos { color: var(--red); }
.an__how { margin-top: 8px; padding-top: 10px; border-top: 1.5px dashed var(--perf); font-size: 14px; line-height: 1.5; color: var(--ink-muted-strong); }
.an__r.is-new .an__paper { animation: print-in .6s var(--ease-out); }
.an__stamp { align-self: flex-start; }

/* Ajustes a secciones existentes */
.net__local { font-size: 15px; line-height: 1.5; color: var(--st-text); padding: 14px 16px; border: 1.5px dashed var(--steel-divider); border-radius: 6px; max-width: 58ch; }
.net__local b { color: var(--st-strong); }
.cli__points { font-size: 15px; }

@media (max-width: 980px) {
  .demo, .srv, .an { grid-template-columns: minmax(0, 1fr); }
  .reel { order: -1; }
  .caja__copy { grid-template-columns: minmax(0, 1fr); }
  .caja__grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .corte { margin-top: 0; }
}
@media (max-width: 640px) {
  .srv__body { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .srv__row { font-size: 16px; grid-template-columns: 22px minmax(0, 1fr); }
  .srv__tag { grid-column: 2; justify-self: start; }
  .srv__keys { grid-template-columns: minmax(0, 1fr); }
  .caja__stamp, .an__stamp { position: static; justify-self: start; }
  .an__q { max-width: 100%; }
  .reel__frame { width: min(300px, 100%); }
}

/* ---------- Sin internet: mapa de Pase local ---------- */
.net__req { font-size: 15px; line-height: 1.5; color: var(--st-text); max-width: 58ch; }
.net__req b { color: var(--st-strong); }
.net__map { display: grid; grid-template-columns: auto 1fr auto 1fr auto; grid-template-rows: auto 22px auto; align-items: center; column-gap: 10px; padding: 18px 18px 6px; }
.net__node { grid-row: 1; font: 800 12px/1.1 var(--sans); letter-spacing: .1em; color: var(--st-strong); padding: 9px 11px; border: 1.5px solid var(--steel-divider); border-radius: 6px; background: var(--steel); text-align: center; transition: color .2s, border-color .2s, opacity .2s; }
.net__node small { display: block; margin-top: 4px; font: 600 10px/1 var(--sans); letter-spacing: .04em; color: var(--st-muted); }
.net__node--hub { border-color: var(--st-signal); }
.net__node--nube { grid-row: 3; grid-column: 3; font-size: 11px; color: var(--st-signal); border-style: dashed; }
.net__node.is-off { color: var(--st-muted); border-color: var(--red); border-style: dashed; }
.net__node--hub.is-off { opacity: .55; }
.net__wire { grid-row: 1; display: block; min-width: 18px; border-top: 3px solid var(--st-signal); transition: border-color .2s; }
.net__wire--up { grid-row: 2; grid-column: 3; justify-self: center; height: 100%; min-width: 0; border-top: 0; border-left: 3px solid var(--st-signal); }
.net__wire.is-off { border-top-style: dotted; border-color: var(--red); }
.net__wire--up.is-off { border-left-style: dotted; }
.net__alerta { margin: 0 6px 12px; padding: 10px 12px; border-radius: 6px; background: var(--red); color: #fff; font-size: 14px; line-height: 1.4; }
.net__alerta b { font-weight: 800; }
.net__floor { min-height: 330px; }
@media (max-width: 560px) {
  .net__map { column-gap: 6px; padding: 14px 12px 4px; }
  .net__node { font-size: 10px; padding: 7px 7px; letter-spacing: .06em; }
  .net__node small { font-size: 9px; }
}
