/* =============================================================
   La Milpa · cocina mexicana de casa
   1. Tokens
   ============================================================= */
:root {
  --white: #fffdf8;
  --paper: #f7f1e6;
  --ink: #23201b;
  --ink-soft: #3d3830;
  --muted: #6e665b;
  --red: #b3261e;
  --red-deep: #8a1b15;
  --green: #1f6b45;
  --green-deep: #154a31;
  --rose: #f4dcd6;
  --mint: #d8eadf;
  --line: rgba(35, 32, 27, 0.14);

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --gutter: clamp(1.15rem, 4.5vw, 3rem);
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance; }
h2 em, h1 em { font-style: italic; color: var(--red); }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { position: relative; padding: clamp(4rem, 11vw, 8rem) 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--white); border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section-head { max-width: 40rem; margin-bottom: clamp(2.2rem, 6vw, 3.5rem); }
.section-head h2 { margin-top: .8rem; font-size: clamp(2.4rem, 8vw, 4.4rem); }
.section-head .muted { margin-top: .9rem; font-size: 1.02rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker::after { content: ""; width: 26px; height: 2px; background: currentColor; }

/* =============================================================
   4. Components
   ============================================================= */
/* Buttons — sign-painter style, hard offset shadow */
.btn {
  --sh: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .8rem 1.5rem;
  font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  border: 2px solid var(--ink); border-radius: 8px;
  box-shadow: var(--sh) var(--sh) 0 var(--ink);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: calc(var(--sh) + 2px) calc(var(--sh) + 2px) 0 var(--ink); }
.btn:active { transform: translate(var(--sh), var(--sh)); box-shadow: 0 0 0 var(--ink); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); }
.btn-line { background: var(--white); color: var(--ink); }
.btn-line:hover { background: var(--mint); }
.btn-block { width: 100%; }

/* Image placeholders — tinted, patterned, clearly intentional */
.ph {
  position: relative; display: grid; place-items: center;
  width: 100%; height: 100%; overflow: hidden;
  --c1: var(--mint); --c2: rgba(31, 107, 69, .16);
  background:
    radial-gradient(circle at 50% 50%, var(--c2) 0 2px, transparent 2.5px) 0 0 / 18px 18px,
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,.35) 14px 15px),
    var(--c1);
}
.ph::after {
  content: ""; position: absolute; inset: 10px;
  border: 1px dashed rgba(35, 32, 27, .22); border-radius: inherit; pointer-events: none;
}
.ph.has-img::after { display: none; }
.ph > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
  transition: transform 1.2s var(--ease-out), filter .6s;
}
.lcard:hover .ph > img, .menu-aside:hover .ph > img, .story-figure:hover .ph > img { transform: scale(1.06); filter: saturate(1.12); }
.ph-green { --c1: var(--mint); --c2: rgba(31, 107, 69, .2); }
.ph-red { --c1: var(--rose); --c2: rgba(179, 38, 30, .18); }
.ph-cream { --c1: var(--paper); --c2: rgba(35, 32, 27, .12); }
.ph-tag {
  position: relative; z-index: 1;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem .75rem; border-radius: 999px;
  background: var(--white); color: var(--ink-soft); border: 1px solid var(--line);
  text-align: center;
}

/* Papel picado */
.papel-picado {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between;
  padding-inline: 1%;
  pointer-events: none;
}
.papel-picado::before {
  content: ""; position: absolute; top: 4px; left: -2%; right: -2%; height: 14px;
  border-top: 1.5px solid rgba(35, 32, 27, .45); border-radius: 50%;
}
.flag {
  --c: var(--red);
  position: relative; display: block;
  width: calc(100% / 12 - 6px); max-width: 92px; aspect-ratio: 4 / 5;
  margin-top: 5px;
  background:
    radial-gradient(circle at 50% 46%, var(--hole, var(--white)) 0 15%, transparent 16%),
    radial-gradient(circle at 50% 46%, var(--c) 0 22%, transparent 23%),
    radial-gradient(circle at 50% 46%, var(--hole, var(--white)) 0 28%, transparent 29%),
    radial-gradient(circle at 22% 22%, var(--hole, var(--white)) 0 6%, transparent 7%),
    radial-gradient(circle at 78% 22%, var(--hole, var(--white)) 0 6%, transparent 7%),
    radial-gradient(circle at 22% 72%, var(--hole, var(--white)) 0 5%, transparent 6%),
    radial-gradient(circle at 78% 72%, var(--hole, var(--white)) 0 5%, transparent 6%),
    linear-gradient(var(--hole, var(--white)), var(--hole, var(--white))) 50% 12% / 60% 3px no-repeat,
    var(--c);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 87.5% 100%, 75% 86%, 62.5% 100%, 50% 86%, 37.5% 100%, 25% 86%, 12.5% 100%, 0 86%);
  transform-origin: 50% 0;
  animation: sway 5.5s ease-in-out infinite alternate;
}
.flag:nth-child(2n) { animation-duration: 6.4s; animation-delay: -1.2s; }
.flag:nth-child(3n) { animation-duration: 4.8s; animation-delay: -2.4s; }
.flag:nth-child(5n) { animation-delay: -3.1s; }
.f-red { --c: var(--red); }
.f-green { --c: var(--green); }
.f-rose { --c: #d9574d; }
.f-mint { --c: #3f8f65; }
.flag:nth-child(n+9) { display: none; }

/* Sarape stripe band */
.sarape {
  height: 22px;
  background:
    linear-gradient(to bottom,
      var(--red) 0 4px, var(--white) 4px 6px,
      var(--green) 6px 9px, var(--white) 9px 11px,
      var(--rose) 11px 13px, var(--white) 13px 15px,
      var(--green) 15px 18px, var(--white) 18px 20px,
      var(--red) 20px 22px);
  position: relative;
}
.sarape::after {
  content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px;
  background: conic-gradient(from 135deg at 50% 0, var(--ink) 25%, transparent 0) 0 0 / 10px 4px repeat-x;
  opacity: .5;
}

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 253, 248, .86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, box-shadow .4s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(35, 32, 27, .5); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto;
  min-height: var(--nav-h);
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--red); }
.brand-sub { margin-top: .25rem; font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
.nav-side { display: none; }
.nav-side a { position: relative; font-weight: 500; font-size: .95rem; padding: .3rem 0; }
.nav-side a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-side a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  padding: .5rem 1rem !important; border: 2px solid var(--ink); border-radius: 8px;
  background: var(--red); color: var(--white); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.nav-cta:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }

.nav-toggle { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); }
.burger { position: relative; width: 18px; height: 10px; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.burger i:first-child { top: 0; }
.burger i:last-child { top: 8px; }
.nav-toggle[aria-expanded="true"] .burger i:first-child { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger i:last-child { top: 4px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 2rem var(--gutter) 2.5rem;
  background: var(--white);
  border-top: 1px solid var(--line);
  animation: menuIn .5s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: clamp(2.2rem, 11vw, 3rem); line-height: 1.25;
  border-bottom: 1px solid var(--line); padding: .35rem 0;
}
.mobile-menu nav a:nth-child(odd) { font-style: italic; color: var(--red); }

/* =============================================================
   6. Hero
   ============================================================= */
.hero { position: relative; padding: clamp(6.5rem, 18vw, 9rem) 0 clamp(3.5rem, 8vw, 6rem); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -30% 40%; height: 70%;
  background: radial-gradient(closest-side, rgba(31, 107, 69, .09), transparent);
  pointer-events: none;
}
.hero-grid {
  display: grid; gap: clamp(3rem, 8vw, 4rem);
  width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .9rem .45rem .75rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  font-size: .85rem; font-weight: 500; color: var(--ink-soft);
}
.open-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(31,107,69,.5); animation: ping 2.2s ease-out infinite; }
.is-closed .open-dot { background: var(--red); box-shadow: none; animation: none; }
.hero-title {
  margin-top: 1.4rem;
  font-size: clamp(3.1rem, 13.5vw, 6.6rem);
  line-height: .98; letter-spacing: -0.02em;
}
.hero-title .line { display: block; }
.hand { position: relative; display: inline-block; font-style: italic; color: var(--red); white-space: nowrap; }
.scribble { position: absolute; left: -2%; right: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.scribble path {
  fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 340; stroke-dashoffset: 340;
  animation: draw 1.1s .9s var(--ease-out) forwards;
}
.hero-lead { max-width: 33rem; margin-top: 1.6rem; font-size: clamp(1.04rem, 2.6vw, 1.18rem); color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem 1rem; margin-top: 2rem; }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.2rem;
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px dashed var(--line);
  font-size: .8rem; color: var(--muted); line-height: 1.3;
}
.hero-facts strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 400; color: var(--green); }

.hero-visual { position: relative; width: min(100%, 520px); margin-inline: auto; padding: 0 0 3rem 1.5rem; }
.arch {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: 999px 999px 18px 18px; overflow: hidden;
  border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--green);
}
.arch .ph { border-radius: 999px 999px 18px 18px; }
.round {
  position: absolute; left: -0.25rem; bottom: 0; width: 42%; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--red);
}
.round .ph { border-radius: 50%; }
.seal {
  position: absolute; right: -.5rem; top: 8%; width: clamp(110px, 30vw, 150px); aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--red); color: var(--white); border-radius: 50%;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
}
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal text { fill: var(--white); font-family: var(--sans); font-size: 15.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.seal-core { font-size: 2rem; line-height: 1; color: var(--white); }
.note-hand {
  position: absolute; right: 4%; bottom: -.4rem;
  font-family: var(--hand); font-size: clamp(1.35rem, 4.5vw, 1.7rem); color: var(--green); rotate: -6deg;
}
.note-hand svg { position: absolute; left: -58px; top: -42px; width: 56px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; transform: scaleX(-1) rotate(-30deg); }

/* =============================================================
   7. Marquee
   ============================================================= */
.marquee {
  overflow: hidden; background: var(--red); color: var(--white);
  border-block: 2px solid var(--ink);
  rotate: -1.2deg; margin: 1rem -2% 0; width: 104%;
}
.marquee-track {
  display: flex; align-items: center; gap: 1.6rem; width: max-content;
  padding: .9rem 0;
  animation: marquee 38s linear infinite;
}
.marquee span { font-family: var(--serif); font-size: clamp(1.35rem, 4.5vw, 2rem); font-style: italic; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--rose); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* =============================================================
   8. Story
   ============================================================= */
.story-grid, .contact-grid, .hero-grid, .menu .container { grid-template-columns: minmax(0, 1fr); }
.story-grid { display: grid; gap: clamp(2rem, 5vw, 3rem); }
.story-head h2 { margin-top: .8rem; font-size: clamp(2.1rem, 6.5vw, 3.6rem); }
.lede { font-size: clamp(1.1rem, 2.8vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); }
.lede + .muted { margin-top: 1rem; font-size: .95rem; font-style: italic; }
.dropcap {
  float: left; font-family: var(--serif); font-size: 4.6em; line-height: .8;
  margin: .08em .12em 0 0; color: var(--red);
}
.story-figure { margin: 0; }
.story-figure .ph { aspect-ratio: 16 / 9; border-radius: 16px; border: 2px solid var(--ink); }
.story-figure figcaption { margin-top: .7rem; font-family: var(--hand); font-size: 1.35rem; color: var(--muted); }

.pillars { display: grid; gap: 1rem; }
.pillar {
  position: relative; padding: 1.6rem 1.4rem 1.5rem;
  border: 1.5px solid var(--ink); border-radius: 14px; background: var(--white);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.pillar:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--green); }
.pillar-icon { width: 46px; height: 46px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { margin-top: .9rem; font-size: 1.6rem; }
.pillar p { margin-top: .4rem; color: var(--muted); font-size: .97rem; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; border-block: 1.5px solid var(--ink); padding-block: 1.6rem; }
.stat { text-align: center; min-width: 0; padding-inline: .2rem; }
.stat + .stat { border-left: 1px dashed var(--line); }
.stat dt { order: 2; font-size: .64rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; }
.stat dd { font-family: var(--serif); font-size: clamp(2.1rem, 9vw, 3.6rem); line-height: 1.1; color: var(--red); font-variant-numeric: tabular-nums; }
.stat { display: flex; flex-direction: column-reverse; gap: .3rem; }

/* =============================================================
   9. Lotería cards (signature)
   ============================================================= */
.loteria { background: var(--paper); }
.loteria::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 1px 1px, rgba(35,32,27,.12) 1px, transparent 1.5px) 0 0 / 22px 22px;
}
.cards-fan { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; perspective: 1000px; }
.lcard {
  position: relative; border-radius: 12px;
  background: var(--white); border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), rotate .6s var(--ease-out), opacity .9s var(--ease-out), translate .9s var(--ease-out);
  will-change: transform;
}
.lcard-inner {
  display: flex; flex-direction: column; gap: .55rem;
  margin: 7px; padding: .55rem .55rem .8rem;
  border: 1.5px solid var(--ink); border-radius: 8px;
}
.lcard-num { font-size: .7rem; font-weight: 600; letter-spacing: .16em; color: var(--red); }
.lcard-ph { aspect-ratio: 3 / 4; border-radius: 6px; }
.lcard-ph .ph-tag { font-size: .62rem; }
.lcard-name { font-size: clamp(1.05rem, 4.2vw, 1.55rem); text-align: center; line-height: 1.1; }
.lcard-note { font-size: .74rem; text-align: center; color: var(--muted); line-height: 1.35; }
.lcard:nth-child(2) .lcard-num, .lcard:nth-child(4) .lcard-num { color: var(--green); }
.lcard-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.65), transparent 55%);
  mix-blend-mode: soft-light; transition: opacity .4s;
}
.lcard.is-tilting .lcard-glare { opacity: 1; }
.lcard:hover { box-shadow: 10px 12px 0 var(--ink); }

/* =============================================================
   10. Menu
   ============================================================= */
.menu .container { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.menu-tabs {
  position: relative; display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1.5px solid var(--ink); margin-bottom: 2rem;
}
.menu-tabs[hidden] { display: none; }
.menu .container { row-gap: clamp(1.6rem, 4vw, 2.4rem); }
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs button {
  flex: 0 0 auto; padding: .8rem 1rem; font-weight: 600; font-size: .95rem; color: var(--muted);
  transition: color .3s;
}
.menu-tabs button[aria-selected="true"] { color: var(--red); }
.tab-ink {
  position: absolute; bottom: -1.5px; left: 0; height: 4px; width: 0; background: var(--red); border-radius: 4px 4px 0 0;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}
.menu-panel + .menu-panel { margin-top: 3rem; }
.has-tabs .menu-panel + .menu-panel { margin-top: 0; }
.has-tabs .menu-panel[hidden] { display: none; }
.has-tabs .menu-cat { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-cat { font-size: 2rem; margin-bottom: 1.2rem; color: var(--green); }
.menu-cat small { font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.menu-list { display: grid; gap: 1.6rem 3rem; }
.dish-top { display: flex; align-items: baseline; gap: .6rem; }
.dish-name { font-family: var(--serif); font-size: clamp(1.25rem, 4vw, 1.45rem); line-height: 1.2; }
.dots { flex: 1; min-width: 1.5rem; border-bottom: 2px dotted rgba(35, 32, 27, .35); transform: translateY(-.3em); }
.dish-price { font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; }
.dish p { margin-top: .3rem; font-size: .93rem; color: var(--muted); max-width: 34rem; }
.tag {
  display: inline-block; margin-top: .5rem; padding: .15rem .6rem; border-radius: 999px;
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor;
}
.tag-veg { color: var(--green); }
.tag-hot { color: var(--red); }
.tag-house { color: var(--white); background: var(--green); border-color: var(--green); }
.tag-season { color: var(--white); background: var(--red); border-color: var(--red); }
.panel-in .dish { animation: dishIn .6s var(--ease-out) both; }
.panel-in .dish:nth-child(2) { animation-delay: .06s; }
.panel-in .dish:nth-child(3) { animation-delay: .12s; }
.panel-in .dish:nth-child(4) { animation-delay: .18s; }

.menu-aside { position: relative; }
.menu-ph { aspect-ratio: 4 / 5; border-radius: 14px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--red); }
.note-card {
  position: relative; margin: -2.5rem 1rem 0 auto; max-width: 260px; z-index: 2;
  padding: 1.1rem 1.2rem; background: var(--white); border: 1.5px solid var(--ink); border-radius: 10px;
  font-family: var(--hand); font-size: 1.45rem; line-height: 1.2; rotate: 2deg;
}
.note-card strong { color: var(--red); }

/* =============================================================
   11. Reviews
   ============================================================= */
.reviews .section-head { margin-bottom: 1rem; }
.notes {
  display: flex; gap: 1.4rem; overflow-x: auto; overflow-y: visible;
  padding: 2.5rem max(var(--gutter), calc((100% - 1200px) / 2)) 3rem;
  scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
  overscroll-behavior-x: contain;
}
.notes::-webkit-scrollbar { display: none; }
.notes.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.notes.is-dragging .note { pointer-events: none; }
.note {
  --rot: -2deg;
  position: relative; flex: 0 0 min(82vw, 320px); scroll-snap-align: center;
  margin: 0; padding: 2rem 1.5rem 1.4rem;
  background: var(--white); border: 1.5px solid var(--ink); border-radius: 4px;
  box-shadow: 6px 8px 0 rgba(35, 32, 27, .85);
  rotate: var(--rot);
  transition: rotate .5s var(--ease-bounce), opacity .9s var(--ease-out), translate .9s var(--ease-out);
}
.note::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 92px; height: 26px; translate: -50% 0; rotate: -3deg;
  background: rgba(216, 234, 223, .9); border: 1px solid rgba(31,107,69,.25);
}
.note:hover { rotate: 0deg; }
.n-2 { --rot: 1.8deg; background: #fbf3f1; }
.n-2::before { background: rgba(244, 220, 214, .95); border-color: rgba(179,38,30,.25); }
.n-3 { --rot: -1deg; background: #f4f9f5; }
.n-4 { --rot: 2.4deg; }
.n-4::before { background: rgba(244, 220, 214, .95); border-color: rgba(179,38,30,.25); }
.n-5 { --rot: -1.6deg; background: #fbf3f1; }
.stars { color: var(--red); letter-spacing: .15em; font-size: 1rem; }
.star-off { color: rgba(35,32,27,.2); }
.note blockquote { margin-top: .7rem; font-family: var(--serif); font-size: 1.28rem; line-height: 1.35; }
.note figcaption { margin-top: 1.1rem; font-size: .82rem; color: var(--muted); }
.sig { font-family: var(--hand); font-size: 1.6rem; color: var(--green); }

/* =============================================================
   12. Contact
   ============================================================= */
.contact { background: var(--white); }
.contact-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: start; }
.contact-info h2 { margin-top: .8rem; font-size: clamp(2.6rem, 9vw, 4.6rem); }
.contact-info > .muted { margin-top: .8rem; font-style: italic; font-size: .95rem; }
.info-list { margin-top: 2rem; display: grid; gap: 1rem; }
.info-list li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line); }
.info-label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); padding-top: .2rem; }
.info-list a { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.hours { width: 100%; margin-top: 1.8rem; border-collapse: collapse; font-size: .95rem; }
.hours th { text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
.hours tr.is-today { background: var(--mint); }
.hours tr.is-today th::after { content: " · hoy"; color: var(--green); font-weight: 600; }
.open-status { margin-top: 1rem; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--green); }
.open-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.open-status.is-closed { color: var(--red); }

.postcard {
  position: relative; padding: 10px; border-radius: 16px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--white) 14px 22px, var(--green) 22px 36px, var(--white) 36px 44px);
  box-shadow: 10px 12px 0 var(--ink);
  rotate: 1deg;
}
.reserve { position: relative; display: grid; gap: 1rem; padding: clamp(1.6rem, 5vw, 2.4rem); background: var(--white); border-radius: 10px; }
.reserve h3 { font-size: 2.3rem; font-style: italic; color: var(--red); }
.postcard-stamp {
  position: absolute; top: 1rem; right: 1rem; width: 74px; height: 88px; display: grid; place-items: center;
  background: var(--green); color: var(--white); text-align: center; rotate: 6deg;
  font-family: var(--serif); font-size: .95rem; line-height: 1.05;
  border: 3px dotted var(--white);
  box-shadow: 0 0 0 3px var(--green), 3px 4px 0 3px rgba(35, 32, 27, .25);
}
.postcard-stamp span { border: 1px dashed rgba(255,255,255,.6); padding: .6rem .5rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: .8rem; }
.field label { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 48px; padding: .7rem .2rem;
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent;
  font-size: 1.05rem; transition: border-color .3s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--red); }
.field input.is-invalid { border-color: var(--red); background: rgba(179, 38, 30, .05); }
.form-hint { font-size: .8rem; color: var(--muted); text-align: center; }
.reserve-ok {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 1rem;
  background: var(--white); border-radius: 10px; text-align: center; font-size: 1.1rem;
  animation: menuIn .5s var(--ease-out);
}
.reserve-ok[hidden] { display: none; }
.reserve-ok svg { width: 80px; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.reserve-ok circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .8s var(--ease-out) forwards; }
.reserve-ok path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .6s var(--ease-out) forwards; }
.reserve-ok strong { font-family: var(--serif); font-weight: 400; font-size: 2rem; color: var(--red); }

.locate { position: relative; display: grid; gap: 1rem; padding: clamp(1.4rem, 4.5vw, 2.2rem); background: var(--white); border-radius: 10px; }
.locate h3 { font-size: clamp(2rem, 7vw, 2.5rem); font-style: italic; color: var(--red); padding-right: 5.5rem; }
.locate-addr { margin-top: -.6rem; font-size: .92rem; color: var(--muted); padding-right: 5.5rem; }
.map-frame {
  position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--ink); background: var(--paper);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85) contrast(1.02); }
.map-note {
  position: absolute; left: .7rem; bottom: .7rem; z-index: 2; pointer-events: none;
  padding: .3rem .8rem; background: var(--white); border: 1.5px solid var(--ink); border-radius: 8px;
  font-family: var(--hand); font-size: 1.3rem; color: var(--green); rotate: -3deg;
  box-shadow: 3px 3px 0 var(--ink);
}

.map { margin: 0; }
.map .ph { aspect-ratio: 4 / 3; border-radius: 16px; border: 2px solid var(--ink); }

/* =============================================================
   13. Footer
   ============================================================= */
.footer { position: relative; margin-top: 2rem; padding: clamp(5.5rem, 14vw, 8rem) 0 2rem; background: var(--green-deep); color: var(--white); overflow: clip; }
.papel-footer { top: -1px; }
.papel-footer::before { border-color: rgba(255,253,248,.4); }
.papel-footer .flag { --hole: var(--green-deep); }
.papel-footer .f-green { --c: #e9e2d2; }
.papel-footer .f-mint { --c: #9fc9b0; }
.footer-word {
  font-family: var(--serif); font-style: italic; line-height: .85; letter-spacing: -0.03em;
  font-size: clamp(4.5rem, 24vw, 17rem); color: var(--white); text-align: center;
}
.footer-word::first-letter { color: #ff8a7a; }
.footer-row {
  display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center;
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,253,248,.2);
  font-size: .88rem; color: rgba(255,253,248,.75);
}
.footer-row nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem; }
.footer-credits { font-size: .8rem; opacity: .85; }

/* Credits page */
.credits-page { padding: clamp(3rem, 8vw, 5rem) 0; }
.credits-page h1 { font-size: clamp(2.6rem, 8vw, 4rem); margin: 1rem 0; }
.credits-page h1 em { font-style: italic; color: var(--red); }
.credits-list { margin-top: 2rem; display: grid; gap: 1rem; }
.credits-list li { display: grid; grid-template-columns: 88px 1fr; gap: 1rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.credits-list img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; border: 1.5px solid var(--ink); }
.credits-list a { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.back-link { font-weight: 600; color: var(--green); }
.footer-row a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* =============================================================
   14. Motion
   ============================================================= */
.hero-in { animation: riseIn 1s var(--ease-out) both; }
.hero-title .line:nth-child(1) { animation-delay: .1s; }
.hero-title .line:nth-child(2) { animation-delay: .22s; }
.hero-lead.hero-in { animation-delay: .36s; }
.hero-actions.hero-in { animation-delay: .48s; }
.hero-facts.hero-in { animation-delay: .6s; }
.arch.hero-in { animation: archIn 1.3s .15s var(--ease-out) both; }
.round.hero-in { animation: popIn .9s .7s var(--ease-bounce) both; }
.seal.hero-in { animation: popIn .9s .9s var(--ease-bounce) both; }
.note-hand.hero-in { animation: riseIn 1s 1.3s var(--ease-out) both; }

/* Scroll reveals (JS adds .is-in). CSS safety net shows everything at 5s anyway. */
.js .reveal { opacity: 0; translate: 0 32px; transition: opacity .9s var(--ease-out), translate .9s var(--ease-out); animation: revealSafety 0s 5s forwards; }
.js .reveal.is-in { opacity: 1; translate: 0 0; animation: none; }
.js .lcard.reveal { translate: 0 60px; }
.js .lcard.reveal.is-in { translate: 0 0; }

@keyframes riseIn { from { opacity: 0; translate: 0 26px; } }
@keyframes archIn { from { opacity: 0; clip-path: inset(100% 0 0 0 round 999px 999px 18px 18px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 999px 999px 18px 18px); } }
@keyframes popIn { from { opacity: 0; scale: .6; } }
@keyframes revealSafety { to { opacity: 1; translate: 0 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sway { from { rotate: -4deg; } to { rotate: 4deg; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(31,107,69,0); } 100% { box-shadow: 0 0 0 0 rgba(31,107,69,0); } }
@keyframes marquee { to { transform: translateX(calc(-50% - .8rem)); } }
@keyframes menuIn { from { opacity: 0; translate: 0 -10px; } }
@keyframes dishIn { from { opacity: 0; translate: 0 14px; } }

/* =============================================================
   15. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .flag:nth-child(n+9) { display: block; }
  .flag:nth-child(n+11) { display: none; }
  .cards-fan { gap: 1.4rem; }
  .menu-list { grid-template-columns: 1fr; }
  .footer-row { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 720px) {
  .flag:nth-child(n+11) { display: block; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .stat dt { font-size: .78rem; letter-spacing: .1em; }
  .menu-list { grid-template-columns: 1fr 1fr; }
  .map .ph { aspect-ratio: 21 / 9; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .map { grid-column: 1 / -1; }
  .story-grid { grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .story-figure, .pillars, .stats { grid-column: 1 / -1; }
  .story-body { padding-top: 2.6rem; }
}
@media (min-width: 960px) {
  .nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav-side { display: flex; align-items: center; gap: 2rem; }
  .nav-right { justify-content: flex-end; }
  .brand { align-items: center; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }

  .hero-grid { grid-template-columns: 1.08fr 1fr; align-items: center; }
  .hero-visual { padding: 0 0 2.5rem 3rem; }
  .round { left: 0; }

  .cards-fan { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; padding-top: 1.5rem; }
  .lcard:nth-child(1) { rotate: -5deg; top: 18px; }
  .lcard:nth-child(2) { rotate: -1.6deg; }
  .lcard:nth-child(3) { rotate: 1.6deg; }
  .lcard:nth-child(4) { rotate: 5deg; top: 18px; }
  .lcard:hover { rotate: 0deg; z-index: 2; }

  .menu .container { grid-template-columns: 1.7fr 1fr; align-items: start; column-gap: 4rem; }
  .menu .section-head { grid-column: 1 / -1; margin-bottom: 0; }
  .menu-aside { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .menu-board { grid-column: 1; }
  .menu-list { grid-template-columns: 1fr; gap: 1.7rem; }
  .menu-aside { grid-column: 2; }

  .contact-grid { grid-template-columns: 1fr 1.05fr; column-gap: 5rem; }
}
@media (min-width: 960px) {
  .hero-title { font-size: clamp(3.6rem, 5.7vw, 5.9rem); }
}
@media (min-width: 1280px) {
  .story-grid { column-gap: 6rem; }
}

/* =============================================================
   16. Reduced motion — only intrusive loops
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation-duration: 90s; }
  .open-dot { animation: none; }
}
