/* Carta del cliente. Móvil primero, una mano.
   Modo «editorial cotidiano» del manual V5: crema + gran titular negro + gesto rosa,
   con el zócalo de azulejo negro del local como guiño al interior. */

body { padding-bottom: calc(112px + var(--safe-b)); overflow-x: clip; }
body.is-locked { overflow: hidden; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 0.6rem 1rem; border-radius: var(--r-pill);
  background: var(--tungsten); color: var(--on-tungsten); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- portada: pared crema, titular, zócalo de azulejo ---------- */

.stage {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(28px + env(safe-area-inset-top)) 20px calc(34px + 72px + var(--scene-room));
  background:
    /* luz cálida de lámpara, contenida, arriba a la derecha */
    radial-gradient(60% 45% at 92% 0%, rgba(255, 196, 120, 0.28), transparent 70%),
    /* textura porosa de pared */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--velvet-900);
}
/* Zócalo de azulejo metro negro brillante. */
.stage::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 30%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48'%3E%3Crect width='56' height='48' fill='%23111'/%3E%3Cg fill='%23161616'%3E%3Crect x='1' y='1' width='54' height='22' rx='2'/%3E%3Crect x='-27' y='25' width='54' height='22' rx='2'/%3E%3Crect x='29' y='25' width='54' height='22' rx='2'/%3E%3C/g%3E%3Cg fill='%23fff' opacity='.08'%3E%3Crect x='4' y='3' width='48' height='5' rx='2.5'/%3E%3Crect x='-24' y='27' width='48' height='5' rx='2.5'/%3E%3Crect x='32' y='27' width='48' height='5' rx='2.5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 56px 48px,
    var(--tile);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.08), 0 -1px 0 rgba(15, 15, 15, 0.25);
}

.stage__inner { position: relative; max-width: 640px; margin: 0 auto; }

/* Identificación: logo oficial si existe; si no, el nombre en texto plano (no se recrea el lettering). */
.brand-id { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 26px; }
.brand-id { flex-direction: column; align-items: flex-start; gap: 8px; }
.brand-id__logo {
  display: block; height: 58px; width: auto;
  /* manual V5: logo original en blanco, con sombreado negro detrás para que se lea sobre la pared */
  filter: drop-shadow(0 1.5px 0 rgba(15, 15, 15, 0.9)) drop-shadow(0 3px 8px rgba(15, 15, 15, 0.45));
}
.brand-id__logo[src*="logo-negro"] { filter: drop-shadow(0 2px 5px rgba(15, 15, 15, 0.28)); }
/* el subrayado rosa bajo «BAR», como en los carteles */
.brand-id:has(.brand-id__logo)::after { content: ''; width: 34px; height: 3px; margin-left: 54px; border-radius: 2px; background: var(--rosa); }
.brand-id__text { display: grid; gap: 6px; }
.brand-id__text::before { content: ''; width: 34px; height: 4px; border-radius: 2px; background: var(--rosa); }
.brand-id__name { font: 700 0.9375rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tungsten-2); }

.marquee {
  margin: 0;
  font: 800 clamp(2.9rem, 14vw, 4.75rem)/0.94 var(--font-display);
  letter-spacing: -0.012em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.marquee em { font-style: normal; color: var(--rosa); }
.marquee .hero-line { display: block; }

.stage__venue { margin: 14px 0 0; color: var(--ink-2); font-size: 1.0625rem; max-width: 32ch; }

/* Una sola entrada orquestada, la primera vez de la sesión: el titular sube línea a línea. */
.stage.is-dark .hero-line { opacity: 0; transform: translateY(16px); }
.stage.is-lit .hero-line { transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
.stage.is-lit .hero-line:nth-child(2) { transition-delay: 90ms; }
.stage.is-lit .stage__venue { transition-delay: 180ms; }
.stage.is-lit .stage__meta { transition-delay: 260ms; }

.stage__meta { display: flex; align-items: center; gap: 16px; margin-top: 24px; }

/* La misma placa que lleva el QR en el centro: así el cliente reconoce su mesa. */
.plate {
  flex: none; display: grid; place-items: center; align-content: center;
  width: 76px; height: 76px; border-radius: 16px;
  background: var(--negro); color: var(--crema);
  box-shadow: inset 0 0 0 4px var(--negro), inset 0 0 0 6px var(--rosa), var(--shadow-float);
}
.plate__label { font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.plate__num { font: 700 2.5rem/0.95 var(--font-data); color: #fff; }

.stage__hint { margin: 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.4; max-width: 34ch; }
.stage__hint strong { color: var(--ink); font-weight: 700; }

.notice {
  max-width: 640px; margin: 0 auto; padding: 14px 20px 0;
  color: var(--tungsten-2); font-weight: 600; font-size: 0.9375rem;
}

/* ---------- carril de secciones con la píldora que se desliza ---------- */

.rail {
  position: sticky; top: 0; z-index: 20; min-height: 72px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  /* borde difuminado en lugar de una línea dura */
  mask-image: linear-gradient(to bottom, #000 calc(100% - 10px), transparent);
}
.rail__track {
  position: relative; display: flex; gap: 4px;
  max-width: 640px; margin: 0 auto;
  padding: 10px 16px 18px;
  overflow-x: auto; scrollbar-width: none;
  scroll-padding-inline: 16px;
}
.rail__track::-webkit-scrollbar { display: none; }

.rail__light {
  position: absolute; top: 10px; left: 0; height: 44px; width: 0;
  border-radius: var(--r-pill);
  background: var(--tungsten);
  box-shadow: 0 6px 16px -8px rgba(15, 15, 15, 0.6);
  pointer-events: none;
  will-change: transform;
}
/* Gesto rosa bajo la sección activa. */
.rail__light::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: -7px; height: 3px; border-radius: 2px; background: var(--rosa); }

.chip {
  position: relative; z-index: 1; flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 12px;
  border-radius: var(--r-pill);
  color: var(--ink-2); font-weight: 600; font-size: 0.9375rem; white-space: nowrap;
  text-decoration: none;
  transition: color 200ms ease;
}
.chip svg { width: 20px; height: 20px; }
.chip[aria-current='true'] { color: var(--on-tungsten); }

/* ---------- destacados ---------- */

main { max-width: 640px; margin: 0 auto; outline: none; }

.section-title {
  margin: 0;
  text-wrap: balance;
  font: 800 2.05rem/1 var(--font-display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.section-title::before { content: ''; display: block; width: 34px; height: 4px; margin-bottom: 12px; border-radius: 2px; background: var(--rosa); }

.featured { padding: var(--section-gap) 0 0; }
/* Hueco ya reservado desde el servidor: la carta no salta cuando llegan los destacados */
.featured.is-reserved { min-height: 383px; }
@media (min-width: 700px) { .featured.is-reserved { min-height: 359px; } }
.featured .section-title { padding: 0 20px; font-size: 1.5rem; }
.featured .section-title::before { background: var(--turquesa); }
.featured__track {
  display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none;
  padding: 14px 20px 10px; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
}
.featured__track::-webkit-scrollbar { display: none; }

/* Objeto + editorial: el producto grande, etiquetas breves y aire. */
.feature {
  position: relative; flex: none; width: min(74vw, 280px);
  scroll-snap-align: start;
  display: grid; grid-template-rows: 1fr auto; gap: 14px;
  min-height: 220px; padding: 18px;
  border-radius: var(--r-lg);
  text-align: left;
  background: var(--velvet-700);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float);
  transition: transform 160ms var(--ease-out);
  overflow: hidden;
}
/* franja de azulejo en la base de la tarjeta */
.feature::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: var(--tile); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.feature:active { transform: scale(0.98); }
.feature__art {
  display: grid; place-items: center;
  width: 104px; height: 104px; border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, rgba(255, 205, 130, 0.45), var(--velvet-800) 70%);
}
.feature__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.feature__img + .feature__art { display: none; }
.feature__name { position: relative; font: 800 1.6rem/0.98 var(--font-display); text-transform: uppercase; }
.feature__desc { position: relative; margin-top: 6px; color: var(--ink-2); font-size: 0.875rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature__price { position: relative; margin-top: 10px; font: 700 1.35rem/1 var(--font-data); color: var(--tungsten-2); }

/* ---------- secciones y productos ---------- */

.menu-section { padding: var(--section-gap) 20px 0; scroll-margin-top: 66px; }
.menu-section p { margin: 8px 0 6px; color: var(--ink-3); font-size: 0.9375rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-head .drink { flex: none; margin-bottom: 2px; }
/* miniatura de la bebida en cada fila: un platillo crema bajo el vaso */
.item__thumb { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--velvet-800); box-shadow: inset 0 -6px 0 rgba(15, 15, 15, 0.06); }
.item__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.item.is-out .item__thumb { filter: grayscale(1); opacity: 0.6; }

.items { list-style: none; margin: 8px 0 0; padding: 0; }
.item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.item:last-child { border-bottom: 0; }
.item__open {
  transition: transform 120ms var(--ease-out);
  display: grid; grid-template-columns: 1fr auto; gap: 4px 14px;
  text-align: left; min-height: 44px; border-radius: 8px;
}
.item__name { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.item__price { font: 700 1.2rem/1.2 var(--font-data); color: var(--ink); white-space: nowrap; }
.item__desc {
  text-wrap: pretty;
  grid-column: 1 / -1; color: var(--ink-3); font-size: 0.9rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item__tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag {
  padding: 2px 9px; border-radius: var(--r-pill);
  font-size: 0.75rem; font-weight: 600;
  background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-2);
}
.tag--warm { background: color-mix(in srgb, var(--rosa) 13%, transparent); color: var(--tungsten-2); }
.item.is-out .item__name, .item.is-out .item__price { color: var(--ink-3); }
.item.is-out .item__price { text-decoration: line-through; }

.add {
  position: relative;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  transition: transform 140ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.add:active { transform: scale(0.9); }
.add svg { width: 22px; height: 22px; }
.add.is-added { background: var(--tungsten); color: var(--on-tungsten); }
.add__qty {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--ink); color: var(--velvet-900);
  font-size: 0.75rem; font-weight: 700; line-height: 20px; text-align: center;
}
.out-label { align-self: center; color: var(--ink-3); font-size: 0.8125rem; font-weight: 600; }

.foot { padding: var(--section-gap) 20px 10px; color: var(--ink-3); font-size: 0.875rem; }
.foot__id { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font: 600 0.8125rem/1.3 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.foot__id a { color: var(--ink); text-decoration: none; }
.foot__id a:hover { color: var(--tungsten-2); }

.skeleton {
  height: 60vh; margin: 24px 20px; border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--velvet-800) 30%, var(--velvet-700) 50%, var(--velvet-800) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- muelle inferior (dock) ---------- */

.dock {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  display: flex; gap: 8px; align-items: center; justify-content: flex-end;
  max-width: 640px; margin: 0 auto;
  padding: 12px 16px calc(12px + var(--safe-b));
  pointer-events: none;
}
.dock > * { pointer-events: auto; }
.dock > [hidden] { display: none; }

.dock__call, .dock__orders, .dock__cart {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 56px; padding: 0 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  box-shadow: var(--shadow-float);
  transition: transform 140ms var(--ease-out), opacity 220ms ease;
}
.dock__call, .dock__orders {
  background: color-mix(in srgb, var(--glass) 78%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: var(--shadow-float), inset 0 1px 0 color-mix(in srgb, var(--blanco) 12%, transparent);
}
.dock__call { margin-right: auto; }
.dock__orders { font-size: 0.9375rem; }
.dock__orders .status { padding: 0; background: none; }
.dock__icon { display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.dock__icon svg { width: 22px; height: 22px; }
.dock__cart-label { white-space: nowrap; }

.dock__cart {
  background: var(--tungsten); color: var(--on-tungsten);
  box-shadow: 0 14px 30px -12px rgba(15, 15, 15, 0.55), 0 2px 6px rgba(15, 15, 15, 0.2);
  will-change: transform;
}
.dock__count {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: var(--r-pill); background: var(--rosa); color: var(--negro);
  font: 700 0.95rem/1 var(--font-data);
}
.dock__total { font: 700 1.15rem/1 var(--font-data); }
.dock__call:active, .dock__orders:active { transform: scale(0.97); }

/* Entrada y salida por el mismo borde (abajo). */
.dock__cart, .dock__orders, .dock__call {
  @starting-style { opacity: 0; transform: translateY(24px); }
}

/* Cuando aparece el botón del pedido, los otros se quedan en su forma corta
   (solo icono o solo estado) para que nada se corte en pantallas estrechas. */
.dock > * { min-width: 0; flex-shrink: 0; }
/* Camarero siempre como campana sola. La cuenta es el ticket con un punto de estado;
   con productos en el pedido pierde el texto. El pedido va a la derecha y nunca empuja la campana. */
.dock { justify-content: flex-start; }
.dock__cart { margin-left: auto; }
.dock__call { width: 56px; padding: 0; justify-content: center; }
.dock__call span:last-child { display: none; }
.dock__orders { margin-left: 0; }
.dock__call[hidden] + .dock__orders { margin-left: 0; }
.dock__receipt { position: relative; }
.dock__dot {
  position: absolute; top: -3px; right: -4px; width: 11px; height: 11px; border-radius: 50%;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--glass) 95%, transparent);
}
.dock__dot--new { background: var(--tungsten); }
.dock__dot--accepted { background: var(--gel-blue); }
.dock__dot--ready { background: var(--gel-teal); }
.dock__dot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; background: inherit;
  animation: dot-ping 1.8s var(--ease-out) infinite;
}
@keyframes dot-ping { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.6); opacity: 0; } }
.dock.has-cart .dock__orders { width: 56px; padding: 0; justify-content: center; }
.dock.has-cart .dock__orders-text { display: none; }
.dock__cart { flex-shrink: 1; overflow: hidden; }
.dock__total { white-space: nowrap; }

@media (max-width: 400px) {
  .dock { gap: 6px; padding-inline: 12px; }
  .dock__cart { padding: 0 14px; gap: 6px; }
  .dock.has-cart .dock__cart-label { display: none; }
}
@media (max-width: 340px) {
  .dock__cart-label { display: none; }
  .dock__call span:last-child { display: none; }
  .dock__call { width: 56px; padding: 0; justify-content: center; }
}

/* ---------- hoja inferior (sheet) ---------- */

.sheet[hidden], .scrim[hidden] { display: none; }
.scrim {
  position: fixed; inset: 0; z-index: 40;
  background: color-mix(in srgb, var(--shadow) 62%, transparent);
  opacity: 0;
}
.sheet {
  position: fixed; z-index: 41; left: 0; right: 0; bottom: 0;
  max-width: 640px; margin: 0 auto;
  max-height: calc(100dvh - 40px - env(safe-area-inset-top));
  display: flex; flex-direction: column;
  border-radius: 28px 28px 0 0;
  background: var(--velvet-700);
  box-shadow: 0 -20px 60px -10px color-mix(in srgb, var(--shadow) 80%, transparent), inset 0 1px 0 color-mix(in srgb, var(--blanco) 10%, transparent);
  transform: translateY(110%);
  will-change: transform;
  touch-action: none;
}
.sheet__grab { flex: none; display: grid; place-items: center; height: 26px; cursor: grab; }
.sheet__handle { width: 40px; height: 5px; border-radius: var(--r-pill); background: var(--velvet-500); }
.sheet__close { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--velvet-600); }
.sheet__body {
  overflow-y: auto; overscroll-behavior: contain;
  padding: 4px 20px calc(24px + var(--safe-b));
  touch-action: pan-y;
}

.sheet h2 {
  margin: 0 56px 6px 0;
  font: 800 2.25rem/0.95 var(--font-display);
  text-transform: uppercase;
}
.sheet-sub { margin: 0 0 18px; color: var(--ink-2); }

/* producto */
.p-art {
  display: grid; place-items: center;
  height: 150px; margin: 6px -20px 18px;
  position: relative;
  background: var(--velvet-800);
  color: var(--ink);
}
/* el producto apoyado sobre la barra: franja de azulejo */
.p-art::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--tile); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.1); }
.p-art { height: 190px; background: radial-gradient(50% 70% at 50% 80%, rgba(255, 205, 130, 0.5), var(--velvet-800) 75%); }
.p-art { place-items: end center; }
.p-art .drink { position: relative; z-index: 1; margin-bottom: 7px; }
.p-art .drink.is-poured { animation: poured 360ms var(--ease-out); }
@keyframes poured { from { opacity: 0.4; transform: translateY(4px) scale(0.97); } }
.p-art img { width: 100%; height: 100%; object-fit: cover; }
.p-desc { margin: 0 0 14px; color: var(--ink-2); line-height: 1.5; }
.p-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.p-allergens { margin: 0 0 18px; color: var(--ink-3); font-size: 0.875rem; }
.p-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 6px 0 16px; }
.p-price { font: 700 2.1rem/1 var(--font-data); color: var(--tungsten-2); }

.stepper {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px; border-radius: var(--r-pill); background: var(--velvet-800);
  box-shadow: inset 0 0 0 1px var(--line);
}
.stepper button {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--velvet-600);
  transition: transform 120ms var(--ease-out);
}
.stepper button:active { transform: scale(0.9); }
.stepper button svg { width: 20px; height: 20px; }
.stepper output { min-width: 30px; text-align: center; font-weight: 700; font-size: 1.0625rem; }
.stepper--sm button { width: 34px; height: 34px; }

.sheet-actions { position: sticky; bottom: calc(-24px - var(--safe-b)); margin: 18px -20px calc(-24px - var(--safe-b));
  padding: 12px 20px calc(16px + var(--safe-b));
  background: linear-gradient(to top, var(--velvet-700) 75%, transparent);
}

/* carrito */
.cart-lines { list-style: none; margin: 0 0 8px; padding: 0; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line__name { font-weight: 600; }
.cart-line__sub { color: var(--ink-3); font-size: 0.875rem; }
.cart-line__note { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; color: var(--ink-2); font-size: 0.875rem; }
.cart-line__note svg { width: 16px; height: 16px; flex: none; }
.cart-line.is-out .cart-line__name { color: var(--gel-rose); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 6px; font-weight: 600; }
.cart-total strong { font: 700 1.9rem/1 var(--font-data); color: var(--tungsten-2); }
.form-error { margin: 10px 0 0; color: var(--gel-rose); font-weight: 500; }

/* acciones de llamada */
.call-options { display: grid; gap: 10px; margin-top: 8px; }
.call-option {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center;
  padding: 16px; border-radius: var(--r-md);
  background: var(--velvet-600); text-align: left;
  transition: transform 140ms var(--ease-out), background-color 200ms ease;
}
.call-option:active { transform: scale(0.98); }
.call-option svg { grid-row: span 2; width: 28px; height: 28px; color: var(--tungsten); }
.call-option strong { font-size: 1.0625rem; }
.call-option span { color: var(--ink-3); font-size: 0.875rem; }
.call-option.is-sent { background: color-mix(in srgb, var(--gel-teal) 12%, transparent); }
.call-option.is-sent svg { color: var(--gel-teal); }

/* seguimiento de pedido */
.track { margin: 4px 0 18px; }
.track__steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0 8px; padding: 0; }
.track__step { display: grid; gap: 8px; font-size: 0.75rem; font-weight: 600; color: var(--ink-3); }
.track__bar { height: 6px; border-radius: var(--r-pill); background: var(--velvet-500); overflow: hidden; }
.track__bar span {
  display: block; height: 100%; width: 100%; border-radius: inherit;
  background: var(--tungsten);
  transform: scaleX(0); transform-origin: left;
  transition: transform 600ms var(--ease-out);
}
.track__step.is-done { color: var(--ink); }
.track__step.is-done .track__bar span { transform: scaleX(1); }
.track__step.is-current .track__bar span { animation: pulse-bar 1.6s var(--ease-in-out) infinite alternate; transform: scaleX(1); }
@keyframes pulse-bar { from { opacity: 0.45; } to { opacity: 1; } }
.track__msg { margin: 10px 0 0; font-size: 1.0625rem; font-weight: 600; }
.track__msg small { display: block; margin-top: 4px; font-weight: 400; color: var(--ink-2); font-size: 0.9375rem; }
.track--rejected .track__msg { color: var(--gel-rose); }

.order-card { padding: 16px; margin-bottom: 12px; border-radius: var(--r-md); background: var(--velvet-600); }
.order-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order-card > ul { list-style: none; margin: 10px 0 0; padding: 0; color: var(--ink-2); font-size: 0.9375rem; }
.order-card > ul > li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }

/* éxito: el foco se enciende sobre el check */
.sent { display: grid; justify-items: center; text-align: center; padding: 8px 0 4px; }
.sent__light {
  display: grid; place-items: center;
  width: 112px; height: 112px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--rosa) 22%, transparent), transparent 70%);
  color: var(--tungsten-2);
}
.sent__light svg { width: 54px; height: 54px; stroke-width: 2.2; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 520ms 160ms var(--ease-out) forwards; }
.sent__light { animation: light-on 700ms var(--ease-out) both; }
.sent__light--still svg { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; stroke-width: 1.6; }
.loc-actions { display: grid; gap: 8px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes light-on { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
.sent h2 { margin: 12px 0 4px; }

@media (min-width: 700px) {
  .stage { padding-top: 80px; }
}

@media (prefers-reduced-transparency: reduce) {
  .rail { background: var(--velvet-900); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .dock__call, .dock__orders { background: var(--velvet-600); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* pagar con tarjeta */
.pay-options { display: grid; gap: 10px; margin: 4px 0 14px; }
.pay-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px; padding: 12px 16px; border-radius: var(--r-md);
  background: var(--velvet-600); text-align: left;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 160ms ease, background-color 160ms ease, transform 140ms var(--ease-out);
}
.pay-option:active { transform: scale(0.98); }
.pay-option span { display: grid; gap: 2px; }
.pay-option small { color: var(--ink-3); font-size: 0.875rem; }
.pay-option b { font: 800 1.6rem/1 var(--font-data); }
.pay-option[aria-checked='true'] { background: color-mix(in srgb, var(--rosa) 12%, transparent); box-shadow: inset 0 0 0 2px var(--tungsten); }
.pay-option[aria-checked='true'] b { color: var(--tungsten); }
.pay-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; color: var(--ink-3); font-size: 0.875rem; line-height: 1.4; }
.pay-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* cuenta compartida de la mesa */
.tab-total { display: flex; gap: 10px; margin: 0 0 14px; }
.tab-total > div { flex: 1; display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--r-md); background: var(--velvet-600); }
.tab-total span { color: var(--ink-3); font-size: 0.8125rem; font-weight: 600; }
.tab-total strong { font: 700 2rem/1 var(--font-data); color: var(--tungsten-2); }
.tab-total b { font: 800 1.4rem/1 var(--font-data); }
.order-card.is-mine { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rosa) 40%, transparent); }
.order-card .who { display: grid; gap: 1px; }
.order-card .who small { color: var(--ink-3); font-size: 0.8125rem; }
.order-card > .status { margin-top: 10px; }

/* − cantidad + dentro de la lista: crece desde el botón + que se ha pulsado */
.qty-pill {
  display: inline-flex; align-items: center; gap: 2px;
  height: 44px; padding: 0 2px;
  border-radius: var(--r-pill);
  background: var(--tungsten); color: var(--on-tungsten);
  box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--rosa) 60%, transparent);
  transform-origin: right center;
  transition: transform 260ms var(--ease-out), opacity 200ms ease;
  @starting-style { transform: scaleX(0.6); opacity: 0.4; }
}
.qty-pill button {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill);
  transition: transform 120ms var(--ease-out), background-color 160ms ease;
}
.qty-pill button:active { transform: scale(0.88); background: color-mix(in srgb, var(--on-tungsten) 12%, transparent); }
.qty-pill button svg { width: 20px; height: 20px; }
.qty-pill output { min-width: 22px; text-align: center; font-weight: 800; font-size: 1.0625rem; }
.qty-pill :focus-visible { outline-color: var(--on-tungsten); }

.cart-line__sub b { color: var(--ink); font-weight: 700; }
.cart-line__remove {
  justify-self: start; margin-top: 2px; padding: 4px 0; min-height: 32px;
  color: var(--ink-3); font-size: 0.875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.cart-line__remove:active { color: var(--gel-rose); }

/* mezclas: «¿Con qué lo quieres?» */
.opt-group { border: 0; margin: 0 0 16px; padding: 0; }
.opt-group legend { padding: 0; margin-bottom: 10px; font: 800 1.35rem/1 var(--font-display); text-transform: uppercase; }
.opt-group legend small { font: 500 0.875rem/1 var(--font-body); text-transform: none; color: var(--ink-3); }
.opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip {
  min-height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--velvet-600); color: var(--ink); font-weight: 600; font-size: 0.9375rem;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 120ms var(--ease-out);
}
.opt-chip small { color: var(--ink-3); font-weight: 600; }
.opt-chip:active { transform: scale(0.95); }
.opt-chip[aria-checked='true'] { background: var(--tungsten); color: var(--on-tungsten); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--rosa) 70%, transparent); }
.opt-chip[aria-checked='true'] small { color: var(--on-tungsten); opacity: 0.75; }
.opt-group.is-missing legend { color: var(--gel-rose); }
.opt-group.is-missing .opt-chips { animation: nudge 380ms var(--ease-out); }
@keyframes nudge { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.btn.is-waiting { --bg: var(--velvet-500); --fg: var(--ink); }
.cart-line > .stepper { align-self: start; }
.cart-line__mix { color: var(--tungsten-2); font-size: 0.9375rem; font-weight: 500; }
.order-card .mix, .mix { font-style: normal; color: var(--tungsten-2); }

/* ---------- seguimiento del pedido (línea de luz) ---------- */
.trk { --p: 0; position: relative; margin: 14px 0 6px; }
.trk__rail {
  position: absolute; top: 21px; left: 12.5%; right: 12.5%; height: 4px;
  border-radius: var(--r-pill); background: var(--velvet-500); overflow: hidden;
}
.trk__fill {
  position: absolute; inset: 0; border-radius: inherit;
  background: var(--rosa);
  transform: scaleX(var(--p)); transform-origin: left;
  transition: transform 900ms var(--ease-out);
  @starting-style { transform: scaleX(0); }
}
/* Un destello recorre la parte encendida mientras el pedido avanza. */
.trk__spark { position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--p) * 100%); overflow: hidden; transition: width 900ms var(--ease-out); }
.trk__spark::after {
  content: ''; position: absolute; top: -3px; bottom: -3px; left: -36px; width: 36px;
  background: radial-gradient(closest-side, #fff, color-mix(in srgb, var(--blanco) 0%, transparent));
  animation: spark 1.8s var(--ease-in-out) infinite;
}
.trk[data-status='served'] .trk__spark::after { animation: none; opacity: 0; }
@keyframes spark { to { left: 100%; } }

.trk__nodes { position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; }
.trk__node { display: grid; justify-items: center; gap: 8px; text-align: center; }
.trk__dot {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--velvet-700); color: var(--ink-3);
  box-shadow: inset 0 0 0 2px var(--velvet-500);
  transition: background-color 400ms ease, color 400ms ease, box-shadow 400ms ease, transform 400ms var(--ease-out);
}
.trk__dot svg { width: 22px; height: 22px; }
.trk__lbl { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); transition: color 300ms ease; }
.trk__node.is-done .trk__dot { background: var(--tungsten); color: var(--on-tungsten); box-shadow: none; }
.trk__node.is-done .trk__lbl, .trk__node.is-current .trk__lbl { color: var(--ink); }
.trk__node.is-current .trk__dot {
  background: var(--velvet-700); color: var(--tungsten-2);
  box-shadow: inset 0 0 0 2px var(--rosa), 0 6px 16px -8px color-mix(in srgb, var(--rosa) 70%, transparent);
  transform: scale(1.08);
}
.trk__node.is-current .trk__dot::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--rosa);
  animation: ring 1.8s var(--ease-out) infinite;
}
.trk__node.is-current .trk__dot svg { animation: bob 1.8s var(--ease-in-out) infinite; }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.55); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-2px) rotate(-6deg); } }
.trk__node.is-pop .trk__dot { animation: pop 520ms var(--ease-out); }
@keyframes pop { 0% { transform: scale(0.8); } 55% { transform: scale(1.15); } 100% { transform: scale(1); } }

.trk__msg { margin-top: 14px; display: grid; gap: 2px; }
.trk__msg strong { font: 800 1.45rem/1.05 var(--font-display); text-transform: uppercase; }
.trk__msg span { color: var(--ink-2); font-size: 0.9375rem; }
.trk__msg.is-new { animation: msg-in 420ms var(--ease-out); }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.trk[data-status='ready'] .trk__msg strong { color: var(--gel-teal); }

.trk--rejected { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-md); background: color-mix(in srgb, var(--gel-rose) 10%, transparent); }
.trk--rejected .trk__msg { margin: 0; }
.trk--rejected .trk__msg strong { color: var(--gel-rose); font-size: 1.2rem; }
.trk__bad { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--gel-rose) 18%, transparent); color: var(--gel-rose); }
.trk__bad svg { width: 20px; height: 20px; }

.tab-actions .btn svg { width: 20px; height: 20px; }
.btn--card { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rosa) 45%, transparent); color: var(--tungsten-2); }
.btn.is-sent { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gel-teal) 50%, transparent); color: var(--gel-teal); }

@media (prefers-reduced-motion: reduce) {
  .trk__spark::after, .trk__node.is-current .trk__dot::after, .trk__node.is-current .trk__dot svg, .dock__dot::after { animation: none; }
}

/* ---------- retoques de la skill de animaciones ---------- */

/* 1. Cambio de pantalla dentro de la hoja: el contenido nuevo entra con un fundido. */
.sheet__body.is-swap > * { animation: swap-in 220ms var(--ease-out) both; }
@keyframes swap-in { from { opacity: 0; transform: translateY(8px); } }

/* 2. Tocar un producto responde al instante, de forma casi imperceptible. */
.item__open:active { transform: scale(0.985); }

/* 3. El botón del pedido sale por abajo, igual que entró. Usa «translate» porque el muelle del
   rebote controla «transform» con estilo en línea. */
.dock__cart.is-leaving {
  opacity: 0; translate: 0 24px; pointer-events: none;
  transition: opacity 200ms var(--ease-out), translate 200ms var(--ease-out);
}

/* 4. Al quitar una línea del pedido, se aparta antes de desaparecer. */
.cart-line { transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
.cart-line.is-removing { opacity: 0; transform: translateX(-12px); }

/* Con «reducir movimiento»: el fundido se mantiene, suave y sin desplazamiento. */
@media (prefers-reduced-motion: reduce) {
  .sheet__body.is-swap > * { animation: swap-fade 160ms ease both !important; animation-duration: 160ms !important; }
  @keyframes swap-fade { from { opacity: 0; } }
  .item__open:active { transform: none; }
}

/* Firma del estudio, como marca de agua discreta */
.credit {
  margin: 18px 0 0; font: 600 0.6875rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); opacity: 0.62;
}
.credit sup { font-size: 0.7em; vertical-align: 0.5em; line-height: 0; }

.foot__legal { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 16px 0 0; font-size: 0.8125rem; }
.foot__legal a { color: var(--ink-2); text-underline-offset: 3px; }

/* Carta en HTML puro si no hay JavaScript */
.menu-noscript { padding: 0 20px; }
.menu-noscript ul { list-style: none; margin: 0; padding: 0; }
.menu-noscript li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu-noscript b { float: right; }

/* Promoción de la tarjeta: mismo aire que el resto de secciones */
.promo { padding: var(--section-gap) 20px; }
/* En la cabecera sustituye a Spoti y las copas, y se queda justo encima del zócalo */
.stage--promo { padding-bottom: calc(24px + 72px); }
.stage--promo .scene-side, .stage--promo .scene-drinks { display: none; }
/* Los focos se cruzan justo sobre Spoti: el centro del escenario coincide con el de su imagen */
.stage--promo .scene-stage { right: calc(20px + 28px + 53px - 115px); }
@media (max-width: 374px) { .stage--promo .scene-stage { right: calc(20px + 20px + 48px - 115px); } }
@media (min-width: 700px) {
  .stage--promo .scene-stage { right: calc(50% - 320px + 28px + 53px - 160px); }
  .stage--promo .scene-star { right: calc(50% - 320px + 28px + 53px + 160px + 24px); }
}
.stage--promo .promo { max-width: none; margin: 0; padding: 0; }
.stage--promo .stage__meta:not(:has(> :not([hidden]))) { display: none; }
.stage--promo .stage__venue + .promo, .stage--promo .stage__meta + .promo { margin-top: 24px; }
