/* =========================================================
   Dog Burger Medellín — hoja de estilos
   Basada en el Manual de Marca 2026 ("Callentró": la calle hacia adentro).
   Versión oscura: página carbón, bordes amarillo maíz, textos claros,
   Nunito Sans para todo el texto y Space Mono para etiquetas.
   ========================================================= */

/* Versión oscura (11 oct 2026): recomendada por la evaluación de usabilidad.
   Barras más oscuras arriba, página carbón, tarjetas en el Carbón del manual y
   bordes en Amarillo Maíz. El rojo solo como fondo (sobre oscuro no se lee como letra). */
:root {
  /* Paleta del manual */
  --piedra: #e4e3df;
  --calido: #f4f1ee;     /* Blanco Cálido: piezas claras (marco de fotos, categoría elegida) */
  --carbon: #161615;     /* Lo más oscuro: menú, barras, botones oscuros */
  --carbon-2: #3a3835;
  --maiz: #f5cc7e;       /* Amarillo Maíz: bordes, acentos y botones */
  --maiz-2: #efbd5f;
  --pastel: #f8e8ae;
  --rojo: #bd181a;       /* Rojo: solo como fondo con letra clara */

  /* Roles */
  --bg: #222120;
  --surface: #2b2b2b;    /* Carbón del manual: tarjetas */
  --surface-2: #34322f;
  --realce: rgba(245, 204, 126, 0.1);
  --acento: var(--maiz); /* acentos de texto */
  --error: #ff8a7d;
  --ink: #f4f1ee;
  --ink-2: #d3cdc4;
  --muted: #a8a196;
  --on-dark: #f4f1ee;
  --on-dark-2: #cfcac2;
  --line: rgba(244, 241, 238, 0.1);
  --line-2: rgba(244, 241, 238, 0.18);
  --ok: #7fd394;
  --warn: #f2b866;
  --bad: var(--error);

  /* Tipografía */
  --font: "Nunito Sans", "Avenir Next", "Avenir", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Forma y movimiento */
  --r-xl: 2rem;
  --r-lg: 1.4rem;
  --r-md: 1rem;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.75), 0 8px 18px -10px rgba(0, 0, 0, 0.5);

  /* Capas */
  --z-nav: 40;
  --z-bar: 45;
  --z-drawer: 60;
  --z-sheet: 70;
  --z-pay: 80;
  --z-toast: 90;

  --nav-h: 72px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--maiz); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--maiz); color: var(--carbon); }

.i { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; top: 10px; left: 10px; z-index: var(--z-toast);
  background: var(--carbon); color: var(--maiz); padding: 10px 16px; border-radius: 999px;
  font-weight: 800; transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.mono { font-family: var(--mono); }

/* ---------- Aparición al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.hero .reveal { animation: rise 0.9s var(--ease-out) both; animation-delay: calc(120ms + var(--d, 0) * 90ms); transition: none; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font: 800 1rem/1 var(--font); white-space: nowrap;
  transition: transform 0.5s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:has(.btn-ico) { padding: 0 7px 0 26px; }
.btn:active { transform: scale(0.98); }
.btn-ico {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(43, 43, 43, 0.12);
  transition: transform 0.5s var(--ease);
}
.btn:hover .btn-ico { transform: translate(2px, -1px) scale(1.06); }
/* Principal sobre fondo claro: carbón con detalle maíz */
.btn-primary { background: var(--maiz); color: var(--carbon); }
.btn-primary .btn-ico { background: rgba(22, 22, 21, 0.14); color: var(--carbon); }
.btn-primary:hover { background: var(--maiz-2); }
/* Maíz: el "PEDIR" del manual, para paneles carbón */
.btn-maiz { background: var(--maiz); color: var(--carbon); }
.btn-maiz:hover { background: var(--maiz-2); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--on-dark-2); }
.btn-outline:hover { border-color: var(--maiz); color: var(--maiz); }
.btn-soft { background: var(--surface); color: var(--ink); border: 1.5px solid var(--maiz); }
.btn-soft:hover { background: var(--realce); }
.btn-dark { background: var(--carbon); color: var(--maiz); }
.btn-dark .btn-ico { background: rgba(245, 204, 126, 0.16); }
.btn-dark:hover { background: #1c1c1c; }
.btn-block { width: 100%; justify-content: space-between; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.loading { animation: breathe 1.2s var(--ease) infinite; }
@keyframes breathe { 50% { opacity: 0.7; } }

.link-cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 800; color: var(--ink);
  transition: color 0.3s var(--ease), gap 0.4s var(--ease);
}
.link-cta:hover { color: var(--maiz); gap: 12px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--maiz); color: var(--ink);
  transition: background-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.icon-btn:hover { background: var(--realce); }
.icon-btn:active { transform: scale(0.94); }

/* Etiqueta tipo manual: Space Mono en mayúscula espaciada */
.pill {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px; border: 1.5px solid rgba(245, 204, 126, 0.45);
  background: var(--carbon);
  font: 700 0.76rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--maiz);
}
.pill-dark { background: var(--carbon); border-color: var(--carbon); color: var(--maiz); }

/* ---------- Marco de tarjeta ---------- */
.bezel {
  padding: 6px; border-radius: var(--r-xl);
  background: var(--carbon-2);
  border: 1.5px solid rgba(245, 204, 126, 0.35);
}
.bezel-core { border-radius: calc(var(--r-xl) - 6px); overflow: hidden; }

/* ---------- Navegación isla (carbón, como el isologo del manual) ---------- */
.nav {
  position: fixed; z-index: var(--z-nav);
  top: calc(env(safe-area-inset-top, 0px) + 14px); left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px));
}
.nav-shell {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(43, 43, 43, 0.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1.5px solid var(--maiz);
  box-shadow: 0 18px 36px -20px rgba(43, 43, 43, 0.7);
}
.nav-logo { margin-right: auto; display: flex; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: 0.95rem; color: var(--on-dark);
  transition: color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.nav-links a:hover { background: rgba(244, 241, 238, 0.1); }
/* Sección donde está el cliente: en amarillo, igual que la categoría elegida de la carta */
.nav-links a.on { background: var(--maiz); color: var(--carbon); }
.mnav a.on { color: var(--maiz); }
.nav-track {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: rgba(139, 217, 154, 0.12); color: #9fe3ad;
  font-weight: 800; font-size: 0.9rem; border: 1px solid rgba(139, 217, 154, 0.35);
}
.nav-cart {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 7px 0 18px;
  border-radius: 999px; background: var(--maiz); color: var(--carbon); font-weight: 800;
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease);
}
.nav-cart:hover { background: var(--maiz-2); }
.nav-cart-count {
  min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center;
  background: var(--carbon); color: var(--maiz); font-size: 0.9rem; font-variant-numeric: tabular-nums;
}
.nav-cart.bump { animation: bump 0.6s var(--ease); }
.nav-cart.is-empty .nav-cart-count { display: none; }
.nav-cart.is-empty { padding: 0 18px; }
@keyframes bump { 30% { transform: scale(1.08); } 60% { transform: scale(0.97); } }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ccf78; position: relative; }
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #5ccf78;
  animation: ping 1.8s var(--ease-out) infinite;
}
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.burger { display: none; flex: none; width: 48px; height: 48px; border-radius: 50%; position: relative; background: rgba(244, 241, 238, 0.12); }
.burger span {
  position: absolute; left: 15px; right: 15px; height: 2px; border-radius: 2px; background: var(--on-dark);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: calc(var(--z-nav) - 1);
  background: rgba(43, 43, 43, 0.97);
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: 120px 28px 40px;
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.mnav.open { opacity: 1; }
.mnav nav { display: flex; flex-direction: column; gap: 6px; }
.mnav a, .mnav-foot {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(80ms + var(--d) * 60ms);
}
.mnav a { font: 900 2.6rem/1.1 var(--font); letter-spacing: -0.02em; color: var(--on-dark); padding: 4px 0; }
.mnav a:hover { color: var(--maiz); }
.mnav-foot { color: var(--on-dark-2); font-family: var(--mono); font-size: 0.85rem; }
.mnav.open a, .mnav.open .mnav-foot { opacity: 1; transform: none; }

/* ---------- Hero: panel carbón del manual ("WEB · HERO") ---------- */
.hero { padding: calc(var(--nav-h) + 28px) 0 clamp(28px, 4vw, 48px); overflow-x: clip; }
.hero-panel { position: relative; padding-block: clamp(12px, 3vw, 32px); }
.hero-glow {
  position: absolute; right: -12%; top: -10%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(245, 204, 126, 0.45), transparent 72%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 0.8rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(127, 211, 148, 0.2); }
.hero-title {
  margin: 22px 0 22px;
  font: 900 clamp(3.2rem, 7vw, 6.4rem)/0.98 var(--font); letter-spacing: -0.035em;
  color: var(--acento);
}
.hero-title .hl { color: var(--acento); }
.hero-title, .hero-title .hl { color: var(--maiz); }
.hl { color: var(--acento); }
.hero-sub { max-width: 36ch; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }

/* ---------- Pila de fotos (favoritos) ---------- */
.dish { display: grid; justify-items: center; gap: 10px; min-width: 0; }
.dish-stage { position: relative; width: min(100%, 380px); padding: 26px 22px 16px; }
.deck { position: relative; width: 78%; aspect-ratio: 4 / 5; margin: 0 auto; cursor: pointer; }
.photo {
  --depth: 0;
  position: absolute; inset: 0; margin: 0; padding: 10px;
  background: var(--calido); border-radius: 18px; border: 1.5px solid var(--maiz);
  box-shadow: 0 28px 44px -24px rgba(43, 43, 43, 0.55);
  z-index: calc(10 - var(--depth));
  transform:
    translate(calc(var(--depth) * 15px), calc(var(--depth) * -13px))
    rotate(calc(var(--rot, 0deg) + var(--depth) * 2deg))
    scale(calc(1 - var(--depth) * 0.06));
  transition: transform 0.8s var(--ease), opacity 0.5s var(--ease), filter 0.6s var(--ease);
}
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; border-radius: 10px; }
.photo.back { filter: brightness(0.82) saturate(0.85); }
.photo.gone { opacity: 0; }
.photo.toss { transform: translate(-58%, 26px) rotate(-14deg) scale(0.94); transition: transform 0.42s var(--ease-out); }
.photo.from-left { transform: translate(-58%, 26px) rotate(-14deg) scale(0.94); transition: none; }
.dish-stage:hover .photo.front:not(.toss) { transform: translateY(-6px) rotate(var(--rot, 0deg)); }
.dish-sticker {
  position: absolute; top: 0; right: 0; z-index: 12;
  width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--carbon); color: var(--maiz); border: 1.5px solid var(--maiz); transform: rotate(12deg);
  font: 900 0.86rem/1.08 var(--font);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.7);
}
.dish-nav {
  position: absolute; top: 50%; z-index: 12; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--carbon); border: 1.5px solid var(--maiz); color: var(--maiz);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease);
}
.dish-nav:hover { background: var(--maiz); color: var(--carbon); }
.dish-nav:active { transform: scale(0.94); }
.dish-controls { display: flex; align-items: center; justify-content: center; gap: 8px; }
.dish-controls .dish-nav { position: static; margin: 0; width: 48px; height: 48px; }
.deck:focus-visible { outline: 3px solid var(--maiz); outline-offset: 8px; border-radius: 22px; }
.deck-hint {
  position: absolute; left: 50%; bottom: 2px; z-index: 12; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; pointer-events: none;
  padding: 8px 14px; border-radius: 999px; background: var(--carbon); color: var(--maiz);
  border: 1.5px solid var(--maiz); font-weight: 800; font-size: 0.85rem;
  box-shadow: 0 10px 24px -12px rgba(43, 43, 43, 0.7);
}
.deck-hint .i { width: 1em; height: 1em; }
.photo.pop { animation: pop 0.45s var(--ease-out); }
@keyframes pop { 30% { scale: 1.04; } 100% { scale: 1; } }
.dish-info { display: grid; justify-items: center; gap: 10px; text-align: center; width: min(100%, 440px); }
.dish-badge {
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--maiz); background: var(--surface); color: var(--acento);
  font: 400 0.72rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
}
.dish-name { font: 900 clamp(1.9rem, 3vw, 2.6rem)/1 var(--font); letter-spacing: -0.02em; color: var(--ink); }
.dish-desc { color: var(--ink-2); min-height: 3.2em; max-width: 40ch; }
.dish-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 4px; }
.dish-price { font: 900 2.2rem/1 var(--font); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.dish-info .fade { opacity: 0; transform: translateY(8px); }
.dish-badge, .dish-name, .dish-desc, .dish-price { transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); }
.dish-dots { display: flex; gap: 0; }
.dish-dots button { width: 44px; height: 44px; display: grid; place-items: center; }
.dish-dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(244, 241, 238, 0.28);
  transition: width 0.4s var(--ease), background-color 0.3s var(--ease);
}
.dish-dots button[aria-current="true"]::before { width: 28px; background: var(--maiz); }

/* ---------- Datos ---------- */
.stats { padding-block: 0 clamp(28px, 4vw, 48px); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1.5px solid var(--maiz); }
.stat { display: grid; align-content: start; gap: 6px; padding: 28px 18px; text-align: center; border-left: 1.5px solid var(--maiz); }
.stat:first-child { border-left: 0; }
.stat b { font: 900 clamp(2.2rem, 3.6vw, 3.1rem)/1 var(--font); letter-spacing: -0.03em; color: var(--acento); }
.stat b small { font-size: 0.42em; margin-left: 4px; letter-spacing: 0; color: var(--ink); }
.stat span { color: var(--ink-2); font-size: 0.93rem; }

/* ---------- Franja inclinada ---------- */
.band { position: relative; height: clamp(140px, 15vw, 180px); overflow: hidden; }
.band-strip { position: absolute; left: -6%; width: 112%; top: 50%; padding: 14px 0; overflow: hidden; }
.band-front {
  z-index: 2; background: var(--carbon); color: var(--maiz);
  border-block: 1.5px solid var(--maiz);
  transform: translateY(-50%) rotate(-2.4deg);
}
.band-back { background: var(--maiz); color: var(--carbon); transform: translateY(-50%) rotate(2.4deg); }
.band-track { display: flex; align-items: center; gap: 26px; width: max-content; animation: marquee 42s linear infinite; }
.band-back .band-track { animation-duration: 60s; animation-direction: reverse; }
.band span { font: 900 clamp(1.3rem, 2.1vw, 1.8rem)/1 var(--font); letter-spacing: -0.01em; white-space: nowrap; }
.band-front .i { width: 1.5rem; height: 1.5rem; color: var(--maiz); }
.band-back i { width: 10px; height: 10px; border-radius: 50%; background: var(--rojo); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 9vw, 120px) clamp(72px, 10vw, 130px); position: relative; }
.sec-head { display: grid; justify-items: start; gap: 16px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 760px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; max-width: none; flex-wrap: wrap; }
.sec-head-row > div { display: grid; justify-items: start; gap: 16px; }
.section h2 { font: 900 clamp(2.4rem, 5vw, 4.2rem)/1 var(--font); letter-spacing: -0.035em; color: var(--ink); }
.sec-sub { color: var(--ink-2); max-width: 54ch; font-size: 1.08rem; }

/* ---------- Tarjeta de producto ---------- */
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0; cursor: pointer;
  padding: 7px; border-radius: var(--r-lg);
  background: var(--surface); border: 1.5px solid var(--maiz);
  transition: transform 0.6s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { position: relative; border-radius: calc(var(--r-lg) - 7px); overflow: hidden; background: var(--surface-2); }
.card-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.flag {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px 6px 8px; border-radius: 8px; background: var(--rojo); color: var(--calido);
  font: 700 0.68rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
}
.flag .i { width: 1em; height: 1em; }
.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 10px 8px; }
.card h3 { font: 900 1.3rem/1.1 var(--font); letter-spacing: -0.02em; }
.card-link { text-align: left; font: inherit; letter-spacing: inherit; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.card-desc {
  color: var(--muted); font-size: 0.92rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.price { font: 900 1.4rem/1 var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.add {
  position: relative; z-index: 1;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--maiz); color: var(--carbon);
  transition: transform 0.45s var(--ease), background-color 0.3s var(--ease);
}
.add .i { width: 1.3em; height: 1.3em; }
.add:hover { background: var(--maiz-2); transform: rotate(90deg); }
.add:active { transform: scale(0.92); }
.add.added { background: var(--ok); color: var(--carbon); transform: rotate(180deg); }

/* ---------- Bento "Lo más pedido" ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bento .card-hero { grid-column: span 2; grid-row: span 2; background: var(--realce); }
.bento .card-hero .card-img { flex: 1; }
.bento .card-hero .card-img img { height: 100%; aspect-ratio: auto; min-height: 420px; }
.bento .card-hero h3 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.bento .card-hero .card-desc { -webkit-line-clamp: 3; font-size: 1rem; max-width: 46ch; color: var(--ink-2); }
.bento .card-hero .price { font-size: 2rem; }
.bento .card-hero .card-body { flex: 0 0 auto; padding: 18px 14px 12px; }

/* ---------- Cómo funciona (panel amarillo pastel) ---------- */
.how-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  background: var(--realce); border: 1.5px solid var(--maiz); border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 64px);
}
.how-copy { display: grid; gap: 20px; min-width: 0; }
.how h2 .hl { color: var(--acento); }
.how-steps { display: grid; gap: 22px; margin-top: 12px; }
.how-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.how-n {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--maiz); border: 1.5px solid var(--maiz); color: var(--carbon); font: 700 1.1rem/1 var(--mono);
}
.how-steps h3 { font: 900 1.25rem/1.15 var(--font); letter-spacing: -0.01em; margin-bottom: 4px; }
.how-steps p { color: var(--ink-2); max-width: 46ch; }

.tracker-demo { min-width: 0; }
.tracker-core { background: var(--carbon); color: var(--on-dark); padding: clamp(22px, 3vw, 30px); }
.td-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid rgba(244, 241, 238, 0.12); }
.td-label { display: block; font: 400 0.72rem/1.4 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--maiz); }
.td-code { font: 900 1.6rem/1.1 var(--font); letter-spacing: 0.01em; }
.td-live { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 0.9rem; color: #9fe3ad; }
.td-steps { position: relative; display: grid; gap: 4px; padding: 18px 0 8px; }
.td-steps li {
  position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px;
  padding: 9px 0; color: rgba(244, 241, 238, 0.55);
}
.td-steps li .i {
  width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--carbon-2); border: 1px solid rgba(244, 241, 238, 0.12);
}
.td-steps li::before { content: ""; position: absolute; left: 19.5px; top: -6px; height: 14px; width: 1px; background: rgba(244, 241, 238, 0.2); }
.td-steps li:first-child::before { display: none; }
.td-steps time { font: 400 0.8rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.td-steps .done { color: var(--on-dark); }
.td-steps .done .i { background: rgba(245, 204, 126, 0.14); color: var(--maiz); border-color: rgba(245, 204, 126, 0.35); }
.td-steps .now { color: var(--on-dark); font-weight: 800; }
.td-steps .now .i { background: var(--maiz); color: var(--carbon); border-color: var(--maiz); box-shadow: 0 0 0 6px rgba(245, 204, 126, 0.16); animation: glow 2.2s var(--ease) infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 11px rgba(245, 204, 126, 0.06); } }
.td-foot { padding-top: 14px; border-top: 1px solid rgba(244, 241, 238, 0.12); font-size: 0.85rem; color: var(--on-dark-2); }

/* ---------- Carta ---------- */
.search { position: relative; display: flex; align-items: center; width: min(420px, 100%); }
.search .i { position: absolute; left: 20px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 54px; padding: 0 22px 0 52px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--maiz); font-size: 1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--maiz); box-shadow: 0 0 0 3px rgba(245, 204, 126, 0.6); }

.cats-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); z-index: 20; margin-bottom: 30px; }
.cats {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px;
  border-radius: 999px; background: #1d1c1b; border: 1.5px solid var(--maiz);
  box-shadow: 0 16px 30px -18px rgba(43, 43, 43, 0.7);
  width: max-content; max-width: 100%;
}
.cats::-webkit-scrollbar { display: none; }
.cats.dim { opacity: 0.75; }
.cat {
  flex: none; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 999px;
  font-weight: 800; font-size: 0.95rem; color: var(--on-dark); white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.cat:hover { background: rgba(244, 241, 238, 0.1); }
.cat.on { background: var(--calido); color: var(--carbon); box-shadow: inset 0 0 0 2px var(--maiz); }
.cat-emoji { font-size: 1.2rem; line-height: 1; }

.menu-groups { display: grid; gap: clamp(52px, 6vw, 80px); }
.group { scroll-margin-top: 170px; }
.group-title {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px;
  font: 900 clamp(1.8rem, 3vw, 2.4rem)/1 var(--font); letter-spacing: -0.03em;
}
.group-title .group-count { font: 400 0.85rem/1 var(--mono); color: var(--acento); letter-spacing: 0.08em; }
.group-emoji { font-size: 0.8em; align-self: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.no-results { display: grid; justify-items: start; gap: 16px; padding: 40px 0; color: var(--ink-2); font-size: 1.1rem; }

/* ---------- Sedes ---------- */
.sedes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sede {
  display: grid; gap: 12px; align-content: start; padding: 22px 20px 16px;
  border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--maiz);
}
.sede-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sede h3 { font: 900 1.5rem/1.05 var(--font); letter-spacing: -0.02em; }
.sede-dir, .sede-hora { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 0.95rem; }
.sede-dir .i, .sede-hora .i { color: var(--acento); margin-top: 2px; }
.sede .link-cta { margin-top: 2px; }
.badge {
  padding: 6px 10px; border-radius: 8px; font: 700 0.66rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
}
.badge.ok { background: rgba(127, 211, 148, 0.14); color: var(--ok); }
.badge.off { background: var(--surface-2); color: var(--muted); }

/* ---------- CTA final (panel carbón) ---------- */
.final { padding-block: 0 clamp(72px, 10vw, 120px); }
.final-in {
  position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 20px;
  background: var(--carbon); color: var(--on-dark); border-radius: var(--r-xl); border: 1.5px solid var(--maiz);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
}
.final-in::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(245, 204, 126, 0.14), transparent 70%); pointer-events: none;
}
.final-in > * { position: relative; }
.final h2 { font-size: clamp(2.8rem, 7vw, 5.6rem); color: var(--maiz); }
.final p { color: var(--on-dark-2); max-width: 44ch; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--carbon); color: var(--on-dark); padding: 60px 0 calc(110px + env(safe-area-inset-bottom, 0px)); border-top: 1.5px solid var(--maiz); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand img { width: 196px; height: auto; }
.footer-brand p { color: var(--on-dark-2); max-width: 34ch; }
.social { display: flex; gap: 10px; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(245, 204, 126, 0.5); color: var(--on-dark); transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.social a:hover { color: var(--maiz); border-color: var(--maiz); }
.footer-col { display: grid; gap: 2px; align-content: start; }
.footer-col h4 { font: 400 0.75rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--maiz); margin-bottom: 12px; }
.footer-col a { color: var(--on-dark-2); padding: 8px 0; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--maiz); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(244, 241, 238, 0.14); color: var(--on-dark-2); font: 400 0.82rem/1.4 var(--mono); }
.footer-pay { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Barra flotante del pedido ---------- */
.cart-bar {
  position: fixed; z-index: var(--z-bar); left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  transform: translate(-50%, 160%);
  display: flex; align-items: center; gap: 14px; width: min(440px, calc(100% - 32px));
  min-height: 64px; padding: 8px 22px 8px 8px; border-radius: 999px;
  background: var(--carbon); color: var(--on-dark); font-weight: 800; border: 1.5px solid var(--maiz);
  box-shadow: 0 20px 50px -16px rgba(43, 43, 43, 0.75);
  transition: transform 0.7s var(--ease);
}
.cart-bar.show { transform: translate(-50%, 0); }
.cart-bar-n {
  min-width: 48px; height: 48px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center;
  background: var(--maiz); color: var(--carbon); font: 900 1.2rem/1 var(--font);
}
.cart-bar-txt { flex: 1; text-align: left; }
.cart-bar-total { font: 900 1.35rem/1 var(--font); color: var(--maiz); font-variant-numeric: tabular-nums; }
.cart-bar.is-empty .cart-bar-total { font-size: 1rem; font-weight: 800; }

/* ---------- WhatsApp del chatbot ---------- */
.wa-float {
  position: fixed; z-index: var(--z-bar); right: 18px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #128c4a; color: #fff;
  box-shadow: 0 18px 36px -14px rgba(43, 43, 43, 0.6), 0 0 0 4px rgba(18, 140, 74, 0.18);
  transition: transform 0.6s var(--ease), bottom 0.6s var(--ease), background-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.wa-float .i { width: 32px; height: 32px; }
.wa-float-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wa-float:hover { background: #0f7a40; transform: translateY(-2px); }
body.has-cart .wa-float { bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); }
body.lock .wa-float { opacity: 0; pointer-events: none; }

/* ---------- Portada: domicilio o recoger ---------- */
.hero-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; max-width: 460px; }
.mode {
  display: flex; align-items: center; gap: 12px; text-align: left; min-height: 64px; padding: 10px 14px;
  border-radius: 16px; background: var(--surface); border: 1.5px solid var(--maiz);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.mode:hover { background: var(--realce); }
.mode:active { transform: scale(0.98); }
.mode[aria-pressed="true"] { border-color: var(--maiz); background: var(--realce); box-shadow: inset 0 0 0 1px var(--maiz); }
.mode .i { width: 28px; height: 28px; color: var(--acento); }
.mode span { display: grid; gap: 2px; min-width: 0; }
.mode b { font-weight: 900; font-size: 1rem; }
.mode small { font: 400 0.72rem/1.3 var(--mono); color: var(--muted); }

/* ---------- Repetir el último pedido ---------- */
.repeat {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; max-width: 460px;
  padding: 12px 12px 12px 18px; border-radius: 18px; background: var(--realce); border: 1.5px solid var(--maiz);
}
.repeat-txt { display: grid; gap: 2px; min-width: 0; }
.repeat-label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acento); }
.repeat-txt b { font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repeat-txt small { color: var(--ink-2); font-size: 0.86rem; }
.repeat .btn { min-height: 46px; padding: 0 20px; flex: none; }

/* ---------- ¿Cuál es el plan hoy? ---------- */
.sec-head-row > .plan-tabs, .plan-tabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--carbon); border: 1.5px solid var(--maiz); flex-wrap: wrap; }
.plan-tab {
  min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 800; font-size: 0.95rem; color: var(--on-dark);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.plan-tab:hover { background: rgba(244, 241, 238, 0.1); }
.plan-tab[aria-selected="true"] { background: var(--maiz); color: var(--carbon); }
.plan-card {
  display: grid; grid-template-columns: 0.9fr 1.1fr; overflow: hidden;
  background: var(--maiz); color: var(--carbon); border-radius: var(--r-xl); border: 1.5px solid var(--carbon);
}
.plan-card .plan-img, .plan-card .plan-copy { transition: opacity 0.18s var(--ease), transform 0.4s var(--ease); }
.plan-card.swap .plan-img, .plan-card.swap .plan-copy { opacity: 0; transform: translateY(8px); }
.plan-img { position: relative; min-height: 380px; background: var(--realce); }
.plan-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; }
.plan-copy { display: grid; align-content: center; gap: 16px; padding: clamp(26px, 5vw, 60px); }
.plan-copy h3 { font: 900 clamp(2rem, 4vw, 3.4rem)/1 var(--font); letter-spacing: -0.035em; }
.plan-items { display: grid; gap: 8px; padding: 14px 0; border-block: 1.5px dashed rgba(43, 43, 43, 0.3); }
.plan-items li { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.plan-items b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.plan-price { display: grid; gap: 2px; }
.plan-price b { font: 900 2.6rem/1 var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 0.9rem; color: #3a3226; }

/* ---------- Instagram ---------- */
.insta-band { padding-block: 0 clamp(56px, 8vw, 96px); }
.insta {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 28px;
  padding: clamp(22px, 4vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1.5px solid var(--maiz);
}
.insta-ico { width: 56px; height: 56px; padding: 12px; border-radius: 18px; background: var(--rojo); color: var(--calido); }
.insta-copy { display: grid; gap: 6px; min-width: 0; }
.insta h2 { font: 900 clamp(1.4rem, 2.4vw, 2rem)/1.1 var(--font); letter-spacing: -0.025em; }
.insta p { color: var(--ink-2); max-width: 52ch; }

/* ---------- Punto que viaja al carrito ---------- */
.fly-dot {
  position: fixed; z-index: var(--z-toast); width: 18px; height: 18px; border-radius: 50%;
  background: var(--maiz); border: 2px solid var(--carbon); pointer-events: none;
}

/* ---------- Tira de categorías (portada) ---------- */
.cat-strip { padding-block: 0 clamp(28px, 4vw, 44px); }
.cat-strip-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: 10px;
  overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px;
}
.cat-strip-row::-webkit-scrollbar { display: none; }
.strip-item {
  display: grid; justify-items: center; gap: 8px; padding: 12px 8px; border-radius: 18px; text-align: center;
  background: var(--surface); border: 1.5px solid var(--maiz);
  transition: background-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.strip-item:hover { background: var(--realce); transform: translateY(-2px); }
.strip-img { width: 68px; height: 68px; border-radius: 50%; overflow: hidden; border: 2px solid var(--carbon); background: var(--surface-2); }
.strip-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.strip-name { font-weight: 800; font-size: 0.9rem; line-height: 1.15; }

/* ---------- Tamaños: personal y grande lado a lado ---------- */
.pair {
  grid-column: span 2; display: grid; gap: 12px; padding: 12px; border-radius: calc(var(--r-lg) + 6px);
  background: var(--realce); border: 1.5px solid var(--maiz);
}
.pair-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 2px 6px 0; }
.pair-head h4 { font: 900 1.2rem/1.1 var(--font); letter-spacing: -0.01em; }
.pair-head span { font: 400 0.72rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--acento); white-space: nowrap; }
.pair-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.size-tag {
  position: absolute; left: 8px; bottom: 8px; display: grid; gap: 1px; padding: 7px 10px; border-radius: 10px;
  font-size: 0.78rem; line-height: 1.1; box-shadow: 0 6px 16px -8px rgba(43, 43, 43, 0.6);
}
.size-tag b { font-weight: 900; font-size: 0.95rem; }
.size-p { background: var(--calido); color: var(--carbon); border: 1.5px solid var(--maiz); }
.size-g { background: var(--carbon); color: var(--maiz); border: 1.5px solid var(--maiz); }

/* ---------- Sedes: estado primero ---------- */
.sede-status { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; }
.sede-status b { display: block; font-weight: 900; font-size: 1.05rem; }
.sede-status small { font-size: 0.88rem; }
.sede-status.ok { background: rgba(127, 211, 148, 0.13); color: #c5efcf; border: 1px solid rgba(127, 211, 148, 0.3); }
.sede-status.off { background: var(--surface-2); color: var(--ink-2); }
.sede-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--muted); }
.sede-status.ok .sede-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(127, 211, 148, 0.22); }
.sede-map { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.sede-map .i { width: 1em; height: 1em; }
.sede-map:hover { color: var(--acento); }

/* ---------- Carrito: vaciar, sugerencias, revisión y errores ---------- */
.clear-cart {
  justify-self: end; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px;
  font-weight: 700; font-size: 0.9rem; color: var(--muted);
}
.clear-cart .i { width: 1em; height: 1em; }
.clear-cart:hover { color: var(--error); }
.upsell { padding: 16px; border-radius: 18px; background: var(--realce); border: 2px solid var(--maiz); }
.upsell-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.upsell-head > .i { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--rojo); color: var(--calido); flex: none; }
.upsell-head h4 { font: 900 1.2rem/1.15 var(--font); letter-spacing: -0.01em; color: var(--ink); text-transform: none; margin: 0; }
.upsell-head p { font-size: 0.88rem; color: var(--ink-2); }
.up-add {
  display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 999px;
  background: var(--carbon); color: var(--maiz); font: normal 800 0.85rem/1 var(--font);
}
.up-add .i { width: 1em; height: 1em; }
.review { display: grid; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--maiz); }
.review-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.review-row + .review-row { border-top: 1px solid var(--line-2); }
.review-row > div { display: grid; gap: 2px; min-width: 0; }
.review-label { font: 400 0.7rem/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.review-row b { font-weight: 800; overflow-wrap: anywhere; }
.review-edit { min-height: 44px; padding: 0 6px; font-weight: 800; color: var(--acento); text-decoration: underline; text-underline-offset: 3px; flex: none; }
.field-err { display: flex; align-items: flex-start; gap: 8px; margin-top: 2px; color: var(--error); font-weight: 700; font-size: 0.9rem; }
.field-err .i { width: 1.1em; height: 1.1em; margin-top: 2px; }

/* ---------- Ficha de producto ---------- */
.sheet { position: fixed; inset: 0; z-index: var(--z-sheet); display: grid; place-items: center; padding: 24px; }
.sheet-scrim, .drawer-scrim {
  position: absolute; inset: 0; background: rgba(43, 43, 43, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.sheet.open .sheet-scrim, .drawer.open .drawer-scrim { opacity: 1; }
.sheet-panel {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(920px, 100%); max-height: calc(100dvh - 48px);
  border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1.5px solid var(--maiz); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(30px) scale(0.98); transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}
.sheet.open .sheet-panel { opacity: 1; transform: none; }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.sheet-img { background: var(--surface-2); min-height: 0; }
.sheet-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.sheet-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 4vw, 44px); overflow-y: auto; }
.sheet-cat { font: 400 0.75rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--acento); }
.sheet-body h3 { font: 900 clamp(2rem, 3.4vw, 2.8rem)/1 var(--font); letter-spacing: -0.03em; }
.sheet-desc { color: var(--ink-2); font-size: 1.04rem; }
.sheet-foot { display: grid; gap: 14px; margin-top: auto; padding-top: 18px; }

.stepper {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--surface-2); border: 1.5px solid var(--maiz); width: max-content;
}
.stepper button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: background-color 0.3s var(--ease); }
.stepper button:hover { background: var(--realce); }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper output { min-width: 28px; text-align: center; font: 900 1.2rem/1 var(--font); font-variant-numeric: tabular-nums; }
.stepper.sm output { min-width: 22px; font-size: 1.05rem; }

/* ---------- Drawer del pedido ---------- */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%);
  display: flex; flex-direction: column; background: var(--bg); border-left: 1.5px solid var(--maiz);
  transform: translateX(100%); transition: transform 0.6s var(--ease);
  padding-top: env(safe-area-inset-top, 0px);
}
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px 22px; border-bottom: 1.5px solid var(--maiz); background: var(--surface); }
.drawer-title { flex: 1; display: grid; gap: 8px; min-width: 0; }
.drawer-title h2 { font: 900 1.6rem/1.05 var(--font); letter-spacing: -0.02em; }
.steps-dots { display: flex; gap: 6px; }
.steps-dots li { width: 28px; height: 4px; border-radius: 4px; background: var(--line-2); transition: background-color 0.4s var(--ease); }
.steps-dots li.on { background: var(--maiz); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px 24px; overscroll-behavior: contain; }
.step { display: grid; gap: 18px; }

.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.line img { width: 64px; height: 80px; object-fit: cover; border-radius: 12px; }
.line-info { min-width: 0; }
.line-info h4 { font: 900 1.05rem/1.15 var(--font); }
.line-info span { font-size: 0.86rem; color: var(--muted); }
.line-right { display: grid; justify-items: end; gap: 6px; }
.line-right b { font: 900 1.05rem/1 var(--font); font-variant-numeric: tabular-nums; }

.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 48px 12px; }
.empty-ico { width: 56px; height: 56px; color: var(--acento); }
.empty h3 { font: 900 1.6rem/1.05 var(--font); }
.empty p { color: var(--muted); margin-bottom: 8px; }

.upsell-row { display: grid; gap: 8px; }
.up {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; text-align: left;
  padding: 8px 14px 8px 8px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--maiz);
  transition: background-color 0.3s var(--ease);
}
.up:hover { background: var(--realce); }
.up img { width: 44px; height: 55px; object-fit: cover; border-radius: 9px; }
.up span { display: grid; min-width: 0; }
.up b { font-size: 0.95rem; }
.up small { color: var(--muted); }
.up { border-color: var(--maiz); background: var(--surface); }
.up.added { border-color: var(--ok); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; margin: 0; border: 1.5px solid var(--maiz); border-radius: 18px; background: var(--surface); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 13px;
  font-weight: 800; color: var(--ink-2); cursor: pointer; transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.seg input:checked + span { background: var(--carbon); color: var(--maiz); }
.seg input:focus-visible + span { outline: 2px solid var(--maiz); outline-offset: 2px; }

.fields { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 800; font-size: 0.95rem; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.help { font-size: 0.86rem; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px; font-size: 1rem;
  background: var(--surface); border: 1.5px solid var(--maiz);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 76px; }
.field input::placeholder, .field textarea::placeholder { color: #8f887d; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--maiz); box-shadow: 0 0 0 3px rgba(245, 204, 126, 0.6); }
.bad, .field input.bad { border-color: var(--error) !important; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 0.93rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--maiz); }
.check a { color: var(--acento); text-decoration: underline; text-underline-offset: 3px; }

.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 0.95rem; }
.note .i { margin-top: 2px; }
.note-ok { background: rgba(127, 211, 148, 0.12); color: #c5efcf; border: 1.5px solid rgba(127, 211, 148, 0.35); }
.note-ok .i { color: var(--ok); }
.note-warn { background: var(--realce); color: #f6dcb6; border: 1.5px solid var(--maiz); }
.note-warn .i { color: var(--warn); }
.note-bad { background: rgba(255, 138, 125, 0.1); color: #ffcfc8; border: 1.5px solid rgba(255, 138, 125, 0.4); }
.note-bad .i { color: var(--error); }

.sede-pick { display: grid; gap: 8px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick-body {
  display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--maiz);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.pick-body b { font: 900 1.1rem/1.2 var(--font); }
.pick-body small { color: var(--ink-2); }
.pick-body em { font-style: normal; font-size: 0.85rem; }
.pick-body em.ok { color: var(--ok); }
.pick-body em.off { color: var(--muted); }
.pick input:checked + .pick-body { border-color: var(--maiz); background: var(--realce); box-shadow: inset 0 0 0 1px var(--maiz); }
.pick input:focus-visible + .pick-body { outline: 2px solid var(--maiz); outline-offset: 2px; }
.pick.closed { cursor: not-allowed; opacity: 0.55; }

.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-methods span {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px;
  background: var(--surface); border: 1.5px solid var(--maiz); font-size: 0.86rem; font-weight: 800; color: var(--ink-2);
}
.pay-methods .pay-by { margin-left: auto; color: var(--ok); border-color: rgba(127, 211, 148, 0.4); }

.form-err { margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 138, 125, 0.1); border: 1.5px solid rgba(255, 138, 125, 0.4); color: #ffcfc8; font-size: 0.95rem; }

.drawer-foot { padding: 16px 22px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1.5px solid var(--maiz); background: var(--surface); display: grid; gap: 14px; }
.totals { margin: 0; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; color: var(--ink-2); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.totals small { color: var(--muted); }
.totals .total { margin-top: 4px; padding-top: 10px; border-top: 1.5px dashed var(--maiz); color: var(--ink); }
.totals .total dt { font-weight: 800; }
.totals .total dd { font: 900 1.5rem/1 var(--font); }

/* ---------- Pago simulado ---------- */
.paydemo { position: fixed; inset: 0; z-index: var(--z-pay); display: grid; place-items: center; padding: 20px; background: rgba(43, 43, 43, 0.6); opacity: 0; transition: opacity 0.3s var(--ease); }
.paydemo.open { opacity: 1; }
.paydemo-card {
  width: min(460px, 100%); display: grid; gap: 16px; padding: 30px; border-radius: var(--r-xl);
  background: var(--surface); border: 1.5px solid var(--maiz); box-shadow: var(--shadow);
}
.paydemo-card .pill { justify-self: start; }
.paydemo-card h2 { font: 900 1.7rem/1.05 var(--font); letter-spacing: -0.02em; }
.paydemo-card p { color: var(--ink-2); }
.paydemo-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-block: 1.5px solid var(--maiz); }
.paydemo-total b { font: 900 1.8rem/1 var(--font); color: var(--ink); }
.paydemo-actions { display: grid; gap: 10px; }

/* ---------- Aviso ---------- */
.toast {
  position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: var(--carbon); color: var(--on-dark); border: 1.5px solid var(--maiz);
  font-weight: 800; font-size: 0.95rem; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center;
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.has-action { width: min(440px, calc(100% - 32px)); text-align: left; }
.toast.has-action.show { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 8px 8px 20px; }
.toast-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--maiz); color: var(--carbon); font-weight: 900; }
body.has-cart .toast { bottom: calc(env(safe-area-inset-bottom, 0px) + 170px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .sedes { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: block; }

  .hero { padding-top: calc(var(--nav-h) + 32px); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .dish-stage { width: min(100%, 400px); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1.5px solid var(--maiz); }

  .how-grid { grid-template-columns: 1fr; }
  .plan-card { grid-template-columns: 1fr; }
  .plan-img { min-height: 280px; }
  .insta { grid-template-columns: auto 1fr; }
  .insta .btn { grid-column: 1 / -1; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .sheet { padding: 0; place-items: end stretch; }
  .sheet-panel {
    grid-template-columns: 1fr; width: 100%; max-height: 92dvh; border-radius: var(--r-xl) var(--r-xl) 0 0;
    transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .sheet-img img { aspect-ratio: 16 / 11; }
  .sheet-body { padding: 22px 20px 20px; }
}

@media (max-width: 640px) {
  .nav { top: calc(env(safe-area-inset-top, 0px) + 10px); }
  .nav-shell { padding-left: 14px; gap: 6px; }
  .nav-logo img { height: 28px; }
  .nav-cart:not(.is-empty) .nav-cart-txt { display: none; }
  .nav-track:not([hidden]) ~ .nav-cart .nav-cart-txt { display: none; }
  .nav-track:not([hidden]) ~ .nav-cart.is-empty { padding: 0 14px; }
  .nav-logo { min-width: 0; flex-shrink: 1; }
  .nav-logo img { max-width: 100%; }
  .nav-cart { padding: 0 6px 0 12px; gap: 8px; }
  .nav-track { padding: 0 12px; font-size: 0.82rem; }
  .nav-track span:last-child { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .hero-panel { padding-block: 8px 0; }
  .hero-title { font-size: clamp(2.9rem, 13vw, 3.8rem); }
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.1em; }
  .hero-cta .btn-maiz { flex: 1; justify-content: space-between; }
  .dish-sticker { width: 80px; height: 80px; font-size: 0.72rem; }
  .dish-stage { padding: 26px 18px 10px; }
  .dish-nav { width: 46px; height: 46px; margin-top: -23px; }
  .dish-prev { left: -8px; }
  .dish-next { right: -8px; }
  .stat { padding: 22px 10px; }
  .stat span { font-size: 0.86rem; }
  .wa-float { right: 16px; }

  /* "Lo más pedido" como carrusel horizontal */
  .bento {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); padding-inline: clamp(16px, 4vw, 40px); scroll-padding-inline: clamp(16px, 4vw, 40px); scrollbar-width: none;
  }
  .bento::-webkit-scrollbar { display: none; }
  .bento .card { flex: 0 0 76%; scroll-snap-align: start; }
  .bento .card-hero .card-img img { min-height: 0; aspect-ratio: 4 / 5; }
  .bento .card-hero h3 { font-size: 1.3rem; }
  .bento .card-hero .price { font-size: 1.4rem; }
  .bento .card-hero .card-desc { -webkit-line-clamp: 2; font-size: 0.92rem; }

  .how-grid { padding: 26px 18px; border-radius: 1.5rem; }
  .sec-head-row > .plan-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .plan-tab { padding: 0 6px; font-size: 0.84rem; line-height: 1.1; text-align: center; }
  .plan-card { border-radius: 1.5rem; }
  .plan-foot .btn { flex: 1; justify-content: space-between; }
  .hero-modes { max-width: none; }
  .repeat { max-width: none; }
  .insta { border-radius: 1.5rem; }
  .cats-bar { top: calc(env(safe-area-inset-top, 0px) + 80px); }

  /* Carta como lista: más rápida de recorrer en el celular */
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .menu .card { flex-direction: row; gap: 4px; padding: 5px; border-radius: 18px; }
  .menu .card:hover { transform: none; box-shadow: none; }
  .menu .card-img { width: 104px; flex: none; border-radius: 13px; }
  .menu .card-img img { height: 100%; aspect-ratio: auto; min-height: 128px; }
  .menu .flag { top: 6px; left: 6px; padding: 4px 6px; font-size: 0.6rem; }
  .menu .card-body { padding: 8px 6px 4px 10px; gap: 4px; }
  .menu .card h3 { font-size: 1.1rem; }
  .menu .card-desc { font-size: 0.86rem; }
  .menu .card-link::after { border-radius: 18px; }
  .menu .price { font-size: 1.2rem; }
  .menu .add { width: 44px; height: 44px; }

  .sedes { grid-template-columns: 1fr; }
  .final-in { border-radius: 1.5rem; }
  .pair { grid-column: auto; padding: 10px; }
  .pair-cards { grid-template-columns: 1fr; gap: 8px; }
  .menu .size-tag { left: 4px; right: 4px; bottom: 4px; padding: 5px 6px; font-size: 0.7rem; }
  .menu .size-tag b { font-size: 0.82rem; }
  .cat-strip-row { grid-auto-columns: 92px; }
  .footer-grid { grid-template-columns: 1fr; }
  .mnav a { font-size: 2.2rem; }
}

/* Movimiento reducido: sin desplazamientos, zooms ni bucles; se mantienen fundidos cortos y cambios de color */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity 0.4s ease; }
  .hero .reveal { animation: fade 0.5s ease both; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .band-track { animation: none; }
  .photo.toss, .photo.from-left { transform: none; opacity: 0; }
  .live-dot::after, .td-steps .now .i, .btn.loading { animation: none; }
  .card:hover, .card:hover .card-img img { transform: none; }
  .mnav a, .mnav-foot { transform: none; }
}
