/* Sr. Frito · Menú QR — mobile first. Brand tokens live in tokens.css (shared with the TV boards). */

@font-face { font-family: "Zipper"; src: url("../assets/fonts/zipper.woff2") format("woff2"), url("../assets/fonts/zipper.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Genty"; src: url("../assets/fonts/genty.woff2") format("woff2"), url("../assets/fonts/genty.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Arial Rounded"; src: url("../assets/fonts/arial-rounded-bold.woff2") format("woff2"), url("../assets/fonts/arial-rounded-bold.ttf") format("truetype"); font-display: swap; }

/* ---------- Component tokens for the phone (semantic → component) ---------- */
:root {
  --qr-field: var(--color-field);
  --qr-field-deep: var(--color-field-deep);
  --qr-panel: var(--color-panel);
  --qr-panel-shade: var(--color-panel-shade);
  --qr-accent: var(--color-accent);
  --qr-accent-light: var(--color-accent-light);
  --qr-accent-shade: var(--color-accent-shade);
  --qr-ink: var(--color-ink);
  --qr-ink-soft: var(--color-ink-soft);
  --qr-on-field: var(--color-on-field);

  --qr-font-display: var(--primitive-font-display);
  --qr-font-script: var(--primitive-font-script);
  --qr-font-text: var(--primitive-font-text);

  --qr-drop: 0 6px 0 var(--qr-field-deep);          /* the wordmark's own extruded shadow */
  --qr-drop-lg: 0 9px 0 var(--qr-field-deep);
  --qr-radius: 22px;
  --qr-radius-sm: 14px;
  --qr-gutter: 18px;
  --qr-col: 560px;
  --qr-checker: 14px;

  --ease-out: var(--primitive-ease-out);
  --ease-in-out: var(--primitive-ease-in-out);
  --ease-pop: var(--primitive-ease-pop);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--qr-field-deep); color-scheme: only light; overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; }
body {
  min-height: 100dvh;
  background: var(--qr-field);
  color: var(--qr-on-field);
  font-family: var(--qr-font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.view-cover { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* Browser surfaces carry the brand too */
::selection { background: var(--qr-accent); color: var(--qr-ink); }
:focus-visible { outline: 3px solid var(--qr-accent); outline-offset: 3px; border-radius: 10px; }
html { scrollbar-color: var(--qr-accent) var(--qr-field-deep); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Checker band, the same strip that runs across the counter TVs */
/* The strip slides with transform (handled by the GPU) instead of repainting its background every frame;
   same pattern, same speed, same direction as before. */
.checker { position: relative; height: calc(var(--qr-checker) * 2); overflow: hidden; }
.checker::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--qr-checker) * -8);
  right: 0;
  background:
    conic-gradient(var(--qr-panel) 25%, var(--qr-field-deep) 0 50%, var(--qr-panel) 0 75%, var(--qr-field-deep) 0)
    0 0 / calc(var(--qr-checker) * 2) calc(var(--qr-checker) * 2);
  animation: checker-run 9s linear infinite;
  will-change: transform;
}
.checker--bottom::before { animation-direction: reverse; }
@keyframes checker-run { to { transform: translateX(calc(var(--qr-checker) * 8)); } }

/* Nothing animates where nobody can see it: the cover rests while the menu is open,
   and the menu's sunbursts rest while scrolled off screen. Looks identical. */
.view-menu .cover, .view-menu .cover *, .view-menu .cover *::before { animation-play-state: paused !important; }
.is-off::before { animation-play-state: paused; }

/* ---------- Language toggle (shared by cover and menu) ---------- */
.lang {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: 999px;
  background: var(--qr-field-deep);
  box-shadow: inset 0 0 0 2px rgb(243 237 225 / 0.18);
}
.lang__opt {
  min-width: 46px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: var(--qr-font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--qr-on-field);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.lang__opt[aria-pressed="true"] { background: var(--qr-accent); color: var(--qr-ink); }
.lang__opt:active { transform: scale(0.94); }

/* =====================================================================
   PORTADA
   ===================================================================== */
.cover {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  max-width: var(--qr-col);
  margin: 0 auto;
  background:
    radial-gradient(120% 70% at 50% 34%, var(--qr-field) 0 52%, var(--qr-field-deep) 100%);
  overflow: hidden;
  transform-origin: 50% 45%;
}
/* a solid navy strip above the checker: iPhone status bar / Dynamic Island takes this color, never cream */
.cover { padding-top: var(--safe-top); background-color: var(--qr-field); }   /* checker sits flush at the top; only the notch area (when the page runs under it) is navy */
.checker { background-color: var(--qr-field-deep); }   /* the color iPhone Safari uses to tint the status bar */
.cover__top { display: flex; justify-content: flex-end; padding: 12px var(--qr-gutter) 0; position: relative; z-index: 3; }

.cover__stage { position: relative; min-height: 0; display: grid; place-items: center; }
.cover__rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(118vw, 680px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--qr-field-deep) 0deg 8deg, transparent 8deg 16deg);
  -webkit-mask: radial-gradient(closest-side, #000 18%, rgb(0 0 0 / 0.75) 48%, transparent 100%);
  mask: radial-gradient(closest-side, #000 18%, rgb(0 0 0 / 0.75) 48%, transparent 100%);
  animation: spin 60s linear infinite;
}
/* The seal: mascot badge inside a turning ring of type */
.cover__seal { position: relative; width: min(78vw, 330px); aspect-ratio: 1; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: spin 26s linear infinite; }
.ring__disc { fill: var(--qr-field-deep); stroke: var(--qr-accent); stroke-width: 4; }
.ring__inner { fill: none; stroke: var(--qr-accent); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.ring__text { font-family: var(--qr-font-display); font-size: 27px; letter-spacing: 0.08em; fill: var(--qr-accent); }
.cover__badge { position: relative; width: min(62vw, 270px); filter: drop-shadow(0 8px 0 var(--qr-field-deep)) drop-shadow(0 16px 22px rgb(0 0 0 / 0.35)); }
@keyframes bob { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-10px) rotate(4deg); } }
@keyframes spin { to { rotate: 360deg; } }

.spark { position: absolute; width: 26px; height: 26px; color: var(--qr-accent); opacity: 0; animation: twinkle 3.6s var(--ease-in-out) infinite; }
.spark--a { left: 14%; top: 22%; }
.spark--b { right: 13%; top: 14%; width: 20px; height: 20px; animation-delay: 1.2s; }
.spark--c { right: 16%; bottom: 12%; width: 30px; height: 30px; animation-delay: 2.3s; }
.spark--d { left: 18%; bottom: 18%; width: 18px; height: 18px; animation-delay: 0.6s; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  40% { opacity: 1; transform: scale(1) rotate(45deg); }
  70% { opacity: 0; transform: scale(0.6) rotate(90deg); }
}

.cover__copy { display: grid; justify-items: center; padding: 6px var(--qr-gutter) 0; text-align: center; position: relative; }
.cover__logo { width: min(86vw, 400px); }
.cover__logo img { animation: logo-bob 2.8s var(--ease-in-out) 1.4s infinite alternate; }
@keyframes logo-bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.cover__logo img { width: 100%; filter: drop-shadow(0 6px 0 var(--qr-field-deep)); }
.cover__door { display: grid; justify-items: center; padding: 26px var(--qr-gutter) 30px; }

/* The one door into the menu */
.enter {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 340px);
  min-height: 64px;
  padding: 6px 26px 2px;
  border-radius: 999px;
  background: var(--qr-accent);
  color: var(--qr-ink);
  box-shadow: var(--qr-drop-lg), inset 0 -4px 0 rgb(201 143 30 / 0.55);
  font-family: var(--qr-font-display);
  font-size: 27px;
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
/* a light sweep that keeps inviting the tap */
.enter::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 34%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.55), transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: sweep 3.8s var(--ease-in-out) 1.6s infinite;
  z-index: -1;
}
@keyframes sweep { 0%, 55% { transform: translateX(-120%) skewX(-18deg); } 85%, 100% { transform: translateX(460%) skewX(-18deg); } }
.enter:active { transform: translateY(6px); box-shadow: 0 3px 0 var(--qr-field-deep), inset 0 -2px 0 rgb(201 143 30 / 0.55); }
.enter:focus-visible { outline-offset: 6px; border-radius: 999px; }

.cover .checker--bottom { margin-bottom: var(--safe-bottom); }

/* Cover entrance: plays once, from a visible default */
.is-ready .cover__rays { animation: spin 60s linear infinite, rays-in 1.1s var(--ease-out) both; }
/* the entrance lands exactly on the first frame of the float (rotate -4deg), so the hand-off is seamless */
.is-ready .cover__badge { animation: seal-in 900ms var(--ease-pop) 100ms both, bob 2.4s var(--ease-in-out) 1000ms infinite alternate; }
.is-ready .cover__logo { animation: name-drop 900ms linear 420ms both; transform-origin: 50% 100%; }
/* the wordmark drops in and squashes on landing, like the logo show on the TV boards */
@keyframes name-drop {
  0% { opacity: 0; transform: translateY(-90px) scale(0.96, 1.08); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  42% { opacity: 1; transform: translateY(0) scale(1.1, 0.84); animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
  62% { transform: translateY(-14px) scale(0.97, 1.05); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  80% { transform: translateY(0) scale(1.03, 0.96); animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
  100% { opacity: 1; transform: translateY(0) scale(1, 1); }
}
.is-ready .enter { animation: door-in 700ms var(--ease-pop) 600ms both; }
@keyframes seal-in { from { opacity: 0; transform: translateY(0) scale(0.6) rotate(-124deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(-4deg); } }
@keyframes rays-in { from { opacity: 0; scale: 0.7; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-36px) scale(0.92); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes door-in { from { opacity: 0; transform: scale(0.86); } }

/* =====================================================================
   TRANSITION: mustard iris from the button, then the menu irises in
   ===================================================================== */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), 1fr);
  grid-auto-rows: var(--cell, 70px);
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}
.wipe.is-on { visibility: visible; pointer-events: auto; }
.wipe__tile { transform: scale(0) rotate(-90deg); background: var(--qr-field-deep); will-change: transform; }
.wipe__tile.is-alt { background: var(--qr-accent); }
.wipe__badge {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(80vw, 380px);
  translate: -50% -50%;
  opacity: 0;
  filter: drop-shadow(0 10px 0 var(--qr-field-deep)) drop-shadow(0 20px 30px rgb(0 0 0 / 0.4));
  z-index: 1;
}
.is-leaving .cover { transition: transform 600ms var(--ease-in-out), filter 600ms var(--ease-in-out); transform: scale(0.94); filter: blur(4px); }

/* =====================================================================
   MENÚ
   ===================================================================== */
.menu {
  position: relative;
  z-index: 6;
  max-width: var(--qr-col);
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(28px + var(--safe-bottom));
  background: var(--qr-field);
}
.view-menu .cover { visibility: hidden; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + var(--safe-top)) var(--qr-gutter) 6px;
}
.bar__home { display: block; width: 148px; min-height: 44px; padding: 4px 0; border-radius: 10px; transition: transform 160ms var(--ease-out); }
.bar__home img { width: 100%; filter: drop-shadow(0 4px 0 var(--qr-field-deep)); }
.bar__home:active { transform: scale(0.96); }

/* Search + categories stay in reach while scrolling */
.tools {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 10px var(--qr-gutter) 4px;
  background: var(--qr-field);
  box-shadow: 0 10px 14px -12px rgb(10 25 45 / 0.7);
  transform: translateZ(0);          /* its own layer: steady while scrolling */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.search { position: relative; }
.search__icon { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; translate: 0 -50%; color: var(--qr-ink-soft); pointer-events: none; }
.search input {
  width: 100%;
  min-height: 52px;
  padding: 4px 52px 0 48px;
  border: 0;
  border-radius: 999px;
  background: var(--qr-panel);
  color: var(--qr-ink);
  font-size: 17px;
  box-shadow: var(--qr-drop);
  caret-color: var(--qr-accent-shade);
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow 160ms var(--ease-out);
}
.search input::placeholder { color: var(--qr-ink-soft); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { outline: none; box-shadow: var(--qr-drop), 0 0 0 3px var(--qr-accent); }
.search__clear {
  position: absolute;
  right: 6px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  translate: 0 -50%;
  border-radius: 50%;
  color: var(--qr-ink);
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.search__clear svg { width: 18px; height: 18px; }
.search__clear:active { transform: scale(0.9); background: var(--qr-panel-shade); }

/* Categories: one row that slides sideways inside itself; the page itself never moves sideways */
.cats {
  display: flex;
  gap: 8px;
  margin: 10px calc(var(--qr-gutter) * -1) 0;
  padding: 2px var(--qr-gutter) 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--qr-gutter);
  -webkit-overflow-scrolling: touch;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none;
  min-height: 40px;
  padding: 7px 15px 3px;
  border-radius: 999px;
  background: var(--qr-field-deep);
  color: var(--qr-on-field);
  font-family: var(--qr-font-display);
  font-size: 15px;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 160ms var(--ease-out);
}
.cat[aria-current="true"] { background: var(--qr-accent); color: var(--qr-ink); }
.cat:active { transform: scale(0.95); }
.is-searching .cats { opacity: 0.45; pointer-events: none; transition: opacity 180ms var(--ease-out); }

/* Language swap: a quick blur crossfade so the change reads as one move */
.sections, .bar, .foot { transition: filter 180ms var(--ease-out), opacity 180ms var(--ease-out); }
.is-switching .sections, .is-switching .foot { filter: blur(3px); opacity: 0.55; }

/* ---------- Sections ---------- */
.sections { display: grid; gap: 34px; padding: 22px var(--qr-gutter) 0; }
.sec { scroll-margin-top: calc(var(--tools-h, 150px) + 12px); }
.sec__head { display: grid; gap: 4px; margin-bottom: 14px; }
.sec__title {
  font-family: var(--qr-font-script);
  font-weight: 400;
  font-size: clamp(38px, 11vw, 48px);
  line-height: 1;
  color: var(--qr-accent);
  text-shadow: 0 4px 0 var(--qr-field-deep);
  text-wrap: balance;
}
.sec__note { font-size: 14px; color: var(--qr-on-field); opacity: 0.86; text-wrap: pretty; }

/* category hero: one cut-out over a sunburst, sits on top of the cream panel */
.sec__hero { position: relative; height: 176px; display: grid; place-items: center; margin-bottom: -30px; z-index: 1; pointer-events: none; }
.sec__hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgb(243 237 225 / 0.16) 0deg 9deg, transparent 9deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask: radial-gradient(closest-side, #000 30%, transparent 100%);
  animation: spin 50s linear infinite;
}
.sec__hero img { position: relative; height: 176px; width: 86%; object-fit: contain; filter: drop-shadow(0 14px 14px rgb(10 25 45 / 0.4)); }

.panel {
  position: relative;
  background: var(--qr-panel);
  color: var(--qr-ink);
  border-radius: var(--qr-radius);
  box-shadow: var(--qr-drop);
}
.sec__hero + .panel { padding-top: 26px; }

/* ---------- List rows (boneless, strips, cajita, sandwiches, specials) ---------- */
.rows { list-style: none; padding: 6px 16px; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: start;
  padding: 16px 0;
}
.row + .row { border-top: 2px dotted rgb(38 77 126 / 0.28); }
.row--pic { grid-template-columns: 92px minmax(0, 1fr) auto; }
.row__pic { grid-row: span 2; width: 92px; height: 78px; object-fit: contain; align-self: center; filter: drop-shadow(0 8px 6px rgb(27 58 97 / 0.28)); }
.row__name { font-family: var(--qr-font-display); font-size: 21px; line-height: 1.05; color: var(--qr-ink); text-wrap: balance; padding-top: 3px; }
.row__desc { grid-column: 1 / 2; font-size: 15px; line-height: 1.42; color: var(--qr-ink-soft); text-wrap: pretty; }
.row--pic .row__desc { grid-column: 2 / 4; }
.row .price { grid-row: 1; grid-column: -2 / -1; }

/* Price ticket */
.price {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 6px 11px 3px;
  border-radius: 12px;
  background: var(--qr-ink);
  color: var(--qr-accent);
  font-family: var(--qr-font-display);
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 0 var(--qr-field-deep);
}
.price__cur { font-family: var(--qr-font-text); font-size: 0.78em; }

/* ---------- Featured: pieces ---------- */
.feat { display: grid; gap: 18px; }
.piece { position: relative; display: grid; grid-template-columns: 44% minmax(0, 1fr); align-items: center; gap: 6px; padding: 16px 16px 16px 8px; overflow: hidden; }
.piece:nth-child(2) { background: var(--qr-accent); }
.piece__media { position: relative; height: 150px; display: grid; place-items: center; min-width: 0; }
.piece__media::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--qr-panel-shade) 0deg 9deg, transparent 9deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 40%, transparent 100%);
  mask: radial-gradient(closest-side, #000 40%, transparent 100%);
  animation: spin 48s linear infinite;
}
.piece:nth-child(2) .piece__media::before { background: repeating-conic-gradient(var(--qr-accent-light) 0deg 9deg, transparent 9deg 18deg); }
.piece__media > img { position: relative; height: 100%; width: 100%; object-fit: contain; filter: drop-shadow(0 12px 10px rgb(27 58 97 / 0.32)); }
.piece__four { position: relative; width: min(100%, 136px); aspect-ratio: 136 / 124; }
.piece__four img { position: absolute; width: 50%; height: auto; filter: drop-shadow(0 8px 6px rgb(27 58 97 / 0.32)); }
.piece__four img:nth-child(1) { left: 0; top: 4px; rotate: -12deg; }
.piece__four img:nth-child(2) { right: 0; top: 0; rotate: 10deg; }
.piece__four img:nth-child(3) { left: 10px; bottom: 0; rotate: 8deg; }
.piece__four img:nth-child(4) { right: 6px; bottom: 6px; rotate: -8deg; }
.piece__body { display: grid; gap: 8px; justify-items: start; }
.piece__name { font-family: var(--qr-font-display); font-size: 32px; line-height: 0.95; color: var(--qr-ink); }
.piece__desc { font-size: 14px; line-height: 1.4; color: var(--qr-ink-soft); text-wrap: pretty; }
.piece:nth-child(2) .piece__desc { color: var(--qr-ink); }
.piece .price { font-size: 26px; }
.incl { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; grid-column: 1 / -1; margin-top: 4px; padding-left: 8px; }
.incl li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 2px 8px;
  border-radius: 999px;
  background: rgb(38 77 126 / 0.09);
  color: var(--qr-ink);
  font-size: 13px;
}
.piece:nth-child(2) .incl li { background: rgb(38 77 126 / 0.14); }
.incl svg { width: 14px; height: 14px; flex: none; color: var(--qr-accent-shade); margin-top: -2px; }
.piece:nth-child(2) .incl svg { color: var(--qr-ink); }

/* ---------- Extras: compact tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; }
.tile { display: grid; justify-items: center; gap: 8px; padding: 14px 10px 14px; text-align: center; }
.tile img { height: 84px; width: 100%; object-fit: contain; filter: drop-shadow(0 8px 6px rgb(27 58 97 / 0.28)); }
.tile__name { font-family: var(--qr-font-display); font-size: 17px; line-height: 1.05; color: var(--qr-ink); text-wrap: balance; }
.tile .price { font-size: 17px; }

/* search highlight */
mark { background: var(--qr-accent-light); color: inherit; border-radius: 4px; padding: 0 2px; }

/* Items reveal once after the iris (stagger is decorative, never blocks taps) */
.is-entering .sec { animation: sec-in 560ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
@keyframes sec-in { from { transform: translateY(22px); } } /* visible by default: motion only, never hides the menu */

/* ---------- Dish entrances (driven by qr.js as each dish reaches the screen) ----------
   Transitions, not keyframes: if a phone skips the frames the dish still lands in place. */
.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(0.98);
  transition: opacity var(--rdur-o, 700ms) cubic-bezier(0.25, 0.8, 0.25, 1) var(--rd, 0ms), transform var(--rdur-t, 820ms) cubic-bezier(0.22, 1, 0.36, 1) var(--rd, 0ms);
}
.reveal img { transform: scale(0.9) rotate(-4deg); transition: transform var(--rdur-i, 900ms) cubic-bezier(0.22, 1, 0.36, 1) calc(var(--rd, 0ms) + 60ms); }
.reveal.is-first { --rdur-o: 460ms; --rdur-t: 560ms; --rdur-i: 620ms; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.is-in img { transform: none; }
.reveal.is-quiet, .reveal.is-quiet img { transition: none; }

/* ---------- Empty search ---------- */
.empty { display: grid; justify-items: center; gap: 10px; padding: 40px var(--qr-gutter) 10px; text-align: center; }
.empty img { width: 92px; filter: drop-shadow(0 6px 0 var(--qr-field-deep)); }
.empty__title { font-family: var(--qr-font-display); font-size: 24px; line-height: 1.1; color: var(--qr-accent); text-wrap: balance; }
.empty__hint { font-size: 15px; opacity: 0.86; }
.empty__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.empty__chips button { min-height: 42px; padding: 6px 16px 2px; border-radius: 999px; background: var(--qr-panel); color: var(--qr-ink); font-family: var(--qr-font-display); font-size: 16px; box-shadow: 0 4px 0 var(--qr-field-deep); transition: transform 160ms var(--ease-out); }
.empty__chips button:active { transform: translateY(3px); }

/* ---------- Footer ---------- */
.foot { display: grid; justify-items: center; gap: 6px; margin-top: 44px; padding: 26px var(--qr-gutter) 0; text-align: center; border-top: 2px solid rgb(243 237 225 / 0.14); }
.foot img { width: 76px; filter: drop-shadow(0 5px 0 var(--qr-field-deep)); }
.foot__tag { font-family: var(--qr-font-display); font-size: 24px; color: var(--qr-accent); }
.foot__note { max-width: 34ch; font-size: 13px; opacity: 0.8; text-wrap: pretty; }
.foot__place { font-size: 13px; opacity: 0.8; }

/* ---------- Larger phones / small tablets ---------- */
@media (min-width: 420px) {
  .piece { grid-template-columns: 42% minmax(0, 1fr); }
  .piece__media { height: 170px; }
}
/* Desktop: the phone column centered on the navy field */
@media (min-width: 600px) {
  body { background: var(--qr-field-deep); }
  .menu { box-shadow: 0 0 0 1px rgb(243 237 225 / 0.08), 0 30px 60px rgb(0 0 0 / 0.35); }
}
/* Very short screens (landscape phones): keep the door reachable */
@media (max-height: 640px) {
  .cover__badge { width: min(34vh, 220px); }
  .cover__door { padding: 14px var(--qr-gutter) 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .checker::before, .cover__logo img, .cover__rays, .cover__badge, .spark, .enter::before, .enter__shine::before, .sec__hero::before, .piece__media::before { animation: none !important; }
  .spark { opacity: 1; }
  .is-ready .cover__logo, .is-ready .enter, .is-ready .cover__badge, .is-ready .cover__rays { animation: fade-in 300ms ease both !important; }
  .is-entering .sec { animation: fade-in 240ms ease both; }
  .reveal, .reveal img { transform: none !important; transition: opacity 300ms ease; }
  .is-leaving .cover { transform: none; filter: none; }
}
@keyframes fade-in { from { opacity: 0; } }

/* solo + combo prices on the piece cards */
.piece__prices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.piece__combo { display: inline-flex; align-items: center; gap: 6px; }
.piece__combo-tag { font-family: "Zipper", sans-serif; font-size: 15px; line-height: 1; padding: 5px 10px 3px; border-radius: 999px; background: var(--color-accent, #EAB13B); color: var(--color-ink, #1B3A61); }
.piece__combo-tag { background: var(--color-ink, #1B3A61); color: var(--color-panel, #F3EDE1); }

/* ===== Piece cards: "Incluye" and "Hacelo combo" boxes, like the TV screens ===== */
.offers { grid-column: 1 / -1; display: grid; gap: 10px; padding-left: 8px; margin-top: 4px; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 18px; }
.offer--solo { border: 2px solid var(--qr-ink); }
.offer--combo { background: var(--qr-accent); }
.piece:nth-child(2) .offer--combo { background: var(--color-panel, #F3EDE1); }
.offer__text { display: grid; gap: 8px; min-width: 0; }
.offer__title { font-family: var(--qr-font-display); font-size: 18px; line-height: 1; color: var(--qr-ink); }
.offer--combo .offer__title { justify-self: start; padding: 5px 10px 3px; border-radius: 999px; background: var(--qr-ink); color: var(--color-panel, #F3EDE1); font-size: 15px; }
.offer .incl { margin: 0; padding: 0; grid-column: auto; gap: 5px; }
.offer .incl li { font-size: 13px; }
.offer--combo .incl li { background: rgb(38 77 126 / 0.14); }
.offer--combo .incl svg { color: var(--qr-ink); }
.offer .price { font-size: 22px; align-self: end; }
/* drinks: three bottles side by side */
#sec-bebidas .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#sec-bebidas .tile { padding: 12px 6px; }
#sec-bebidas .tile img { height: 104px; }
#sec-bebidas .tile__name { font-size: 13px; }
.tile__name--extra { margin-top: 4px; padding-top: 10px; border-top: 2px dotted rgb(38 77 126 / 0.3); width: 100%; }
.tile { align-content: start; } .tile .price { align-self: start; }
.tile { align-content: center; }

/* cover rays: soft round fade to nothing (never a square edge) and always painted */
.cover__rays {
  -webkit-mask: radial-gradient(circle closest-side, #000 0%, #000 22%, rgb(0 0 0 / 0.7) 46%, rgb(0 0 0 / 0.25) 70%, transparent 88%);
  mask: radial-gradient(circle closest-side, #000 0%, #000 22%, rgb(0 0 0 / 0.7) 46%, rgb(0 0 0 / 0.25) 70%, transparent 88%);
  will-change: rotate;
  backface-visibility: hidden;
  pointer-events: none;
  z-index: 0;
}
.cover__seal, .cover__copy, .cover__door { position: relative; z-index: 1; }
.cover__badge, .spark { z-index: 1; }
/* rays as a plain image with the fade baked in: paints reliably on every phone, no mask needed */
.cover__rays {
  background: url("../assets/logo/rays.svg?v=20261028i") center / 100% 100% no-repeat;
  -webkit-mask: none;
  mask: none;
  border-radius: 0;
}

/* "Ver el menú" always painted: the sweep lives in its own clipped layer, the label sits above it on its own layer
   (avoids the Safari bug where text vanishes inside overflow:hidden + radius + an animated pseudo-element) */
.enter { overflow: visible; isolation: auto; }
.enter::before { content: none; display: none; animation: none; }
.enter__shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 0; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.enter__shine::before {
  content: "";
  position: absolute;
  top: -40%; bottom: -40%; left: -30%;
  width: 34%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.55), transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: sweep 3.8s var(--ease-in-out) 1.6s infinite;
}
.enter__label { position: relative; z-index: 1; display: block; color: var(--qr-ink); -webkit-transform: translateZ(0); transform: translateZ(0); backface-visibility: hidden; }

/* 4 piezas: exactly the screen-1 arrangement (same order, spots, sizes and turns) */
.piece__four { width: min(100%, 196px); aspect-ratio: 218 / 147; }
.piece__four img { width: auto; rotate: none; scale: none; }
.piece__four img:nth-child(1) { left: 4%;  top: 6%;    right: auto; bottom: auto; width: 52%; transform: rotate(-6deg); }
.piece__four img:nth-child(2) { right: 2%; top: 2%;    left: auto;  bottom: auto; width: 48%; transform: scaleX(-1) rotate(-16deg); }
.piece__four img:nth-child(3) { left: 0;   bottom: 0;  right: auto; top: auto;    width: 54%; transform: rotate(-18deg); }
.piece__four img:nth-child(4) { right: 0;  bottom: 4%; left: auto;  top: auto;    width: 56%; transform: rotate(7deg); }

/* photos keep their own painted layer, so scrolling away and back never blanks them */
.piece__media > img, .piece__four img, .sec__hero img, .tile img, .row__pic { -webkit-backface-visibility: hidden; backface-visibility: hidden; -webkit-transform: translateZ(0); }
.piece__four img:nth-child(1) { -webkit-transform: translateZ(0) rotate(-6deg); transform: translateZ(0) rotate(-6deg); }
.piece__four img:nth-child(2) { -webkit-transform: translateZ(0) scaleX(-1) rotate(-16deg); transform: translateZ(0) scaleX(-1) rotate(-16deg); }
.piece__four img:nth-child(3) { -webkit-transform: translateZ(0) rotate(-18deg); transform: translateZ(0) rotate(-18deg); }
.piece__four img:nth-child(4) { -webkit-transform: translateZ(0) rotate(7deg); transform: translateZ(0) rotate(7deg); }
