/* =========================================================
   PIENNOLO · Pizza & Panuozzo — Landing
   ========================================================= */

:root {
  color-scheme: dark;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bg: #0f0c0b;
  --bg-2: #161110;
  --surface: #1d1715;
  --surface-2: #261e1b;
  --line: rgba(243, 234, 219, 0.12);
  --line-strong: rgba(243, 234, 219, 0.22);
  --cream: #f3eadb;
  --muted: #c2b5a3;
  /* Rojo del racimo de tomates del logo. Rellenos: botones, etiquetas, contadores. */
  --tomato: #82150b;
  --tomato-rgb: 130, 21, 11;
  --tomato-hover: #991b0f;
  /* El mismo rojo más claro, para textos y líneas sobre el fondo oscuro (contraste 4.8:1). */
  --tomato-hot: #e24536;
  --tomato-hot-rgb: 226, 69, 54;
  --tomato-deep: #5a0e07;
  --tomato-deep-rgb: 90, 14, 7;
  --gold: #d6b47e;
  --basil: #6fa352;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--safe-top) + 8px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
strong { font-weight: 700; color: var(--cream); }
em { font-style: italic; }
::selection { background: var(--tomato); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(88px, 12vw, 160px); position: relative; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--cream); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 16px; }
.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; }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7;
}

.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  text-wrap: balance;
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-lead { color: var(--muted); font-size: 18px; max-width: 580px; margin: 0; }

/* ---------- Íconos de WhatsApp e Instagram ----------
   El PNG del usuario se usa como máscara: el ícono toma el color del texto que lo acompaña. */
.icon {
  display: inline-block; flex: none; width: 20px; height: 20px;
  background-color: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.icon--whatsapp { -webkit-mask-image: url("assets/icono-whatsapp.png"); mask-image: url("assets/icono-whatsapp.png"); }
.icon--instagram { -webkit-mask-image: url("assets/icono-instagram.png"); mask-image: url("assets/icono-instagram.png"); }

/* ---------- Botones ---------- */
.btn {
  --bg-btn: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; letter-spacing: 0.01em;
  background: var(--bg-btn);
  overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--ease), background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.35s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }

.btn--primary {
  --bg-btn: var(--tomato);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(var(--tomato-rgb), 0.7);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn--primary:hover { --bg-btn: var(--tomato-hover); transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(var(--tomato-hot-rgb), 0.6); }
.btn--primary:hover::after { transform: translateX(120%); }
/* Desactivado (ej: "Elige tus 2 bebidas" mientras faltan sabores) */
.btn--primary:disabled { --bg-btn: var(--surface); color: var(--muted); border-color: var(--line-strong); box-shadow: none; transform: none; cursor: not-allowed; }
.btn--primary:disabled::after { display: none; }

.btn--ghost { border-color: var(--line-strong); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(243, 234, 219, 0.06); transform: translateY(-2px); }

.btn--block { width: 100%; }

.link-btn {
  background: none; border: 0; padding: 8px; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--cream); }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: transparent;
  transition: background 0.25s, transform 0.3s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); transform: rotate(90deg); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Barra de progreso ---------- */
.progress { position: fixed; inset: var(--safe-top) 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--tomato-deep), var(--tomato-hot), var(--gold));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: calc(var(--nav-h) + var(--safe-top));
  padding-top: var(--safe-top);
  transition: transform 0.5s var(--ease), background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(15, 12, 11, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: block; flex: none; }
.nav__brand img {
  height: 44px; width: auto;
  transition: transform 0.4s var(--ease);
  animation: brandIn 0.9s var(--ease) backwards 0.1s;
}
.nav__brand:hover img { transform: scale(1.03); }
@keyframes brandIn { from { opacity: 0; transform: translateY(-10px); } }

.nav__links { display: flex; gap: 6px; }
.nav__links a {
  position: relative; padding: 10px 14px; font-size: 15px; font-weight: 600; color: var(--muted);
  transition: color 0.25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--tomato-hot); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--cream); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.cart-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 8px 10px 8px 16px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(29, 23, 21, 0.6);
  font-weight: 700; font-size: 15px;
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease);
}
.cart-btn:hover { border-color: var(--cream); transform: translateY(-1px); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.cart-count {
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  display: grid; place-items: center; font-size: 13px;
  background: var(--tomato); color: #fff;
}
.cart-count.is-bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }

.burger {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(29, 23, 21, 0.6);
  position: relative;
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--cream);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: radial-gradient(120% 80% at 50% 110%, rgba(var(--tomato-deep-rgb), 0.55), transparent 60%), var(--bg);
  padding: calc(var(--nav-h) + var(--safe-top) + 24px) var(--gutter) calc(32px + var(--safe-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transition: opacity 0.35s;
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 9vw, 52px); line-height: 1.25;
  padding: 6px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu a, .mobile-menu .btn {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i) * 55ms + 80ms);
}
.mobile-menu.is-open a, .mobile-menu.is-open .btn { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero {
  --pizza: min(94vw, 760px);
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: calc(var(--pizza) * 0.34 + 24px);
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__glow {
  position: absolute; inset: auto -20% -30% -20%; height: 90%; z-index: -2;
  background:
    radial-gradient(50% 55% at 50% 100%, rgba(var(--tomato-hot-rgb), 0.55), transparent 70%),
    radial-gradient(35% 40% at 50% 100%, rgba(214, 180, 126, 0.35), transparent 70%);
  filter: blur(10px);
  animation: flicker 5s ease-in-out infinite alternate;
}
@keyframes flicker {
  0% { opacity: 0.75; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.04); }
  70% { opacity: 0.85; transform: scale(0.99); }
  100% { opacity: 1; transform: scale(1.02); }
}

.hero__content { position: relative; z-index: 2; will-change: transform, opacity; }

/* Aviso de /admin (abierto con aviso, o cerrado). Va en el inicio y en la carta. */
.status {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  margin: 0 0 22px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(29, 23, 21, 0.75);
  font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--cream); text-align: left;
  animation: fadeUp 1s var(--ease) both 0.15s;
}
.status i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--basil); box-shadow: 0 0 0 4px rgba(111, 163, 82, 0.2); }
.status.is-closed i { background: var(--tomato-hot); box-shadow: 0 0 0 4px rgba(var(--tomato-hot-rgb), 0.2); }
.section-head .status { margin: 22px 0 0; animation: none; }

/* Cliente que vuelve: "¡Hola, Camila! ¿Lo mismo de la última vez?" con el botón Repetir pedido */
.welcome {
  display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; max-width: 640px;
  margin: 18px 0 0; padding: 14px 16px 14px 20px; border-radius: 20px;
  border: 1px solid rgba(214, 180, 126, 0.5); background: linear-gradient(135deg, rgba(var(--tomato-rgb), 0.35), rgba(29, 23, 21, 0.85) 70%);
  animation: fadeUp 0.8s var(--ease) both;
}
.welcome__text { flex: 1 1 260px; display: grid; gap: 4px; min-width: 0; }
.welcome__text strong { font-size: 17px; }
.welcome__text span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.welcome .add { background: var(--tomato); border-color: var(--tomato-hot); }
.welcome .add:hover { background: var(--tomato-hover); }

.hero__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(46px, 9vw, 132px);
  line-height: 0.95; letter-spacing: -0.02em;
  margin: 0 0 26px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line > span { display: inline-block; animation: lineUp 1.2s var(--ease) both; }
.hero__title .line:nth-child(1) > span { animation-delay: 0.2s; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.35s; }
.hero__title em { color: var(--tomato-hot); }
@keyframes lineUp { from { transform: translateY(105%); } }

.hero__lead {
  max-width: 560px; margin: 0 auto 32px;
  font-size: clamp(17px, 1.6vw, 20px); color: var(--muted);
  text-wrap: balance;
  animation: fadeUp 1s var(--ease) both 0.5s;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; animation: fadeUp 1s var(--ease) both 0.65s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }

.hero__pizza {
  position: absolute; left: 50%; bottom: 0; z-index: 1;
  width: var(--pizza); aspect-ratio: 1;
  translate: -50% 64%;
  animation: pizzaRise 1.6s var(--ease) both 0.3s;
  filter: drop-shadow(0 -20px 60px rgba(var(--tomato-hot-rgb), 0.35));
}
.hero__pizza :is(svg, img) { width: 100%; height: 100%; will-change: transform; }
@keyframes pizzaRise { from { translate: -50% 100%; opacity: 0; } }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 28px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-cue i { width: 1px; height: 56px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--tomato-hot); animation: cue 1.8s var(--ease-in-out) infinite;
}
@keyframes cue { to { top: 110%; } }

/* ---------- MARQUEE ---------- */
.marquee-wrap { position: relative; z-index: 3; overflow: hidden; margin-top: -56px; padding-block: 30px; }
.marquee {
  position: relative;
  background: var(--tomato);
  transform: rotate(-2deg); margin: 0 -4vw;
  padding: 6px 0;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8);
}
.marquee__row { overflow: hidden; white-space: nowrap; padding: 8px 0; }
.marquee__row--alt { background: var(--bg); color: var(--gold); }
.marquee__track { display: inline-flex; align-items: center; will-change: transform; }
.marquee__track span {
  font-family: var(--serif); font-weight: 600; font-style: italic;
  font-size: clamp(26px, 3.4vw, 44px); line-height: 1.2; padding: 0 22px; color: #fff;
}
.marquee__row--alt .marquee__track span { color: var(--gold); font-size: clamp(20px, 2.4vw, 30px); font-style: normal; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--sans); font-weight: 800; }
.marquee__track b { font-size: 18px; opacity: 0.8; color: #fff; }
.marquee__row--alt b { color: var(--tomato-hot); }

/* ---------- NÚMEROS ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(32px, 5vw, 56px) clamp(12px, 2vw, 28px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat > strong {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--serif); font-weight: 600; font-size: clamp(56px, 7vw, 96px); line-height: 1; color: var(--cream);
}
.stat > strong small { font-family: var(--sans); font-size: 18px; font-weight: 700; color: var(--tomato-hot); }
.stat__range { white-space: nowrap; }
.stat > span { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; max-width: 200px; }

/* ---------- CARTA ---------- */
/* Va justo después de la cinta del inicio: menos aire arriba para que se vea antes. */
.menu { padding-top: clamp(56px, 7vw, 96px); }

.tabs {
  position: relative; display: inline-flex; gap: 4px; padding: 5px;
  border: 1px solid var(--line-strong); border-radius: 999px; margin-bottom: 40px; background: var(--surface);
}
.tab {
  position: relative; z-index: 1; border: 0; background: none;
  min-height: 46px; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted);
  transition: color 0.3s;
}
.tab.is-active { color: #fff; }
.tabs__ink {
  position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: var(--tomato);
  transition: transform 0.5s var(--ease), width 0.5s var(--ease);
}

.menu__panel.is-entering .card { animation: cardIn 0.7s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px); } }

/* Columnas fijas para que la carta llene filas completas (4 pizzas, 2 panuozzi). Arma tu pizza va en una fila propia. */
.menu__grid { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 22px; }
.menu__grid--wide { --cols: 2; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.card__art {
  position: relative; aspect-ratio: 1 / 0.82; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(60% 60% at 50% 55%, rgba(var(--tomato-rgb), 0.3), transparent 70%), var(--surface-2);
}
.card--panuozzo .card__art { aspect-ratio: 16 / 10; }
.card__art :is(svg, img) { width: 78%; height: auto; transition: transform 1.2s var(--ease); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)); }
.card--panuozzo .card__art :is(svg, img) { width: 86%; }
.card:hover .card__art :is(svg, img) { transform: rotate(28deg) scale(1.05); }
.card--panuozzo:hover .card__art :is(svg, img) { transform: translateY(-4px) scale(1.05) rotate(-2deg); }

.card__tags { position: absolute; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: rgba(15, 12, 11, 0.8); border: 1px solid var(--line-strong); color: var(--cream);
}
/* Colores de las etiquetas (se eligen en /admin → Carta → Etiquetas) */
.tag--dorada { background: var(--gold); color: #2a1d10; border-color: transparent; }
/* Oferta: dorado con brillo que late y un destello que la cruza */
.tag--oferta {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #f7dc9e, var(--gold) 55%, #c4964f);
  color: #2a1d10; border-color: rgba(255, 236, 190, 0.85);
  box-shadow: 0 0 10px 1px rgba(247, 210, 140, 0.55);
  animation: ofertaGlow 2.4s ease-in-out infinite;
}
.tag--oferta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.8) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: ofertaShine 2.4s ease-in-out infinite;
}
@keyframes ofertaGlow { 50% { box-shadow: 0 0 18px 5px rgba(247, 210, 140, 0.85); } }
@keyframes ofertaShine { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.tag--roja { background: var(--tomato); border-color: transparent; }
.tag--verde { color: #bfe0a6; border-color: rgba(111, 163, 82, 0.5); }

.card__body { padding: 22px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.05; margin: 0 0 8px; }
.card__body p { margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.price { display: inline-flex; flex-direction: column; line-height: 1.15; font-size: 20px; font-weight: 800; color: var(--gold); letter-spacing: 0.01em; }
/* "Desde" y el precio normal tachado cuando hay oferta */
.price small { font-size: 12px; font-weight: 700; color: var(--muted); }
.price s { text-decoration-thickness: 1.5px; }

/* Arma tu pizza: tarjeta a lo ancho de la grilla */
.card--builder { grid-column: 1 / -1; flex-direction: row; }
@media (min-width: 641px) {
  .card--builder .card__art { flex: none; width: calc((100% - (var(--cols) - 1) * 22px) / var(--cols)); }
  .card--builder .card__body { justify-content: center; padding: 28px 32px; }
  .card--builder .card__body p { flex: 0 1 auto; max-width: 560px; }
  .card--builder .card__foot { justify-content: flex-start; gap: 28px; }
}

/* Favoritos (★ en /admin): salen primero, con borde dorado y su etiqueta */
.card--fav, .drink--fav {
  border-color: rgba(214, 180, 126, 0.55);
  box-shadow: 0 0 0 1px rgba(214, 180, 126, 0.12), 0 24px 50px -30px rgba(214, 180, 126, 0.45);
}
.card--fav:hover { border-color: var(--gold); }
.tag--fav { background: rgba(15, 12, 11, 0.85); color: var(--gold); border-color: rgba(214, 180, 126, 0.65); }

/* Promociones: franja destacada arriba de las pestañas. Carrusel en celular, fila en computador. */
.promos { margin: 0 0 36px; }
.promos__title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.promos__title::before { content: "✦"; color: var(--tomato-hot); letter-spacing: 0; font-size: 15px; }
.promos__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 6px;
}
.promos__track::-webkit-scrollbar { display: none; }
/* Foto | texto arriba; precio y botón abajo, a lo ancho de la tarjeta */
.promo {
  position: relative; overflow: hidden; scroll-snap-align: start;
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "art body" "foot foot";
  align-items: center; column-gap: 16px; row-gap: 14px; padding: 20px; border-radius: 22px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(var(--tomato-rgb), 0.6), transparent 62%),
    linear-gradient(160deg, #2b1510, var(--surface) 72%);
  border: 1px solid rgba(214, 180, 126, 0.5);
  box-shadow: inset 0 0 0 1px rgba(214, 180, 126, 0.1);
  animation: cardIn 0.7s var(--ease) both; animation-delay: calc(var(--i) * 80ms);
}
.promo--noart { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body" "foot"; }
/* Destello que cruza la tarjeta de vez en cuando (como el de "Oferta", más lento) */
.promo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 236, 190, 0.16) 50%, transparent 65%);
  transform: translateX(-120%); animation: promoShine 6s ease-in-out infinite; animation-delay: calc(var(--i) * 0.8s);
}
@keyframes promoShine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.promo__art { grid-area: art; width: 112px; }
.promo__art--combo { width: 136px; }

/* Imagen de promo armada con las fotos de sus productos, en composición simétrica según cuántas son.
   Las medidas van en % del cuadro, así sirve igual en la tarjeta y en la miniatura del pedido. */
.promo-collage { position: relative; width: 100%; aspect-ratio: 1; }
.promo-collage .pc { position: absolute; height: auto; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.6)); }
/* 1: al centro */
.promo-collage--1 .pc--1 { width: 94%; left: 3%; top: 3%; }
/* 2: en diagonal, una encima de la otra */
.promo-collage--2 .pc { width: 70%; }
.promo-collage--2 .pc--1 { left: 0; top: 0; }
.promo-collage--2 .pc--2 { right: 0; bottom: 0; }
/* 3: triángulo, dos atrás y una al frente al centro */
.promo-collage--3 .pc { width: 60%; }
.promo-collage--3 .pc--1 { left: 0; top: 2%; }
.promo-collage--3 .pc--2 { right: 0; top: 2%; }
.promo-collage--3 .pc--3 { left: 20%; bottom: 0; }
/* 4: cuadro, superpuestas */
.promo-collage--4 .pc { width: 56%; }
.promo-collage--4 .pc--1 { left: 0; top: 0; }
.promo-collage--4 .pc--2 { right: 0; top: 0; }
.promo-collage--4 .pc--3 { left: 0; bottom: 0; }
.promo-collage--4 .pc--4 { right: 0; bottom: 0; }
/* El panuozzo es alargado: se centra en el cuadrado de su lugar (los de arriba bajan, los de abajo suben) */
.promo-collage .pc--wide { transform: translateY(30%); }
:is(.promo-collage--2 .pc--2, .promo-collage--3 .pc--3, .promo-collage--4 .pc--3, .promo-collage--4 .pc--4).pc--wide { transform: translateY(-30%); }
.promo-collage__extra {
  position: absolute; left: 50%; bottom: -4px; translate: -50% 0; z-index: 5; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px; background: rgba(15, 12, 11, 0.9); border: 1px solid rgba(214, 180, 126, 0.6);
  color: var(--gold); font-size: 11px; font-weight: 800;
}
.cart-item__art .promo-collage__extra { display: none; }
.promo__art img { width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.6)); }
.promo__body { grid-area: body; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.promo__save {
  padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
  background: linear-gradient(135deg, #f7dc9e, var(--gold) 55%, #c4964f); color: #2a1d10;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 0 10px rgba(247, 210, 140, 0.45);
}
.promo h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 700; font-size: 27px; line-height: 1.05; }
.promo p { margin: 0; color: var(--cream); opacity: 0.8; font-size: 14px; line-height: 1.45; }
.promo__foot { grid-area: foot; align-self: end; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.promo .price { font-size: 22px; }
.promo .add { background: var(--tomato); border-color: var(--tomato-hot); }
.promo .add:hover { background: var(--tomato-hover); }
@media (max-width: 1000px) { .promos__track { grid-auto-columns: calc((100% - 16px) / 2); } }
/* Una sola promo: más ancha (en celular, todo el ancho) */
.promos__track:has(> .promo:only-child) { grid-auto-columns: min(100%, 560px); }

/* Bebidas: lista compacta, sin foto. Con variedades: selector + Agregar */
.drinks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 1000px) { .drinks { grid-template-columns: 1fr; } }
.drink {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  border-radius: 18px; border: 1px solid var(--line); background: var(--surface);
}
.menu__panel.is-entering .drink { animation: cardIn 0.7s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.drink__art { flex: none; width: 64px; }
.drink__body { flex: 1; min-width: 0; }
.drink__body h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.1; }
.drink__body p { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.drink__body .price { font-size: 18px; }
.drink .tag { font-family: var(--sans); font-size: 11px; padding: 3px 8px; }
.drink__action { flex: none; }
.variant { display: flex; align-items: center; gap: 8px; }
.variant select {
  min-height: 44px; max-width: 170px; padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--cream); font: inherit; font-size: 15px; font-weight: 600;
}
.variant select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.add__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tomato); font-size: 13px; }
.tag--ambar { color: #ffcf8a; border-color: rgba(255, 207, 138, 0.5); }

.add {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid var(--tomato-hot); background: transparent; color: var(--cream); font-weight: 700; font-size: 15px;
  transition: background 0.25s, transform 0.3s var(--ease);
}
.add:hover { background: var(--tomato); }
.add:active { transform: scale(0.95); }
.add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
/* Agotado (se marca en /admin): se ve en la carta, apagado y sin poder agregarse */
.add:disabled, .promo .add:disabled { background: transparent; border-color: var(--line-strong); color: var(--muted); cursor: not-allowed; transform: none; }
.tag--agotado { background: rgba(15, 12, 11, 0.92); color: var(--cream); border-color: rgba(243, 234, 219, 0.35); }
.is-out :is(.card__art, .drink__art, .promo__art) :is(img, svg) { opacity: 0.4; filter: grayscale(1); }
.is-out .price, .is-out .promo__save { opacity: 0.5; }
.promo.is-out::after { display: none; }
.card.is-out:hover .card__art :is(svg, img) { transform: none; }

.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--tomato); border-radius: 999px; background: var(--tomato);
}
.qty button {
  width: 42px; height: 42px; border: 0; background: none; color: #fff; font-size: 20px; font-weight: 700; border-radius: 50%;
  display: grid; place-items: center;
}
.qty button:hover { background: rgba(0, 0, 0, 0.18); }
.qty output { min-width: 24px; text-align: center; font-weight: 800; color: #fff; }

.menu__note { margin: 36px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- PANUOZZO ---------- */
.panuozzo { overflow: hidden; background: var(--bg-2); border-block: 1px solid var(--line); }
.stats + .panuozzo { border-top: 0; }
.panuozzo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.panuozzo__media { min-width: 0; }
.panuozzo__art { position: relative; z-index: 1; }
/* Palabra gigante justo debajo de la foto: se desplaza con el scroll (data-drift) y se desvanece en los bordes. */
.panuozzo__word {
  overflow: hidden; white-space: nowrap; pointer-events: none;
  font-family: var(--serif); font-weight: 700; font-style: italic;
  font-size: clamp(84px, 12vw, 150px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 234, 219, 0.16);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.panuozzo__word span { display: inline-block; will-change: transform; }
.panuozzo__art::before {
  content: ""; position: absolute; inset: 10% 5%; border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 180, 126, 0.25), transparent 65%);
}
.panuozzo__art :is(svg, img) { position: relative; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); will-change: transform; }
.panuozzo__text > p { color: var(--muted); font-size: 18px; margin: 0 0 16px; }
.checks { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--tomato) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- DELIVERY ---------- */
.delivery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.delivery__info > p { color: var(--muted); font-size: 18px; margin: 0 0 32px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 36px; }
.fact { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.fact dt { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.fact dd { margin: 0; font-weight: 600; line-height: 1.45; }
.delivery__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.delivery__map {
  position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-strong);
  aspect-ratio: 4 / 5; background: var(--surface);
}
.delivery__map iframe {
  width: 100%; height: 100%; border: 0;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.6) brightness(0.9) contrast(0.95) sepia(0.25);
}
.delivery__badge {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px;
  background: rgba(15, 12, 11, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
}
.delivery__badge img { width: 44px; height: 44px; }
.delivery__badge strong { display: block; }
.delivery__badge span { color: var(--muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq details {
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.3s, background 0.3s;
}
.faq details[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 60px 20px 22px; font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--tomato) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin: 0; padding: 0 22px 22px; color: var(--muted); }
.faq__steps { list-style: none; counter-reset: paso; margin: 0; padding: 0 22px 22px; display: grid; gap: 14px; color: var(--muted); }
.faq__steps li { counter-increment: paso; position: relative; padding-left: 40px; }
.faq__steps li::before {
  content: counter(paso); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tomato); color: #fff; font-size: 14px; font-weight: 800;
}
.faq details a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.faq details[open] p, .faq details[open] .faq__steps { animation: fadeUp 0.5s var(--ease); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 28px; background: #0b0908; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand img { width: 240px; height: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); max-width: 340px; margin: 0; font-size: 15px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.footer__col a, .footer__col span { color: var(--muted); font-size: 15px; transition: color 0.2s; width: fit-content; }
.footer__col a:hover { color: var(--cream); }
.footer__col a { display: inline-flex; align-items: center; gap: 10px; }
.footer__col .icon { width: 18px; height: 18px; }
.footer__credits { display: flex; flex-direction: column; gap: 6px; }
.footer__creator { color: #999; font-size: 13px; }
.footer__creator a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(153, 153, 153, 0.5); transition: color 0.2s, text-decoration-color 0.2s; }
.footer__creator a:hover { color: var(--cream); text-decoration-color: currentColor; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.to-top:hover { color: var(--cream); }

/* ---------- BARRA MÓVIL ---------- */
.mobile-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-bottom)); z-index: 80;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 10px 20px; border-radius: 18px; border: 0;
  background: var(--tomato); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8);
  transform: translateY(140%); transition: transform 0.5s var(--ease);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar__total { font-size: 17px; font-weight: 800; }

/* ---------- CARRITO ---------- */
.drawer { position: fixed; inset: 0; z-index: 150; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(5, 4, 4, 0.7); opacity: 0; transition: opacity 0.4s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
  padding-top: var(--safe-top);
  display: flex; flex-direction: column;
  background: var(--bg-2); border-left: 1px solid var(--line-strong);
  transform: translateX(100%); transition: transform 0.55s var(--ease);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 700; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; overscroll-behavior: contain; }
.drawer__foot { padding: 18px 24px calc(18px + var(--safe-bottom)); border-top: 1px solid var(--line); display: grid; gap: 8px; justify-items: center; }
.drawer__lines { width: 100%; display: grid; gap: 2px; color: var(--muted); font-size: 15px; }
.drawer__lines div { display: flex; justify-content: space-between; gap: 12px; }
.drawer__total { width: 100%; display: flex; justify-content: space-between; align-items: baseline; }
.drawer__total strong { font-size: 26px; color: var(--gold); }
.drawer__hint { width: 100%; margin: 0 0 6px; color: var(--muted); font-size: 13px; }

.cart-empty { text-align: center; padding: 48px 0 24px; color: var(--muted); }
.cart-empty img { width: 72px; height: 72px; margin: 0 auto 12px; opacity: 0.85; }
.cart-empty .btn { margin-top: 8px; }

.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  animation: fadeUp 0.45s var(--ease);
}
.cart-item__art { width: 64px; height: 64px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; }
.cart-item__art > :is(svg, img, .pizza-stack, .promo-collage) { width: 54px; height: auto; }
.cart-item h4 { margin: 0; font-size: 16px; line-height: 1.3; }
.cart-item span { color: var(--muted); font-size: 14px; }
.cart-item small { display: block; margin: 2px 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.cart-item .qty { transform: scale(0.88); transform-origin: right center; }

.checkout { margin-top: 26px; display: grid; gap: 14px; }
.checkout h3 { margin: 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 42px; border-radius: 10px; font-weight: 700; color: var(--muted); transition: background 0.25s, color 0.25s; }
.seg input:checked + span { background: var(--tomato); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 700; }
.field em { font-weight: 500; color: var(--muted); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--cream);
  font: inherit; font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input::placeholder, .field textarea::placeholder { color: #8d8174; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 180, 126, 0.2); }
.field input.is-invalid { border-color: var(--tomato-hot); box-shadow: 0 0 0 3px rgba(var(--tomato-hot-rgb), 0.2); }
.remember { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; cursor: pointer; }
.remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--tomato-hot); }
.schedule { display: grid; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid rgba(var(--tomato-hot-rgb), 0.45); background: rgba(var(--tomato-rgb), 0.18); }
.schedule__note { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.45; }
.schedule__row { display: grid; grid-template-columns: 1fr 7.5em; gap: 10px; }
.schedule__row select { padding-right: 6px; }
@media (max-width: 400px) { .schedule__row { grid-template-columns: 1fr; } }
.form-error { margin: 0; min-height: 1em; color: #ff8a78; font-size: 14px; font-weight: 600; }

.is-empty .checkout, .is-empty [data-cart-foot] { display: none; }
[data-cart-empty] { display: none; }
.is-empty [data-cart-empty] { display: block; }

/* ---------- ARMA TU PIZZA ---------- */
/* Pizza armada: sobre la foto de la masa vacía va la foto de la salsa y encima los ingredientes dibujados,
   los dos sobre el fondo de la masa */
.pizza-stack { position: relative; display: block; aspect-ratio: 1; }
.pizza-stack > img { display: block; width: 100%; height: 100%; }
.pizza-stack > :is(.pizza-stack__sauce, .pizza-stack__top) { position: absolute; left: 13.6%; top: 12.2%; width: 74%; height: 74%; }
.pizza-stack__top { overflow: visible; }
.pizza-stack__sauce.is-spreading { animation: sauceSpread 0.8s var(--ease); }
@keyframes sauceSpread { from { opacity: 0; transform: scale(0.35) rotate(-70deg); } }
.pizza-stack__top .is-new { animation: toppingIn 0.5s var(--ease) both; transform-box: view-box; transform-origin: center; }
@keyframes toppingIn { from { opacity: 0; transform: scale(1.2); } }
.builder__art { width: min(240px, 64%); margin: 8px auto 6px; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)); }
.chooser__art { width: min(170px, 46%); margin: 8px auto 6px; }
.chooser__art > img { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)); }
.builder__bases { margin-bottom: 22px; }
.builder__base { margin: 0 0 22px; text-align: center; color: var(--muted); font-size: 15px; }
.builder__base strong { color: var(--gold); }
.builder__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.builder__head h3 { margin: 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.builder__head span { flex: none; color: var(--muted); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.builder__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.builder__grid--group { grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip input:disabled { cursor: not-allowed; }
.chip span {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 100%; min-height: 58px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface);
  font-weight: 700; font-size: 14px; line-height: 1.25;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}
.chip small { font-size: 13px; font-weight: 600; color: var(--gold); }
.chip input:enabled:hover + span { border-color: var(--cream); }
.chip input:checked + span { background: var(--tomato); border-color: var(--tomato-hot); color: #fff; }
.chip input:checked + span small { color: var(--cream); }
.chip input:disabled + span { opacity: 0.4; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; left: 0; right: 0; bottom: 28px; z-index: 200;
  width: fit-content; margin-inline: auto;

  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 14px; max-width: calc(100% - 32px);
  background: var(--cream); color: var(--bg); font-weight: 700; font-size: 15px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity 0.35s, transform 0.45s var(--ease);
}
.toast.is-visible { opacity: 1; transform: none; }
.toast::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tomato); flex: none; }

/* =========================================================
   ANIMACIONES AL HACER SCROLL (bidireccionales)
   data-from="bottom" → entra subiendo (scroll hacia abajo)
   data-from="top"    → entra bajando (scroll hacia arriba)
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 44px, 0);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal][data-from="top"] { transform: translate3d(0, -44px, 0); }
.js [data-reveal="scale"] { transform: scale(0.9); }
.js [data-reveal="scale"][data-from="top"] { transform: scale(0.9); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.js [data-split] .w > span {
  display: inline-block; transform: translate3d(0, 105%, 0);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}
.js [data-split][data-from="top"] .w > span { transform: translate3d(0, -105%, 0); }
.js [data-split].is-in .w > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .menu__grid { --cols: 2; }
}

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .burger { display: block; }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .panuozzo__grid, .delivery__grid, .faq__grid { grid-template-columns: 1fr; }
  .panuozzo__word { margin-inline: calc(-1 * var(--gutter)); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .delivery__map { aspect-ratio: 4 / 3.4; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .mobile-bar { display: flex; }
  .scroll-cue { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__brand img { height: 36px; }
  .cart-btn__label { display: none; }
  .cart-btn { padding: 8px 9px 8px 12px; }
  .hero { --pizza: 118vw; padding-bottom: calc(var(--pizza) * 0.3 + 16px); }
  .hero__pizza { translate: -50% 68%; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .marquee-wrap { margin-top: -44px; }
  .facts { grid-template-columns: 1fr; }
  .delivery__ctas .btn { flex: 1 1 100%; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding-inline: 10px; }
  /* Carta en filas horizontales (foto a la izquierda) para ver varios platos a la vez */
  .menu__grid, .menu__grid--wide { grid-template-columns: 1fr; gap: 12px; }
  .card { flex-direction: row; border-radius: 16px; }
  .card:hover { transform: none; box-shadow: none; }
  .card__art, .card--panuozzo .card__art, .card--builder .card__art { flex: none; width: clamp(100px, 32%, 136px); aspect-ratio: auto; }
  .card__art :is(svg, img) { width: 86%; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5)); }
  .card--panuozzo .card__art :is(svg, img) { width: 128%; max-width: none; }
  .card__tags { top: 8px; left: 8px; }
  .tag { font-size: 10px; padding: 3px 7px; }
  .card__body { min-width: 0; padding: 14px; }
  .card__body h3 { font-size: 22px; margin-bottom: 4px; }
  .drinks { grid-template-columns: 1fr; gap: 10px; }
  /* Promos: carrusel de borde a borde, asoma la siguiente */
  .promos__track { grid-auto-columns: 84%; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .promos__track:has(> .promo:only-child) { grid-auto-columns: 100%; }
  .promo { padding: 16px; gap: 12px; border-radius: 18px; }
  .promo__art { width: 84px; }
  .promo__art--combo { width: 104px; }
  .promo h3 { font-size: 23px; }
  .drink { flex-wrap: wrap; gap: 10px 14px; padding: 14px; border-radius: 16px; }
  .drink__body h3 { font-size: 22px; }
  .drink__action { flex: 1 1 100%; }
  .drink__action:not(:has(.variant)) { flex: none; }
  .variant select { flex: 1; width: 0; min-width: 0; max-width: none; }
  .drink__action { min-width: 0; }
  .card__body p { font-size: 14px; line-height: 1.45; margin-bottom: 12px; }
  .card__foot { gap: 8px; }
  .price { font-size: 17px; }
  .add { min-height: 38px; padding: 6px 14px 6px 10px; font-size: 14px; gap: 6px; }
  .add svg { width: 16px; height: 16px; }
  .card .qty button { width: 36px; height: 36px; font-size: 18px; }
  .footer__grid { grid-template-columns: 1fr; }
  .toast { bottom: calc(86px + var(--safe-bottom)); }
}

@media (max-height: 700px) and (min-width: 641px) {
  .hero__title { font-size: clamp(44px, 7vw, 96px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal], .js [data-split] .w > span { opacity: 1 !important; transform: none !important; }
}
