/* ==========================================================================
   LEGAOS FOOD — hoja de estilos
   Dirección de arte tomada del PDF de la carta:
     rojo puro #FE0000 · negro brochazo · papel hueso · ajedrez de diner
   ========================================================================== */

/* --------------------------------------------------------------- 1. TOKENS */
:root {
  /* Tinta y papel */
  --ink:        #0B0B0C;   /* negro de las bandas de la carta */
  --ink-2:      #141417;
  --ink-3:      #1E1E22;
  --bone:       #FAF6EE;   /* papel cálido */
  --bone-2:     #F2ECE0;
  --bone-3:     #E7DFCF;

  /* Rojo de marca — muestreado del logotipo del PDF.
     Se usa tal cual para tipografía grande, filos y ornamentos.
     Para superficies con texto blanco encima hace falta --red-solid: el rojo
     puro solo da 4,03:1 con blanco y no llega al 4,5:1 que pide AA. */
  --red:        #FE0000;
  --red-solid:  #DF0000;   /* 5,1:1 con blanco → botones y píldoras */
  --red-deep:   #C8100A;   /* 5,5:1 sobre hueso → texto pequeño en claro */
  --red-glow:   #FF2B1E;
  --red-dark:   #8E0B06;

  --amber:      #F0A500;

  /* Texto */
  --tx:         #16161A;   /* cuerpo sobre hueso */
  --tx-soft:    #55555F;   /* 7,0:1 sobre hueso */
  --tx-inv:     #F6F2EA;   /* cuerpo sobre tinta */
  --tx-inv-soft:#A9A6A0;   /* 7,2:1 sobre tinta */

  /* Superficies */
  --card:       #FFFFFF;
  --line:       #DED6C6;
  --line-dark:  #2C2C31;

  /* Tipografía */
  --f-display: 'Anton', 'Arial Narrow', 'Haettenschweiler', sans-serif;
  --f-text:    'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Escala fluida */
  --t-hero:  clamp(2.75rem, 1.2rem + 7.6vw, 7.5rem);
  --t-h2:    clamp(2rem,   1.15rem + 4.2vw, 4.25rem);
  --t-h3:    clamp(1.35rem, 1.05rem + 1.5vw, 2rem);
  --t-lead:  clamp(1.02rem, 0.96rem + 0.35vw, 1.2rem);
  --t-body:  1rem;
  --t-small: 0.875rem;
  --t-micro: 0.75rem;

  /* Ritmo */
  --sp-1: 0.5rem;  --sp-2: 0.875rem; --sp-3: 1.25rem; --sp-4: 2rem;
  --sp-5: 3rem;    --sp-6: 4.5rem;   --sp-7: 7rem;
  --gut: clamp(1.15rem, 0.6rem + 2.4vw, 3rem);
  --maxw: 1280px;

  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 30px;

  --sh-1: 0 1px 2px rgba(11,11,12,.06), 0 4px 14px rgba(11,11,12,.05);
  --sh-2: 0 10px 24px rgba(11,11,12,.10), 0 2px 6px rgba(11,11,12,.06);
  --sh-3: 0 26px 60px rgba(11,11,12,.20), 0 6px 16px rgba(11,11,12,.10);
  --sh-red: 0 18px 50px rgba(254,0,0,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --nav-h: 68px;
  --bar-h: 0px;   /* alto de la barra fija de móvil; el JS lo pone en móvil */
}

/* -------------------------------------------------------------- 2. RESET */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--tx);
  background: var(--bone);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
.dark :focus-visible, .hero :focus-visible, .footer :focus-visible,
.drawer :focus-visible { outline-color: var(--red-glow); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: -100px; left: 12px; z-index: 200;
  background: var(--red-solid); color: #fff; padding: .8rem 1.2rem;
  font-weight: 700; border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top .2s var(--ease);
}
.skip:focus { top: 0; }

/* --------------------------------------------------------- 3. PRIMITIVAS */
.wrap {
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: var(--gut);
}
.wrap--wide { max-width: 1480px; }

.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.005em;
  text-transform: uppercase;
}

/* Etiqueta pequeña con línea, como los subtítulos de la carta */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--t-micro); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--red-deep);
}
.kicker::before {
  content: ''; width: 26px; height: 2px;
  background: currentColor; flex: none;
}
.dark .kicker, .hero .kicker, .footer .kicker { color: var(--red-glow); }

/* Banda negra tipo brochazo — el título de sección de la carta impresa */
.brush {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: .3em .85em .38em;
  transform: rotate(-.7deg);
  clip-path: polygon(
    1.2% 8%, 12% 2%, 30% 7%, 48% 1%, 66% 6%, 84% 1%, 98.6% 7%,
    99.4% 92%, 86% 98%, 68% 93%, 50% 99%, 32% 94%, 14% 99%, .8% 91%
  );
}
.dark .brush { background: #fff; color: var(--ink); }

/* Ajedrez rojo/blanco del pie de la carta */
.checker {
  height: 14px; width: 100%; flex: none;
  background-image:
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%),
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  background-color: var(--bone);
}
.checker--dark { background-color: var(--ink); }

/* Botones */
.btn {
  --btn-bg: var(--red-solid); --btn-fg: #fff; --btn-bd: var(--red-solid);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .85rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-bd); border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  cursor: pointer; position: relative; isolation: isolate;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease);
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--sh-red); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--bone); box-shadow: var(--sh-2); }
.dark .btn--ghost, .hero .btn--ghost {
  --btn-fg: var(--tx-inv); --btn-bd: rgba(246,242,234,.35);
}
.dark .btn--ghost:hover, .hero .btn--ghost:hover {
  --btn-bg: var(--tx-inv); --btn-fg: var(--ink); --btn-bd: var(--tx-inv);
}
.btn--wa { --btn-bg: #0E7A3C; --btn-bd: #0E7A3C; }
.btn--wa:hover { box-shadow: 0 18px 44px rgba(14,122,60,.4); }
.btn--sm { min-height: 44px; padding: .5rem 1.05rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* Sellos de tinta de la carta usados como ornamento */
.stamp {
  position: absolute; pointer-events: none; user-select: none;
  opacity: .09; filter: saturate(0);
}
.dark .stamp { opacity: .085; }

/* Revelado al hacer scroll */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------------ 4. NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              backdrop-filter .35s var(--ease);
}
.nav::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 1px;
  background: var(--line); opacity: 0; transition: opacity .35s var(--ease);
}
.nav.is-stuck {
  background: rgba(250,246,238,.88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(11,11,12,.05), 0 10px 30px rgba(11,11,12,.06);
}
.nav.is-stuck::after { opacity: 1; }

.nav__in {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gut);
  display: flex; align-items: center; gap: var(--sp-3);
}
.nav__logo { flex: none; display: flex; align-items: center; min-height: 44px; }
.nav__logo img {
  height: 30px; width: auto;
  transition: height .35s var(--ease), filter .35s var(--ease);
}
.nav.is-stuck .nav__logo img { height: 26px; }

.nav__links {
  display: flex; align-items: center; gap: clamp(.4rem, 1.4vw, 1.4rem);
  margin-inline: auto;
}
.nav__link {
  position: relative; padding: .55rem .3rem;
  font-size: .9rem; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center;
  color: var(--tx-inv); opacity: .82;
  transition: opacity .2s var(--ease), color .35s var(--ease);
}
.nav.is-stuck .nav__link { color: var(--tx); }
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .28rem;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { opacity: 1; }

.nav__actions { display: flex; align-items: center; gap: .55rem; flex: none; }

.nav__cart {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; min-width: 44px; padding: .5rem .95rem;
  border: 2px solid rgba(246,242,234,.3); border-radius: 999px;
  color: var(--tx-inv); font-weight: 700; font-size: .85rem;
  transition: border-color .3s var(--ease), color .35s var(--ease),
              background-color .3s var(--ease);
}
.nav.is-stuck .nav__cart { color: var(--tx); border-color: var(--line); }
.nav__cart:hover { background: var(--red-solid); border-color: var(--red-solid); color: #fff; }
.nav__cart svg { width: 20px; height: 20px; }
.nav__count {
  position: absolute; top: -6px; right: -6px;
  min-width: 22px; height: 22px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--red-solid); color: #fff;
  border-radius: 999px; font-size: .78rem; font-weight: 700;
  border: 2px solid var(--ink);
  transition: transform .3s var(--ease);
}
.nav.is-stuck .nav__count { border-color: var(--bone); }
.nav__count[hidden] { display: none; }
.nav__count.is-bump { animation: bump .45s var(--ease); }
@keyframes bump {
  0% { transform: scale(1); } 40% { transform: scale(1.42); } 100% { transform: scale(1); }
}

.nav__burger {
  display: none; width: 46px; height: 46px;
  place-items: center; border-radius: 999px;
  border: 2px solid rgba(246,242,234,.3); color: var(--tx-inv);
}
.nav.is-stuck .nav__burger { color: var(--tx); border-color: var(--line); }
.nav__burger svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .nav__cart span:not(.nav__count) { display: none; }
  .nav__cart { padding: .5rem; width: 46px; height: 46px; justify-content: center; }
}

/* Menú móvil desplegable */
.mobnav {
  position: fixed; inset: 0; z-index: 95;
  background: var(--ink); color: var(--tx-inv);
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 1rem) var(--gut) calc(2rem + env(safe-area-inset-bottom));
  transform: translateY(-100%);
  transition: transform .5s var(--ease-out);
  overflow-y: auto; overscroll-behavior: contain;
}
.mobnav.is-open { transform: none; }
.mobnav__close {
  position: absolute; top: 14px; right: var(--gut);
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 2px solid rgba(246,242,234,.3); border-radius: 999px; color: inherit;
}
.mobnav__close svg { width: 22px; height: 22px; }
.mobnav a {
  display: flex; align-items: baseline; gap: .8rem;
  padding: .7rem 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--f-display); font-size: clamp(1.8rem, 9vw, 2.6rem);
  text-transform: uppercase; line-height: 1.05;
}
.mobnav a i {
  font-family: var(--f-text); font-style: normal;
  font-size: .72rem; font-weight: 700; color: var(--red-glow);
}
.mobnav a:hover, .mobnav a:focus-visible { color: var(--red-glow); }
.mobnav__foot { margin-top: auto; padding-top: 1.6rem; display: grid; gap: .7rem; }

/* ----------------------------------------------------------------- 5. HERO */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  background: var(--ink); color: var(--tx-inv);
  padding: calc(var(--nav-h) + 2.5rem) 0 3.5rem;
  overflow: hidden;
  isolation: isolate;
}
/* Foco rojo detrás de la foto */
.hero__glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(115vw, 1150px); aspect-ratio: 1;
  right: -14%; top: 46%; transform: translateY(-50%);
  background: radial-gradient(circle,
    rgba(255,43,30,.50) 0%, rgba(200,16,10,.24) 34%,
    rgba(120,8,4,.10) 55%, transparent 72%);
  filter: blur(28px);
  animation: pulse 7.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .85; transform: translateY(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateY(-50%) scale(1.07); }
}
/* Rejilla sutil de "papel" */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 90% 70% at 30% 45%, #000 20%, transparent 78%);
}
/* Lienzo de brasas y humo */
.hero__fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.hero__in {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gut);
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .42rem .95rem .42rem .55rem;
  border: 1px solid rgba(246,242,234,.22); border-radius: 999px;
  background: rgba(246,242,234,.05);
  font-size: var(--t-micro); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--tx-inv);
  backdrop-filter: blur(6px);
}
.dot {
  width: 8px; height: 8px; border-radius: 999px; flex: none;
  background: #3ED47F; box-shadow: 0 0 0 4px rgba(62,212,127,.18);
}
.dot--off { background: #7A7A82; box-shadow: 0 0 0 4px rgba(122,122,130,.16); }

.hero__logo { margin: clamp(1.1rem, 3vw, 1.9rem) 0 .55rem; }
.hero__logo img {
  width: min(100%, 560px); height: auto;
  filter: drop-shadow(0 14px 40px rgba(254,0,0,.4));
}
.hero__tagline { width: min(78%, 400px); height: auto; opacity: .95; }

.hero__title {
  font-family: var(--f-display); font-size: var(--t-h3);
  text-transform: uppercase; line-height: 1.05;
  margin: clamp(1.1rem, 3vw, 1.6rem) 0 .7rem;
  letter-spacing: .01em;
}
.hero__title em { font-style: normal; color: var(--red-glow); }

.hero__lead {
  font-size: var(--t-lead); color: var(--tx-inv-soft);
  max-width: 46ch; margin-bottom: clamp(1.4rem, 3.4vw, 2rem);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  margin-top: clamp(1.5rem, 3.6vw, 2.4rem);
  padding-top: clamp(1.1rem, 2.6vw, 1.6rem);
  border-top: 1px solid var(--line-dark);
  font-size: var(--t-small); color: var(--tx-inv-soft);
}
.hero__facts li { display: flex; align-items: center; gap: .5rem; }
.hero__facts svg { width: 17px; height: 17px; color: var(--red-glow); flex: none; }
.hero__facts b { color: var(--tx-inv); font-weight: 600; }

/* Columna de la foto */
.hero__media { position: relative; justify-self: center; width: 100%; }
.hero__shot {
  position: relative; width: min(100%, 520px); margin-inline: auto;
  aspect-ratio: 1 / 1.32;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.07) inset;
}
.hero__shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-1.4%, -2.2%, 0); }
}
.hero__shot::after {   /* viñeta para que el borde funda con el fondo */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 42%, rgba(11,11,12,.55) 100%),
    linear-gradient(to top, rgba(11,11,12,.6), transparent 42%);
}
/* Chip de precio flotante */
.hero__chip {
  position: absolute; z-index: 2; left: max(0px, calc(50% - 300px)); bottom: 8%;
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1.15rem .7rem .8rem;
  background: var(--bone); color: var(--ink);
  border-radius: 999px; box-shadow: var(--sh-3);
  animation: float 5.5s ease-in-out infinite;
}
.hero__chip img { width: 42px; height: 42px; object-fit: contain; }
.hero__chip b { display: block; font-size: .82rem; line-height: 1.25; }
.hero__chip span {
  display: block; font-family: var(--f-display);
  font-size: 1.15rem; color: var(--red-deep); line-height: 1;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-11px) rotate(1.5deg); }
}
/* Medalla del carnaval */
.hero__badge {
  position: absolute; z-index: 2; right: max(0px, calc(50% - 292px)); top: 6%;
  width: 118px; height: 118px; display: grid; place-items: center; text-align: center;
  background: var(--red-solid); color: #fff; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em; line-height: 1.28;
  text-transform: uppercase; padding: .55rem;
  box-shadow: var(--sh-red);
  animation: float 6.8s ease-in-out .6s infinite reverse;
}
.hero__badge b { display: block; font-family: var(--f-display); font-size: 1.5rem; letter-spacing: 0; }

.hero__scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 1.1rem;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: .4rem;
  font-size: var(--t-micro); letter-spacing: .16em; text-transform: uppercase;
  color: var(--tx-inv-soft);
}
.hero__scroll i {
  display: block; width: 1px; height: 34px; overflow: hidden;
  background: var(--line-dark); position: relative;
}
.hero__scroll i::after {
  content: ''; position: absolute; inset: 0; background: var(--red-glow);
  animation: drip 2.1s var(--ease) infinite;
}
@keyframes drip {
  0%   { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

@media (max-width: 980px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 1.6rem); }
  .hero__in { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero__media { order: -1; }
  .hero__shot { width: min(100%, 420px); aspect-ratio: 1 / 1.12; }
  .hero__lead { max-width: none; }
  .hero__chip { left: 0; bottom: 4%; }
  .hero__badge { right: 0; top: 2%; width: 112px; height: 112px; font-size: .75rem; }
  .hero__scroll { display: none; }
  .hero__glow { right: -30%; top: 32%; }
}
@media (max-width: 520px) {
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__chip { padding: .55rem .9rem .55rem .6rem; }
  .hero__chip img { width: 34px; height: 34px; }
}

/* ------------------------------------------------------------ 6. MARQUESINA */
/* Tinta sobre rojo, no blanco: el rojo puro con blanco se queda en 4,03:1 y en
   móvil esta tipografía baja de 24 px, así que no le vale la regla de texto
   grande. Negro sobre rojo da 5,2:1 — y es el mismo par de la carta impresa. */
.marquee {
  background: var(--red); color: var(--ink);
  padding: .85rem 0; overflow: hidden;
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
}
.marquee__track {
  display: flex; width: max-content;
  animation: slide 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem;
  font-family: var(--f-display); font-size: clamp(1rem, .85rem + .8vw, 1.6rem);
  text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.marquee__group img { height: 26px; width: auto; opacity: .9; filter: brightness(0); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ------------------------------------------------------------ 7. SECCIONES */
/* `clip` y no `hidden`: los dos recortan los sellos de tinta que asoman, pero
   `hidden` convierte la sección en un contenedor desplazable y eso deja sin
   efecto el `position: sticky` de las pestañas de la carta (se anclarían a un
   scrollport que nunca se mueve). `clip` recorta sin crear scrollport. */
.sec { position: relative; padding: var(--sp-6) 0; overflow: hidden; overflow: clip; }
.sec--tight { padding: var(--sp-5) 0; }
.dark { background: var(--ink); color: var(--tx-inv); }
.dark .sec__lead { color: var(--tx-inv-soft); }

.sec__head {
  display: grid; gap: .9rem;
  margin-bottom: clamp(2rem, 4.4vw, 3.4rem);
  max-width: 62ch;
}
.sec__head--split {
  max-width: none;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end; gap: 1.4rem;
}
.sec__title { font-family: var(--f-display); font-size: var(--t-h2); text-transform: uppercase; }
.sec__title em { font-style: normal; color: var(--red-deep); }
.dark .sec__title em { color: var(--red-glow); }
.sec__lead { font-size: var(--t-lead); color: var(--tx-soft); max-width: 58ch; }
@media (max-width: 760px) {
  .sec__head--split { grid-template-columns: 1fr; align-items: start; }
}

/* ------------------------------------------------------- 8. LO MÁS PEDIDO */
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
@media (max-width: 900px) { .picks { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.pick {
  position: relative; display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line-dark);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out),
              border-color .4s var(--ease-out);
}
.pick:hover { transform: translateY(-6px); border-color: rgba(255,43,30,.42); box-shadow: var(--sh-red); }
.pick__media { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; background: var(--ink-3); }
.pick__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.pick:hover .pick__media img { transform: scale(1.07); }
.pick__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,11,12,.9) 2%, rgba(11,11,12,.1) 46%, transparent 70%);
}
.pick__rank {
  position: absolute; z-index: 2; top: .9rem; left: .9rem;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .34rem .8rem; border-radius: 999px;
  background: var(--red-solid); color: #fff;
  font-size: var(--t-micro); font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.pick__rank svg { width: 14px; height: 14px; }
.pick__body { position: relative; z-index: 2; padding: 1.15rem 1.3rem 1.35rem; margin-top: -2.6rem; display: grid; gap: .55rem; }
.pick__name { font-family: var(--f-display); font-size: 1.45rem; text-transform: uppercase; color: #fff; }
.pick__desc { font-size: var(--t-small); color: var(--tx-inv-soft); line-height: 1.5; }
.pick__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .4rem; }
.pick__price { font-family: var(--f-display); font-size: 1.5rem; color: var(--red-glow); }
.pick__price small { font-family: var(--f-text); font-size: .75rem; font-weight: 600; color: var(--tx-inv-soft); display: block; letter-spacing: .06em; text-transform: uppercase; }

/* ------------------------------------------------------------- 9. LA CARTA */
.menu { position: relative; }

/* Tabs de categoría, con scroll horizontal en móvil */
.tabs {
  position: sticky; top: var(--nav-h); z-index: 40;
  margin: 0 calc(var(--gut) * -1) clamp(1.6rem, 3.4vw, 2.6rem);
  padding: .7rem var(--gut);
  background: rgba(250,246,238,.9);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.tabs__scroll {
  display: flex; gap: .5rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  padding-bottom: 2px;
}
.tabs__scroll::-webkit-scrollbar { display: none; }
.tab {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: .5rem 1.05rem;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--tx);
  font-size: .87rem; font-weight: 700; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.tab:hover { border-color: var(--ink); transform: translateY(-1px); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.tab img { width: 20px; height: 20px; object-fit: contain; }
.tab[aria-selected="true"] img { filter: invert(1) brightness(1.6); }

/* Cabecera de cada bloque de categoría */
.cat { scroll-margin-top: calc(var(--nav-h) + 76px); padding-bottom: clamp(2.4rem, 5vw, 4rem); }
.cat__head {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0, 280px);
  gap: clamp(1rem, 3vw, 2.4rem); align-items: center;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.cat__title { font-family: var(--f-display); font-size: var(--t-h2); text-transform: uppercase; line-height: .9; }
.cat__desc { color: var(--tx-soft); margin-top: .55rem; max-width: 52ch; }
.cat__note {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: .7rem;
  font-size: var(--t-small); font-weight: 600; color: var(--red-deep);
}
.cat__note svg { width: 16px; height: 16px; }
.cat__shot {
  aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--sh-2); background: var(--ink-3);
}
.cat__shot img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 780px) {
  .cat__head { grid-template-columns: 1fr; }
  .cat__shot { order: -1; aspect-ratio: 16 / 9; }
}

/* Tarjeta de plato */
.dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.9rem, 1.8vw, 1.4rem); }
@media (max-width: 820px) { .dishes { grid-template-columns: 1fr; } }

.dish {
  position: relative; display: flex; flex-direction: column; gap: .7rem;
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.dish:hover { border-color: var(--ink); box-shadow: var(--sh-2); transform: translateY(-2px); }
.dish.is-added { animation: flash .7s var(--ease); }
@keyframes flash {
  0%   { box-shadow: 0 0 0 0 rgba(254,0,0,.45); }
  100% { box-shadow: 0 0 0 18px rgba(254,0,0,0); }
}

.dish__top { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.dish__name {
  font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem); font-weight: 700;
  color: var(--red-deep); line-height: 1.25;
}
.dish__tags { display: flex; gap: .35rem; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; gap: .28rem;
  padding: .16rem .55rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.tag--new   { background: #16161A; color: #fff; }
.tag--top   { background: var(--amber); color: #241800; }
.tag--spicy { background: #FEE9E7; color: var(--red-dark); }
.tag svg { width: 12px; height: 12px; }

.dish__desc { font-size: var(--t-small); color: var(--tx-soft); line-height: 1.55; }
.dish__note {
  display: flex; align-items: center; gap: .45rem;
  font-size: var(--t-small); font-style: italic; color: var(--tx);
}
.dish__note svg { width: 16px; height: 16px; flex: none; color: var(--amber); }
.dish__note.is-flame svg { color: var(--red); }
.dish__note.is-heart svg { color: #E8663F; }

/* Selector de presentación */
.opts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt span {
  display: flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: .45rem .85rem;
  border: 2px solid var(--line); border-radius: 999px;
  font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.opt span b { font-weight: 700; font-variant-numeric: tabular-nums; }
.opt:hover span { border-color: var(--tx-soft); }
.opt input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bone); }
.opt input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

.dish__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .3rem; }
.dish__price {
  font-family: var(--f-display); font-size: 1.6rem; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dish__price small {
  display: block; font-family: var(--f-text); font-size: .75rem;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tx-soft); margin-top: .2rem;
}
.add {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: .5rem 1.1rem;
  background: var(--ink); color: var(--bone);
  border-radius: 999px; font-size: .85rem; font-weight: 700;
  transition: background-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.add:hover { background: var(--red-solid); transform: translateY(-2px); box-shadow: var(--sh-red); }
.add svg { width: 17px; height: 17px; }

/* Lista compacta (bebidas y adiciones) */
.rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.6rem clamp(1.4rem, 3vw, 3rem); }
.rows__group h4 {
  display: flex; align-items: center; gap: .6rem;
  font-size: var(--t-micro); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red-deep); margin-bottom: .5rem;
}
.rows__group h4::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.row {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem 0; border-bottom: 1px dashed var(--line);
}
.row:last-child { border-bottom: 0; }
.row__name { font-weight: 600; font-size: .95rem; }
.row__dots { flex: 1; height: 1px; border-bottom: 2px dotted var(--bone-3); min-width: 12px; }
.row__price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row__add {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border: 2px solid var(--line); border-radius: 999px; color: var(--tx);
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.row__add:hover { background: var(--red-solid); border-color: var(--red-solid); color: #fff; transform: scale(1.06); }
.row__add svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------- 10. HISTORIA */
.story { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1.6rem, 4vw, 4rem); align-items: center; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }
.story__art {
  position: relative; aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,43,30,.22), transparent 62%),
    var(--ink-2);
  border: 1px solid var(--line-dark);
}
.story__art img.story__ink { width: 62%; height: auto; opacity: .95; }
.story__art .checker { position: absolute; bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(1.6rem, 3.4vw, 2.4rem); }
.stat { padding-top: .9rem; border-top: 2px solid var(--red); }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1; }
.stat span { font-size: var(--t-small); color: var(--tx-inv-soft); }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; gap: .7rem; } }

/* ------------------------------------------------------------- 11. VISÍTANOS */
.visit { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(1.6rem, 4vw, 3.6rem); }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } }
.info { display: grid; gap: 1.5rem; align-content: start; }
.info__item { display: grid; grid-template-columns: 46px 1fr; gap: 1rem; align-items: start; }
.info__ico {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 999px; background: var(--bone-2); color: var(--red-deep);
}
.info__ico svg { width: 21px; height: 21px; }
.info__item h4 { font-size: var(--t-micro); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-soft); margin-bottom: .2rem; }
.info__item p { font-size: 1.02rem; font-weight: 600; }
/* Enlaces cómodos de tocar: son objetivos sueltos, no texto corrido */
.info__item p a { display: inline-block; min-height: 44px; padding-block: .65rem; }
.info__item a:hover { color: var(--red-deep); text-decoration: underline; text-underline-offset: 3px; }

.hours {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: clamp(1.2rem, 2.6vw, 1.8rem);
  align-self: start;
}
.hours h3 { font-family: var(--f-display); font-size: 1.5rem; text-transform: uppercase; margin-bottom: .3rem; }
.hours__state {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--t-small); font-weight: 700; margin-bottom: 1rem;
}
.hours__state.is-open  { color: #12864A; }
.hours__state.is-closed { color: var(--tx-soft); }
.hours li {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem 0; border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}
.hours li:last-child { border-bottom: 0; }
.hours li.is-today { color: var(--red-deep); font-weight: 700; }
.hours li span:first-child { min-width: 5.6em; }
.hours li i { flex: 1; height: 1px; border-bottom: 2px dotted var(--bone-3); font-style: normal; }
.hours li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --------------------------------------------------------------- 12. FOOTER */
.footer { background: var(--ink); color: var(--tx-inv); position: relative; }
.footer__in { padding: clamp(2.6rem, 5vw, 4.2rem) 0 1.6rem; display: grid; gap: 2.2rem; }
.footer__top { display: grid; grid-template-columns: minmax(0,1.2fr) repeat(2, minmax(0,.9fr)); gap: 2rem; }
@media (max-width: 800px) { .footer__top { grid-template-columns: 1fr; } }
.footer__logo { width: 210px; height: auto; margin-bottom: 1rem; }
.footer__slogan { width: 240px; height: auto; margin-top: 1.2rem; filter: invert(1) brightness(1.5); opacity: .9; }
.footer h4 { font-size: var(--t-micro); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tx-inv-soft); margin-bottom: .8rem; }
.footer li { font-size: .95rem; }
.footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer #footHours { padding: .55rem 0; }
.footer a:hover { color: var(--red-glow); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
  align-items: center; justify-content: space-between;
  padding-top: 1.5rem; border-top: 1px solid var(--line-dark);
  font-size: var(--t-small); color: var(--tx-inv-soft);
}
.social { display: flex; gap: .6rem; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-dark); border-radius: 999px;
  transition: background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.social a:hover { background: var(--red-solid); border-color: var(--red-solid); color: #fff; }
.social svg { width: 20px; height: 20px; }

/* ------------------------------------------------------ 13. BARRA MÓVIL FIJA */
.bar {
  position: fixed; z-index: 80; inset: auto 0 0 0;
  display: none; align-items: center; gap: .6rem;
  padding: .6rem var(--gut) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(11,11,12,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-dark);
  transform: translateY(110%);
  transition: transform .4s var(--ease-out);
}
.bar.is-up { transform: none; }
.bar .btn { flex: 1; min-height: 48px; }
.bar__total { font-family: var(--f-display); font-size: 1.1rem; color: var(--tx-inv); }
.bar__total small { display: block; font-family: var(--f-text); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-inv-soft); }
@media (max-width: 900px) { .bar { display: flex; } }

/* ------------------------------------------------------------- 14. CARRITO */
.scrim {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(11,11,12,.55);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; z-index: 99; inset: 0 0 0 auto;
  width: min(460px, 100%);
  display: flex; flex-direction: column;
  background: var(--bone); color: var(--tx);
  box-shadow: -30px 0 70px rgba(11,11,12,.35);
  transform: translateX(101%);
  transition: transform .45s var(--ease-out);
}
.drawer.is-open { transform: none; }
@media (max-width: 520px) {
  .drawer { inset: auto 0 0 0; width: 100%; height: 92svh; border-radius: var(--r-lg) var(--r-lg) 0 0; transform: translateY(101%); }
  .drawer.is-open { transform: none; }
}

.drawer__head {
  display: flex; align-items: center; gap: .8rem;
  padding: 1.1rem var(--sp-3);
  padding-top: calc(1.1rem + env(safe-area-inset-top));
  border-bottom: 1px solid var(--line); flex: none;
}
.drawer__head h2 { font-family: var(--f-display); font-size: 1.5rem; text-transform: uppercase; }
.drawer__head .count { font-size: .8rem; font-weight: 600; color: var(--tx-soft); }
.drawer__close {
  margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center;
  border: 2px solid var(--line); border-radius: 999px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.drawer__close:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.drawer__close svg { width: 20px; height: 20px; }

.drawer__body {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: var(--sp-3); display: grid; gap: 1rem; align-content: start;
}

.empty { text-align: center; padding: 2.6rem 1rem; display: grid; gap: .8rem; justify-items: center; }
.empty img { width: 120px; opacity: .3; }
.empty h3 { font-family: var(--f-display); font-size: 1.4rem; text-transform: uppercase; }
.empty p { font-size: var(--t-small); color: var(--tx-soft); max-width: 30ch; }

.line {
  display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.line:last-of-type { border-bottom: 0; padding-bottom: 0; }
.line__name { font-weight: 700; font-size: .98rem; line-height: 1.3; }
.line__opt { font-size: var(--t-small); color: var(--tx-soft); }
.line__price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.line__ctrl { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; }
.qty {
  display: inline-flex; align-items: center;
  border: 2px solid var(--line); border-radius: 999px; overflow: hidden;
}
.qty button {
  width: 44px; height: 44px; display: grid; place-items: center;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.qty button:hover { background: var(--ink); color: var(--bone); }
.qty button svg { width: 16px; height: 16px; }
.qty span { min-width: 2.2rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.line__del {
  margin-left: auto; display: inline-flex; align-items: center; gap: .35rem;
  min-height: 44px; padding: 0 .7rem;
  font-size: var(--t-small); font-weight: 600; color: var(--tx-soft);
  border-radius: 999px;
}
.line__del:hover { color: var(--red-deep); background: #FEE9E7; }
.line__del svg { width: 15px; height: 15px; }

/* Formulario del pedido */
.form { display: grid; gap: .9rem; }
.form h3 {
  display: flex; align-items: center; gap: .6rem;
  font-size: var(--t-micro); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--tx-soft);
}
.form h3::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg span {
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  min-height: 62px; padding: .6rem; justify-content: center;
  border: 2px solid var(--line); border-radius: var(--r-sm);
  background: var(--card); cursor: pointer;
  font-size: .88rem; font-weight: 700; text-align: center;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.seg span svg { width: 19px; height: 19px; }
.seg input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bone); }
.seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

.field { display: grid; gap: .3rem; }
.field label { font-size: var(--t-small); font-weight: 600; }
.field label .req { color: var(--red-deep); }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; min-height: 48px;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 78px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9A968E; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(254,0,0,.13);
}
.field.has-error input, .field.has-error textarea { border-color: var(--red-deep); }
.field small { font-size: var(--t-micro); color: var(--tx-soft); }
.field .err { color: var(--red-deep); font-weight: 600; display: none; }
.field.has-error .err { display: block; }
.field.has-error small:not(.err) { display: none; }

.drawer__foot {
  flex: none; padding: var(--sp-3);
  padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--bone-2);
  display: grid; gap: .8rem;
}
.totals { display: grid; gap: .35rem; font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; }
.totals .sub { color: var(--tx-soft); font-size: var(--t-small); }
.totals .tot { font-family: var(--f-display); font-size: 1.7rem; align-items: baseline; }
.totals .tot span:last-child { color: var(--red-deep); font-variant-numeric: tabular-nums; }
.drawer__foot .hint { font-size: var(--t-micro); color: var(--tx-soft); text-align: center; }

/* Aviso de número pendiente */
.warn {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .7rem .85rem; border-radius: var(--r-sm);
  background: #FFF4E3; border: 1px solid #F0C878;
  font-size: var(--t-small); color: #5A3B00;
}
.warn svg { width: 18px; height: 18px; flex: none; margin-top: .12rem; }

/* Aviso flotante de "agregado".
   Se esconde con opacidad, NO desplazándolo fuera de pantalla: su distancia al
   borde inferior depende de --bar-h (la barra fija de móvil, que sube en cuanto
   hay algo en el carrito) y con la barra arriba un translate no alcanzaba a
   sacarlo — se quedaban ~60 px visibles de forma permanente. */
.toast {
  position: fixed; z-index: 97;
  left: 50%; bottom: calc(1.4rem + var(--bar-h) + env(safe-area-inset-bottom));
  transform: translate(-50%, 18px);
  opacity: 0; visibility: hidden;
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1.2rem; border-radius: 999px;
  background: var(--ink); color: var(--bone);
  font-size: .9rem; font-weight: 600;
  box-shadow: var(--sh-3);
  transition: transform .38s var(--ease-out), opacity .28s var(--ease),
              visibility .38s, bottom .3s var(--ease);
  max-width: calc(100vw - 2rem);
}
.toast.is-up { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast svg { width: 18px; height: 18px; color: #3ED47F; flex: none; }

/* ------------------------------------------------------------- 15. IMPRESIÓN */
@media print {
  .nav, .bar, .drawer, .scrim, .toast, .hero__fx, .tabs, .add, .row__add, .opts { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; }
}
