/* =============================================================
   Il Piaceri · Pizza & Grill — Cartago, Costa Rica
   Modern app archetype: light + vibrant, delivery-app inspired,
   mobile-first with a fixed bottom tab bar.
   =============================================================
   1. Tokens
   2. Reset & base
   3. Utilities
   4. Typography
   5. Components (btn, chip, card, nav, bottom-bar, form)
   6. Sections (hero, marquee, sabor, carta, reviews, visita)
   7. Effects & keyframes
   8. Responsive
   9. Reduced-motion (only intrusive)
   ============================================================= */

/* ============================ 1. TOKENS ============================ */
:root {
  --bg:        #FFFBF6;   /* warm white */
  --bg-2:      #FFF3E8;   /* soft peach section tint */
  --bg-3:      #FFFFFF;   /* pure white, cards */
  --ink:       #221A16;   /* warm near-black */
  --ink-soft:  #4A3F38;
  --ink-mute:  #8C8178;
  --accent:    #FF4B36;   /* vivid tomato */
  --accent-2:  #E8351F;
  --accent-soft: #FFE7E1; /* light tint for badges */
  --gold:      #FFAE1F;   /* warm secondary — ratings, prices */
  --gold-soft: #FFF1D6;
  --success:   #22C55E;
  --line:      rgba(34, 26, 22, 0.09);
  --line-2:    rgba(34, 26, 22, 0.05);
  --shadow-sm: 0 2px 10px rgba(34, 26, 22, 0.06);
  --shadow-md: 0 12px 28px -8px rgba(34, 26, 22, 0.14);
  --shadow-lg: 0 24px 48px -12px rgba(34, 26, 22, 0.18);
  --shadow-accent: 0 14px 28px -10px rgba(255, 75, 54, 0.45);

  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Poppins", var(--sans);

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

  --gutter: clamp(1.1rem, 5vw, 5rem);
  --maxw: 1280px;

  --nav-h: 68px;
  --bottom-bar-h: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --radius-card: 22px;
  --radius-sm: 14px;
}

/* ============================ 2. RESET & BASE ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
body.has-bottom-bar { padding-bottom: calc(var(--bottom-bar-h) + var(--safe-bottom) + 10px); }
img, svg, video, iframe { 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; }
em { font-style: normal; color: var(--accent); }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; font-weight: 700; font-family: var(--display); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }

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

/* ============================ 3. UTILITIES ============================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.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; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  z-index: 9999; border-radius: 100px; font-weight: 600;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--display);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.section-head { max-width: 620px; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.section-head h2 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  margin-top: .5rem;
  line-height: 1.06;
}
.section-head h2 em { color: var(--accent); }
.section-head p { color: var(--ink-mute); font-size: 1rem; margin-top: .7rem; max-width: 52ch; }

/* Reveal-on-scroll (content-first: never hides text permanently) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================ 4. TYPOGRAPHY ============================ */
.display { font-family: var(--display); }

/* ============================ 5. COMPONENTS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: 100px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -0.01em;
  transition: transform .3s var(--ease-out), background .3s var(--ease-out), box-shadow .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { background: var(--bg-3); border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-mute); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #241a0d; box-shadow: 0 14px 28px -10px rgba(255,174,31,.5); }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn-sm { padding: .7rem 1.2rem; font-size: .85rem; }

.stars { color: var(--gold); letter-spacing: .1em; }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1rem; border-radius: 100px; font-size: .84rem; font-weight: 600;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--ink-soft);
  white-space: nowrap;
}
.chip.is-live { background: #EAFBF1; border-color: rgba(34,197,94,.25); color: #15803D; }
.chip.is-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); display: inline-block; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5);} 70%{ box-shadow: 0 0 0 8px rgba(34,197,94,0);} 100%{ box-shadow:0 0 0 0 rgba(34,197,94,0);} }

/* ---- Top nav (desktop) ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 700;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 251, 246, 0.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-brand { display: flex; align-items: center; gap: .65rem; }
.nav-brand img { height: 34px; width: auto; border-radius: 8px; }
.nav-brand b { font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.nav-links { display: none; gap: 1.8rem; align-items: center; }
.nav-links a { font-size: .9rem; font-weight: 600; color: var(--ink-soft); position: relative; padding: .3rem 0; transition: color .3s var(--ease-out); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; border-radius: 2px;
  background: var(--accent); transition: width .35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: none; }
.nav-burger, .nav-drawer { display: none; } /* replaced by bottom tab bar on mobile */

/* ---- Language switcher ---- */
.lang-switcher { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .7rem;
  border-radius: 100px; border: 1px solid var(--line); background: var(--bg-3);
  font-size: .82rem; font-weight: 700; color: var(--ink-soft);
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.lang-trigger:hover { border-color: var(--ink-mute); color: var(--ink); }
.lang-trigger svg { width: 16px; height: 16px; }
.lang-menu {
  position: absolute; top: calc(100% + .5rem); right: 0; z-index: 60;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: .4rem; min-width: 160px;
  display: none; flex-direction: column; gap: .1rem;
}
.lang-menu.is-open { display: flex; }
.lang-menu button {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: .55rem .7rem; border-radius: 8px; font-size: .88rem; color: var(--ink-soft); text-align: left;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.lang-menu button:hover { background: var(--bg-2); color: var(--ink); }
.lang-menu button.is-active { color: var(--accent); font-weight: 700; }
.lang-menu button .code { font-size: .72rem; color: var(--ink-mute); }

/* ---- Bottom tab bar (mobile app-style nav) ---- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
  display: flex;
  background: var(--bg-3);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(34,26,22,.06);
  padding-bottom: var(--safe-bottom);
}
.bottom-bar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  padding: .55rem 0 .5rem;
  color: var(--ink-mute);
  font-size: .68rem;
  font-weight: 600;
  transition: color .25s var(--ease-out);
}
.bottom-bar a svg { width: 22px; height: 22px; transition: transform .25s var(--ease-bounce); }
.bottom-bar a.is-active { color: var(--accent); }
.bottom-bar a.is-active svg { transform: translateY(-2px) scale(1.08); }
.bottom-bar a.is-cta { color: var(--accent); }
.bottom-bar a.is-cta svg { color: var(--accent); }

/* ---- Splash ---- */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--bg);
  animation: splashSafety .01s 4.4s forwards;
}
.splash-inner { text-align: center; }
.splash img { height: 64px; width: auto; margin: 0 auto 1rem; border-radius: 16px; opacity: 0; animation: splashLogo 1s .1s var(--ease-out) forwards; }
.splash-word { font-family: var(--display); font-weight: 700; font-size: 1.6rem; overflow: hidden; }
.splash-word span { display: inline-block; transform: translateY(110%); animation: splashRise .9s .35s var(--ease-out) forwards; }
.splash-bar { width: 120px; height: 4px; margin: 1.2rem auto 0; background: var(--line); overflow: hidden; border-radius: 4px; }
.splash-bar::after { content: ""; display: block; height: 100%; width: 0; background: var(--accent); animation: splashLoad 3.6s var(--ease-soft) forwards; }
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); transition: opacity .7s var(--ease-out), clip-path .8s var(--ease-out); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
@keyframes splashLogo { to { opacity: 1; } }
@keyframes splashRise { to { transform: translateY(0); } }
@keyframes splashLoad { to { width: 100%; } }

/* ============================ 6. SECTIONS ============================ */

/* ---- Hero (app-profile style: rounded banner + floating rating card) ---- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + .8rem);
}
.hero-banner {
  position: relative;
  margin-inline: var(--gutter);
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.hero-banner img { width: 100%; height: 100%; object-fit: cover; }
.hero-banner-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%);
}
.hero-banner-badge {
  position: absolute; top: 1rem; left: 1rem;
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  padding: .5rem .9rem; border-radius: 100px; font-size: .78rem; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.hero-banner-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.hero-content { padding: 0 var(--gutter); margin-top: -2.4rem; position: relative; z-index: 2; }
.hero-card {
  background: var(--bg-3); border-radius: var(--radius-card); box-shadow: var(--shadow-md);
  padding: 1.4rem 1.4rem 1.6rem;
}
.hero-title {
  font-size: clamp(1.9rem, 7vw, 3.2rem);
  line-height: 1.02;
  max-width: 16ch;
}
.hero-title em { color: var(--accent); }
.hero-sub { color: var(--ink-mute); font-size: .96rem; margin-top: .6rem; max-width: 46ch; }
.hero-meta-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.hero-foot { margin-top: 1.3rem; }
.hero-rating { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--ink-mute); margin-bottom: 1rem; }
.hero-rating b { font-family: var(--display); font-size: 1.3rem; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---- Marquee ---- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding-block: 1rem;
  margin-top: 2rem;
}
.marquee-track { display: flex; gap: 2.4rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.4rem); color: var(--ink-soft); display: inline-flex; align-items: center; gap: 2.4rem; white-space: nowrap; }
.marquee span::after { content: "•"; color: var(--accent); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Sabor / concept ---- */
.sabor { padding-block: clamp(3rem, 8vw, 5rem); }
.sabor-figure { position: relative; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: clamp(2rem, 4vw, 3rem); box-shadow: var(--shadow-md); }
.sabor-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.sabor-figure:hover img { transform: scale(1.06); }
.sabor-figure figcaption { position: absolute; left: 1rem; bottom: 1rem; font-size: .76rem; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.92); backdrop-filter: blur(6px); padding: .4rem .8rem; border-radius: 100px; }
.pillars { display: grid; gap: 1rem; }
.pillar { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); }
.pillar .num { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: .95rem; }
.pillar h3 { font-size: 1.2rem; margin: .4rem 0 .5rem; }
.pillar p { color: var(--ink-mute); font-size: .92rem; }

/* ---- Carta showcase (native horizontal scroll-snap, app-style cards) ---- */
.carta { padding-top: clamp(3rem, 8vw, 5rem); overflow: hidden; }
.carta .container { position: relative; }
.carta-note { color: var(--ink-mute); font-size: .82rem; margin-top: .8rem; }
.carta-viewport { margin-top: clamp(1.6rem, 3vw, 2.2rem); }
.carta-track {
  display: flex;
  gap: 1.1rem;
  padding-inline: var(--gutter);
  padding-bottom: 1.6rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carta-track::-webkit-scrollbar { display: none; }
.dish {
  flex: 0 0 78%;
  max-width: 280px;
  scroll-snap-align: center;
  background: var(--bg-3);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.dish:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.dish-media { aspect-ratio: 1 / 1; overflow: hidden; position: relative; }
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.dish:hover .dish-media img { transform: scale(1.06); }
.dish-body { padding: 1.1rem 1.2rem 1.3rem; }
.dish-top { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.dish-top h3 { font-size: 1.05rem; }
.dish-price { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 1rem; white-space: nowrap; }
.dish-body p { color: var(--ink-mute); font-size: .85rem; margin-top: .4rem; }
.dish-tag { display: inline-block; margin-top: .75rem; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: .25rem .55rem; border-radius: 100px; }

/* ---- Reviews ---- */
.reviews { padding-block: clamp(3rem, 8vw, 5rem); }
.reviews-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.reviews-score { display: flex; align-items: baseline; gap: .7rem; }
.reviews-score .big { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 7vw, 3.4rem); line-height: 1; color: var(--ink); }
.reviews-score .meta { color: var(--ink-mute); font-size: .88rem; }
.reviews-grid { display: grid; gap: 1rem; }
.review {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.3rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .8rem; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .9rem; flex: 0 0 auto; font-family: var(--display); }
.review-name { font-weight: 700; font-size: .92rem; }
.review-when { font-size: .76rem; color: var(--ink-mute); }
.review p { color: var(--ink-soft); font-size: .92rem; }
.review .stars { font-size: .82rem; margin-top: .7rem; display: block; }
.g-badge { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--ink-mute); }
.g-badge svg { width: 17px; height: 17px; }
.reviews-top-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }

/* ---- Visítanos ---- */
.visita { padding-block: clamp(3rem, 8vw, 5rem); }
.visita-grid { display: grid; gap: 1.6rem; }
.visita-map { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); min-height: 280px; background: var(--bg-2); box-shadow: var(--shadow-sm); }
.visita-map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }
.info-card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.info-block { border-top: 1px solid var(--line-2); padding-top: 1rem; margin-top: 1.1rem; }
.info-block:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.info-block .lbl { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.info-block a, .info-block p { display: block; margin-top: .45rem; color: var(--ink); font-size: .98rem; font-weight: 500; }
.info-block a:hover { color: var(--accent); }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; color: var(--ink-soft); }
.hours-list li b { color: var(--ink); font-weight: 600; }
.hours-list li.closed b, .hours-list li.closed { color: var(--accent); }
.visita-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.socials { display: flex; gap: .7rem; margin-top: 1.4rem; }
.socials a { width: 40px; height: 40px; background: var(--bg-2); border-radius: 50%; display: grid; place-items: center; transition: background .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out); }
.socials a:hover { background: var(--accent-soft); color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding-block: 2.4rem 1.6rem; background: var(--bg-2); }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand img { height: 36px; width: auto; border-radius: 8px; }
.footer-brand b { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.footer small { color: var(--ink-mute); font-size: .8rem; }
.footer a.credit { color: var(--accent); font-weight: 600; }

/* ============================ 7. EFFECTS ============================ */
.tilt { transition: transform .3s var(--ease-out); }

/* ============================ 8. RESPONSIVE ============================ */
@media (min-width: 720px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .dish { flex-basis: 46%; }
  .hero-banner { aspect-ratio: 21 / 9; }
}
@media (min-width: 960px) {
  body.has-bottom-bar { padding-bottom: 0; }
  .bottom-bar { display: none; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }

  .hero { padding-top: calc(var(--nav-h) + 2rem); }
  .hero-banner { margin-inline: var(--gutter); }
  .hero-content { margin-top: -3.2rem; }
  .hero-card { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: end; padding: 2rem 2.2rem; }
  .hero-foot { display: flex; flex-direction: column; align-items: flex-end; }

  .sabor-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
  .sabor-figure { margin-bottom: 0; aspect-ratio: 4 / 5; }
  .pillars { grid-template-columns: 1fr; gap: 1rem; }
  .reviews-grid { grid-template-columns: repeat(4, 1fr); }
  .visita-grid { grid-template-columns: 1.05fr .95fr; align-items: stretch; }
  .dish { flex-basis: 260px; }

  .menu-cat-head { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
}
@media (min-width: 1280px) {
  .dish { flex-basis: 280px; }
}

/* ---- Bottom-bar-aware fixed nav spacing on mobile (jump nav sits below top nav) ---- */
@media (max-width: 959px) {
  .menu-jump { top: var(--nav-h); }
}

/* ============================ 9. REDUCED MOTION (intrusive only) ============================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation-duration: 60s; }
  .chip.is-live .dot { animation: none; }
  .splash-bar::after { animation-duration: 1.5s; }
}

/* =============================================================
   Menu page (menu.html) — app-style category chips + item cards
   ============================================================= */
.menu-hero {
  padding-top: calc(var(--nav-h) + 1rem);
  padding-bottom: 1.2rem;
}
.menu-hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); margin-top: .5rem; }
.menu-hero h1 em { color: var(--accent); }
.menu-hero p { color: var(--ink-mute); margin-top: .7rem; max-width: 56ch; font-size: .95rem; }
.menu-hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }

.menu-search {
  margin-top: 1.2rem;
  position: relative;
}
.menu-search input {
  width: 100%; padding: .95rem 1.2rem .95rem 2.8rem; border-radius: 100px;
  border: 1px solid var(--line); background: var(--bg-3); color: var(--ink);
  font: inherit; font-size: .95rem; box-shadow: var(--shadow-sm);
}
.menu-search input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-mute); pointer-events: none; }
.menu-search-empty { display: none; text-align: center; color: var(--ink-mute); padding: 3rem 1rem; font-size: .95rem; }
.menu-search-empty.is-visible { display: block; }

.currency-toggle {
  margin-top: .8rem;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem 1rem; border-radius: 100px; border: 1px solid var(--line);
  background: var(--bg-3); font-weight: 700; font-size: .82rem; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.currency-toggle:hover { border-color: var(--accent); color: var(--accent); }
.currency-toggle[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }

.menu-jump {
  position: sticky; top: var(--nav-h); z-index: 50;
  background: rgba(255, 251, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  display: flex;
  justify-content: center; /* fallback for browsers without `safe` support */
  justify-content: safe center; /* centers when it fits; start-aligns (scrollable) when it doesn't */
}
.menu-jump::-webkit-scrollbar { display: none; }
.menu-jump-track { display: flex; gap: .55rem; padding-block: .85rem; padding-inline: var(--gutter); width: max-content; }
.menu-jump a {
  white-space: nowrap; font-size: .84rem; font-weight: 600; padding: .55rem 1.1rem; border-radius: 100px;
  border: 1px solid var(--line); color: var(--ink-soft); background: var(--bg-3);
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out), background .3s var(--ease-out);
}
.menu-jump a:hover, .menu-jump a.is-active { border-color: var(--accent); color: #fff; background: var(--accent); box-shadow: var(--shadow-accent); }

.menu-category { padding-block: clamp(2rem, 6vw, 3.4rem); scroll-margin-top: calc(var(--nav-h) + 60px); border-bottom: 1px solid var(--line-2); }
.menu-category:last-of-type { border-bottom: 0; }
.menu-cat-head { display: grid; gap: 1.2rem; margin-bottom: 1.6rem; }
.menu-cat-photo { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--shadow-sm); }
.menu-cat-photo img { width: 100%; height: 100%; object-fit: cover; }
.menu-cat-title h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
.menu-cat-title h2 em { color: var(--accent); }
.menu-cat-note { color: var(--ink-mute); font-size: .84rem; }

.menu-grid { display: grid; gap: .85rem; }
.menu-item {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1rem; background: var(--bg-3); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.menu-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.menu-item-body { flex: 1 1 auto; min-width: 0; }
.menu-item-body h3 { font-size: 1.02rem; font-weight: 600; }
.menu-item-body p { color: var(--ink-mute); font-size: .85rem; margin-top: .35rem; max-width: 56ch; }
.menu-item-price { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 1rem; white-space: nowrap; flex: 0 0 auto; }
.menu-item-sizes { display: flex; gap: .9rem; margin-top: .5rem; flex-wrap: wrap; }
.menu-item-sizes span { font-size: .76rem; color: var(--ink-mute); }
.menu-item-sizes b { color: var(--accent); font-weight: 700; }

.menu-note-block {
  margin-top: 2.2rem; padding: 1.2rem 1.4rem; border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--ink-mute); font-size: .84rem;
}

/* ---- Dynamic dish photo (menu-data.js) ---- */
.menu-item.has-photo { align-items: flex-start; }
.menu-item-photo {
  width: 60px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; flex: 0 0 auto;
  background: var(--bg-2); display: grid; place-items: center; color: var(--ink-mute);
}
.menu-item-photo img { width: 100%; height: 100%; object-fit: cover; }
.menu-item-photo svg { width: 20px; height: 20px; }
.menu-cat-photo.is-placeholder {
  display: grid; place-items: center; background: linear-gradient(135deg, var(--bg-2), var(--accent-soft));
  color: var(--ink-mute);
}
.menu-cat-photo.is-placeholder svg { width: 36px; height: 36px; opacity: .6; }
.menu-cat-empty { color: var(--ink-mute); font-size: .9rem; padding: 1rem 0; }
