/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:          #F6EFDD;
  --bg-soft:     #EFE4C8;
  --paper:       #FFFDF7;
  --ink:         #1E4A2E;
  --ink-soft:    #2C5738;
  --ink-mute:    #5C7364;
  --green:       #2F6B45;
  --green-dark:  #1E4A2E;
  --card-green:  #7FAF87;
  --card-green-dark: #5E8F68;
  --mint:        #DCEEDD;
  --mustard:     #E2963A;
  --cream:       #FBF6E9;
  --line:        rgba(30, 63, 42, 0.15);

  --display: "Pacifico", cursive;
  --heading: "Fredoka", sans-serif;
  --sans: "Nunito", sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius: 24px;
  --radius-sm: 14px;
  --nav-h: 88px;
}

/* Cross-document page transitions: disabled for now (see main.js comment
   near the top of boot() for why) — re-enable by uncommenting once tested
   across real browsers, since some engines abort navigation entirely when
   this fires under automated/embedded conditions.
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) { animation-name: pageFadeOutUp; }
::view-transition-new(root) { animation-name: pageFadeInUp; }
@keyframes pageFadeOutUp { to { opacity: 0; transform: translateY(-14px); } }
@keyframes pageFadeInUp  { from { opacity: 0; transform: translateY(14px); } }
*/

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  /* Refuerza el bloqueo de zoom del <meta viewport>: evita el doble-tap
     para agrandar en iOS Safari, que a veces lo ignora solo con el meta. */
  touch-action: manipulation;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; font-family: var(--heading); font-weight: 600; }
ul { list-style: none; padding: 0; }
::selection { background: var(--green); color: var(--cream); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1.2rem; background: var(--ink); color: var(--cream);
  z-index: 9999; border-radius: 999px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}
.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;
}
.kicker {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--heading); font-weight: 600;
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green);
}
.kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mustard); flex: none;
}
.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: .5rem; }
.section-head p { color: var(--ink-soft); margin-top: .9rem; font-size: 1.05rem; }
.center { text-align: center; margin-inline: auto; }

/* =============================================================
   4. Typography
   ============================================================= */
.eyebrow-script {
  font-family: var(--display);
  color: var(--mustard);
}
.text-balance { text-wrap: balance; }

/* =============================================================
   5. Components
   ============================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  font-family: var(--heading); font-weight: 600; font-size: 1rem;
  box-shadow: 0 4px 0 rgba(0,0,0,0.12);
  transition: transform .35s var(--ease-bounce), box-shadow .35s var(--ease-out), background .3s;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 0 rgba(0,0,0,0.12); transition-duration: .1s; }
.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: var(--ink); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-block { width: 100%; }

/* --- Nav --- */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding-block: .85rem;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), padding .3s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(246, 239, 221, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(30, 74, 46, 0.08);
  padding-block: .5rem;
}
.header-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  color: var(--ink);
}
.brand img { height: 34px; width: auto; }
@media (min-width: 540px) { .brand img { height: 40px; } }
.nav-desktop {
  display: none;
  gap: 2rem;
  font-family: var(--heading); font-weight: 500; font-size: .98rem;
}
@media (min-width: 960px) { .nav-desktop { display: flex; } }
.nav-desktop a { position: relative; padding: .3rem 0; }
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-desktop a:hover::after,
.nav-desktop a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: none; }
@media (min-width: 960px) { .header-cta { display: inline-flex; } }

.nav-toggle {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; background: var(--ink); color: var(--cream);
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 20px; height: 20px; }

/* --- Cart button + drawer --- */
.header-actions { display: flex; align-items: center; gap: .6rem; }
.cart-button {
  position: relative;
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; background: var(--ink); color: var(--cream);
  transition: transform .3s var(--ease-bounce);
}
.cart-button:hover { transform: translateY(-2px) rotate(-4deg); }
.cart-button svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--mustard); color: var(--ink);
  font-family: var(--heading); font-weight: 700; font-size: .7rem;
  display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.cart-badge[hidden] { display: none; }

.cart-backdrop {
  position: fixed; inset: 0; z-index: 199;
  background: rgba(20, 35, 25, 0.45);
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease-out);
}
.cart-drawer[data-open="true"] ~ .cart-backdrop,
.cart-backdrop[data-open="true"] { opacity: 1; pointer-events: auto; }

/* El panel entero es la zona que scrollea (y no solo la lista de productos):
   con el formulario de entrega y pago el contenido pasa largo de la pantalla,
   y si el scroll viviera solo en la lista, el botón de enviar quedaría abajo
   de todo sin manera de llegar. El encabezado y el botón quedan fijos con
   "sticky", así el cliente siempre los tiene a mano. */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(420px, 100%);
  background: var(--paper);
  box-shadow: -20px 0 50px rgba(20,35,25,0.25);
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .5s var(--ease-soft);
}
.cart-drawer[data-open="true"] { transform: translateX(0); }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.4rem 1rem; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 3; flex: none;
  background: var(--paper);
}
.cart-drawer-head h3 { font-size: 1.3rem; }
.cart-close {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-soft);
  font-size: 1.2rem; line-height: 1;
}
.cart-close:hover { background: var(--mustard); color: var(--cream); }
/* flex:1 para que, cuando el pedido es cortito, el pie siga apoyado abajo
   como antes — pero el scroll ahora lo maneja el panel entero. */
.cart-items { flex: 1; padding: 1rem 1.4rem; }
.cart-empty { padding: 2.5rem 1rem; text-align: center; color: var(--ink-mute); }
.cart-item {
  display: flex; gap: .9rem; padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-img {
  width: 56px; height: 56px; flex: none; background: var(--bg);
  border-radius: 10px; object-fit: contain; padding: 6px;
}
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.cart-item-top h4 { font-size: .98rem; }
.cart-item-remove { font-size: 1.3rem; line-height: 1; color: var(--ink-mute); padding: 0 .2rem; }
.cart-item-remove:hover { color: var(--mustard); }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; gap: .6rem; }
.cart-item-price { font-family: var(--heading); font-weight: 600; }
.qty-stepper {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--bg); border-radius: 999px; padding: .25rem .6rem;
}
.qty-stepper button {
  width: 22px; height: 22px; border-radius: 50%; background: var(--paper);
  display: grid; place-items: center; font-size: 1rem; line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.qty-stepper button:hover { background: var(--mustard); color: var(--cream); }
.qty-stepper span { min-width: 1ch; text-align: center; font-family: var(--heading); font-weight: 600; }

.cart-section-label {
  margin: 1.2rem 0 .3rem;
  font-family: var(--heading); font-weight: 700; font-size: .76rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--mustard);
}
.cart-item--promo .cart-item-top h4 { font-size: .94rem; }
.cart-item-price--free {
  font-family: var(--heading); font-weight: 700; font-size: .78rem;
  letter-spacing: .02em; text-transform: uppercase;
  color: var(--green);
}

.cart-footer { padding: 1.2rem 1.4rem 0; border-top: 1px solid var(--line); flex: none; }

.cart-delivery { margin-bottom: 1rem; }
.delivery-options { display: grid; gap: .5rem; margin-top: .5rem; }
.delivery-option {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem .8rem;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  font-size: .92rem; cursor: pointer;
  transition: border-color .25s, background .25s;
}
.delivery-option input { accent-color: var(--green); width: 16px; height: 16px; flex: none; }
.delivery-option.is-checked { border-color: var(--green); background: var(--mint); }
.delivery-option.is-disabled { opacity: .5; cursor: not-allowed; }
.delivery-zone {
  width: 100%; margin-top: .6rem;
  padding: .75rem .9rem; border-radius: var(--radius-sm);
  border: 2px solid var(--line); background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: .92rem;
}
.delivery-zone:focus { border-color: var(--green); outline: none; }
.delivery-field {
  width: 100%; margin-top: .6rem;
  padding: .75rem .9rem; border-radius: var(--radius-sm);
  border: 2px solid var(--line); background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: .92rem;
}
.delivery-field:focus { border-color: var(--green); outline: none; }
/* Si el horario elegido queda fuera de "min"/"max" (ej. lo escribieron a
   mano en vez de usar el selector), se marca en rojo al toque — no hace
   falta esperar a que intenten mandar el pedido para que se den cuenta. */
.delivery-field:invalid { border-color: #d9534f; }
.cart-field-label {
  margin: 1rem 0 0; font-family: var(--heading); font-weight: 700;
  font-size: .8rem; color: var(--ink);
}
.pay-alias {
  margin-top: .6rem; padding: .75rem .9rem;
  border: 2px dashed var(--green); border-radius: var(--radius-sm);
  background: var(--mint); display: grid; gap: .35rem;
}
.pay-alias-label {
  font-family: var(--heading); font-weight: 700; font-size: .72rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--green);
}
.pay-alias-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.pay-alias-value { font-family: var(--heading); font-size: 1.05rem; word-break: break-all; }
.pay-alias-copy {
  flex: none; padding: .4rem .8rem; border-radius: 999px;
  background: var(--green); color: var(--cream);
  font-family: var(--heading); font-weight: 600; font-size: .78rem;
}
.pay-alias-copy:hover { background: var(--mustard); }
.delivery-hint {
  margin-top: .5rem; font-size: .8rem; color: var(--mustard); font-weight: 600;
}

.cart-total-row {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--heading); font-weight: 600; font-size: 1.15rem;
  margin-bottom: 1rem;
}
.cart-total-row--sub { font-size: .9rem; font-weight: 500; color: var(--ink-mute); margin-bottom: .4rem; }
/* Pegado al fondo del panel: sin espacio por debajo, para que el contenido
   que scrollea no se vea asomar entre el botón y el borde. */
.cart-checkout {
  width: 100%; justify-content: center;
  position: sticky; bottom: 0; z-index: 2;
  margin-top: 1rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}
.cart-checkout svg { width: 18px; height: 18px; }
.cart-privacy { margin-top: .6rem; font-size: .78rem; line-height: 1.4; text-align: center; color: var(--ink-mute); }
.cart-privacy a, .review-privacy a { text-decoration: underline; }

/* --- Custom cursor --- */
[data-cursor] {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 40px; height: 40px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
  will-change: transform;
}
[data-cursor].is-ready { opacity: 1; }
.has-custom-cursor, .has-custom-cursor a, .has-custom-cursor button {
  cursor: none;
}

.nav-mobile {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: circle(150% at calc(100% - 40px) 40px); }
.nav-mobile a:not(.btn) {
  font-family: var(--heading); font-weight: 600; font-size: 1.7rem;
}
.nav-mobile a.btn { min-width: 200px; }
.nav-mobile .btn-primary { background: var(--green); }
.nav-mobile .btn-primary:hover { background: var(--mustard); color: var(--ink); }
.nav-mobile a.btn:last-child { margin-top: .6rem; }
@media (min-width: 960px) { .nav-mobile { display: none; } }

/* --- Cards --- */
.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid var(--line);
}

/* Product card (home preview) */
.product-card {
  position: relative;
  background: var(--card-green);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.8rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
  transform-origin: bottom left;
}
.product-card:hover {
  transform: translateY(-6px) rotate(3deg);
  box-shadow: 0 26px 40px -14px rgba(30,74,46,0.35);
}
.product-photo {
  width: 100%; max-width: 220px; aspect-ratio: 4 / 3;
  background: var(--cream);
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.12));
}
.product-card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.product-card p { font-size: .92rem; opacity: .92; margin-bottom: 1rem; flex: 1; }
.product-footer {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  flex-wrap: wrap; width: 100%;
}
.product-price {
  font-family: var(--heading); font-weight: 600; font-size: 1.1rem;
  background: rgba(255,255,255,0.18);
  padding: .35rem 1rem; border-radius: 999px;
}
.btn-add {
  font-family: var(--heading); font-weight: 600; font-size: .88rem;
  padding: .55rem 1.15rem; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  transition: transform .3s var(--ease-bounce), background .3s;
}
.btn-add:hover { background: var(--mustard); transform: translateY(-2px); }
.btn-add.is-added { background: var(--mustard); }
.btn-add.is-added::after { content: " ✓"; }
.btn-add:disabled {
  background: rgba(0,0,0,0.25); color: rgba(255,255,255,0.7);
  cursor: not-allowed; transform: none;
}
.btn-add:disabled:hover { background: rgba(0,0,0,0.25); transform: none; }

/* --- Sin stock: se controla desde la columna "stock" de la Sheet --- */
.product-card.is-out-of-stock .product-photo,
.menu-item.is-out-of-stock .menu-item-img {
  filter: grayscale(1); opacity: .55;
}
.product-card.is-out-of-stock:hover { transform: none; box-shadow: none; }

/* --- Explosión de cheddar en cada click (main.js: burstCheddarAt) --- */
.cheddar-burst {
  position: fixed; z-index: 500;
  width: 0; height: 0; pointer-events: none;
}
.cheddar-bit {
  position: absolute; top: 0; left: 0;
  width: var(--bit-size, 10px); height: var(--bit-size, 10px);
  background: var(--bit-color, #F0A83C);
  border-radius: 3px;
  transform: translate(-50%, -50%) scale(.4);
  opacity: 1;
  animation: cheddar-pop .65s cubic-bezier(.2, .8, .3, 1) forwards;
}
@keyframes cheddar-pop {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(.4); opacity: 1; }
  55% { opacity: 1; }
  100% {
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--rot)) scale(.6);
    opacity: 0;
  }
}

/* --- Hamburguesa que vuela al carrito (main.js: flyBurgerTo) --- */
.burger-fly {
  position: fixed; z-index: 600; pointer-events: none;
  width: 54px; height: auto;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  animation: burger-fly-path 1.1s cubic-bezier(.3, .1, .3, 1) forwards; /* main.js (FLY_MS) pisa esta duración */
  filter: drop-shadow(0 6px 10px rgba(30, 74, 46, 0.35));
}
@keyframes burger-fly-path {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
  40% {
    transform: translate(calc(-50% + var(--mid-x)), calc(-50% + var(--mid-y))) scale(.8) rotate(var(--spin-mid));
  }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.1) rotate(var(--spin-end));
    opacity: .2;
  }
}
.cart-button.is-bump { animation: cart-bump .42s ease; }
@keyframes cart-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.28); }
  65% { transform: scale(.9); }
  100% { transform: scale(1); }
}
.btn-add--sm { font-size: .8rem; padding: .45rem 1rem; background: var(--green); margin-top: .7rem; }
.btn-add--sm:hover { background: var(--mustard); }
.product-badge {
  position: absolute; top: -12px; right: 18px;
  background: var(--mustard); color: var(--ink-dark, #2b1a03);
  font-family: var(--heading); font-weight: 600; font-size: .74rem;
  padding: .35rem .8rem; border-radius: 999px;
  transform: rotate(4deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.product-badge--out { background: var(--ink-mute); color: var(--cream); }
.menu-item .tag--out { color: var(--ink-mute); }

/* Menu item row */
.menu-category { margin-bottom: 3rem; }
.menu-category-title {
  display: flex; align-items: center; gap: .8rem;
  font-size: 1.5rem; margin-bottom: 1.4rem;
}
.menu-category-title::after {
  content: ""; flex: 1; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px);
  opacity: .35;
}
.menu-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .menu-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }
.menu-item {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft), border-color .3s;
}
.menu-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 34px -16px rgba(30,74,46,0.25);
  border-color: transparent;
}
.menu-item-img {
  width: 100%; aspect-ratio: 4 / 3; flex: none;
  background: var(--bg);
  object-fit: cover;
}
.menu-item-body { flex: 1; min-width: 0; padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; }
.menu-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.menu-item-top h4 { font-size: 1.1rem; }
.menu-item-price { font-family: var(--heading); font-weight: 600; color: var(--green); white-space: nowrap; }
.menu-item p { color: var(--ink-mute); font-size: .92rem; margin-top: .35rem; flex: 1; }
.menu-item .tag {
  display: inline-block; margin-top: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--mustard);
}

/* "Incluye papas a elección" — mismo dato, dos fondos: se lee sobre el
   verde de las tarjetas destacadas y sobre el papel del menú completo. */
.product-includes {
  font-family: var(--heading); font-weight: 600; font-size: .78rem;
  margin-top: -.4rem; margin-bottom: .9rem;
  flex: none;
}
.product-card .product-includes { color: var(--cream); opacity: .85; }
.menu-item .product-includes { color: var(--green); margin-bottom: .3rem; }

/* --- Forms --- */
.field { margin-bottom: 1.3rem; }
.field label {
  display: block; font-family: var(--heading); font-weight: 600; font-size: .88rem;
  margin-bottom: .45rem; color: var(--ink-soft);
}
.field input, .field textarea {
  width: 100%; padding: .9rem 1rem; border-radius: var(--radius-sm);
  border: 2px solid var(--line); background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1rem;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--green); outline: none; }
.field textarea { min-height: 140px; resize: vertical; }

.cta-form { position: relative; }
.cta-form.is-sent .form-fields { opacity: 0; pointer-events: none; transform: translateY(-8px); }
.form-fields { transition: opacity .5s var(--ease-out), transform .5s var(--ease-soft); }
.form-success {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .6s var(--ease-out) .15s;
}
.form-success.is-visible { opacity: 1; pointer-events: auto; }
.form-success h3 { color: var(--green); margin-bottom: .5rem; }
.submit-spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: var(--cream);
  animation: spin .8s linear infinite;
}
.is-sending .submit-spinner { display: inline-block; }
.is-sending .submit-label { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Hero --- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 4rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: clip;
}
.hero-grid {
  display: grid; gap: 2.5rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2rem; }
}
.hero-copy { text-align: center; }
@media (min-width: 960px) { .hero-copy { text-align: left; } }
.hero-title {
  font-size: clamp(2.3rem, 5.6vw, 3.8rem);
  margin-top: .7rem;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: normal; color: var(--green);
}
.hero-sub {
  margin-top: 1.1rem; font-size: 1.1rem; color: var(--ink-soft);
  max-width: 46ch;
}
@media (min-width: 960px) { .hero-sub { margin-inline: 0; } }
.hero-sub { margin-inline: auto; }
.hero-actions {
  margin-top: 1.8rem;
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
@media (min-width: 960px) { .hero-actions { justify-content: flex-start; } }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-figure { position: relative; width: min(420px, 100%); }
.hero-figure > img { width: 100%; display: block; }

/* Invisible hotspot over the character's head — hover/tap reveals the bubble */
.head-hotspot {
  position: absolute; top: 0; right: 8%;
  width: 36%; height: 42%;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.head-hotspot-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--mustard);
  box-shadow: 0 0 0 5px rgba(226, 150, 58, 0.32);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .7; }
}
.head-hotspot:hover .head-hotspot-dot,
.head-hotspot:focus-visible .head-hotspot-dot,
.head-hotspot[aria-expanded="true"] .head-hotspot-dot {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) { .head-hotspot-dot { animation: none; } }

.hero-bubble {
  position: absolute; top: -6%; right: 2%;
  background: var(--paper);
  border-radius: 26px 26px 26px 4px;
  padding: 1rem 1.3rem;
  font-family: var(--heading); font-weight: 600; font-size: .98rem;
  max-width: 220px;
  box-shadow: 0 16px 30px -12px rgba(30,74,46,0.3);
  opacity: 0;
  transform: scale(0) rotate(-6deg);
  transform-origin: bottom left;
  pointer-events: none;
  transition: transform .45s var(--ease-bounce), opacity .25s var(--ease-out);
}
.head-hotspot:hover ~ .hero-bubble,
.head-hotspot:focus-visible ~ .hero-bubble,
.hero-bubble.is-open {
  opacity: 1;
  transform: scale(1) rotate(-3deg);
  pointer-events: auto;
}
@media (max-width: 719px) {
  .hero-bubble {
    top: 0; right: 4%;
    max-width: 168px;
    font-size: .82rem;
    padding: .7rem .95rem;
    border-radius: 20px 20px 20px 4px;
  }
}
.leaf-deco {
  position: absolute; color: var(--green); opacity: .55;
  width: 40px; height: 40px;
}
.leaf-deco.l1 { top: 6%; left: -2%; animation: floaty 5s ease-in-out infinite; }
.leaf-deco.l2 { bottom: 10%; right: -4%; width: 28px; height: 28px; animation: floaty 6s ease-in-out infinite 1s; }
.leaf-deco.l3 { top: 44%; left: 6%; width: 24px; height: 24px; animation: floaty 7s ease-in-out infinite .4s; display: none; }
@media (min-width: 720px) { .leaf-deco.l3 { display: block; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .leaf-deco { animation: none; } }

/* --- Product grid section --- */
.product-grid {
  display: grid; gap: 1.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

/* --- Promos (coupon style) --- */
.promo-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .promo-grid { grid-template-columns: repeat(3, 1fr); } }
.promo-card {
  position: relative;
  display: flex; align-items: stretch;
  background: var(--paper);
  border-radius: var(--radius-sm);
  border: 2px dashed var(--mustard);
  overflow: hidden;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.promo-card:hover { transform: translateY(-6px); box-shadow: 0 20px 34px -16px rgba(30,74,46,0.28); }
/* La cinta crece según el texto (entre 92 y 124px). Si una palabra sola
   sigue sin entrar, promos.js (fitPromoTags) le achica la letra; el
   "overflow: hidden" es la red de seguridad para que nunca se salga. */
.promo-tag {
  flex: none; min-width: 92px; max-width: 124px; width: fit-content;
  overflow: hidden;
  display: grid; place-items: center; text-align: center;
  background: var(--mustard); color: var(--ink);
  font-family: var(--heading); font-weight: 700; font-size: 1.05rem;
  padding: .5rem;
  position: relative;
}
.promo-tag::after {
  content: ""; position: absolute; inset-block: 0; right: -1px; width: 0;
  border-right: 2px dashed var(--paper);
}
.promo-body { padding: 1.2rem 1.3rem; flex: 1; }
.promo-body h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.promo-body p { color: var(--ink-mute); font-size: .9rem; }
.promo-until {
  display: inline-block; margin-top: .6rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--green);
}
.promo-footer {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  margin-top: 1rem;
}
.promo-hint {
  font-size: .78rem; color: var(--ink-mute); font-style: italic;
}
.promo-price {
  font-family: var(--heading); font-weight: 700; font-size: 1.3rem;
  color: var(--green);
}
.promo-card.is-out-of-stock .promo-body { opacity: .6; }

/* --- Reviews --- */
.review-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .review-grid { grid-template-columns: repeat(4, 1fr); } }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.2rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--line);
  color: var(--ink-mute);
  font-size: 1rem;
}
.review-card {
  background: var(--mint);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.3rem;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.review-card:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 20px 34px -16px rgba(30,74,46,0.22); }
.stars { display: flex; gap: .15rem; margin-bottom: .7rem; }
.star { width: 16px; height: 16px; fill: none; stroke: var(--mustard); stroke-width: 1.4; }
.star.is-full { fill: var(--mustard); }
.review-text { color: var(--ink-soft); font-size: .92rem; flex: 1; }
.review-foot { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-top: 1rem; }
.review-name { font-family: var(--heading); font-weight: 600; font-size: .92rem; }
.review-source { font-size: .74rem; color: var(--ink-mute); }

/* --- Nosotros / about split --- */
.about-split {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 960px) { .about-split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.about-figure {
  display: grid; place-items: center;
}
.about-figure img { width: min(320px, 100%); }
.about-list { margin-top: 1.4rem; display: grid; gap: .9rem; }
.about-list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink-soft); }
.about-list li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: var(--cream);
  display: grid; place-items: center; font-size: .8rem; margin-top: .1rem;
}

/* --- Map / contact strip --- */
.info-strip {
  display: grid; gap: 1.6rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
@media (min-width: 960px) { .info-strip { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.info-map { border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.info-map img { width: 100%; display: block; }
.info-map iframe { width: 100%; height: 260px; display: block; border: 0; }
@media (min-width: 720px) { .info-map iframe { height: 320px; } }
.info-details h3 { color: var(--cream); font-size: 1.6rem; margin-bottom: .8rem; }
.info-row {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem 0; border-top: 1px solid rgba(251,246,233,0.14);
  font-size: 1rem;
}
.info-row:first-of-type { border-top: none; }
.info-row svg { width: 20px; height: 20px; flex: none; color: var(--mustard); }
.social-row { display: flex; gap: .8rem; margin-top: 1.3rem; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(251,246,233,0.35);
  display: grid; place-items: center;
  transition: background .3s, transform .35s var(--ease-bounce);
}
.social-row a:hover { background: var(--mustard); transform: translateY(-3px) rotate(-6deg); border-color: transparent; }
.social-row svg { width: 18px; height: 18px; }

/* --- Location card --- */
.location-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem;
  display: grid; gap: 1.4rem;
}
@media (min-width: 720px) { .location-card { grid-template-columns: 1fr 1.3fr; align-items: center; } }
.location-card + .location-card { margin-top: 1.4rem; }
.location-card h3 { font-size: 1.4rem; margin-bottom: .6rem; }

/* --- Page hero (interior pages) --- */
.page-hero {
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: 2.5rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-top: .6rem; }
.page-hero p { margin-top: .9rem; color: var(--ink-soft); max-width: 52ch; margin-inline: auto; }

/* --- Footer --- */
.site-footer {
  background: var(--ink); color: var(--cream);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid; gap: 2.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-brand img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.footer-col h4 { font-family: var(--heading); font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; color: var(--mustard); margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(251,246,233,0.14);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .85rem; color: rgba(251,246,233,0.7);
}
.footer-admin-link { color: inherit; opacity: .55; text-decoration: none; }
.footer-admin-link:hover { opacity: 1; text-decoration: underline; }
.footer-credit-link { color: #4a9eff; text-decoration: underline; text-underline-offset: 2px; }
.footer-credit-link:hover { color: #74b6ff; }
.footer-socials { display: flex; gap: .8rem; }
.footer-socials a { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(251,246,233,0.3); display: grid; place-items: center; transition: background .3s, transform .3s var(--ease-bounce); }
.footer-socials a:hover { background: var(--mustard); transform: translateY(-3px); border-color: transparent; }
.footer-socials svg { width: 16px; height: 16px; }

/* =============================================================
   7. Effects (reveal, tilt-lite)
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
/* Lower specificity than component :hover rules (e.g. .product-card:hover)
   on purpose — otherwise this would permanently cancel their transform
   once an element is revealed, since both would tie on specificity and
   this rule sits later in the file. */
.is-revealed { opacity: 1; transform: none; }
[data-reveal][data-split] { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive helpers already inline per component
   ============================================================= */

/* --- Toast (avisos cortos, ej. promo no disponible) --- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300;
  transform: translate(-50%, 16px);
  background: var(--ink); color: var(--cream);
  padding: .9rem 1.3rem; border-radius: 16px;
  font-family: var(--heading); font-weight: 600; font-size: .88rem;
  line-height: 1.4;
  box-shadow: 0 20px 34px -14px rgba(20,35,25,0.5);
  max-width: min(340px, calc(100vw - 2rem));
  text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* =============================================================
   8b. Armado de ingredientes (modal)
   ============================================================= */
.cart-item-extras {
  margin: .35rem 0 0;
  display: grid; gap: .15rem;
  font-size: .78rem; line-height: 1.35;
  color: var(--ink-mute);
}
.cart-item-extras li { display: flex; gap: .35rem; }
.cart-item-extra-price { color: var(--green); font-weight: 600; }

.ing-modal {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out);
}
.ing-modal[data-open="true"] { opacity: 1; pointer-events: auto; }

.ing-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 35, 25, 0.5);
  border: 0; padding: 0;
}

/* --- Aviso "este producto tiene promo" (cart.js: showPromoNudge) --- */
.nudge-modal {
  position: fixed; inset: 0; z-index: 410;
  display: grid; place-items: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out);
}
.nudge-modal[data-open="true"] { opacity: 1; pointer-events: auto; }
.nudge-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 35, 25, 0.5);
  border: 0; padding: 0;
}
.nudge-panel {
  position: relative;
  width: min(400px, 100%);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(20, 35, 25, 0.45);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  transform: translateY(14px) scale(.98);
  transition: transform .4s var(--ease-bounce);
}
.nudge-modal[data-open="true"] .nudge-panel { transform: translateY(0) scale(1); }
.nudge-close { position: absolute; top: .8rem; right: .8rem; }
.nudge-tag {
  display: inline-block;
  background: var(--mustard); color: var(--ink);
  font-family: var(--heading); font-weight: 700; font-size: .74rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 999px;
}
.nudge-panel h3 { font-size: 1.3rem; margin-top: .9rem; }
.nudge-text { color: var(--ink-mute); font-size: .95rem; margin-top: .5rem; }
.nudge-actions { display: grid; gap: .6rem; margin-top: 1.4rem; }
.nudge-actions .btn { width: 100%; justify-content: center; }

/* --- "Dejar mi reseña" (lib/review-form.js): reutiliza la ventana del aviso --- */
.review-panel { text-align: left; }
.review-panel h3, .review-panel .nudge-text { text-align: center; }
.review-fields { display: grid; gap: .7rem; margin-top: 1.1rem; }
.review-fields .delivery-field { margin-top: 0; }
.review-fields textarea { resize: vertical; min-height: 96px; }
.review-stars { display: flex; gap: .15rem; justify-content: center; }
.review-stars button { font-size: 2rem; line-height: 1; color: var(--line); padding: 0 .1rem; }
.review-stars button[aria-pressed="true"] { color: var(--mustard); }
.review-cta { margin-top: 1.8rem; }
.review-privacy { font-size: .8rem; line-height: 1.4; color: var(--ink-mute); margin-top: .4rem; }

.ing-panel {
  position: relative;
  width: min(460px, 100%);
  max-height: min(88vh, 720px);
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(20, 35, 25, 0.45);
  overflow: hidden;
  transform: translateY(14px) scale(.98);
  transition: transform .4s var(--ease-bounce);
}
.ing-modal[data-open="true"] .ing-panel { transform: translateY(0) scale(1); }

.ing-head {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: 1.3rem 1.4rem 1rem;
  border-bottom: 1px solid var(--line);
}
.ing-photo {
  width: 64px; height: 64px; flex: none;
  border-radius: 14px; background: var(--bg);
  object-fit: contain; padding: 6px;
}
.ing-head-text { flex: 1; min-width: 0; }
.ing-head-text h3 { font-size: 1.25rem; margin-top: .3rem; }
.ing-base { font-size: .84rem; color: var(--ink-mute); margin-top: .3rem; }
.ing-close {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-soft);
  font-size: 1.2rem; line-height: 1;
}
.ing-close:hover { background: var(--mustard); color: var(--cream); }

.ing-body { flex: 1; overflow-y: auto; padding: 1.1rem 1.4rem 1.3rem; }
.ing-group + .ing-group { margin-top: 1.5rem; }
.ing-group-title {
  font-family: var(--heading); font-weight: 700; font-size: .78rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--mustard);
}
.ing-group-hint { font-size: .78rem; color: var(--ink-mute); margin-top: .2rem; }
.ing-list { display: grid; gap: .5rem; margin-top: .7rem; }

.ing-option {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .85rem;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  font-size: .92rem; cursor: pointer;
  transition: border-color .25s, background .25s;
}
.ing-option:hover { border-color: var(--card-green); }
.ing-option input { accent-color: var(--green); width: 17px; height: 17px; flex: none; }
.ing-option.is-checked { border-color: var(--green); background: var(--mint); }
.ing-option-name { flex: 1; min-width: 0; }
.ing-option-price {
  font-family: var(--heading); font-weight: 600; font-size: .86rem;
  color: var(--green); white-space: nowrap;
}
.ing-option-price--free {
  font-weight: 500; font-size: .76rem; text-transform: uppercase;
  letter-spacing: .03em; color: var(--ink-mute);
}
.ing-option--qty { cursor: default; }
.ing-option--qty:hover { border-color: var(--line); }
.ing-option--qty.is-checked:hover { border-color: var(--green); }
.ing-option-qty { flex: none; padding: .15rem .5rem; gap: .5rem; }
.ing-option-qty button:disabled { opacity: .4; box-shadow: none; }
.ing-option-qty button:disabled:hover { background: var(--paper); color: inherit; }

/* Sin stock: se controla desde la columna "stock" de la hoja Ingredientes */
.ing-option.is-out-of-stock { opacity: .55; cursor: not-allowed; }
.ing-option.is-out-of-stock:hover { border-color: var(--line); }
.ing-option-price--out {
  font-weight: 700; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .03em; color: #d9534f;
}

.ing-foot {
  display: flex; align-items: center; gap: .8rem;
  padding: 1rem 1.4rem 1.3rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.ing-qty { flex: none; padding: .4rem .7rem; }
.ing-confirm { flex: 1; justify-content: center; font-size: .95rem; padding-inline: 1rem; }

/* En celular funciona mejor como hoja que sube desde abajo */
@media (max-width: 620px) {
  .ing-modal { padding: 0; place-items: end center; }
  .ing-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius) var(--radius) 0 0;
    transform: translateY(100%);
  }
  .ing-modal[data-open="true"] .ing-panel { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ing-panel { transition: none; }
}

/* =============================================================
   8c. Chip de estado (Abierto / Cerrado) en la barra superior
   ============================================================= */
.status-chip { position: relative; flex: none; }

.status-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: var(--paper);
  border: 2px solid var(--line);
  font-family: var(--heading); font-weight: 600; font-size: .84rem;
  color: var(--ink);
  transition: border-color .25s, background .25s, transform .3s var(--ease-bounce);
}
.status-btn:hover { transform: translateY(-2px); }

.status-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--mustard);
}
.status-chip[data-abierto="true"] .status-btn { border-color: var(--card-green); background: var(--mint); }
.status-chip[data-abierto="true"] .status-dot {
  background: var(--green);
  animation: statusPulse 2.4s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 107, 69, 0.45); }
  70%      { box-shadow: 0 0 0 6px rgba(47, 107, 69, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .status-chip[data-abierto="true"] .status-dot { animation: none; }
}

.status-pop {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 260px; max-width: calc(100vw - 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 20px 40px -16px rgba(30, 74, 46, 0.35);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.status-chip[data-pop="true"] .status-pop {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}

.status-pop-title {
  font-family: var(--heading); font-weight: 700; font-size: .95rem;
  color: var(--ink);
}
.status-pop-detail {
  margin-top: .15rem;
  font-size: .82rem; color: var(--green); font-weight: 600;
}
.status-pop-list {
  margin-top: .8rem; padding-top: .8rem;
  border-top: 1px solid var(--line);
  display: grid; gap: .35rem;
  font-size: .82rem;
}
.status-pop-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: .7rem;
  color: var(--ink-mute);
}
.status-pop-list strong { font-family: var(--heading); font-weight: 600; color: var(--ink-soft); }
.status-pop-list li.is-today { color: var(--ink); }
.status-pop-list li.is-today strong { color: var(--green); }

/* En pantallas chicas la barra ya tiene el carrito y el menú: dejamos solo
   el punto de color para no amontonar. */
@media (max-width: 480px) {
  .status-label { display: none; }
  .status-btn { width: 42px; height: 42px; padding: 0; justify-content: center; }
}

/* =============================================================
   8d. Cartel colgante de "Estamos cerrados"
   ============================================================= */
.closed-modal {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  padding: 1.2rem;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.closed-modal[data-open="true"] { opacity: 1; pointer-events: auto; }

.closed-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 28, 20, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 0; padding: 0;
}

/* El cartel cuelga desde el gancho de arriba, por eso el origen de la
   rotación va en el tope: así el balanceo se ve como el de un cartel real. */
.closed-sign {
  position: relative;
  width: min(360px, 100%);
  /* Es un grid item: sin esto, min-width:auto lo deja crecer hasta el
     min-content del tablero y el gancho queda descentrado respecto de él. */
  min-width: 0;
  padding-top: 64px;
  transform-origin: top center;
}
.closed-modal[data-open="true"] .closed-sign {
  animation: signDrop 1.1s var(--ease-out) both;
}

.closed-hook {
  position: absolute; top: 0; left: 50%;
  width: 16px; height: 16px; margin-left: -8px;
  border: 3px solid var(--mustard);
  border-radius: 50%;
  background: transparent;
}

.closed-cord {
  position: absolute; top: 12px; left: calc(50% - 1px);
  width: 2px; height: 58px;
  background: var(--mustard);
  opacity: .85;
  transform-origin: top center;
}
.closed-cord--l { transform: rotate(-32deg); }
.closed-cord--r { transform: rotate(32deg); }

.closed-board {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 2.1rem 1.7rem 1.7rem;
  text-align: center;
  box-shadow:
    inset 0 0 0 2px rgba(251, 246, 233, 0.22),
    0 26px 50px -18px rgba(10, 22, 15, 0.75);
}

/* Los dos ojales por donde pasan las sogas. El desplazamiento sale de
   dónde termina cada soga: 58px de largo rotados 32° dan sin(32°)*58 ≈ 31px
   a cada lado del centro. Con box-sizing: border-box el ancho ya incluye
   el borde, así que se resta la mitad de esos 14px para centrarlo. */
.closed-ring {
  position: absolute; top: -7px;
  width: 14px; height: 14px;
  border: 3px solid var(--mustard);
  border-radius: 50%;
  background: var(--ink);
}
.closed-ring--l { left: calc(50% - 38px); }
.closed-ring--r { left: calc(50% + 24px); }

.closed-brand {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--mustard);
}
.closed-board h2 {
  font-size: clamp(1.6rem, 5vw, 2rem);
  margin-top: .35rem;
  color: var(--cream);
}
.closed-next {
  margin-top: .6rem;
  font-family: var(--heading); font-weight: 600;
  font-size: .95rem;
  color: var(--mint);
}

.closed-hours {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(251, 246, 233, 0.18);
  display: grid; gap: .4rem;
  font-size: .86rem;
}
.closed-hours li {
  display: flex; align-items: baseline; justify-content: space-between; gap: .8rem;
  color: rgba(251, 246, 233, 0.78);
}
.closed-hours strong { color: var(--cream); font-family: var(--heading); font-weight: 600; }

.closed-cta {
  margin-top: 1.4rem;
  width: 100%; justify-content: center;
  background: var(--mustard); color: var(--ink);
  font-size: .95rem;
}
.closed-cta:hover { background: var(--cream); color: var(--ink); }

@keyframes signDrop {
  0%   { opacity: 0; transform: translateY(-30px) rotate(-7deg); }
  55%  { opacity: 1; transform: translateY(0) rotate(4deg); }
  72%  { transform: rotate(-2.6deg); }
  86%  { transform: rotate(1.3deg); }
  95%  { transform: rotate(-0.5deg); }
  100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .closed-modal[data-open="true"] .closed-sign { animation: none; }
}

/* =============================================================
   8e. Foto de producto ampliada
   ============================================================= */
[data-zoomable] { cursor: zoom-in; }

.photo-modal {
  position: fixed; inset: 0; z-index: 450;
  display: grid; place-items: center;
  padding: 2rem 1.2rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out);
}
.photo-modal[data-open="true"] { opacity: 1; pointer-events: auto; }

.photo-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 35, 25, 0.78);
  border: 0; padding: 0;
}

.photo-panel {
  position: relative;
  max-width: min(560px, 100%);
  max-height: 100%;
  transform: scale(.94);
  transition: transform .35s var(--ease-bounce);
}
.photo-modal[data-open="true"] .photo-panel { transform: scale(1); }

.photo-panel-img {
  width: 100%; max-height: 80vh;
  border-radius: var(--radius);
  background: var(--paper);
  object-fit: contain;
  box-shadow: 0 30px 60px -20px rgba(10, 20, 14, 0.6);
}

.photo-close {
  position: absolute; top: -14px; right: -14px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--cream);
  font-size: 1.3rem; line-height: 1;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.photo-close:hover { background: var(--mustard); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .photo-panel { transition: none; }
}

/* =============================================================
   9. Reduced motion — only truly intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .leaf-deco { animation: none !important; }
}
