/* Taco Mel brand tokens, shared by the menu, /panel and /reparto.
   Colors sampled from the logo; dark background like the restaurant at night.
   Fonts: Bebas Neue (closest Google font to the logo's condensed letters) + Nunito. */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito:wght@400;600;700;800;900&display=swap");

:root {
  --bg: #0b0b0c;
  --surface: #161618;
  --surface-2: #1f1f22;
  --line: #2d2d32;
  --ink: #f6f2ea;
  --muted: #a7a198;
  --red: #ff3451;
  --yellow: #fcca41;
  --green: #4fc33c;
  --orange: #ff8500;
  --blue: #019af7;
  --wa: #25d366;
  /* Two extra status colors for the panels (en camino / listo). */
  --violet: #b388ff;
  --teal: #2fd1c5;
  --danger-bg: #3a1219;
  --ok-bg: #12301a;
  --radius: 18px;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --body: "Nunito", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--ink); }
a { color: inherit; }
[hidden] { display: none !important; }

/* The five logo colors as a top stripe. */
.stripe { display: flex; height: 6px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--red); }
.stripe i:nth-child(2) { background: var(--yellow); }
.stripe i:nth-child(3) { background: var(--green); }
.stripe i:nth-child(4) { background: var(--orange); }
.stripe i:nth-child(5) { background: var(--blue); }

.inp {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface-2); border-radius: 14px;
  padding: 12px 14px; font-size: 16px; outline: none;
}
.inp:focus { border-color: var(--yellow); }
.inp.err { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 52, 81, .2); }
select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a7a198' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px;
  border-radius: 99px; background: var(--yellow); color: #111; font-weight: 900; font-size: 15.5px; text-decoration: none;
}
.btn:disabled, .btn.off { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: var(--surface-2); color: var(--ink); border: 1.5px solid var(--line); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.red { background: var(--red); color: #fff; }
.btn.small { height: 40px; padding: 0 16px; font-size: 14px; }

.toast {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translate(-50%, -160%);
  background: var(--ink); color: #111; font-weight: 800; font-size: 14px; padding: 11px 18px; border-radius: 99px;
  z-index: 90; transition: transform .3s; max-width: calc(100% - 32px); text-align: center;
}
.toast.on { transform: translate(-50%, 0); }
/* Hidden toast must not peek out at the top. */
.toast { visibility: hidden; transition: transform .3s, visibility 0s .3s; }
.toast.on { visibility: visible; transition: transform .3s; }

.lbl {
  font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin: 18px 0 8px; display: flex; justify-content: space-between; gap: 8px;
}
.lbl em { font-style: normal; letter-spacing: 0; text-transform: none; color: var(--yellow); }
.lbl em.opc { color: var(--muted); }

.empty { text-align: center; color: var(--muted); padding: 36px 16px; font-size: 14.5px; }

/* extends: practico */
/* ── Tema PREMIUM ────────────────────────────────────────────────────────────
   Same layout as "practico" plus more design and motion: slow hero zoom, glass
   navigation, staggered entrance of sections and products, softer cards,
   springy sheets and a tap feedback on every button. Colors and fonts come
   from the client's brand/brand.css (tokens below are only neutral defaults).
   Everything that moves stops with "Reduce motion" on the phone. */

:root {
  --accent-ink: #fff;            /* text on accent buttons */
  --glass: rgba(10, 10, 11, .72);
  --shadow: 0 14px 40px rgba(0, 0, 0, .45);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius: 22px;
}

body { letter-spacing: .005em; }

/* Accent buttons: brand color with readable text. */
.btn { color: var(--accent-ink); letter-spacing: .02em; transition: transform .18s var(--ease-out), filter .2s; }
.btn:active { transform: scale(.97); filter: brightness(.95); }
button { transition: transform .18s var(--ease-out); }
button:active { transform: scale(.97); }

/* Hero: slow cinematic zoom and a deep fade into the page. */
.hero { position: relative; overflow: hidden; }
.hero img { animation: pr-kenburns 22s ease-in-out infinite alternate; transform-origin: 50% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 75%, var(--bg) 100%);
}
@keyframes pr-kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }

/* Logo card rises over the hero. */
.logo-card { position: relative; z-index: 2; animation: pr-rise .9s var(--ease-out) both; }
.logo { box-shadow: var(--shadow); }
.tagline { letter-spacing: .28em; text-transform: uppercase; font-size: 12px; opacity: .85; }

/* Glass navigation. */
.nav { background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }

/* Section cards and products enter one after another. */
.cat, .item, .branch-opt { animation: pr-rise .7s var(--ease-out) both; }
.cats .cat:nth-child(1), .items .item:nth-child(1) { animation-delay: .04s; }
.cats .cat:nth-child(2), .items .item:nth-child(2) { animation-delay: .08s; }
.cats .cat:nth-child(3), .items .item:nth-child(3) { animation-delay: .12s; }
.cats .cat:nth-child(4), .items .item:nth-child(4) { animation-delay: .16s; }
.cats .cat:nth-child(5), .items .item:nth-child(5) { animation-delay: .20s; }
.cats .cat:nth-child(6), .items .item:nth-child(6) { animation-delay: .24s; }
.cats .cat:nth-child(n+7), .items .item:nth-child(n+7) { animation-delay: .28s; }
.branch-opt { animation-delay: calc(var(--i, 0) * .06s); }
@keyframes pr-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Section cards: photo with a dark gradient and the name over it. */
.cat { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease-out); }
.cat:active { transform: scale(.98); }
.cat .cimg img { transition: transform 1.2s var(--ease-out); }
.cat:hover .cimg img { transform: scale(1.06); }

/* Product rows: softer, with a photo that grows a little on touch. */
.item { border-radius: var(--radius); transition: transform .25s var(--ease-out), background .25s; }
.item:active { transform: scale(.985); }
.item .th { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.item .th img { transition: transform .6s var(--ease-out); }
.item:hover .th img { transform: scale(1.07); }

/* Sheets slide in with a spring; the backdrop blurs the menu behind. */
.sheet { transition: transform .5s var(--ease-out); box-shadow: 0 -20px 60px rgba(0,0,0,.5); }
.scrim.on { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Cart bar: gentle pulse when it appears. */
.cartbar { animation: pr-pop .5s var(--ease-out) both; box-shadow: var(--shadow); }
@keyframes pr-pop { 0% { transform: translateY(30px) scale(.96); opacity: 0; } 100% { transform: none; opacity: 1; } }

.branch-box { border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Client brand (clientes/sushiko/brand/brand.css) ── */
/* Sushiko brand on top of the premium theme, dark mode.
   Colors sampled from the logo: red #EC4C2C (the "Ko" square), black and white,
   plus the olive green of their menu and posts as a second accent.
   Fonts (linked in index.html by scripts/build.mjs): Oswald for titles, Nunito for text. */
:root {
  --bg: #0b0a0a;
  --surface: #151313;
  --surface-2: #1d1a1a;
  --line: #2e2a29;
  --ink: #f7f3ee;
  --muted: #a9a29b;
  --brand-red: #ec4c2c;
  --brand-olive: #5b6b1f;
  /* The core's five accent slots, mapped to Sushiko: "yellow" is the main button/focus color. */
  --red: #ec4c2c;
  --yellow: #ec4c2c;
  --green: #8fb340;
  --orange: #f2894a;
  --blue: #6aa7e8;
  --accent-ink: #fff;
  --glass: rgba(11, 10, 10, .74);
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Nunito", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

/* Top stripe and splash bar: red, white and olive instead of Taco Mel's five colors. */
.stripe { height: 4px; }
.stripe i:nth-child(1), .stripe i:nth-child(2), .stripe i:nth-child(3) { background: var(--brand-red); }
.stripe i:nth-child(4) { background: #f7f3ee; }
.stripe i:nth-child(5) { background: var(--brand-olive); }
#splash .sp-bar i:nth-child(1), #splash .sp-bar i:nth-child(2), #splash .sp-bar i:nth-child(3) { background: #ec4c2c; }
#splash .sp-bar i:nth-child(4) { background: #f7f3ee; }
#splash .sp-bar i:nth-child(5) { background: #5b6b1f; }
.gate-bar i:nth-child(-n+3) { background: var(--brand-red) !important; }
.gate-bar i:nth-child(4) { background: #f7f3ee !important; }
.gate-bar i:nth-child(5) { background: var(--brand-olive) !important; }

/* Premium theme fix: its pr-pop animation ends in transform:none and drops the bar's translate(-50%),
   so the cart bar hung off the right edge. Same pop, keeping the centering. (Worth fixing in the base.) */
.cartbar { animation-name: sk-pop; color: #fff; }
.cartbar .n { background: #111; color: #fff; }
@keyframes sk-pop { 0% { transform: translate(-50%, 30px) scale(.96); opacity: 0; } 100% { transform: translate(-50%, 0); opacity: 1; } }

/* Panels (/panel, /reparto, /control): Oswald is wider than Bebas, so at 360 px the title ran
   under "Activar sonido". Slightly smaller title and buttons; text on red tabs in white. */
.who { overflow: hidden; }
.who b { font-size: 22px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .top { gap: 8px; } .top .btn.small { padding: 0 11px; font-size: 13px; } }
.tabs button.on { color: #fff; }

.order-now { box-shadow: 0 10px 26px rgba(236, 76, 44, .28); }
.inp.err { box-shadow: 0 0 0 3px rgba(236, 76, 44, .25); }
