/* Programa de pedidos en mesa · estilos.
   Los colores y las letras de abajo son los de la Taberna Nòria; cada bar los cambia en su ficha (public/bares/).
   Una sola apariencia clara para el cliente (terraza, sol); la barra va oscura (tablet junto al grifo). */

/* ---------- letras: dentro de la carpeta, sin internet ---------- */
@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --tile: #f3f5f4;
  --tile-2: #e4ebe9;
  --paper: #fcfdfc;
  --ink: #0f1d2b;
  --ink-2: #19293b;
  --ink-3: #24384e;
  --blue: #1f5fa8;
  --blue-deep: #174a85;
  --amber: #f2a71b;
  --amber-ink: #3b2600;
  --muted: #51606d;
  --muted-inv: #a9b9c8;
  --line: rgba(15, 29, 43, .14);
  --line-inv: rgba(243, 245, 244, .16);
  --ok: #1a7f4b;
  --ok-inv: #5fd39a;
  --warn: #b93a0a;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --azulejo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Crect width='48' height='48' fill='%23f3f5f4'/%3E%3Cpath d='M24 7 41 24 24 41 7 24Z' fill='none' stroke='%231f5fa8' stroke-width='2.5'/%3E%3Ccircle cx='24' cy='24' r='5.5' fill='%231f5fa8'/%3E%3Cpath d='M0 13A13 13 0 0 0 13 0M35 0a13 13 0 0 0 13 13M48 35a13 13 0 0 0-13 13M13 48A13 13 0 0 0 0 35' fill='none' stroke='%23f2a71b' stroke-width='2.5'/%3E%3Cpath d='M.5.5h47v47H.5z' fill='none' stroke='%231f5fa8' stroke-opacity='.28'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--blue) var(--tile-2); }
html, body { height: 100%; }
body { margin: 0; background: var(--tile); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body[data-vista="barra"] { background: var(--ink); scrollbar-color: var(--ink-3) var(--ink); }
::selection { background: var(--amber); color: var(--amber-ink); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .6; }
a { color: inherit; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
abbr { text-decoration: none; }
textarea, input { caret-color: var(--blue); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.gut { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.grow { flex: 1; }
.center { text-align: center; }
.d { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; line-height: .92; text-wrap: balance; }
.small { font-size: 13px; color: var(--muted); }
.lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.price { font: 500 15px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 600; text-decoration: none; transition: transform .16s var(--ease-out), background-color .2s ease; }
.btn:active { transform: scale(.97); }
.btn--amber { background: var(--amber); color: var(--amber-ink); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--plain { background: transparent; color: var(--ink); }
.btn--xl { width: 100%; min-height: 56px; font-size: 17px; }
@media (hover: hover) and (pointer: fine) {
  .btn--amber:hover { background: color-mix(in srgb, var(--amber) 82%, #fff); }
  .btn--blue:hover { background: var(--blue-deep); }
  .btn--ghost:hover { background: rgba(255, 255, 255, .12); }
}

.demotag { display: inline-flex; align-items: center; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); border: 1px solid currentColor; border-radius: 4px; padding: 4px 6px; margin-right: 10px; white-space: nowrap; vertical-align: 1px; }
.langs { display: inline-flex; border: 1px solid var(--line-inv); border-radius: 999px; padding: 2px; }
.langs button { min-width: 38px; min-height: 32px; border: 0; background: transparent; color: inherit; border-radius: 999px; font: 600 12px/1 var(--mono); letter-spacing: .04em; transition: background-color .2s ease, color .2s ease; }
.langs button[aria-pressed="true"] { background: var(--tile); color: var(--ink); }
.tag { display: inline-block; margin-left: 8px; font: 600 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--amber); color: var(--amber-ink); padding: 4px 6px; border-radius: 4px; vertical-align: 2px; white-space: nowrap; }
.tag--out { background: var(--ink); color: var(--tile); }
.als { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-left: 8px; vertical-align: 1px; }
.al { display: inline-block; font: 600 10px/1 var(--mono); letter-spacing: .04em; color: var(--blue-deep); background: color-mix(in srgb, var(--blue) 10%, transparent); border-radius: 4px; padding: 3px 4px; }
.noimg { display: block; background: var(--azulejo) center / 32px; }
[data-friso="ninguno"] .azulejo { display: none; }
[data-friso="ninguno"] .noimg { background: var(--tile-2); }
.logo { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.mesa__m, .foot__m { display: flex; align-items: center; gap: 10px; min-width: 0; }
.azulejo { height: 48px; background: var(--azulejo) center / 48px repeat-x; border-block: 3px solid var(--ink); }

/* ---------- cinta de demostración ---------- */
.ribbon { background: var(--ink); color: var(--tile); display: flex; gap: 8px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 8px; font-size: 13px; }
.ribbon__r { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ribbon a { color: var(--amber); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.ribbon a .ico { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ribbon a:hover .ico { transform: translateX(3px); } }

/* ---------- web ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 90%, transparent), color-mix(in srgb, var(--ink) 25%, transparent) 70%); }
.hero__in { position: relative; z-index: 1; padding-block: clamp(56px, 11vw, 132px) clamp(36px, 6vw, 64px); display: grid; gap: 18px; max-width: 1100px; margin: 0 auto; }
.hero h1 { font-size: clamp(64px, 15vw, 96px); letter-spacing: 0; display: grid; }
@media (min-width: 720px) { .hero h1 { font-size: clamp(96px, 13vw, 176px); } }
.hero--long h1 { font-size: clamp(48px, 9vw, 112px); }
.hero .ln { display: block; overflow: hidden; padding-top: .06em; }
.hero .ln--amber { color: var(--amber); }
.hero .lt { display: inline-block; animation: letra .7s var(--ease-out) both; animation-delay: calc(var(--i) * 35ms + 80ms); }
.hero--visto .lt { animation: none; }
@keyframes letra { from { transform: translateY(105%); } }
.hero__line { font: 600 14px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.hero p { max-width: 46ch; font-size: 18px; color: #e8eef3; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.facts > div { background: var(--tile); padding: 18px 20px; display: grid; gap: 2px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { font-weight: 600; font-size: 17px; }
.sec { max-width: 1100px; margin: 0 auto; padding-block: clamp(48px, 8vw, 96px); display: grid; gap: 28px; }
.sec__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.sec__head h2 { font-size: clamp(48px, 8vw, 88px); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips--sticky { position: sticky; top: 0; z-index: 2; background: var(--tile); padding-block: 10px; margin-block: -10px; box-shadow: 0 1px 0 var(--line); }
.chip { flex: none; min-height: 44px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 500; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.chip.on { background: var(--ink); color: var(--tile); border-color: var(--ink); }
.cat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 48px); align-items: start; scroll-margin-top: 80px; }
.cat + .cat { border-top: 1px solid var(--line); padding-top: 40px; }
.cat__img { position: sticky; top: 84px; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: var(--tile-2); }
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cat:hover .cat__img img { transform: scale(1.03); } }
.cat h3 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 6px; }
.cat__note { color: var(--muted); max-width: 60ch; }
.item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 2px 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.item__thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; grid-row: span 2; }
.item__n { font-weight: 600; }
.item .price { grid-row: span 2; }
.item__d { color: var(--muted); font-size: 14px; grid-column: 2; }
.item__d .als:first-child { margin-left: 0; }
.allegend { line-height: 2; max-width: none; }
.band { background: var(--blue); color: #fff; }
.band .sec { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(24px, 5vw, 56px); }
.band h2 { font-size: clamp(48px, 7vw, 84px); }
.band__txt { display: grid; gap: 18px; justify-items: start; }
.band__txt p { max-width: 44ch; color: #e6eef8; }
.band__img { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; width: 100%; height: auto; }
.hours { display: grid; width: 100%; font-variant-numeric: tabular-nums; }
.hours div { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .25); padding-block: 9px; }
.foot { background: var(--ink); color: var(--muted-inv); font-size: 14px; }
.foot .sec { padding-block: 40px; grid-template-columns: 1fr auto; align-items: center; }
.foot .d { color: var(--tile); font-size: 48px; }
@media (max-width: 720px) {
  .cat, .band .sec, .foot .sec { grid-template-columns: 1fr; }
  .cat__img { position: static; }
  .ribbon { justify-content: flex-start; }
}

/* ---------- móvil de la mesa ---------- */
.mesa { position: relative; background: var(--tile); min-height: 100%; display: flex; flex-direction: column; }
.mesa--full { max-width: 640px; min-height: 100dvh; margin: 0 auto; box-shadow: 0 0 0 100vmax var(--tile-2); clip-path: inset(0 -100vmax); }
.mesa__pre { background: var(--ink); color: var(--tile); display: flex; justify-content: space-between; align-items: center; padding-block: 8px 0; }
.mesa__pre .langs button { min-width: 40px; min-height: 36px; }
.mesa__top { position: sticky; top: 0; z-index: 3; background: var(--ink); color: var(--tile); padding-block: 8px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mesa__top .d { font-size: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding-top: 2px; }
.mesa__badge { background: var(--amber); color: var(--amber-ink); border-radius: 999px; padding: 8px 12px; font: 700 14px/1 var(--sans); white-space: nowrap; }
.mesa__chips { position: sticky; top: 56px; z-index: 2; background: var(--tile); padding-block: 8px; border-bottom: 1px solid var(--line); }
.mesa__body { flex: 1; padding-block: 14px 28px; display: grid; gap: 18px; align-content: start; }
.mesa__cat { scroll-margin-top: 124px; }
.mesa__cat h3 { font-size: 32px; margin: 14px 0 2px; }
.mesa__catimg { width: 100%; height: auto; aspect-ratio: 16/7; object-fit: cover; border-radius: 12px; }
.mesa__msg { flex: 1; display: grid; gap: 14px; place-content: center; justify-items: center; text-align: center; padding-block: 48px; }
.mesa__msg .ico { width: 40px; height: 40px; color: var(--blue); }
.mesa__msg h2 { font-size: 40px; }
.mesa__msg p { max-width: 30ch; color: var(--muted); }
.offline { background: var(--warn); color: #fff; font-size: 14px; font-weight: 600; padding-block: 8px; }
.closed { background: var(--paper); border: 1.5px dashed var(--blue); border-radius: 14px; padding: 18px; display: grid; gap: 10px; justify-items: start; }
.closed h2 { font-size: 18px; font-weight: 700; }
.closed p { color: var(--muted); font-size: 15px; }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.row__open { grid-row: 1 / span 3; align-self: start; width: 64px; height: 64px; padding: 0; border: 0; background: none; border-radius: 12px; overflow: hidden; }
.row__img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; transition: transform .3s var(--ease-out); }
.row__open:active .row__img { transform: scale(.94); }
.row__n { font-weight: 600; font-size: 16px; line-height: 1.3; grid-column: 2; }
.row .price { grid-column: 3; grid-row: 1; justify-self: end; }
.row__d { color: var(--muted); font-size: 14px; line-height: 1.4; grid-column: 2 / -1; grid-row: 2; }
.row__al { grid-column: 2; grid-row: 3; }
.row__al .als { margin: 0; }
.row .qty { grid-column: 3; grid-row: 3; justify-self: end; min-height: 44px; }
.row.is-out .row__img, .row.is-out .row__n, .row.is-out .row__d, .row.is-out .price { opacity: .5; }
.row.is-out .row__n .tag { opacity: 1; }
.row--sum { grid-template-columns: minmax(0, 1fr) auto auto; }
.row--sum .row__n { grid-column: 1; }
.row--sum .price { grid-column: 2; }
.row--sum .qty { grid-column: 3; grid-row: 1; margin: 0; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--tile); display: grid; place-items: center; transition: transform .14s var(--ease-out); }
.qty button:active { transform: scale(.9); }
.qty button.minus { background: var(--tile-2); color: var(--ink); }
.qty__n { min-width: 26px; text-align: center; font: 600 17px/1 var(--mono); }
.bump { animation: bump .28s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.22); } }
.mesa__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mesa__actions button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 10px; font-weight: 600; font-size: 14px; line-height: 1.2; transition: transform .14s var(--ease-out); }
.mesa__actions button:active { transform: scale(.97); }
.mesa__actions .ico { color: var(--blue); }
.cartbar { position: sticky; bottom: 0; z-index: 3; padding-block: 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--tile) 34%); animation: sube .3s var(--ease-out); }
.cartbar .btn { justify-content: space-between; padding-inline: 22px; box-shadow: 0 10px 24px -10px rgba(59, 38, 0, .55); }
.cartbar .btn.bump { animation: bumpbar .28s var(--ease-out); }
.cartbar.ya { animation: none; }
@keyframes bumpbar { 40% { transform: scale(1.025); } }
@keyframes sube { from { transform: translateY(100%); } }
.status { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 12px; }
.status[data-st="servido"] { border-color: var(--ok); }
.status__lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 16px; }
.status__items { font-size: 13px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.steps li { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.steps i { height: 8px; border-radius: 4px; background: var(--tile-2); position: relative; overflow: hidden; }
.steps i::after { content: ""; position: absolute; inset: 0; background: var(--ok); transform: scaleX(0); transform-origin: left; }
.steps li.on { color: var(--ink); }
.steps li.on i::after { transform: none; }
.steps li.adv i::after { animation: llena .7s var(--ease-out); }
@keyframes llena { from { transform: scaleX(0); } }

.sheet { position: fixed; inset: 0; z-index: 6; background: color-mix(in srgb, var(--ink) 50%, transparent); display: flex; align-items: flex-end; justify-content: center; pointer-events: auto; }
.sheet__card { background: var(--tile); width: 100%; max-width: 640px; border-radius: 22px 22px 0 0; padding: 22px max(18px, env(safe-area-inset-left, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; max-height: 90%; overflow: auto; overscroll-behavior: contain; outline: 0; }
.sheet__card.in { animation: hoja .42s var(--ease-drawer); }
.sheet:has(.in) { animation: velo .3s ease; }
@keyframes hoja { from { transform: translateY(100%); } }
@keyframes velo { from { background: transparent; } }
.sheet__card h3 { font-size: 34px; }
.sheet textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: inherit; font-size: 16px; background: var(--paper); color: var(--ink); resize: vertical; min-height: 64px; }
.sheet textarea::placeholder { color: var(--muted); }
.sheet__img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; }
.sheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sheet__head .price { font-size: 18px; }
.alfull { display: grid; gap: 8px; }
.alfull ul { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.alfull li { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
.sum { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 18px; border-top: 2px solid var(--ink); padding-top: 12px; }
.sum .price { font-size: 20px; }
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 7; translate: -50% 0; background: var(--ink); color: var(--tile); padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 500; text-align: center; width: max-content; max-width: min(92%, 420px); box-shadow: 0 12px 28px -12px rgba(15, 29, 43, .6); animation: toast .3s var(--ease-out); pointer-events: none; }
@keyframes toast { from { transform: translateY(16px); opacity: 0; } }

/* ---------- barra ---------- */
.barra { background: var(--ink); color: var(--tile); min-height: 100dvh; display: flex; flex-direction: column; color-scheme: dark; }
.screen .barra { min-height: 620px; }
.barra ::selection { background: var(--amber); color: var(--amber-ink); }
.barra__top { padding-block: 12px; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.barra__name { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.barra__name .d { font-size: 34px; }
.barra__bar { color: var(--muted-inv); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra__name .demotag { margin: 0; align-self: center; }
.barra__tools { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tools__demo { display: flex; gap: 8px; flex-wrap: wrap; padding-left: 10px; border-left: 1px solid var(--line-inv); }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-inv); border: 1px solid var(--line-inv); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill--ok { color: var(--ok-inv); }
.pill--ok i { animation: late 2s ease-in-out infinite; }
.pill--bad { color: #ffb59a; border-color: currentColor; }
@keyframes late { 50% { opacity: .35; } }
.b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 10px; border: 1px solid transparent; padding: 8px 16px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: transform .14s var(--ease-out), background-color .2s ease, border-color .2s ease; }
.b:active { transform: scale(.96); }
.b--go { background: var(--tile); color: var(--ink); }
.b--hot { background: var(--amber); color: var(--amber-ink); }
.b--quiet { background: transparent; border-color: var(--line-inv); color: var(--tile); font-weight: 500; }
.b--line { background: transparent; border-color: currentColor; }
.b--dark { background: var(--amber-ink); color: color-mix(in srgb, var(--amber) 35%, #fff); }
.b[data-armed] { background: var(--warn); border-color: var(--warn); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .b--quiet:hover { border-color: var(--muted-inv); background: var(--ink-2); }
  .b--go:hover { background: #fff; }
  .b--hot:hover { background: color-mix(in srgb, var(--amber) 82%, #fff); }
}
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line-inv); }
.kpis > div { padding: 12px 16px 14px 0; display: grid; gap: 4px; }
.kpis > div + div { padding-left: 16px; border-left: 1px solid var(--line-inv); }
.kpis b { font: 600 26px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpis span { color: var(--muted-inv); font-size: 13px; }
.kpis > div:last-child b { color: var(--amber); }
.btabs { display: flex; gap: 4px; padding-block: 10px 0; border-bottom: 1px solid var(--line-inv); overflow-x: auto; scrollbar-width: none; }
.btabs button { min-height: 48px; padding: 8px 18px; border: 0; background: transparent; color: var(--muted-inv); font-weight: 600; font-size: 16px; border-radius: 10px 10px 0 0; display: inline-flex; align-items: center; gap: 8px; box-shadow: inset 0 -3px 0 transparent; transition: color .2s ease, box-shadow .2s ease; }
.btabs button[aria-selected="true"] { color: var(--tile); box-shadow: inset 0 -3px 0 var(--amber); }
.btabs b { background: var(--amber); color: var(--amber-ink); border-radius: 999px; padding: 3px 8px; font: 700 12px/1 var(--mono); }
.barra__main { flex: 1; padding-block: 16px 28px; }
.alerts { display: grid; gap: 8px; margin-bottom: 16px; }
.alert { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--amber); color: var(--amber-ink); border-radius: 12px; padding: 8px 8px 8px 14px; animation: entra .35s var(--ease-out); }
.alert > span:first-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 500; }
.alert small { font: 500 12px/1 var(--mono); opacity: .75; }
.alert__b { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.col { display: grid; gap: 10px; min-width: 0; }
.col__h { display: flex; justify-content: space-between; align-items: center; font: 600 14px/1 var(--sans); color: var(--muted-inv); padding-bottom: 2px; }
.col__h span { display: inline-flex; align-items: center; gap: 8px; }
.col__h b { background: var(--ink-3); border-radius: 999px; padding: 4px 10px; font: 600 13px/1 var(--mono); color: var(--tile); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.dot--preparando { background: color-mix(in srgb, var(--blue) 55%, #fff); }
.dot--servido { background: var(--ok-inv); }
.ord { background: var(--ink-2); border: 1px solid var(--line-inv); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.ord[data-e="nuevo"] { border-color: color-mix(in srgb, var(--amber) 60%, transparent); }
.ord[data-e="servido"] { background: transparent; }
.ord[data-e="servido"] ul { color: var(--muted-inv); }
.ord.is-held { visibility: hidden; }
.ord.is-new { animation: entra .4s var(--ease-out), aro 1.1s ease-out 2; }
.ord.is-landing { animation: posa .45s var(--ease-out), aro 1.1s ease-out 2; }
@keyframes entra { from { transform: translateY(-14px); opacity: 0; } }
@keyframes posa { from { transform: scale(.94); opacity: .4; } }
@keyframes aro { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 75%, transparent); } to { box-shadow: 0 0 0 14px color-mix(in srgb, var(--amber) 0%, transparent); } }
.ord__h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ord__h .d { font-size: 30px; }
.ord__t { color: var(--muted-inv); font: 500 13px/1 var(--mono); }
.ord ul { display: grid; gap: 4px; font-size: 16px; }
.ord li { display: flex; gap: 8px; }
.ord li b { font-family: var(--mono); min-width: 28px; color: var(--amber); }
.ord__note { background: color-mix(in srgb, var(--amber) 14%, transparent); color: color-mix(in srgb, var(--amber) 60%, #fff); border-radius: 8px; padding: 8px 10px; font-size: 15px; overflow-wrap: anywhere; }
.ord__f { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ord__btns { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.empty { color: var(--muted-inv); font-size: 14px; border: 1px dashed var(--line-inv); border-radius: 14px; padding: 18px; text-align: center; }

.panel { background: var(--ink-2); border: 1px solid var(--line-inv); border-radius: 14px; padding: 16px; display: grid; gap: 14px; align-content: start; }
.panel__h { font: 600 15px/1.2 var(--sans); color: var(--muted-inv); }
.panel__f { font-size: 14px; color: var(--muted-inv); }
.panel__f b { color: var(--tile); }
.caja { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 14px; align-items: start; }
.caja__nota { grid-column: 1 / -1; font-size: 13px; color: var(--muted-inv); }
.top { display: grid; gap: 12px; }
.top li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 14px; align-items: baseline; }
.top__n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__n b { font-family: var(--mono); color: var(--muted-inv); margin-right: 10px; font-weight: 500; }
.top__u { font: 500 14px/1 var(--mono); color: var(--muted-inv); }
.top i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--ink-3); position: relative; overflow: hidden; }
.top i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--amber); border-radius: 3px; }
.bars { display: flex; align-items: stretch; gap: 4px; height: 200px; }
.bar { flex: 1; min-width: 0; display: grid; grid-template-rows: 18px 1fr 18px; gap: 4px; justify-items: center; }
.bar i { width: 100%; align-self: end; height: max(2px, var(--h)); background: color-mix(in srgb, var(--blue) 65%, var(--tile)); border-radius: 4px 4px 0 0; }
.bar--pico i { background: var(--amber); }
.bar__v { font: 500 11px/18px var(--mono); color: var(--muted-inv); white-space: nowrap; visibility: hidden; }
.bar--pico .bar__v { visibility: visible; color: var(--amber); }
.bar__h { font: 500 12px/18px var(--mono); color: var(--muted-inv); }
.bar--ahora .bar__h { color: var(--tile); font-weight: 700; }
.bcarta, .bmesas { display: grid; gap: 14px; }
.bcarta { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.bcarta__p { grid-column: 1 / -1; color: var(--muted-inv); max-width: 75ch; }
.bcarta__p b { color: var(--amber); }
.sw { display: grid; }
.sw li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line-inv); }
.sw__n { display: grid; font-weight: 500; min-width: 0; }
.sw__n small { font: 500 12px/1.4 var(--mono); color: var(--muted-inv); }
.sw li.is-out .sw__n { color: var(--muted-inv); text-decoration: line-through; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 150px; border: 0; background: transparent; color: var(--tile); font-size: 14px; font-weight: 500; padding: 0; }
.switch i { flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--ink-3); position: relative; transition: background-color .2s ease; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--tile); transition: transform .2s var(--ease-out); }
.switch[aria-checked="true"] i { background: var(--ok); }
.switch[aria-checked="true"] i::after { transform: translateX(18px); }
.switch[aria-checked="false"] { color: var(--amber); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mtile { border: 1px dashed var(--line-inv); border-radius: 14px; padding: 14px; display: grid; gap: 12px; }
.mtile.is-open { border-style: solid; border-color: var(--ok-inv); background: var(--ink-2); }
.mtile__h { display: grid; gap: 4px; }
.mtile__h .d { font-size: 30px; }
.mtile__s { font-size: 13px; color: var(--muted-inv); }
.mtile.is-open .mtile__s { color: var(--ok-inv); }
.mtile__qr { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mtile__qr code { flex-basis: 100%; font: 500 13px/1 var(--mono); color: var(--muted-inv); letter-spacing: .04em; }
.mtile__qr .b { min-height: 44px; padding-inline: 10px; font-size: 13px; }
.mtile__qr .ico { width: 16px; height: 16px; }
.barra--pin { align-items: center; justify-content: center; }
.pin { display: grid; gap: 14px; width: min(320px, 90vw); justify-items: stretch; text-align: center; }
.pin .ico { width: 36px; height: 36px; justify-self: center; color: var(--amber); }
.pin h1 { font-size: 32px; overflow-wrap: anywhere; }
.pin label { font-weight: 600; text-align: left; }
.pin input { min-height: 56px; border-radius: 12px; border: 1px solid var(--line-inv); background: var(--ink-2); color: var(--tile); font: 600 24px/1 var(--mono); letter-spacing: .3em; text-align: center; }
.pin__err { color: #ffb59a; font-size: 14px; }
@media (max-width: 860px) {
  .cols, .caja { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis > div { padding-left: 0 !important; border-left: 0 !important; }
  .kpis > div:nth-child(n+3) { border-top: 1px solid var(--line-inv); }
  .barra__tools { margin-left: 0; }
  .tools__demo { padding-left: 0; border-left: 0; }
}

/* ---------- demostración en pantalla dividida ---------- */
.demo { min-height: 100dvh; background: var(--tile-2); display: flex; flex-direction: column; }
.demo__head { background: var(--ink); color: var(--tile); padding-block: 14px 22px; display: grid; gap: 10px; }
.demo__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.demo__back { font: 800 22px/1 var(--display); text-transform: uppercase; text-decoration: none; letter-spacing: .02em; min-height: 36px; display: inline-flex; align-items: center; }
.demo__bar .demotag { margin: 0; }
.demo__head h1 { font-size: clamp(36px, 5vw, 60px); }
.demo__head h1 span { color: var(--amber); }
.demo__head p { color: var(--muted-inv); max-width: 68ch; font-size: 16px; }
.demo__tabs { display: none; gap: 6px; padding-block: 0 12px; background: var(--ink); }
.demo__tabs button { flex: 1; min-height: 48px; border: 1px solid var(--line-inv); background: transparent; color: var(--tile); border-radius: 999px; padding: 10px; font-weight: 600; position: relative; }
.demo__tabs button.on { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.demo__tabs i { position: absolute; top: -6px; right: 10px; background: var(--warn); color: #fff; font: 700 12px/1 var(--mono); font-style: normal; border-radius: 999px; padding: 5px 8px; }
.demo__stage { flex: 1; display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 28px; padding-block: 24px; align-items: start; }
.phonewrap, .screenwrap { min-width: 0; }
.phonewrap { position: sticky; top: 16px; }
.phone { width: 100%; max-width: 390px; height: min(760px, calc(100dvh - 120px)); min-height: 540px; border-radius: 44px; background: var(--ink); padding: 12px; box-shadow: 0 30px 60px -20px rgba(15, 29, 43, .45); }
.phone__screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--tile); position: relative; }
.phone__scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.phone__scroll::-webkit-scrollbar { display: none; }
.phone__capa { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.phone__capa .sheet, .phone__capa .toast { position: absolute; }
.phone__cap { text-align: center; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.screen { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(15, 29, 43, .4); min-width: 0; }
.picker { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.picker button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ok); background: var(--paper); font: 600 14px/1 var(--mono); transition: background-color .2s ease, color .2s ease; }
.picker button.is-closed { border: 1.5px dashed var(--muted); color: var(--muted); }
.picker button.on { background: var(--ink); color: var(--tile); border-color: var(--ink); border-style: solid; }
.picker__k { flex-basis: 100%; display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.picker__k i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ok); }
.picker__k i.c { border: 1.5px dashed var(--muted); margin-left: 10px; }
.ticket { position: fixed; left: 0; top: 0; z-index: 50; display: flex; align-items: baseline; gap: 10px; background: var(--amber); color: var(--amber-ink); border-radius: 12px; padding: 12px 16px; font-weight: 600; box-shadow: 0 18px 36px -12px rgba(15, 29, 43, .55); pointer-events: none; will-change: transform; }
.ticket b { font: 900 26px/1 var(--display); text-transform: uppercase; }
@media (max-width: 900px) {
  .demo__head p { display: none; }
  .demo__tabs { display: flex; }
  .demo__stage { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .demo[data-tab="mesa"] .screenwrap { display: none; }
  .demo[data-tab="barra"] .phonewrap { display: none; }
  .phonewrap { position: static; display: flex; flex-direction: column-reverse; }
  .phone { max-width: none; height: auto; min-height: 0; border-radius: 0; padding: 0; box-shadow: none; background: none; }
  .phone__screen { border-radius: 0; height: auto; overflow: visible; }
  .phone__scroll { height: auto; overflow: visible; }
  .phone__capa { position: static; }
  .phone__capa .sheet, .phone__capa .toast { position: fixed; }
  .phone__cap { display: none; }
  .picker { margin: 0; padding: 10px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .screen { border-radius: 0; box-shadow: none; }
  .screen .barra { min-height: 80dvh; }
  .demo .mesa__top { top: 0; }
}

/* ---------- menos movimiento: se quedan los cambios de color, se va el desplazamiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .btn, .b, .qty button, .row__img, .cat__img img, .switch i::after { transition: none !important; }
  .hero .lt { animation: none; }
}
