@font-face {
  font-family: "Black Rocker";
  src: url("assets/fonts/BlackRocker.woff2") format("woff2"), url("assets/fonts/BlackRocker.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Haettenschweiler";
  src: url("assets/fonts/Haettenschweiler.woff2") format("woff2"), url("assets/fonts/Haettenschweiler.ttf") format("truetype");
  font-display: swap;
}

:root {
  --elote: #F6A019;
  --elote-deep: #E29835;
  --ink: #141210;
  --mostaza: #EDC145; /* the printed menu's mustard titles on black */
  --paper: #FBF8F0;
  --paper-ink: #2B2620;
  --salsa: #E2321B;

  /* the character universe: blister card on a pegboard */
  --peg: #2E4FA8;
  --peg-hole: #18306F;
  --cream: #FFF6DC;
  --eloy: #F6A51A;
  --eloy-light: #F8C743;
  --pink: #EC5FA0;
  --red: #CC2914;
  --corn: #FFE7A3;

  --display: "Haettenschweiler", "Archivo", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  --rocker: "Black Rocker", "Archivo", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 3.4vw, 56px);
  --rail-h: 68px;
  --ticket-w: clamp(250px, 20vw, 310px);
  --safe-right: calc(var(--ticket-w) + var(--gutter) * 2);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--elote); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--elote);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--mostaza); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[data-theme="ink"] :focus-visible { outline-color: var(--mostaza); }

/* ---------- RAIL / NAV ---------- */
.rail {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--rail-h);
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px);
  padding: 0 var(--gutter);
  color: var(--ink);
  transition: color 240ms ease;
}
.rail::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--elote);
  transition: background-color 240ms ease;
}
.rail[data-on="ink"] { color: var(--paper); }
.rail[data-on="ink"]::before { background: var(--ink); }
.rail[data-on="peg"] { color: var(--cream); }
.rail[data-on="peg"]::before { background: var(--peg); }
.rail__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: currentColor; }
.rail__bar::before, .rail__bar::after {
  content: ""; position: absolute; top: -3px; width: 10px; height: 10px; border-radius: 50%;
  background: currentColor;
}
.rail__bar::before { left: var(--gutter); }
.rail__bar::after { right: var(--gutter); }
.rail__brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--display); font-size: 1.7rem; letter-spacing: 0.01em; text-transform: uppercase;
}
.rail__brand img { width: 44px; height: 44px; }
.rail__nav { display: flex; gap: clamp(14px, 2vw, 32px); margin-left: auto; }
.rail__nav a, .rail__cta {
  font-family: var(--body); font-weight: 750; font-stretch: 112%; font-size: 0.82rem;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  text-underline-offset: 6px; text-decoration-thickness: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .rail__nav a:hover { text-decoration: underline; }
}
.rail__cta {
  display: inline-flex; align-items: center; gap: 8px;
  width: var(--ticket-w); justify-content: space-between;
  padding: 11px 16px; border-radius: 999px;
  background: var(--ink); color: var(--elote);
  transition: transform 160ms var(--ease-out), background-color 240ms ease, color 240ms ease;
}
.rail[data-on="ink"] .rail__cta { background: var(--mostaza); color: var(--ink); }
.rail[data-on="peg"] .rail__cta { background: var(--eloy); color: var(--ink); }

/* the section you're in: an ink bar slides under its link */
.rail__nav { position: relative; }
.rail__ink {
  position: absolute; left: 0; bottom: -9px; height: 4px; width: var(--w, 0); border-radius: 2px;
  background: currentColor; transform: translateX(var(--x, 0)); opacity: 0;
  transition: transform 420ms var(--ease-out), width 420ms var(--ease-out), opacity 200ms ease;
}
.rail__nav.has-active .rail__ink { opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* small screens: the section you're in doubles as the menu button */
.rail__now {
  display: none; align-items: center; gap: 12px; height: 44px; margin: 0; padding: 0 6px 0 0;
  appearance: none; border: 0; background: none; color: inherit; cursor: pointer; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.rail__label { display: block; overflow: hidden; height: 1.3em; line-height: 1.3; min-width: 0; }
.rail__burger { position: relative; flex: none; width: 22px; height: 14px; }
.rail__burger i {
  position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; background: currentColor;
  transition: top 200ms var(--ease-out), rotate 200ms var(--ease-out);
}
.rail__burger i:first-child { top: 0; }
.rail__burger i:last-child { top: 11px; }
.rail__now[aria-expanded="true"] .rail__burger i:first-child { top: 5.5px; rotate: 45deg; }
.rail__now[aria-expanded="true"] .rail__burger i:last-child { top: 5.5px; rotate: -45deg; }
.sheet {
  position: absolute; left: 0; right: 0; top: 100%; z-index: -2;
  display: grid; padding: 10px var(--gutter) 22px;
  background: var(--ink); color: var(--paper);
  border-bottom: 4px solid var(--mostaza);
  box-shadow: 0 24px 40px -18px rgb(0 0 0 / 0.6);
  animation: sheet-in 260ms var(--ease-out);
}
.sheet[hidden] { display: none; }
.sheet a {
  padding: 8px 0; border-bottom: 1.5px solid rgb(251 248 240 / 0.14); text-decoration: none;
  font-family: var(--display); font-size: 2.4rem; line-height: 1; text-transform: uppercase;
}
.sheet a[aria-current] { color: var(--mostaza); }
@keyframes sheet-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.rail__label span {
  display: block; font-family: var(--mono); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.rail__cta:active { transform: scale(0.97); }

/* ---------- TICKET DE COCINA ---------- */
.comanda {
  position: fixed; z-index: 30;
  top: calc(var(--rail-h) - 6px); right: var(--gutter);
  width: var(--ticket-w);
  pointer-events: none;
  filter: drop-shadow(0 18px 22px rgb(23 18 13 / 0.28)) drop-shadow(0 2px 3px rgb(23 18 13 / 0.2));
  visibility: hidden;
  transition: visibility 0s linear 700ms;
}
.comanda.is-on { visibility: visible; transition-delay: 0s; }
.comanda__clip {
  position: absolute; z-index: 2; top: -4px; left: 50%; translate: -50% 0;
  width: 72px; height: 22px; border-radius: 4px 4px 8px 8px;
  background: linear-gradient(#3a332b, #17120D);
  box-shadow: 0 2px 2px rgb(0 0 0 / 0.3);
}
.comanda__paper {
  position: relative;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--mono); font-size: 0.74rem; line-height: 1.6; font-stretch: 87.5%;
  padding: 30px 20px 26px;
  --tooth: 9px;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat,
    conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat,
    conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
  font-variant-numeric: tabular-nums;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 700ms cubic-bezier(0.65, 0, 0.35, 1);
}
.comanda.is-on .comanda__paper { clip-path: inset(0 0 0 0); }
.comanda__head { text-align: center; display: grid; gap: 2px; padding-bottom: 10px; }
.comanda__head strong { font-family: var(--display); font-size: 2rem; font-weight: 400; letter-spacing: 0.02em; line-height: 1; color: var(--ink); }
.comanda__head span { letter-spacing: 0.14em; font-size: 0.7rem; }
.comanda__meta, .comanda__total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-block: 1.5px dashed currentColor; padding: 6px 0; letter-spacing: 0.06em;
}
.comanda__dish { padding: 12px 0 10px; }
.comanda__name {
  margin: 0 0 6px; font-family: var(--display); font-size: 2.1rem; line-height: 1; text-transform: uppercase; color: var(--ink);
}
.comanda__lines { list-style: none; margin: 0; padding: 0; text-transform: uppercase; }
.comanda__lines li { display: flex; gap: 8px; }
.comanda__lines li::before { content: "+"; font-weight: 700; }
.comanda__total { font-weight: 700; border-top-style: solid; }
.comanda__total b { font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--ink); letter-spacing: 0.01em; }
.comanda__foot { margin: 14px 0 0; text-align: center; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 700; }
.comanda.is-printing .comanda__dish,
.comanda.is-printing .comanda__total { animation: reprint 520ms var(--ease-out); }
@keyframes reprint {
  0% { clip-path: inset(0 0 100% 0); transform: translateY(-6px); }
  100% { clip-path: inset(0 0 0 0); transform: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: max(100svh, 700px);
  padding: calc(var(--rail-h) + 2vh) var(--gutter) 0;
  overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto;
  column-gap: 2vw;
}
.hero__type {
  grid-column: 1; grid-row: 1;
  margin: 0; align-self: center;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  line-height: 0.8; letter-spacing: 0;
  display: grid; justify-items: start;
  position: relative; z-index: 1;
}
.hero__l1, .hero__l3 { font-size: clamp(2.6rem, 7.6vw, 9.5rem); }
.hero__l2 { font-size: clamp(6rem, 20.5vw, 25rem); line-height: 0.76; margin-left: -0.04em; color: var(--paper); paint-order: stroke fill; -webkit-text-stroke: 0.035em var(--ink); }
.hero__l1, .hero__l2, .hero__l3 { display: block; will-change: transform; }

.hero__elotes {
  grid-column: 2; grid-row: 1 / span 2; position: relative; z-index: 2;
  align-self: stretch; min-height: 60vh;
}
.hero__elote {
  position: absolute; width: auto; max-width: none;
  filter: drop-shadow(0 30px 26px rgb(23 18 13 / 0.32)) drop-shadow(0 6px 6px rgb(23 18 13 / 0.22));
  will-change: transform;
}
.hero__elote--mayo { height: min(74vh, 720px); left: 2%; top: 7%; rotate: -14deg; }
.hero__elote--queso { height: min(62vh, 600px); left: 40%; top: 15%; rotate: 13deg; }

.hero__info {
  grid-column: 1; grid-row: 2; position: relative; z-index: 4;
  display: flex; flex-wrap: wrap; gap: 6px 32px; align-items: baseline;
  padding: 0 0 22px;
  font-weight: 560; font-size: clamp(1rem, 1.25vw, 1.2rem);
}
.hero__info p { margin: 0; max-width: 46ch; }
.hero__hours { display: flex; flex-wrap: wrap; gap: 2px 18px; font-weight: 700; font-stretch: 112%; text-transform: uppercase; font-size: 0.78em; letter-spacing: 0.06em; }
.hero__hours span { white-space: nowrap; }

.ticker {
  grid-column: 1 / -1; grid-row: 3;
  margin: 0 calc(var(--gutter) * -1);
  background: var(--ink); color: var(--mostaza);
  overflow: hidden; position: relative; z-index: 5;
}
.ticker__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  padding: 14px 0 12px;
  font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.6rem); text-transform: uppercase; line-height: 1;
  animation: ticker 38s linear infinite;
}
.ticker__track i { font-style: normal; color: var(--paper); }
.ticker__track svg { width: 26px; height: 26px; color: var(--salsa); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- MENU ---------- */
.dish {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  padding: calc(var(--rail-h) + 4vh) var(--safe-right) 7vh var(--gutter);
  display: grid; grid-template-columns: 1fr minmax(300px, 0.85fr); grid-template-rows: auto 1fr;
  column-gap: 3vw;
}
.dish--ink { background: var(--ink); color: var(--paper); }
.dish--elote { background: var(--elote); color: var(--ink); }
.dish__name {
  grid-column: 1 / -1; margin: 0; position: relative; z-index: 1;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: var(--size, clamp(4.5rem, 15.5vw, 19rem)); line-height: 0.8; white-space: nowrap;
  will-change: transform;
}
.dish--ink .dish__name { color: var(--mostaza); }
.dish__photo {
  grid-column: 1; grid-row: 2; margin: -13vh 0 0; align-self: center; justify-self: center; position: relative; z-index: 2;
  width: min(112%, 46vw, 720px);
  filter: drop-shadow(0 34px 30px rgb(0 0 0 / 0.38)) drop-shadow(0 6px 6px rgb(0 0 0 / 0.22));
  will-change: transform;
}
.dish__photo--cup { width: min(80%, 30vw, 500px); }
.dish__photo--wide { width: min(118%, 52vw, 820px); margin-top: -4vh; }
.dish__body {
  grid-column: 2; grid-row: 2; align-self: end; position: relative; z-index: 3;
  display: grid; gap: 18px; padding-bottom: 2vh;
}
.dish__build {
  margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 2.1vw, 2.3rem); line-height: 1.12;
  text-transform: uppercase; text-wrap: pretty;
}
.dish__build i { font-style: normal; opacity: 0.45; padding: 0 0.12em; }
.price {
  margin: 0; font-family: var(--display); font-size: clamp(3.6rem, 6.2vw, 7rem); line-height: 0.85; letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums; text-transform: uppercase;
}
.price small {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; vertical-align: middle; margin-left: 10px; opacity: 0.8;
}
.price--sm { font-size: clamp(2rem, 2.8vw, 3rem); }
.dish--ink .price { color: var(--paper); }
.sizes {
  list-style: none; margin: 0; padding: 0; border-top: 3px solid currentColor;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px;
}
.sizes li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 0 8px; border-bottom: 1.5px dashed rgb(23 18 13 / 0.6); }
.sizes span { white-space: nowrap; font-weight: 750; font-stretch: 100%; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.sizes b { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 2.8vw, 3rem); line-height: 0.9; font-variant-numeric: tabular-nums; }
.sizes__note { margin: 0; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }

/* ---------- SUCURSALES / LA PANDILLA: blister on the pegboard ---------- */
.peg {
  /* the swinging, turning package may poke out sideways, never vertically clipped */
  position: relative; isolation: isolate; min-height: 100svh; overflow-x: hidden; overflow-x: clip;
  padding: calc(var(--rail-h) + 46px) var(--gutter) 34px;
  display: grid; align-content: center;
  background-color: var(--peg);
  background-image:
    radial-gradient(circle at 50% 50%, var(--peg-hole) 0 3.2px, rgb(255 255 255 / 0.08) 3.8px 4.4px, transparent 4.8px),
    linear-gradient(180deg, rgb(255 255 255 / 0.08), transparent 40%);
  background-size: 36px 36px, 100% 100%;
  color: var(--ink);
}
.peg :focus-visible { outline-color: var(--ink); }
.hook {
  position: absolute; left: 50%; top: calc(var(--rail-h) + 4px); z-index: 4; translate: -50% 0;
  width: 26px; height: 64px; pointer-events: none;
}
.hook::before {
  content: ""; position: absolute; left: 50%; top: 0; translate: -50% 0; width: 42px; height: 18px; border-radius: 9px;
  background: linear-gradient(#d9dde6, #9aa1ae); box-shadow: 0 3px 6px rgb(0 0 0 / 0.35);
}
.hook span {
  position: absolute; left: 50%; top: 8px; translate: -50% 0; width: 10px; height: 52px; border-radius: 5px;
  background: linear-gradient(90deg, #8a909c, #f1f3f7 45%, #9aa1ae);
  box-shadow: 0 6px 8px rgb(0 0 0 / 0.35);
}
.stage { perspective: 2400px; perspective-origin: 50% 20%; }
.swing { transform-origin: 50% -40px; }
/* one face renders at a time: main.js turns the card edge-on, swaps the face, turns it back.
   No backface-visibility or preserve-3d, which Safari composites with artifacts. */
.card { position: relative; margin: 0 auto; width: min(1240px, 100%); display: grid; }
.card:not(.is-flipped) .face--back, .card.is-flipped .face--front { visibility: hidden; }
/* too small to pin: the back hangs below the front on its own hook and turns in with the scroll */
.card.is-stacked { display: flex; flex-direction: column; gap: 92px; }
.card.is-stacked .face--back { visibility: visible; }
.card.is-stacked .face--back::before {
  content: ""; position: absolute; left: 50%; top: -60px; z-index: 2; translate: -50% 0;
  width: 10px; height: 52px; border-radius: 5px;
  background: linear-gradient(90deg, #8a909c, #f1f3f7 45%, #9aa1ae); box-shadow: 0 6px 8px rgb(0 0 0 / 0.35);
}
.face {
  grid-area: 1 / 1; position: relative; display: flex; min-width: 0;
  border-radius: 34px;
  box-shadow: 0 50px 70px -30px rgb(10 20 60 / 0.65), 0 10px 18px rgb(10 20 60 / 0.25);
}
.tab {
  position: absolute; left: 50%; top: -34px; translate: -50% 0; z-index: 1;
  width: 230px; height: 60px; border-radius: 22px 22px 0 0;
}
.tab__hole {
  position: absolute; left: 50%; top: 18px; translate: -50% 0;
  width: 70px; height: 16px; border-radius: 8px;
  background: var(--peg-hole); box-shadow: inset 0 3px 4px rgb(0 0 0 / 0.5);
}

/* front: branches + hours left, the gang in its capsule right */
.face--front {
  background-color: var(--eloy);
  background-image: repeating-conic-gradient(from 0deg at 74% 50%, var(--eloy) 0deg 7deg, #F8B42E 7deg 14deg);
}
.face--front .tab { background: var(--eloy); }
.front {
  flex: 1; position: relative; margin: 14px; border-radius: 24px;
  box-shadow: inset 0 0 0 4px var(--cream);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: 28px; padding: clamp(26px, 4vh, 40px) 30px clamp(24px, 3.4vh, 32px) 40px;
}
.front__info { display: flex; flex-direction: column; gap: clamp(12px, 2.2vh, 20px); min-width: 0; }
.front__title {
  margin: 0; font-family: var(--rocker); font-weight: 400; line-height: 0.92;
  font-size: clamp(2.4rem, min(4.6vw, 7.4vh), 5rem); color: var(--cream); rotate: -3deg; transform-origin: 0 50%;
  paint-order: stroke fill; -webkit-text-stroke: 0.14em var(--ink);
  text-shadow: 0 0.07em 0 var(--ink), 0 0.12em 0.18em rgb(38 38 38 / 0.3);
}
.branches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2px, 1vh, 10px) 14px; }
.branches .is-new { grid-column: 1 / -1; margin-bottom: clamp(4px, 1vh, 10px); }
.branches li { position: relative; }
.branches a {
  display: grid; grid-template-columns: 20px 1fr; column-gap: 8px; height: 100%;
  padding: 9px 10px 10px; border-radius: 14px; text-decoration: none;
  transition: background-color 160ms ease;
}
.branches svg { width: 20px; height: 20px; grid-row: span 2; margin-top: 1px; }
.branches b { font-weight: 800; font-stretch: 105%; font-size: 1.05rem; line-height: 1.2; }
.branches .is-new b { font-family: var(--display); font-weight: 400; font-stretch: normal; font-size: clamp(1.8rem, 2.4vw, 2.4rem); line-height: 1; text-transform: uppercase; }
.branches .is-new a { padding-block: 12px 13px; }
.branches .is-new svg { margin-top: 6px; }
.branches a > span { font-size: 0.82rem; font-weight: 560; line-height: 1.35; color: #3a2a10; }
@media (hover: hover) and (pointer: fine) { .branches a:hover { background: rgb(255 246 220 / 0.45); } }
.branches .is-new a { background: var(--cream); box-shadow: inset 0 0 0 2.5px var(--ink); padding-right: 70px; }
.nueva {
  position: absolute; top: -18px; right: -10px; z-index: 2; pointer-events: none;
  width: 76px; aspect-ratio: 1; display: grid; place-items: center; rotate: 12deg;
  color: var(--cream); filter: drop-shadow(0 5px 5px rgb(38 38 38 / 0.35));
  animation: nueva 3.6s var(--ease-out) infinite;
}
.nueva svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--red); stroke: var(--cream); stroke-width: 7; }
.nueva span { position: relative; font-family: var(--rocker); font-size: 1.12rem; line-height: 1; }
@keyframes nueva {
  0%, 72%, 100% { transform: none; }
  78% { transform: scale(1.14) rotate(-10deg); }
  86% { transform: scale(0.96) rotate(6deg); }
  93% { transform: scale(1.03) rotate(-2deg); }
}
.front__fine { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.front__fine p { margin: 0; font-size: 0.9rem; line-height: 1.35; font-weight: 600; color: #3a2a10; }
.front__fine b { color: var(--ink); }
.badge-round {
  flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: var(--ink); color: var(--eloy-light); font-size: 0.7rem; font-weight: 700; line-height: 1.05; text-transform: uppercase;
  box-shadow: inset 0 0 0 3px var(--eloy), inset 0 0 0 5px var(--ink);
}
.badge-round b { font-size: 1.05rem; color: var(--cream); }
.apps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.apps p { margin: 0; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.apps ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.apps li { background: #fff; border-radius: 999px; padding: 9px 16px; display: grid; place-items: center; box-shadow: 0 6px 12px -8px rgb(38 38 38 / 0.5); }
.apps img { height: 18px; width: auto; }

.capsule { position: relative; min-height: 0; display: grid; }
.blister {
  position: relative; border-radius: 46px; overflow: hidden; isolation: isolate; min-height: 0;
  background: var(--corn);
  box-shadow:
    inset 0 0 0 3px rgb(255 255 255 / 0.85),
    inset 0 26px 40px rgb(255 255 255 / 0.55),
    inset 0 -30px 50px rgb(120 70 0 / 0.18),
    0 34px 40px -24px rgb(38 38 38 / 0.55);
}
.blister__insert {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    repeating-conic-gradient(from 0deg at 50% 100%, rgb(255 255 255 / 0.55) 0deg 6deg, transparent 6deg 12deg),
    linear-gradient(0deg, #FFD36E, var(--corn) 70%);
}
.gang { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.gang__m { position: absolute; will-change: transform; }
.gang__m img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 14px 12px rgb(80 40 0 / 0.28)); }
.gang__m--maruchido { left: -2%; height: 54%; bottom: 25%; }
.gang__m--maruchica { left: 59%; height: 50%; bottom: 33%; }
.gang__m--chicken { right: -4%; height: 58%; bottom: 20%; }
.gang__m--esquite { left: 10%; height: 60%; bottom: 3%; }
.gang__m--eloy { left: 34%; height: 63%; bottom: 2%; }
.gang__m--elotito { right: 5%; height: 24%; bottom: 3%; }
.blister__sheen {
  position: absolute; inset: -20%; pointer-events: none; z-index: 3;
  background:
    linear-gradient(112deg, transparent 22%, rgb(255 255 255 / 0.55) 25%, rgb(255 255 255 / 0.1) 29%, transparent 31%,
      transparent 60%, rgb(255 255 255 / 0.35) 62%, transparent 66%);
  will-change: transform;
}
.sticker {
  position: absolute; z-index: 4; left: -58px; bottom: -14px;
  display: grid; place-items: center; width: clamp(132px, 11.5vw, 170px); aspect-ratio: 1;
  appearance: none; border: 0; padding: 0; background: none; cursor: pointer;
  rotate: -9deg; color: var(--cream);
  filter: drop-shadow(0 10px 10px rgb(38 38 38 / 0.35));
  transition: transform 220ms var(--ease-out);
}
.sticker__burst { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--red); stroke: var(--cream); stroke-width: 5; }
.sticker__text {
  position: relative; display: grid; justify-items: center; text-align: center;
  font-family: var(--rocker); font-size: clamp(1.35rem, 1.7vw, 1.85rem); line-height: 0.9;
}
.sticker__text small { font-family: var(--body); font-weight: 900; font-stretch: 112%; font-size: max(0.48em, 11px); margin-bottom: 0.2em; letter-spacing: 0.08em; text-transform: uppercase; }
.sticker:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .sticker:hover { transform: scale(1.06) rotate(8deg); } }

/* back: Universo Panzón — the gang grid left, the title and copy right */
.face--back {
  background: var(--cream);
  background-image: radial-gradient(circle at 1px 1px, rgb(46 79 168 / 0.14) 1.2px, transparent 1.6px);
  background-size: 14px 14px;
  color: var(--peg);
}
.face--back .tab { background: var(--cream); }
.back {
  flex: 1; position: relative; margin: 14px; border-radius: 24px; box-shadow: inset 0 0 0 3px var(--peg);
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(250px, 0.9fr);
  gap: 26px; padding: 26px 30px 26px 26px;
}
.slots {
  list-style: none; margin: 0; padding: 0; min-height: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 14px;
}
.slot {
  position: relative; border-radius: 22px; background: var(--c); color: var(--ink);
  padding: 16px 18px; display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  box-shadow: inset 0 -5px 0 rgb(0 0 0 / 0.12);
}
.slot__char {
  position: absolute; z-index: 1; left: 6%; bottom: 10px; height: 54%; width: auto; max-width: 58%; object-fit: contain; object-position: left bottom;
  filter: drop-shadow(0 8px 8px rgb(0 0 0 / 0.22));
  transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .slot:hover .slot__char { transform: translateY(-6px) rotate(-3deg); } }
.slot__info { position: relative; z-index: 2; }
.slot__info h3 {
  margin: 0; font-family: var(--rocker); font-weight: 400; font-size: clamp(1.3rem, 1.75vw, 1.8rem); line-height: 1.1; color: var(--ink);
  paint-order: stroke fill; -webkit-text-stroke: 0.16em var(--cream);
}
.slot__role { margin: 6px 0 0; font-size: 0.78rem; font-weight: 700; line-height: 1.35; }
.slot__dish { margin: 8px 0 0; font-size: 0.82rem; font-weight: 600; line-height: 1.38; }
.slot__dish b { font-weight: 900; }
.slot__food { position: absolute; right: 12px; bottom: 14px; width: 38%; height: auto; rotate: 8deg; filter: drop-shadow(0 6px 6px rgb(0 0 0 / 0.25)); }
.slot__food--tall { width: auto; height: 50%; rotate: 24deg; right: 22px; }
.slot__food--tazon { width: 41.8%; }
/* Elotito is the smallest; the hand offers him the esquite, arm cut by the slot's bottom edge */
.slot--elotito .slot__char { height: 40%; left: 4%; }
.slot__food--cup { z-index: 1; width: auto; height: 60%; rotate: 0deg; right: 4%; bottom: -10%; }
.back__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; min-width: 0; }
.logo { margin: 0; font-family: var(--rocker); font-weight: 400; line-height: 0.82; display: grid; }
.logo span {
  display: block; paint-order: stroke fill; -webkit-text-stroke: 0.16em var(--ink);
  text-shadow: 0 0.07em 0 var(--ink), 0 0.12em 0.18em rgb(38 38 38 / 0.35);
}
.logo__a { font-size: clamp(2rem, 3.2vw, 3.5rem); color: var(--eloy); rotate: -4deg; margin: 0 0 0.12em 0.1em; }
.logo__b { font-size: clamp(3.4rem, 5.6vw, 6.2rem); color: var(--pink); rotate: -4deg; letter-spacing: -0.01em; }
.back__claim {
  margin: 4px 0 0; background: var(--ink); color: var(--eloy-light);
  font-weight: 900; font-stretch: 105%; font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.2;
  padding: 8px 14px 9px; border-radius: 10px; rotate: -2deg;
}
.back__lead { margin: 0; max-width: 30ch; font-weight: 650; font-size: clamp(1rem, 1.15vw, 1.12rem); line-height: 1.4; color: var(--peg); }
.flip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin-top: 6px;
  appearance: none; border: 0; border-radius: 999px; padding: 12px 18px 12px 14px;
  background: var(--peg); color: var(--cream); font: 800 0.86rem/1 var(--body); font-stretch: 105%;
  box-shadow: 0 8px 14px -6px rgb(10 20 60 / 0.5);
  transition: transform 160ms var(--ease-out);
}
.flip:active { transform: scale(0.96); }
.flip svg { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .flip:hover svg { transform: rotate(180deg); } }

/* pinned (desktop): the card is sized to the screen so both faces fit */
.peg.is-pinned .card { height: min(calc(100svh - var(--rail-h) - 92px), 800px); }

/* ---------- SALSAS ---------- */
.salsas { background: var(--ink); color: var(--paper); padding: calc(var(--rail-h) + 10vh) var(--gutter) 14vh; }
.salsas__title {
  margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--mostaza);
  font-size: clamp(4.5rem, 14vw, 17rem); line-height: 0.8;
}
.salsas__lead { text-wrap: pretty; margin: 3vh 0 6vh; max-width: 40ch; font-size: clamp(1.05rem, 1.4vw, 1.3rem); font-weight: 560; }
.heat { list-style: none; margin: 0; padding: 0; }
.heat__row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px 32px;
  padding: 18px 16px 16px; border-top: 3px solid rgb(251 248 240 / 0.9);
}
.heat__row:last-child { border-bottom: 3px solid rgb(251 248 240 / 0.9); }
.heat__row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c);
  clip-path: inset(0 100% 0 0); transition: clip-path 600ms var(--ease-out);
}
.heat__row.is-hot::before { clip-path: inset(0 0 0 0); }
.heat__name { font-family: var(--display); text-transform: uppercase; font-size: clamp(2.6rem, 6.4vw, 7.5rem); line-height: 0.9; }
.heat__note { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.heat__meter { display: flex; gap: 4px; }
.heat__meter svg { width: clamp(22px, 2.4vw, 34px); height: clamp(22px, 2.4vw, 34px); color: var(--paper); opacity: 0.25; }
.heat__row[style*="--lvl:1"] .heat__meter svg:nth-child(-n+1),
.heat__row[style*="--lvl:2"] .heat__meter svg:nth-child(-n+2),
.heat__row[style*="--lvl:3"] .heat__meter svg:nth-child(-n+3),
.heat__row[style*="--lvl:4"] .heat__meter svg:nth-child(-n+4) { opacity: 1; }
.heat__row.is-hot .heat__note, .heat__row.is-hot .heat__name { color: var(--ink); }
.heat__row.is-hot .heat__meter svg { color: var(--ink); }
.heat__row.is-hot[style*="--lvl:4"] .heat__name,
.heat__row.is-hot[style*="--lvl:4"] .heat__note,
.heat__row.is-hot[style*="--lvl:4"] .heat__meter svg,
.heat__row.is-hot[style*="--lvl:3"] .heat__name,
.heat__row.is-hot[style*="--lvl:3"] .heat__note,
.heat__row.is-hot[style*="--lvl:3"] .heat__meter svg { color: var(--paper); }

/* ---------- EXTRAS / BEBIDAS ---------- */
.board {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--rail-h) + 10vh) var(--gutter) 14vh;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); grid-template-rows: auto auto 1fr; column-gap: 4vw;
}
.board__title {
  grid-column: 1; margin: 0 0 6vh; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(4.5rem, 12vw, 15rem); line-height: 0.8;
}
.board__cols { grid-column: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4vh 4vw; }
.board__col h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 3.4vw, 3.6rem); text-transform: uppercase; line-height: 1; }
.board__col ul { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.board__col li {
  display: flex; align-items: baseline; gap: 10px; padding: 10px 0 9px;
  border-bottom: 1.5px dashed rgb(23 18 13 / 0.6); font-weight: 650; font-size: 1.05rem;
}
.board__col li span { flex: 1; }
.board__col li b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.board__note { grid-column: 1; margin: 3vh 0 0; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.board__photo {
  margin: 0; position: absolute; z-index: -1; width: clamp(220px, 22vw, 380px);
  background: var(--paper); padding: 8px;
  box-shadow: 0 30px 40px -18px rgb(23 18 13 / 0.5), 0 3px 6px rgb(23 18 13 / 0.2);
  will-change: transform;
}
.board__photo img { aspect-ratio: 3 / 4.4; object-fit: cover; width: 100%; }
.board__photo--a img { object-position: 50% 62%; }
.board__photo--b img { object-position: 50% 52%; }
.board__photo .clip {
  position: absolute; z-index: 2; top: -12px; left: 50%; translate: -50% 0; width: 64px; height: 22px; border-radius: 4px 4px 8px 8px;
  background: linear-gradient(#3a332b, #141210); box-shadow: 0 2px 2px rgb(0 0 0 / 0.3);
}
.board__photo--a { right: 18vw; top: 18vh; rotate: -6deg; }
.board__photo--b { right: 4vw; top: 42vh; rotate: 7deg; }

/* ---------- EVENTOS ---------- */
.events {
  position: relative; overflow: hidden; isolation: isolate; min-height: 100svh;
  background: var(--ink); color: var(--paper);
  padding: calc(var(--rail-h) + 10vh) var(--gutter) 14vh;
  display: grid; align-content: center; justify-items: start; gap: 3vh;
}
.events__rocket {
  position: absolute; z-index: -1; right: -4vw; top: 6vh; width: clamp(320px, 52vw, 860px); height: auto;
  filter: brightness(0) invert(84%) sepia(52%) saturate(640%) hue-rotate(358deg) brightness(97%);
  will-change: transform;
}
.events__title {
  margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(4.5rem, 13vw, 16rem); line-height: 0.8;
}
.events__lead { margin: 0; max-width: 40ch; font-size: clamp(1.05rem, 1.4vw, 1.3rem); font-weight: 560; }
.events__cta {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 2vh; text-decoration: none;
  padding: 16px 24px 16px 18px; border-radius: 999px; background: var(--mostaza); color: var(--ink);
  font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.92rem;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.events__cta b { font-family: var(--mono); font-weight: 700; font-stretch: 87.5%; letter-spacing: 0.02em; opacity: 0.8; }
.events__cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .events__cta:hover { background: var(--paper); } }

/* ---------- FRANQUICIAS ---------- */
.franchise {
  padding: calc(var(--rail-h) + 10vh) var(--gutter) 14vh;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 4vh 4vw; align-items: end;
}
.franchise__title { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(4rem, 11vw, 14rem); line-height: 0.8; display: grid; }
.franchise__body { display: grid; gap: 22px; justify-items: start; padding-bottom: 1vh; }
.franchise__body > p:first-child { margin: 0; font-size: clamp(1.05rem, 1.35vw, 1.25rem); font-weight: 560; max-width: 40ch; }
.franchise__cities { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.franchise__cities span {
  font-weight: 750; font-stretch: 112%; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 2.5px var(--ink);
}
.franchise__cities i { font-style: normal; font-family: var(--mono); font-size: 0.7rem; opacity: 0.8; margin-left: 4px; }
.franchise__cta {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  padding: 16px 22px; border-radius: 999px; background: var(--ink); color: var(--elote);
  font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.92rem;
  transition: transform 160ms var(--ease-out);
}
.franchise__cta:active { transform: scale(0.97); }

/* ---------- FOOTER ---------- */
.foot {
  background: var(--ink); color: var(--paper);
  padding: 10vh var(--gutter) 5vh;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6vh 4vw;
}
.foot__brand img { width: 88px; height: 88px; }
.foot__brand p { margin: 16px 0 0; font-family: var(--display); font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 0.9; text-transform: uppercase; color: var(--mostaza); max-width: 12ch; }
.foot__col h3 { margin: 0 0 12px; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mostaza); font-weight: 700; }
.foot__col p { margin: 0 0 12px; line-height: 1.6; }
.foot__col a { text-underline-offset: 4px; }
.foot__social { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot__social a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; }
.foot__social img { filter: invert(96%); }
@media (hover: hover) and (pointer: fine) { .foot__social a:hover, .foot__col > a:hover { color: var(--mostaza); } }
.foot__legal { grid-column: 1 / -1; margin: 0; padding-top: 3vh; border-top: 1.5px solid rgb(251 248 240 / 0.2); font-size: 0.82rem; opacity: 0.75; }

@media (max-width: 820px) {
  .heat__row { grid-template-columns: 1fr auto; }
  .heat__note { grid-column: 1; grid-row: 2; }
  .heat__meter { grid-column: 2; grid-row: 1 / span 2; }
  .board { grid-template-columns: 1fr; }
  .board__cols { grid-template-columns: 1fr; }
  .board__photo { position: relative; z-index: 0; right: auto; top: auto; width: 62%; margin-top: 6vh; }
  .board__photo--b { justify-self: end; margin-top: -10vh; }
  .events__rocket { width: 110vw; top: auto; bottom: 4vh; opacity: 0.35; }
  .franchise { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .rail__nav { display: none; }
  .rail__now { display: flex; }
  .rail__cta { margin-left: auto; }
}

@media (max-width: 820px) {
  :root { --rail-h: 60px; --safe-right: var(--gutter); }
  .rail { gap: 12px; }
  .rail__brand { flex: none; }
  .rail__brand span { display: none; }
  .rail__now { flex: 1; min-width: 0; gap: 10px; }
  .rail__label span { letter-spacing: 0.04em; }
}
@media (max-width: 480px) {
  .rail { gap: 10px; }
  .rail__brand img { width: 40px; height: 40px; }
  .rail__cta { padding: 9px 12px; font-size: 0.68rem; letter-spacing: 0.02em; }
  .rail__cta svg { display: none; }
  .rail__cta { width: auto; flex: none; padding: 10px 14px; gap: 6px; font-size: 0.74rem; }
  .comanda { display: none; }

  .hero { min-height: 100svh; padding-top: calc(var(--rail-h) + 4vh); grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; }
  .hero__type { align-self: start; }
  .hero__l1, .hero__l3 { font-size: 13.5vw; }
  .hero__l2 { font-size: 34vw; }
  .hero__elotes { grid-column: 1; grid-row: 2; min-height: 46svh; }
  .hero__elote--mayo { height: 46svh; left: 8%; top: 2%; }
  .hero__elote--queso { height: 38svh; left: 46%; top: 8%; }
  .hero__info { grid-row: 3; padding-top: 8px; }
  .hero__info p:first-child { display: none; }
  .ticker { grid-row: 4; }

  .dish { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding-bottom: 12vh; }
  .dish__name { font-size: var(--fit, 19vw); white-space: nowrap; }
  .dish__photo, .dish__photo--wide { grid-column: 1; grid-row: 2; margin: 2vh 0; width: 100%; }
  .dish__photo--cup { width: 80%; }
  .dish__body { grid-column: 1; grid-row: 3; }
  .sizes { grid-template-columns: 1fr; }

  .peg { padding: calc(var(--rail-h) + 46px) 10px 40px; }
  .front { margin: 10px; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 26px 16px 20px; }
  .front__info { display: contents; }
  .front__title { order: 1; font-size: 12.5vw; }
  .capsule { order: 2; aspect-ratio: 0.95; }
  .blister { border-radius: 34px; }
  .capsule { margin-bottom: 44px; }
  .sticker { left: -8px; right: auto; bottom: -64px; width: 116px; }
  .branches { order: 3; grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
  .front__fine { order: 4; margin-top: 0; }
  .apps { order: 5; }
  .nueva { width: 70px; top: -18px; right: -8px; }
  .nueva span { font-size: 0.95rem; }
  .back { margin: 10px; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 26px 12px 14px; }
  .back__copy { order: -1; align-items: center; text-align: center; }
  .logo { justify-items: center; }
  .logo__a { font-size: 11vw; }
  .logo__b { font-size: 18vw; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; }
  .slot { padding: 112px 12px 14px; }
  .slot__char { left: 8px; top: 10px; bottom: auto; height: 96px; max-width: 52%; }
  .slot__food { width: 40%; right: 6px; top: 22px; bottom: auto; }
  .slot__food--tall { width: auto; height: 86px; top: 10px; right: 14px; }
  .slot__food--tazon { width: 44%; }
  .slot--elotito .slot__char { height: 80px; top: 22px; }
  .slot__food--cup {
    height: 112px; top: 14px; bottom: auto; right: 6px;
    -webkit-mask-image: linear-gradient(to top, transparent 2%, #000 30%); mask-image: linear-gradient(to top, transparent 2%, #000 30%);
  }
  .hero__elote { filter: drop-shadow(0 20px 18px rgb(23 18 13 / 0.32)); }
  .slot__role { font-size: 0.74rem; }
}

@media (max-width: 1100px) and (min-width: 821px) {
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .back { grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr); }
}

@media (prefers-reduced-motion: reduce) {
  .sheet { animation: none; }
  .nueva { animation: none; }
  .ticker__track { animation: none; }
  .comanda__paper { transition: none; }
  .comanda.is-printing .comanda__dish,
  .comanda.is-printing .comanda__total { animation: none; }
}
