/* Plantilla gastronómica: diseño neutro de base, pensado para reemplazarse por la identidad de cada local.
   Para cambiar el estilo, empezá por las variables de :root (colores y fuentes). Ningún texto baja de 12 px. */
:root {
  color-scheme: light;
  /* Colores: papel cálido, tinta, un solo color de acento y el rojo "al aire" del cartel de abierto. */
  --bg: #f6f1e8; --surface: #fffaf2; --ink: #1f1b16; --muted: #6b6258; --line: #1f1b1626;
  --accent: #b9472a; --accent-hover: #a33d23; --accent-ink: #ffffff; --accent-soft: #b9472a14;
  --band: #1f1b16; --band-ink: #f6f1e8; --band-muted: #c9bfb2; --live: #d23b2b;
  /* Fuentes: Barlow Condensed para títulos y precios; Barlow para leer. */
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.2,.75,.2,1); --header-height: 80px; --radius: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 80px); scrollbar-color: #1f1b1655 var(--bg); }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); font-synthesis: none; }
body.modal-open { overflow: hidden; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, calc(100% - 64px)); 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; }
.skip-link { position: fixed; left: 16px; top: -90px; z-index: 40; padding: 12px; background: var(--accent); color: var(--accent-ink); }
.skip-link:focus { top: 12px; }
h1, h2, h3, h4, p { margin-top: 0; }
h2 { margin-bottom: 18px; font: 800 clamp(40px,4.6vw,64px)/.95 var(--display); text-transform: uppercase; letter-spacing: -.5px; }
h3 { font: 700 26px/1.05 var(--display); text-transform: uppercase; }
.eyebrow { color: var(--accent); font-size: 15px; font-weight: 600; margin-bottom: 10px; }

/* Buttons and links */
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: var(--radius); min-height: 48px; padding: 12px 22px; background: var(--accent); color: var(--accent-ink); font: 600 16px/1 var(--body); transition: background-color 160ms, transform 100ms; }
.primary:hover { background: var(--accent-hover); }
.primary:active { transform: translateY(1px); }
.secondary, .remove { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid #1f1b1640; border-radius: var(--radius); background: transparent; color: var(--ink); font-weight: 600; transition: background-color 160ms, border-color 160ms, transform 100ms; }
.secondary:hover, .remove:hover:not(:disabled) { background: #1f1b160d; border-color: var(--ink); }
.secondary:active, .remove:active:not(:disabled) { transform: translateY(1px); }
.secondary-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; border-bottom: 2px solid var(--line); }
.secondary-link:hover { color: var(--accent); border-color: currentColor; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: #f6f1e8f2; border-bottom: 1px solid transparent; transition: border-color 180ms, background-color 180ms; }
.header.scrolled { background: #f6f1e8fc; border-bottom-color: var(--line); }
.header-inner { display: flex; gap: 28px; align-items: center; min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { display: block; flex-shrink: 0; }
.brand > span { display: grid; gap: 3px; }
.brand-name { font: 800 24px/1 var(--display); text-transform: uppercase; letter-spacing: .3px; }
.brand small { font-size: 13px; color: var(--muted); line-height: 1; }
.header nav { display: flex; margin-left: auto; gap: 28px; align-items: center; font-weight: 600; }
.header nav a { padding-block: 12px; transition: color 140ms; }
.header nav a:hover { color: var(--accent); }
.nav-toggle { display: none; }

/* Open-now sign: header on wide screens, first line of the hero on smaller ones (app.js moves it). */
.open-status { display: inline-flex; align-items: center; gap: 9px; margin: 0; font: 600 15px/1.2 var(--display); letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.open-status strong { font-weight: 800; color: var(--ink); }
.open-status.is-open strong { color: var(--accent); }
.open-status-dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: #a39a8f; }
/* Looping animations pause while their element is off screen (app.js toggles .is-offscreen). */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
/* "On air" pulse: a ring that grows and fades. It animates only transform and opacity (run by the compositor); the old
   box-shadow pulse made the browser recompute styles on every frame, forever, while the local was open. */
.open-status.is-open .open-status-dot { position: relative; background: var(--live); }
.open-status.is-open .open-status-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #d23b2b66; animation: on-air 1.6s ease-out infinite; }
.header .open-status { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.hero .open-status { margin-bottom: 20px; }
@keyframes on-air { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.8); opacity: 0; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; min-height: 620px; padding-block: 48px 64px; }
.hero.no-showcase { grid-template-columns: 1fr; min-height: 0; }
.hero h1 { font: 800 clamp(52px,6vw,86px)/.95 var(--display); text-transform: uppercase; letter-spacing: -1px; margin: 0 0 22px; }
.hero h1 em { font-style: normal; color: var(--accent); display: block; }
.hero-copy { font-size: 19px; max-width: 34ch; color: var(--muted); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.hero-actions .primary { min-width: 160px; min-height: 52px; }
.hero-selector { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.selector-label { color: var(--muted); font-size: 15px; }
.selector-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.selector-buttons button { min-height: 44px; max-width: 100%; padding: 8px 16px; color: var(--muted); border: 1px solid var(--line); background: transparent; border-radius: 999px; font: 700 17px/1 var(--display); text-transform: uppercase; transition: background-color 160ms, color 160ms, border-color 160ms; overflow-wrap: anywhere; }
.selector-buttons button[aria-pressed=true] { color: var(--accent-ink); background: var(--ink); border-color: var(--ink); }
.selector-buttons button:hover:not([aria-pressed=true]) { color: var(--ink); border-color: var(--ink); }
.hero-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 460px; }
.hero-card { position: relative; width: min(380px, 88%); padding: 12px 12px 16px; background: var(--surface); border-radius: 10px; box-shadow: 0 1px 0 var(--line), 0 24px 50px -24px #1f1b1666; transform: rotate(2deg); }
.hero-photo-wrap { aspect-ratio: 1.2; overflow: hidden; border-radius: 6px; background: #efe6d8; touch-action: pan-y; }
.hero-photo { width: 100%; height: 100%; background: center/cover no-repeat; }
.hero-photo.no-photo { background-size: 42%; background-color: #efe6d8; opacity: .55; }
.hero-product-line { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 14px 8px 2px; }
.photo-count { font-size: 12px; letter-spacing: 1.5px; color: var(--muted); }
.hero-product-line h2 { font-size: 34px; margin: 4px 0 0; }
.hero-product-line > strong { font: 800 30px/1 var(--display); color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-card > p { font-size: 15px; color: var(--muted); padding-inline: 8px; margin: 6px 0 8px; min-height: 44px; }
.hero-card > a { display: flex; align-items: center; min-height: 44px; margin: 0 8px; font-weight: 600; border-top: 1px solid var(--line); text-decoration: underline; text-underline-offset: 3px; }
.hero-tag { position: absolute; top: 6px; right: 6%; z-index: 2; padding: 12px 16px; background: var(--accent); color: var(--accent-ink); font: 800 22px/.95 var(--display); text-transform: uppercase; text-align: center; border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; min-width: 96px; transform: rotate(8deg); max-width: 150px; overflow-wrap: anywhere; }
.hero-drag .hero-photo-wrap { cursor: grab; user-select: none; -webkit-user-select: none; }
.hero-drag .hero-card.is-dragging .hero-photo-wrap { cursor: grabbing; }

/* Chalkboard "Hoy en el local": the panel's phrases written in chalk on a framed slate, like the board on a bodegón wall.
   Desktop: it hangs beside the menu title (absolutely placed, so it never pushes the page). Phones: under the title.
   Each line is written in, left to right, the first time the board is seen (app.js .is-written; still with reduced motion). */
:root { --slate: #233029; --slate-deep: #1b2420; --chalk: #f1ece1; --chalk-yellow: #e9c46a; --frame: #8b5a33; }
.pizarra { position: relative; width: min(360px, 100%); padding: 16px 22px 18px; color: var(--chalk); background: radial-gradient(#ffffff0b 1px, transparent 1.5px) 0 0 / 9px 9px, linear-gradient(160deg, var(--slate), var(--slate-deep)); border: 7px solid var(--frame); border-radius: 7px; box-shadow: inset 0 0 0 1px #0000004d, inset 0 0 26px #00000040, 0 20px 30px -20px #1f1b16a0; rotate: -2deg; }
.pizarra::before { content: ''; position: absolute; top: -17px; left: 50%; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: #a39a8f; box-shadow: 0 1px 0 #1f1b1666; }
.pizarra-title { margin: 0 0 8px; color: var(--chalk-yellow); font: 700 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; }
.pizarra-lines { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.pizarra-lines li { position: relative; padding-left: 18px; font: 600 21px/1.15 var(--display); letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 0 1px #ffffff66, 0 0 6px #ffffff14; }
.pizarra-lines li::before { content: '–'; position: absolute; left: 0; color: var(--chalk-yellow); }
.pizarra.will-write .pizarra-lines li { clip-path: inset(-6px 100% -6px -6px); }
.pizarra.is-written .pizarra-lines li { clip-path: inset(-6px -6px -6px -6px); transition: clip-path 760ms cubic-bezier(.45,.05,.3,1) calc(var(--i, 0) * 230ms + 180ms); }
/* The board sits close to the menu title, and the line-drawn empanada (section-heading::before) peeks out from behind its
   top edge, a little stronger than the other background drawings. */
@media (min-width: 901px) {
  .menu .section-heading { position: relative; }
  .menu .pizarra { position: absolute; right: 24px; top: 4px; z-index: 1; }
  /* .is-wide (5+ phrases) is set once by app.js: a :has() here would be re-checked on every change in the page. */
  .menu .pizarra.is-wide { width: 540px; }
  .menu .pizarra.is-wide .pizarra-lines { grid-template-columns: auto auto; column-gap: 26px; }
}
@media (max-width: 900px) { .menu .pizarra { margin: 8px 0 22px 4px; rotate: -1deg; } }

/* Menu */
.menu { padding-block: 72px 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-note { color: var(--muted); margin: -8px 0 22px; max-width: 32ch; text-align: left; }
.menu-nav { position: sticky; top: var(--header-height); z-index: 10; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; margin-block: 8px 32px; background: var(--bg); border-bottom: 1px solid var(--line); }
.menu-nav a { position: relative; z-index: 1; display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; padding: 8px 16px; border-radius: 999px; font: 700 19px/1 var(--display); text-transform: uppercase; color: var(--muted); transition: color 180ms; }
.menu-nav a[aria-current] { color: var(--accent-ink); }
.menu-nav a:hover:not([aria-current]) { color: var(--ink); }
.nav-ink { position: absolute; left: 0; top: 0; border-radius: 999px; background: var(--ink); transition: transform 250ms var(--ease), width 250ms var(--ease); pointer-events: none; }
.catalog-loading { color: var(--muted); }
.catalog-group { margin-bottom: 60px; }
.group-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 2px solid var(--ink); }
.group-heading h3 { font-size: 40px; font-weight: 800; margin: 0; }
.group-heading > span { color: var(--muted); }
.products { display: grid; gap: 16px; }
.product { position: relative; display: flex; flex-direction: column; min-width: 0; }
.product-top { display: flex; justify-content: space-between; gap: 18px; }
.product-heading { flex: 1; min-width: 0; }
.product h4 { font: 700 26px/1.05 var(--display); text-transform: uppercase; margin: 0 0 6px; overflow-wrap: anywhere; }
.product p { font-size: 15px; color: var(--muted); margin-bottom: 0; }
.product-photo { flex-shrink: 0; width: 104px; height: 92px; border-radius: var(--radius); background: #efe6d8 center/cover no-repeat; transition: transform 200ms var(--ease); }
.product-photo.no-photo { background-image: url('assets/imagenes/logo.svg'); background-size: 34%; background-position: center; opacity: .5; }
.product-selection { display: none; position: absolute; top: -10px; right: 0; padding: 0 8px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; line-height: 22px; border-radius: 4px; }
.product.in-cart .product-selection { display: block; }
.variants { display: grid; margin-top: 14px; }
.variant { display: grid; grid-template-columns: minmax(0,1fr) 208px; align-items: center; gap: 16px; padding-block: 8px; }
.variant + .variant { border-top: 1px solid var(--line); }
.variant-info { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.variant-info.price-only { justify-content: flex-end; }
.variant-name { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.variant-detail { white-space: nowrap; font-size: 14px; }
.price-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.variant-price { font: 800 28px/.95 var(--display); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.variant.selected .variant-price { color: var(--accent); }
.price-pending { font: 700 18px/1.1 var(--display); text-transform: uppercase; color: var(--muted); }
.sale-details { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.original-price { font-size: 14px; color: var(--muted); }
.price-discount, .discount-banner { font-size: 13px; }
.price-discount { background: var(--accent); color: var(--accent-ink); padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.discount-banner { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.unavailable { justify-self: end; color: var(--muted); font-size: 14px; font-weight: 600; }
/* Order controls: at zero only "Agregar" shows, always in the same spot; "Quitar" and the count appear to its left. */
.variant-actions { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; gap: 6px; }
.variant-actions button { min-height: 44px; min-width: 0; padding: 8px 10px; font-size: 14px; }
.variant-actions [data-add] { grid-column: 3; }
.variant-quantity { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.variant:not(.selected) .variant-actions .remove, .variant:not(.selected) .variant-quantity { display: none; }
.variant.selected .variant-actions .remove, .variant.selected .variant-quantity { animation: stepper-in 200ms var(--ease) backwards; }
@keyframes stepper-in { from { opacity: 0; transform: translateX(14px); } }
/* Layout "lista": rows divided by rules, like a printed menu. */
.layout-lista .products { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 48px; row-gap: 0; }
.layout-lista .product { padding: 22px 0; border-bottom: 1px solid var(--line); }
.layout-lista .product.in-cart { border-bottom-color: var(--accent); }
/* Layout "tarjetas": compact cards. */
.layout-tarjetas .products { grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); }
.layout-tarjetas .product, .layout-fotos .product { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.layout-tarjetas .product.in-cart, .layout-fotos .product.in-cart { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.layout-tarjetas .variant, .layout-fotos .variant { grid-template-columns: minmax(0,1fr); gap: 10px; }
.layout-tarjetas .product-photo { width: 84px; height: 76px; }
/* Layout "fotos": the photo leads. */
.layout-fotos .products { grid-template-columns: repeat(3,minmax(0,1fr)); }
.layout-fotos .product-top { flex-direction: column-reverse; gap: 16px; }
.layout-fotos .product-photo { width: 100%; height: auto; aspect-ratio: 4/3; }
@media (hover:hover) and (pointer:fine) {
  .product:hover .product-photo:not(.no-photo) { transform: scale(1.03); }
}

/* Hours: a change of rhythm, dark band. */
.hours { background: var(--band); color: var(--band-ink); padding-block: 72px; }
.hours .eyebrow { color: #f1a58f; }
.hours-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.hours h2 { font-size: clamp(48px,5.6vw,76px); }
.hours-tagline { color: var(--band-muted); font-size: 19px; margin: 0; }
.hours-times { display: grid; gap: 22px; }
.schedule { position: relative; padding-bottom: 22px; border-bottom: 1px solid #f6f1e833; }
.schedule:last-child { border: 0; padding-bottom: 0; }
.time-label { font: 700 24px/1 var(--display); text-transform: uppercase; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
/* The open schedule's dot (::after) and its pulsing ring (::before, laid over the dot with a negative margin). */
.schedule.is-open .time-label::after { content: ''; order: 2; width: 10px; height: 10px; border-radius: 50%; background: var(--live); }
.schedule.is-open .time-label::before { content: ''; order: 3; width: 10px; height: 10px; margin-left: -20px; border-radius: 50%; background: #d23b2b66; animation: on-air 1.6s ease-out infinite; }
.schedule h3 { font: 500 17px/1.4 var(--body); text-transform: none; color: var(--band-muted); margin-bottom: 6px; }
.time-value { font: 800 clamp(40px,4.6vw,60px)/1 var(--display); margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.time-value > span { font-size: .45em; padding-inline: 4px; color: var(--band-muted); }
#hours-exceptions { padding: 12px 16px; border: 1px solid #f6f1e855; border-radius: var(--radius); }
#hours-exceptions p { margin: 0; } #hours-exceptions p + p { margin-top: 6px; }
.hours-empty { color: var(--band-muted); }

/* Reviews */
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-block: 80px; align-items: start; }
.reviews h2 { margin-bottom: 26px; }
.review-content { padding-left: 28px; border-left: 1px solid var(--line); }
#review-empty { font-size: 18px; max-width: 320px; }
.public-review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.public-review p { margin: 6px 0; color: var(--muted); }
.review-disclaimer { color: var(--muted); font-size: 14px; max-width: 420px; margin: 16px 0 0; }

/* Mascot (assets/imagenes/personaje.svg): it greets beside the reviews and in the empty order. */
.reviews-intro { position: relative; }
.reviews-intro .mascot { display: block; width: 150px; height: auto; margin: 0 0 18px -6px; transform-origin: 50% 92%; }
.js-ready .reviews-intro .mascot { animation: mascot-wave 5s var(--ease) infinite; }
.empty-cart .empty-logo { width: 120px; height: auto; opacity: 1; }
@keyframes mascot-wave { 0%, 80%, 100% { transform: rotate(0); } 86% { transform: rotate(-6deg); } 93% { transform: rotate(4deg); } }
@media (max-width:700px) { .reviews-intro .mascot { width: 116px; } }

/* Footer */
footer { padding: 30px 0 110px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner > p { margin: 0; font-size: 14px; color: var(--muted); }

/* Floating order button: hidden while the order is empty; it rises in with the first product. */
.floating { position: fixed; bottom: 22px; right: 24px; z-index: 25; min-height: 56px; gap: 14px; padding: 12px 20px; box-shadow: 0 12px 30px -10px #1f1b1699; transition: transform 340ms var(--ease), opacity 220ms ease-out, visibility 0s, background-color 160ms; }
.floating.is-empty { opacity: 0; visibility: hidden; transform: translateY(calc(100% + 30px)); pointer-events: none; transition: transform 220ms ease-in, opacity 180ms ease-in, visibility 0s 220ms, background-color 160ms; }
#cart-count { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--accent-ink); color: var(--accent); font-size: 14px; font-weight: 700; }
#cart-float-total { padding-left: 14px; border-left: 1px solid #ffffff55; font-variant-numeric: tabular-nums; }
.cart-feedback { pointer-events: none; position: fixed; bottom: 90px; right: 24px; z-index: 24; margin: 0; padding: 10px 14px; background: var(--ink); color: var(--band-ink); border-radius: var(--radius); font-size: 14px; font-weight: 600; opacity: 0; }
.fly-token { position: fixed; left: 0; top: 0; z-index: 40; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 8px 18px #1f1b1655; pointer-events: none; will-change: transform; background: var(--accent) center/cover no-repeat; }

/* Dialogs: cart and review */
.panel { position: fixed; inset: auto 24px 96px auto; width: min(480px, calc(100% - 32px)); max-height: 80dvh; margin: 0; padding: 26px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 30px 80px -20px #1f1b1699; overflow: auto; overscroll-behavior: contain; }
.panel::backdrop { background: #1f1b1688; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.panel-header .eyebrow { font-size: 14px; margin-bottom: 4px; }
.panel h2 { font: 800 34px/1 var(--display); text-transform: uppercase; margin: 0; }
.close { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 50%; font-size: 24px; }
.close:hover { background: #1f1b160d; }
.cart-rows { position: relative; display: grid; padding: 4px 16px 8px; margin-bottom: 8px; background: var(--bg); border-radius: 8px; }
.cart-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-item-label { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 14px; font-weight: 600; }
.cart-item-label strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-controls { display: flex; gap: 7px; margin-top: 10px; }
.cart-controls button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); }
.cart-controls .remove { margin-left: auto; padding-inline: 12px; font-size: 13px; }
.cart-ghost { z-index: 2; pointer-events: none; background: var(--bg); }
.cart-summary { margin-top: 20px; }
.delivery-summary { padding: 14px 16px; margin-bottom: 18px; background: var(--accent-soft); border-radius: 8px; font-size: 14px; overflow-wrap: anywhere; }
.delivery-summary strong { display: block; color: var(--accent); margin-bottom: 6px; }
.delivery-summary p { margin: 4px 0; }
.cart-total { display: flex; justify-content: space-between; gap: 12px; font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.cart-total strong { font-variant-numeric: tabular-nums; }
.checkout-details { display: grid; gap: 18px; padding: 18px 0 6px; border-top: 1px solid var(--line); }
.order-timing { margin: 0; padding: 0; border: 0; min-width: 0; }
.order-timing legend { padding: 0; margin-bottom: 10px; font-size: 14px; }
.timing-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.timing-choice { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.timing-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.timing-choice input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.scheduled-time { margin-top: 14px; }
.notice { color: var(--muted); font-size: 13px; }
.checkout-error { font-size: 13px; color: #a3261c; }
.cart-summary > .primary { display: flex; width: 100%; margin-bottom: 10px; }
.cart-summary > .secondary { width: 100%; }
#send-whatsapp[aria-disabled=true] { background: #d9b3a6; color: #3d1d12; }
.order-notes { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.empty-cart { text-align: center; padding: 12px 4px 20px; }
.empty-logo { display: block; margin: 0 auto 16px; opacity: .6; }
.empty-cart h3 { margin-bottom: 8px; }
.empty-cart p { font-size: 14px; color: var(--muted); }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-size: 14px; }
input, textarea, select { width: 100%; border: 1px solid #1f1b1650; color: var(--ink); background: #fff; border-radius: var(--radius); padding: 11px 12px; font-size: 16px; }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); }
.stars { display: flex; flex-wrap: wrap; gap: 4px; }
.stars label { position: relative; display: flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.stars input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.stars label > span[aria-hidden] { font-size: 32px; line-height: 1; color: #1f1b1630; transition: color 120ms; }
.stars:has(input[value="1"]:checked) label:nth-child(-n+1) > span[aria-hidden],
.stars:has(input[value="2"]:checked) label:nth-child(-n+2) > span[aria-hidden],
.stars:has(input[value="3"]:checked) label:nth-child(-n+3) > span[aria-hidden],
.stars:has(input[value="4"]:checked) label:nth-child(-n+4) > span[aria-hidden],
.stars:has(input[value="5"]:checked) label:nth-child(-n+5) > span[aria-hidden] { color: var(--accent); }
.stars label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
#review-count { font-size: 13px; color: var(--muted); }
#review-status { margin: 16px 0 0; font-size: 14px; }
/* Anti-bot trap for reviews: invisible to people; bots that fill it are ignored by the server. */
.review-trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Responsive */
@media (max-width:1100px) {
  .layout-fotos .products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hours-inner, .reviews { gap: 48px; }
}
@media (max-width:900px) {
  .hero { gap: 24px; min-height: 0; }
  .hero-stage { min-height: 420px; }
  .variant { grid-template-columns: minmax(64px,1fr) minmax(170px,190px); gap: 10px; }
  .variant-info { flex-direction: column; align-items: start; gap: 3px; }
  .layout-lista .products { grid-template-columns: 1fr; }
  .product-photo { width: 86px; height: 78px; }
}
@media (max-width:700px) {
  :root { --header-height: 66px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { gap: 12px; flex-wrap: wrap; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 21px; }
  .brand small { display: none; }
  .header-order { min-width: 0; padding: 10px 16px; min-height: 44px; font-size: 15px; }
  .header nav { order: 4; width: 100%; margin: 0; padding-bottom: 10px; justify-content: space-around; gap: 12px; }
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--ink); font-size: 14px; }
  .nav-icon { width: 17px; height: 10px; border-block: 2px solid currentColor; }
  /* html.js is set by the first inline script, so the phone header is born with its final height (no jump on load). */
  .js .header nav { display: none; }
  .js .header nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; padding-block: 28px 52px; gap: 34px; }
  .hero h1 { font-size: clamp(44px,12vw,72px); }
  .hero-copy { font-size: 17px; }
  .hero-stage { min-height: 0; padding-block: 12px; }
  .hero-card { width: min(340px, 90%); }
  .hero-tag { min-width: 82px; font-size: 18px; right: 2%; }
  .section-heading { display: block; }
  .section-note { text-align: left; }
  h2 { font-size: 46px; }
  .menu { padding-block: 48px 12px; }
  .menu-nav { margin-bottom: 24px; }
  .menu-nav a { font-size: 17px; padding-inline: 14px; }
  .group-heading h3 { font-size: 34px; }
  .layout-tarjetas .products, .layout-fotos .products { grid-template-columns: 1fr; }
  .layout-fotos .product-top { flex-direction: row; }
  .layout-fotos .product-photo { width: 104px; height: 92px; aspect-ratio: auto; }
  .variant-actions button { font-size: 13px; }
  .hours { padding-block: 48px; }
  .hours-inner { grid-template-columns: 1fr; gap: 28px; }
  .reviews { grid-template-columns: 1fr; padding-block: 52px; gap: 28px; }
  .review-content { padding-left: 18px; }
  .floating { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  #cart-float-total { margin-left: auto; }
  .cart-feedback { bottom: 80px; right: 12px; left: 12px; }
  .panel { inset: auto 0 0; width: 100%; max-width: 100%; max-height: 90dvh; padding: 22px 18px max(22px, env(safe-area-inset-bottom)); border-radius: 14px 14px 0 0; }
}
@media (max-width:370px) {
  .brand-name { font-size: 19px; }
  .header-order { padding-inline: 12px; }
  .hero h1 { font-size: 40px; }
  .variant { grid-template-columns: minmax(0,1fr) 150px; gap: 7px; }
  .variant-actions { grid-template-columns: 1fr 22px 1fr; gap: 4px; }
  .variant-actions button { padding-inline: 4px; }
  .product-photo, .layout-fotos .product-photo { width: 76px; height: 70px; }
  .time-value { font-size: 40px; }
}

/* Ordering and food information, edited from the existing admin. */
.food-details { margin-top: 10px; font-size: 14px; }
.food-details summary { cursor: pointer; padding-block: 8px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.food-details p { white-space: pre-line; overflow-wrap: anywhere; }
/* "Ingredientes y alérgenos" unfolds instead of popping open (browsers with ::details-content; others open as before). */
@media (prefers-reduced-motion: no-preference) {
  .food-details { interpolate-size: allow-keywords; }
  .food-details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size 320ms var(--ease), opacity 260ms ease, content-visibility 320ms allow-discrete; }
  .food-details[open]::details-content { block-size: auto; opacity: 1; }
}
.diet-tag { display: inline-block; margin-top: 8px; padding: 3px 9px; border: 1px solid #51744266; border-radius: 4px; color: #345526; font-size: 13px; }
.service-info { margin-top: 28px; max-width: 44ch; padding-top: 22px; border-top: 1px solid #f6f1e844; }
.service-info h3 { font-size: 24px; margin-bottom: 10px; }
.service-info p, .service-info li { font-size: 15px; overflow-wrap: anywhere; }
.service-info .secondary-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 12px; }
.service-info ul { padding-left: 20px; }
.cart-breakdown { display: flex; justify-content: space-between; gap: 16px; margin-block: 8px; font-size: 15px; }
.cart-breakdown + .cart-total { margin-top: 16px; }
@media (max-width:700px) {
  .header .brand { gap: 8px; }
  .header .brand img { width: 32px; height: 32px; }
  .header .brand-name { font-size: 20px; }
}
@media (max-width:370px) {
  .header .brand-name { font-size: 17px; }
  .header-inner { gap: 10px; }
}

/* Reduced motion: nothing travels or loops. */
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Carta ampliada (impeccable: layout + delight) ── */
/* Section titles: a terracotta bar draws under the rule the first time the section is seen. */
.group-heading { position: relative; align-items: baseline; }
.group-heading::after { content: ''; position: absolute; left: 0; bottom: -2px; width: min(180px, 40%); height: 4px; background: var(--accent); transform-origin: left; transition: transform 600ms var(--ease); }
.js-ready .catalog-group:not(.is-seen) .group-heading::after { transform: scaleX(0); }
.group-count { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); }
/* Menu search */
.menu-search { position: relative; max-width: 420px; margin-top: 6px; }
.menu-search input { padding: 12px 84px 12px 44px; border-radius: 999px; border-color: var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6258' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 16px center / 18px; }
.menu-search input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.menu-search input::-webkit-search-cancel-button { display: none; }
.menu-search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: #1f1b160d; color: var(--ink); font-size: 13px; font-weight: 600; }
.menu-search-result { min-height: 0; margin: -18px 0 20px; color: var(--muted); font-size: 14px; }
.menu-search-result:empty { display: none; }
.catalog-group[hidden] { display: none; }
/* Layout "sabores": a grid of flavours, each card crimped on top like a repulgue. */
.layout-sabores .products { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 16px; padding-top: 10px; }
.layout-sabores .product { padding: 22px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 14px 14px; transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 180ms; }
.layout-sabores .product::before { content: ''; position: absolute; left: -1px; right: -1px; top: -9px; height: 10px; background: radial-gradient(circle at 50% 100%, #e2a24a 6.5px, transparent 7px) 0 0 / 16px 10px repeat-x; }
.layout-sabores .product.in-cart { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.layout-sabores .product h4 { font-size: 23px; }
.layout-sabores .product p { font-size: 14px; }
.layout-sabores .variant { grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; }
.layout-sabores .variant-price { font-size: 24px; }
.layout-sabores .variant-actions button { padding-inline: 6px; font-size: 13px; }
@media (hover: hover) and (pointer: fine) { .layout-sabores .product:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px #1f1b1677; } }
/* Many sections: the tab row fades at the edges when it scrolls sideways. */
@media (max-width: 900px) { .menu-nav { mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); scroll-padding-inline: 16px; } }
/* The Empanada perched on "Tu pedido"; it hops when each product lands (app.js). */
.floating-mascot { position: absolute; left: 8px; top: -40px; width: 52px; height: 52px; pointer-events: none; filter: drop-shadow(0 4px 6px #1f1b1640); }
.cart-feedback { bottom: 126px; }
@media (max-width: 700px) { .cart-feedback { bottom: 116px; } .layout-sabores .products { grid-template-columns: 1fr; } .menu-search { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .layout-sabores .product:hover { transform: none; } }

/* Collapsible sections: the title is the button; the chevron turns; a closed section keeps a slim heading. */
.group-heading h3 { flex: 0 1 auto; }
.group-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.group-toggle:hover .group-title { color: var(--accent); }
.group-chevron { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6f1e8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 20px; transition: transform 260ms var(--ease), background-color 160ms; }
.group-toggle[aria-expanded=false] .group-chevron { transform: rotate(-90deg); background-color: var(--accent); }
.catalog-group.is-collapsed { margin-bottom: 18px; }
.catalog-group.is-collapsed .group-heading { margin-bottom: 0; }
.group-description { color: var(--muted); }
@media (max-width: 700px) { .group-chevron { width: 30px; height: 30px; background-size: 18px; } .group-heading h3 { font-size: 30px; } }

/* Layout fixes: in "lista" the photo sits beside both the text and the prices, so the price follows the description
   instead of waiting below a tall photo. Diet tags sit above the name (same height in every card), and in card
   layouts the prices line up at the bottom of each row. */
.layout-lista .product { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; align-items: start; }
.layout-lista .product-top { display: contents; }
.layout-lista .product-heading { grid-column: 1; grid-row: 1; }
.layout-lista .product-photo { grid-column: 2; grid-row: 1 / span 2; }
.layout-lista .variants { grid-column: 1; grid-row: 2; margin-top: 10px; }
.product-heading { display: flex; flex-direction: column; }
.product-heading .diet-tag { order: -1; align-self: flex-start; margin: 0 0 8px; }
.layout-tarjetas .variants, .layout-sabores .variants, .layout-fotos .variants { margin-top: auto; padding-top: 14px; }
@media (max-width: 700px) {
  .layout-lista .product-heading { grid-row: 1; }
  .layout-lista .product-photo { grid-row: 1; }
  .layout-lista .variants { grid-column: 1 / -1; }
}

/* Anti-slop pass (paginas-con-sabor as a lens): nothing tilts for decoration (the card only tilts while being dragged),
   the hero seal states a fact instead of a mood, and the hero has no kicker repeating the tagline already in the header. */
.hero-card { transform: none; }
.hero-tag { transform: none; }
.hero .eyebrow { display: none; }

/* ── Carta como índice (impeccable layout + polish) ──
   Closed sections read as a compact index row: title, gray subtitle, count and chevron, the whole row is the button.
   The open section keeps the big title with its terracotta bar. On desktop, closed sections that sit together pair up
   in two columns; an open section always spans the full width. DOM order = visual order (no dense packing). */
.group-heading { position: relative; }
.group-toggle::after { content: ''; position: absolute; inset: 0; border-radius: 10px; }
.group-toggle:focus-visible { outline: none; }
.group-heading:has(.group-toggle:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 10px; }
.group-heading h3 { transition: font-size 260ms var(--ease); }
.group-heading > .group-chevron { flex-shrink: 0; align-self: center; margin-left: 4px; transition: transform 260ms var(--ease), background-color 160ms; pointer-events: none; }
.catalog-group.is-collapsed .group-heading > .group-chevron { transform: rotate(-90deg); background-color: var(--accent); }
/* Closed: a slim row. */
.catalog-group.is-collapsed { margin-bottom: 0; }
.catalog-group.is-collapsed .group-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "title desc count chev"; align-items: center; column-gap: 14px; margin: 0; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 10px; transition: background-color 160ms; }
.catalog-group.is-collapsed .group-heading::after { display: none; }
.catalog-group.is-collapsed .group-heading h3 { grid-area: title; font-size: 27px; }
.catalog-group.is-collapsed .group-description { grid-area: desc; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.catalog-group.is-collapsed .group-count { grid-area: count; margin: 0; }
.catalog-group.is-collapsed .group-heading > .group-chevron { grid-area: chev; width: 30px; height: 30px; background-size: 18px; }
@media (hover: hover) and (pointer: fine) {
  .catalog-group.is-collapsed .group-heading:hover { background: var(--accent-soft); }
  .catalog-group.is-collapsed .group-heading:hover > .group-chevron { transform: rotate(-90deg) translateY(3px); }
  .catalog-group:not(.is-collapsed) .group-heading:hover > .group-chevron { transform: translateY(2px); }
}
/* Desktop: neighbouring closed rows pair into a two-column index. */
@media (min-width: 900px) {
  #catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; align-items: start; }
  #catalog > * { grid-column: 1 / -1; }
  #catalog > .catalog-group.is-collapsed { grid-column: auto; }
  .catalog-group:not(.is-collapsed) { margin-top: 28px; }
  #catalog > .catalog-group:first-child:not(.is-collapsed) { margin-top: 0; }
}
/* Phones: one column; the subtitle drops to a second line under the title. */
@media (max-width: 700px) {
  .catalog-group.is-collapsed .group-heading { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "title count chev" "desc desc desc"; row-gap: 2px; padding: 12px 8px; }
  .catalog-group.is-collapsed .group-heading h3 { font-size: 23px; }
  .catalog-group.is-collapsed .group-description { white-space: normal; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .group-heading h3, .group-heading > .group-chevron { transition: none; } }

/* Straight divider under index rows (a rounded corner bent its ends). */
.catalog-group.is-collapsed .group-heading, .group-toggle::after { border-radius: 0; }
.group-heading:has(.group-toggle:focus-visible) { border-radius: 4px; }


/* Press feedback on an index row. */
@media (hover: hover) and (pointer: fine) { .catalog-group.is-collapsed .group-heading:active { background: #b9472a24; } }


/* taste: the index row answers the press (sinks 1px, 90 ms). */
.catalog-group.is-collapsed .group-heading { transition: background-color 160ms, transform 90ms; }
.catalog-group.is-collapsed .group-heading:active { transform: translateY(1px) scale(.995); }


/* Dishes fly out of / into the section title (motion.js): the animating section sits above its neighbours, the title can pulse. */
.catalog-group.is-animating { position: relative; z-index: 4; }
/* The heading morph is measured and animated by motion.js (FLIP); a CSS font-size transition would keep changing the
   layout underneath it and cause the final "tac". */
.catalog-group.is-animating .group-heading h3 { transition: none; }
/* motion.js animates the menu's height while it reflows. A fixed height must not move what is inside: grid rows stay at
   the top instead of stretching to fill it, and margins never leak out of the menu (so its height is the same whether it
   is fixed or auto). */
@media (max-width: 899px) { #catalog { display: flow-root; } }
@media (min-width: 900px) { #catalog { align-content: start; } }
.group-title { display: inline-block; transform-origin: left center; }
/* While GSAP drives a card or a photo (inline transform), CSS transitions on transform would trail every frame and make
   the motion feel sticky: switch them off for exactly that time. */
#catalog .product[style*="translate"], #catalog .product-photo[style*="translate"] { transition: none; }
/* Closing / opening: the card's own surface (background, border, repulgue) dissolves around the photo that travels. */
.product.is-dissolving { background-color: transparent !important; border-color: transparent !important; box-shadow: none !important; }
#catalog .product { transition-property: transform, box-shadow, border-color, background-color; transition-duration: 220ms, 220ms, 300ms, 300ms; }
.layout-sabores .product::before { transition: opacity 300ms; }
.layout-sabores .product.is-dissolving::before { opacity: 0; }
/* The section's photos travel above everything else. */
.catalog-group.is-animating .product-photo { position: relative; z-index: 2; }
/* Until the panel's texts arrive, the hero and the chalkboard wait unseen: the HTML only has placeholder text, and showing
   it would flash the wrong words and then push everything down when the real ones land. app.js adds .js-ready; if it
   never does (a failed load), they appear on their own after 4 s. */
.js body:not(.js-ready) :is(.hero, .pizarra) { visibility: hidden; animation: reveal-anyway 0s 4s forwards; }
@keyframes reveal-anyway { to { visibility: visible; } }

/* ── Hidden kitchen drawings ──
   Line drawings in assets/imagenes (empanada-fondo, decor-milanesa, decor-palo, decor-raviol) used as masks, so each
   takes any colour. Very faint, behind the text, never clickable. Each one drifts against the scroll by its own --drift
   (a CSS scroll-driven animation: the browser runs it off the main thread, no JavaScript), so they read as layers behind
   the page. Browsers without it, and reduced motion, keep them still. Margin pieces only appear when the screen has
   margins to hold them. To drop one, delete its rule. */
.hero, .menu, .reviews, .menu .section-heading, .hours { position: relative; isolation: isolate; }
.hours { overflow: clip; }
.hero::before, .hero::after, .menu::before, .menu::after, .menu .section-heading::before, .hours::before, .hours::after, .reviews::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none; background: var(--ink); transform: rotate(var(--turn, 0deg));
  -webkit-mask: var(--shape) center / contain no-repeat; mask: var(--shape) center / contain no-repeat;
}
/* Panel → "Mostrar los dibujos de fondo" off: html.no-decor (app.js). */
.no-decor :is(.hero, .menu, .menu .section-heading, .hours, .reviews)::before, .no-decor :is(.hero, .menu, .hours)::after { display: none; }
@keyframes decor-drift { from { translate: 0 var(--drift, 30px); } to { translate: 0 calc(var(--drift, 30px) * -1); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero::before, .hero::after, .menu::before, .menu::after, .menu .section-heading::before, .hours::before, .hours::after, .reviews::before { animation: decor-drift linear both; animation-timeline: view(); will-change: translate; }
  }
}
.hero::before { --drift: 30px; } .hero::after { --drift: 15px; } .menu .section-heading::before { --drift: 25px; }
.menu::before { --drift: 70px; } .menu::after { --drift: 45px; } .hours::before { --drift: 35px; } .hours::after { --drift: 20px; } .reviews::before { --drift: 40px; }
/* Hero: a milanesa low on the left, a small raviol between the text and the card. */
.hero::before { --shape: url('assets/imagenes/decor-milanesa.svg'); --turn: -9deg; left: -70px; bottom: 6px; width: 250px; aspect-ratio: 3 / 2; opacity: .045; }
.hero::after { --shape: url('assets/imagenes/decor-raviol.svg'); --turn: 14deg; left: 49%; top: 54px; width: 64px; aspect-ratio: 1; opacity: .07; }
/* Behind "Precios en pesos argentinos": the empanada, leaning right. */
.menu .section-heading::before { --shape: url('assets/imagenes/empanada-fondo.svg'); --turn: 10deg; right: 40px; top: -112px; width: min(250px, 62vw); aspect-ratio: 3 / 2; opacity: .1; }
/* Menu margins (wide screens): a rolling pin standing on the left, a raviol on the right. */
.menu::before { --shape: url('assets/imagenes/decor-palo.svg'); --turn: -68deg; left: -170px; top: 330px; width: 250px; aspect-ratio: 26 / 9; opacity: .06; }
.menu::after { --shape: url('assets/imagenes/decor-raviol.svg'); --turn: -12deg; right: -112px; top: 300px; width: 84px; aspect-ratio: 1; opacity: .06; }
@media (max-width: 1299px) { .menu::before, .menu::after { display: none; } }
/* Hours band: a big cream empanada low on the left, a raviol up on the right. */
.hours::before { --shape: url('assets/imagenes/empanada-fondo.svg'); --turn: 13deg; background: var(--band-ink); left: -70px; bottom: -90px; width: min(520px, 90vw); aspect-ratio: 3 / 2; opacity: .05; }
.hours::after { --shape: url('assets/imagenes/decor-raviol.svg'); --turn: 18deg; background: var(--band-ink); right: 5%; top: 34px; width: 86px; aspect-ratio: 1; opacity: .06; }
/* Reviews: a milanesa behind the reviews column. */
.reviews::before { --shape: url('assets/imagenes/decor-milanesa.svg'); --turn: 8deg; right: -50px; bottom: 16px; width: 260px; aspect-ratio: 3 / 2; opacity: .045; }
@media (max-width: 700px) {
  .hero::before { left: auto; right: -64px; top: 4px; bottom: auto; width: 170px; }
  .hero::after { display: none; }
  .menu .section-heading::before { right: -14px; top: 40px; width: 190px; }
  .hours::before { left: auto; right: -110px; bottom: -60px; width: 340px; }
  .hours::after { top: 22px; width: 64px; }
  .reviews::before { right: -70px; width: 200px; }
}

/* Hero seal: an empanada sitting on the card's corner instead of a perfect circle (assets/imagenes/empanada-sello.svg,
   coloured by --accent). It lives inside the card, so it travels with the drag; it never catches the pointer. */
.hero-tag { --seal-turn: 9deg; top: -40px; right: -44px; z-index: 3; display: grid; place-items: center; width: 168px; min-width: 0; max-width: none; aspect-ratio: 3 / 2; padding: 48px 34px 12px; background: none; border-radius: 0; font-size: 19px; line-height: .95; transform: rotate(var(--seal-turn)); filter: drop-shadow(0 6px 8px #1f1b1640); pointer-events: none; }
.hero-tag::before, .hero-tag::after { content: ''; position: absolute; z-index: -1; -webkit-mask: var(--seal-shape) center / contain no-repeat; mask: var(--seal-shape) center / contain no-repeat; }
.hero-tag::before { --seal-shape: url('assets/imagenes/empanada-sello.svg'); inset: 0; background: var(--accent); }
.hero-tag-text strong { font-weight: 800; font-size: 1.12em; }
/* Text colour and position from the panel; on phones the seal is smaller, so the offset shrinks with it. */
.hero-tag { color: var(--seal-ink, var(--accent-ink)); --seal-k: 1; }
.hero-tag-text { translate: calc(var(--seal-x, 0px) * var(--seal-k)) calc(var(--seal-y, 0px) * var(--seal-k)); }
@media (max-width: 700px) { .hero-tag { --seal-k: .8; } }
@media (max-width: 700px) { .hero-tag { top: -34px; right: -12px; width: 136px; padding: 39px 26px 8px; font-size: 16px; } }
/* One seal per featured product (panel: Página → Productos destacados). Colours are tokens so each local can retint them. */
:root { --seal-milanesa: #98561a; --seal-lemon: #e7c443; --seal-pasta: #e8c375; --seal-sauce: #ad311d; }
/* Milanesa: golden breaded cutlet with a lemon slice tucked on its lower edge. */
.hero-tag[data-shape=milanesa] { --seal-turn: -7deg; top: -46px; right: -52px; width: 196px; aspect-ratio: 240 / 164; padding: 22px 40px 26px 30px; font-size: 18px; }
.hero-tag[data-shape=milanesa]::before { --seal-shape: url('assets/imagenes/sello-milanesa.svg'); background: var(--seal-milanesa); }
.hero-tag[data-shape=milanesa]::after { --seal-shape: url('assets/imagenes/sello-limon.svg'); right: -6px; bottom: -8px; width: 30%; aspect-ratio: 1; background: var(--seal-lemon); }
/* Pasta: a nest of noodles, the sauce in the middle, the text on the sauce. */
.hero-tag[data-shape=pasta] { --seal-turn: 6deg; top: -50px; right: -54px; width: 200px; aspect-ratio: 240 / 170; padding: 34px 46px 32px; font-size: 17px; }
.hero-tag[data-shape=pasta]::before { --seal-shape: url('assets/imagenes/sello-pasta.svg'); background: var(--seal-pasta); }
.hero-tag[data-shape=pasta]::after { --seal-shape: url('assets/imagenes/sello-salsa.svg'); inset: 0; background: var(--seal-sauce); }
@media (max-width: 700px) {
  .hero-tag[data-shape=milanesa] { top: -38px; right: -14px; width: 158px; padding: 18px 32px 20px 24px; font-size: 15px; }
  .hero-tag[data-shape=pasta] { top: -40px; right: -14px; width: 160px; padding: 27px 36px 26px; font-size: 14px; }
}

/* Desktop: a small dark tab peeks out of the featured card's left edge ("← Deslizá"), as if pulled from under it. It
   lives inside the card, so it travels with the drag; only when the drag is active (GSAP loaded, motion allowed) and
   not on phones, which have their own "Deslizá para ver" under the card. Now and then it slides out a little more. */
.card-tab { display: none; }
@media (min-width: 701px) {
  .hero-drag .card-tab { position: absolute; left: 0; top: 50%; z-index: -1; display: flex; align-items: center; gap: 8px; padding: 14px 8px 14px 7px; translate: -100% -50%; writing-mode: vertical-rl; background: var(--ink); color: var(--band-ink); border-radius: 9px 0 0 9px; font: 700 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; box-shadow: 0 10px 22px -14px #1f1b1699; animation: tab-peek 4.2s var(--ease) 1.4s infinite; }
  .hero-drag .card-tab::before { content: ''; width: 14px; height: 10px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 1 1 5l4 4M1 5h12'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 1 1 5l4 4M1 5h12'/%3E%3C/svg%3E") center / contain no-repeat; }
}
@keyframes tab-peek { 0%, 62%, 100% { translate: -100% -50%; } 74% { translate: calc(-100% - 7px) -50%; } 86% { translate: -100% -50%; } }

/* Phones: the featured card is swiped. "Probá con" + names give way to a hint and one dot per product under the card. */
.hero-swipe { display: none; }
@media (max-width: 700px) {
  .hero-stage { flex-direction: column; }
  .hero-selector { display: none; }
  .hero-swipe:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
  .hero-swipe-hint { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
  .hero-swipe-hint::before, .hero-swipe-hint::after { content: ''; width: 14px; height: 10px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 1 1 5l4 4M1 5h12'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 1 1 5l4 4M1 5h12'/%3E%3C/svg%3E") center / contain no-repeat; }
  .hero-swipe-hint::after { transform: scaleX(-1); }
  .hero-dots { display: flex; }
  .hero-dot { position: relative; width: 26px; min-height: 44px; padding: 0; border: 0; background: none; }
  .hero-dot::before { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 4px; background: #1f1b1633; transform: translate(-50%, -50%); transition: width 220ms var(--ease), background-color 220ms; }
  .hero-dot[aria-pressed=true]::before { width: 20px; background: var(--accent); }
}

/* ── "Tu pedido", more legible and easier to use ──
   Positive / negative colours for adding and removing (also under a finger: :active), a joined stepper with the
   quantity in the middle, today's times as buttons, and the guest's choices (papas / puré) as buttons in the menu. */
:root { --positive: #2e7a4b; --positive-soft: #2e7a4b1c; --negative: #b3261e; --negative-soft: #b3261e17; }
.panel-header { position: sticky; top: -26px; z-index: 3; margin: -26px -26px 18px; padding: 22px 26px 14px; background: var(--surface); border-bottom: 1px solid transparent; }
@media (max-width: 700px) { .panel-header { top: -22px; margin: -22px -18px 16px; padding: 18px 18px 12px; } }
.cart-rows { gap: 0; padding: 2px 14px; background: var(--bg); border-radius: 12px; }
.cart-row { padding: 14px 0; }
.cart-item-label { align-items: flex-start; font-size: 15px; line-height: 1.3; }
.cart-item-label span { font-weight: 600; }
.cart-item-label strong { font: 700 19px/1.1 var(--display); }
.cart-controls { align-items: center; gap: 12px; margin-top: 10px; }
.cart-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; }
.cart-controls .cart-step { min-width: 46px; min-height: 42px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 20px; line-height: 1; transition: background-color 140ms, color 140ms; }
.cart-qty { min-width: 30px; text-align: center; font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.cart-controls .cart-delete { margin-left: auto; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: color 140ms; }
/* Add = positive, remove = negative: on hover with a mouse, and while pressed with a finger. */
@media (hover: hover) and (pointer: fine) {
  .cart-controls .cart-plus:hover:not(:disabled) { background: var(--positive-soft); color: var(--positive); }
  .cart-controls .cart-minus:hover:not(:disabled) { background: var(--negative-soft); color: var(--negative); }
  .cart-controls .cart-delete:hover { color: var(--negative); }
  .variant-actions .remove:hover:not(:disabled) { background: var(--negative-soft); border-color: var(--negative); color: var(--negative); }
}
.cart-controls .cart-plus:active:not(:disabled) { background: var(--positive); color: #fff; }
.cart-controls .cart-minus:active:not(:disabled), .variant-actions .remove:active:not(:disabled) { background: var(--negative); border-color: var(--negative); color: #fff; }
.cart-controls .cart-delete:active { color: var(--negative); }
.cart-total { align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); font: 800 24px/1 var(--display); text-transform: uppercase; }
.cart-total strong { font-size: 30px; }
.checkout-details { gap: 20px; }
.checkout-details select, .checkout-details input:not([type=radio]), .order-notes textarea { border-radius: 10px; }
/* When: "Ahora" switches off while the local is closed (with when it opens), and the time is one big field that opens
   our own picker (hours | minutes) listing only today's open times. */
.timing-choice.is-off { opacity: .55; cursor: not-allowed; background: transparent; }
.timing-info { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.timing-info:empty { display: none; }
.scheduled-time { position: relative; display: grid; gap: 6px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.time-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 700 22px/1 var(--display); font-variant-numeric: tabular-nums; text-align: left; cursor: pointer; transition: border-color 140ms, box-shadow 140ms; }
.time-field::after { content: ''; flex-shrink: 0; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
.time-field.is-empty { color: var(--muted); font: 600 16px/1 var(--body); }
.time-field[aria-expanded=true] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (hover: hover) and (pointer: fine) { .time-field:hover:not(:disabled) { border-color: var(--ink); } }
.time-picker { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 22px 44px -22px #1f1b1677; }
.time-col-title { padding: 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.time-col { display: grid; align-content: start; gap: 4px; max-height: 216px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 2px; }
.time-option { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: 700 20px/1 var(--display); font-variant-numeric: tabular-nums; transition: background-color 120ms, color 120ms; }
.time-option[aria-pressed=true] { background: var(--ink); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .time-option:hover:not([aria-pressed=true]) { background: var(--accent-soft); } }
.order-notes { margin-top: 0; padding-top: 0; border-top: 0; }
.cart-summary > .primary { min-height: 54px; border-radius: 12px; font-size: 17px; }
.cart-summary > .secondary { border-radius: 12px; }
/* Choices in the menu (e.g. Guarnición: Papas fritas | Puré): a small labelled row of pills; the marked one is filled. */
.choice-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.choice-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.choice-options { display: flex; flex-wrap: wrap; gap: 6px; }
.choice { min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; transition: background-color 140ms, border-color 140ms, color 140ms; }
.choice[aria-checked=true] { background: var(--ink); border-color: var(--ink); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .choice:hover:not([aria-checked=true]) { border-color: var(--ink); } }

