/* 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. */
/* The bar is centered with translate(-50%) and hidden off-screen without .on: the pop keeps the
   centering and only runs while the bar is shown (found in Sushiko, 22 nov 2026: with
   "transform: none" it hung off the right edge and stayed visible with an empty cart). */
.cartbar { box-shadow: var(--shadow); }
html .cartbar { color: var(--accent-ink); } /* menu.css loads after the theme and sets #111 */
.cartbar.on { animation: pr-pop .5s var(--ease-out) both; }
@keyframes pr-pop { 0% { transform: translate(-50%, 30px) scale(.96); opacity: 0; } 100% { transform: translate(-50%, 0); 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/jireh/brand/brand.css) ── */
/* Jireh brand on top of the premium theme, in light mode like their printed menu:
   cream paper, dark green titles, orange accents and green leaves.
   Colors sampled from the menu and the logo (green #6d8a4a, orange #f08a2c).
   Fonts (Google Fonts, linked in the pages): Kaushan Script for titles (script, like "Menú de Desayunos"),
   Oswald bold for sections (like "CHILAQUILES"), Nunito for text. */
:root {
  --bg: #fbf3e2;
  --surface: #fffaf0;
  --surface-2: #f4e8cf;
  --line: #e6d6b4;
  --ink: #1d3322;
  --muted: #6f6a5a;
  --jr-green: #1f4a2c;
  --jr-green-2: #2f6b3a;
  --jr-leaf: #7aa83f;
  --jr-orange: #f07c1e;
  --jr-cream: #fbf3e2;
  /* The core's five accent slots: "yellow" is the main button/focus color. */
  --red: #d9481f;
  --yellow: #f07c1e;
  --green: #2f6b3a;
  --orange: #f07c1e;
  --blue: #2f6b3a;
  --wa: #1fa855;
  --accent-ink: #fff;
  --danger-bg: #fde3d6;
  --ok-bg: #e3f0d6;
  --glass: rgba(251, 243, 226, .82);
  --display: "Oswald", "Arial Narrow", sans-serif;
  --script: "Kaushan Script", "Brush Script MT", cursive;
  --body: "Nunito", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

/* /panel (Daniel) and /control: Jireh's light look + group orders by person + trusted customers. */
.order ul li.gtitle { list-style: none; margin: 2px 0 6px -18px; font-weight: 800; color: var(--jr-orange); }
.order ul li.gperson { list-style: none; margin: 6px 0 6px -18px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface-2); }
.order ul li.gperson > b { font-size: 15px; color: var(--jr-green); }
.order ul li.gperson > span { float: right; font-weight: 800; }
.order ul li.gperson ul { margin: 4px 0 0 18px; }
.tlist { display: grid; gap: 6px; margin-top: 8px; }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.trow small { display: block; color: var(--muted); }
.tbd { color: var(--jr-orange); }
.who b { font-family: var(--script, cursive); font-weight: 400; text-transform: none; font-size: 26px; color: var(--jr-green); }
.login h1 { font-family: var(--script, cursive); font-weight: 400; color: var(--jr-green); }
nav.tabs { background: var(--bg); border-bottom: 1px solid var(--line); } .top { background: var(--bg); }
html body .tabs { backdrop-filter: none; -webkit-backdrop-filter: none; }
.filters button.on { color: #fff; } .tabs button.on { color: #fff; }
