/* 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/la-milpa/brand/brand.css) ── */
/* La Milpa brand on top of the premium theme: light, airy, olive + terracotta.
   Colors sampled from the logo (olive #72703F) and the illustration (terracotta, dark green lines).
   Fonts (Google Fonts, linked by scripts/build.mjs): Outfit (geometric sans, light + bold headlines),
   Caveat Brush (brand accents only) and Sacramento ("Del campo a tu mesa"). */
:root {
  --bg: #f5f1ea;
  --surface: #fffdf9;
  --surface-2: #efe9de;
  --line: #e4dccd;
  --ink: #23261d;
  --muted: #7d7868;
  --lm-olive: #72703f;
  --lm-olive-2: #8d8b52;
  --lm-leaf: #9aa05a;
  --lm-terra: #b4552d;
  --lm-cream: #e5d9c2;
  --lm-dark: #262b20;
  --lm-teal: #1f8a8a;
  /* The core's five accent slots: "yellow" is the main button/focus color. */
  --red: #b4552d;
  --yellow: #262b20;
  --green: #5f7d3a;
  --orange: #b4552d;
  --blue: #72703f;
  --violet: #8a6fb0;
  --teal: #1f8a8a;
  --wa: #1fa855;
  --accent-ink: #fff;
  --danger-bg: #f7e3d8;
  --ok-bg: #e7ecd9;
  --glass: rgba(255, 253, 249, .66);
  --shadow: 0 18px 44px rgba(64, 58, 36, .14);
  --radius: 28px;
  --display: "Outfit", system-ui, -apple-system, sans-serif;
  --body: "Outfit", system-ui, -apple-system, sans-serif;
  --brush: "Caveat Brush", "Outfit", cursive;
  --script: "Sacramento", "Snell Roundhand", cursive;
  color-scheme: light;
}
