/* =============================================================
   Mexicano Tex Mex · Marbella — styles.css
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --cream:     #fff3dc;
  --paper:     #fffaf0;
  --ink:       #2a1508;
  --ink-soft:  #5a3a26;
  --rosa:      #e6007e;
  --rosa-osc:  #b30062;
  --turquesa:  #00a19b;
  --amarillo:  #ffb400;
  --amarillo-osc: #d98a00;
  --naranja:   #ff6a13;
  --rojo:      #d7261e;
  --verde:     #1f9d55;
  --cobalto:   #1c3faa;
  --chocolate: #6b3a1f;
  --line:      rgba(42, 21, 8, .14);

  --display: "Shrikhand", "Bricolage Grotesque", Georgia, serif;
  --sans:    "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1240px;
  --nav-h: 72px;
  --radius: 22px;

  --sarape: repeating-linear-gradient(90deg,
    var(--rojo) 0 18px, var(--amarillo) 18px 24px, var(--rosa) 24px 40px,
    var(--paper) 40px 43px, var(--turquesa) 43px 58px, var(--ink) 58px 61px,
    var(--verde) 61px 76px, var(--amarillo) 76px 82px, var(--naranja) 82px 98px,
    var(--paper) 98px 101px, var(--cobalto) 101px 116px, var(--rosa) 116px 122px);

  --talavera: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%23fffaf0'/%3E%3Cg fill='%231c3faa'%3E%3Ccircle cx='32' cy='32' r='7'/%3E%3Cpath d='M32 5c6 9 6 14 0 19c-6-5-6-10 0-19zM32 59c6-9 6-14 0-19c-6 5-6 10 0 19zM5 32c9-6 14-6 19 0c-5 6-10 6-19 0zM59 32c-9-6-14-6-19 0c5 6 10 6 19 0z'/%3E%3Cpath d='M0 0h11a11 11 0 0 1-11 11zM64 0v11a11 11 0 0 1-11-11zM0 64v-11a11 11 0 0 1 11 11zM64 64h-11a11 11 0 0 1 11-11z'/%3E%3C/g%3E%3Cg fill='%23ffb400'%3E%3Ccircle cx='32' cy='32' r='3'/%3E%3Ccircle cx='0' cy='0' r='4'/%3E%3Ccircle cx='64' cy='0' r='4'/%3E%3Ccircle cx='0' cy='64' r='4'/%3E%3Ccircle cx='64' cy='64' r='4'/%3E%3C/g%3E%3Cg fill='%2300a19b'%3E%3Ccircle cx='16' cy='16' r='2.5'/%3E%3Ccircle cx='48' cy='16' r='2.5'/%3E%3Ccircle cx='16' cy='48' r='2.5'/%3E%3Ccircle cx='48' cy='48' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; }
::selection { background: var(--rosa); color: var(--paper); }
:focus-visible { outline: 3px solid var(--cobalto); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.sr-only {
  position: absolute !important; 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; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--paper); border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Typography
   ============================================================= */
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 4px rgba(31,157,85,.2); }
.kicker--rosa     { color: var(--rosa); }
.kicker--turquesa { color: var(--turquesa); }
.kicker--amarillo { color: var(--amarillo); }

.section-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  letter-spacing: -0.03em;
  margin-top: .6rem;
}
.section-title em, .hero-title em, .footer-big {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}
.section-title em { color: var(--rosa); }
.section-title--light { color: var(--paper); }
.section-title--light em { color: var(--amarillo); }
.section-lead { margin-top: 1rem; max-width: 52ch; color: var(--ink-soft); font-size: 1.05rem; }
.section-head { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  --bg: var(--ink); --fg: var(--paper); --sh: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.3rem; border-radius: 999px;
  font-weight: 700; font-size: .98rem; line-height: 1;
  background: var(--bg); color: var(--fg);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--sh);
  transition: transform .25s var(--ease-bounce), box-shadow .25s var(--ease-out), background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--sh); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--sh); }
.btn-rosa { --bg: var(--rosa); --fg: #fff; }
.btn-outline { --bg: var(--paper); --fg: var(--ink); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .45rem; line-height: 1; }
.logo-img {
  width: 58px; height: 58px; flex: none; object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(42,21,8,.25));
  transition: transform .5s var(--ease-bounce);
}
.logo:hover .logo-img { transform: rotate(-8deg) scale(1.06); }
.logo-img--footer {
  width: 96px; height: 96px; padding: 8px;
  background: var(--cream); border-radius: 50%; border: 3px solid var(--amarillo);
  margin-right: .3rem;
}
@media (min-width: 960px) { .nav .logo-img { width: 70px; height: 70px; } }
.logo-main { font-family: var(--display); font-size: 1.6rem; color: var(--rosa); }
.logo-tag {
  font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  background: var(--amarillo); color: var(--ink);
  padding: .3rem .5rem; border-radius: 6px; transform: rotate(-4deg) translateY(-2px);
}
.logo--light .logo-main { color: var(--amarillo); }
.logo--light .logo-tag { background: var(--rosa); color: #fff; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: var(--gutter);
  transition: background .3s, box-shadow .3s, height .3s;
}
.nav.is-scrolled {
  background: rgba(255, 243, 220, .94);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(42,21,8,.4);
}
@supports (backdrop-filter: blur(10px)) {
  .nav.is-scrolled { background: rgba(255, 243, 220, .82); backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%); }
}
.nav-links { display: none; }
.nav-links a:not(.btn) {
  position: relative; font-weight: 600; font-size: .98rem; padding: .3rem 0;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px;
  background: var(--rosa); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-links a:not(.btn):hover::after,
.nav-links a.is-current::after { transform: scaleX(1); }

.nav-toggle {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--rosa); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  display: grid; place-items: center; position: relative; z-index: 2;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2.5px; border-radius: 2px; background: #fff;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
.nav.is-open .nav-toggle-bars { background: transparent; }
.nav.is-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
@media (max-width: 959px) {
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.1rem;
    position: fixed; inset: 0; padding: 6rem var(--gutter) 2rem;
    background: var(--rosa) var(--talavera);
    background-blend-mode: multiply;
    animation: menuIn .45s var(--ease-out) both;
  }
  .nav.is-open .nav-links::before {
    content: ""; position: absolute; inset: 0; background: rgba(230, 0, 126, .88); z-index: -1;
  }
  .nav.is-open .nav-links a:not(.btn) { font-family: var(--display); font-size: clamp(2rem, 9vw, 3rem); color: #fff; line-height: 1.1; }
  .nav.is-open .nav-links a:not(.btn)::after { background: var(--amarillo); }
  .nav.is-open .nav-links .nav-cta { --bg: var(--amarillo); --fg: var(--ink); margin-top: 1rem; }
  .nav.is-open .logo { position: relative; z-index: 2; }
  .nav.is-open .logo-main { color: #fff; }
}
@keyframes menuIn { from { clip-path: circle(0% at calc(100% - 48px) 36px); } to { clip-path: circle(150% at calc(100% - 48px) 36px); } }

/* Tags */
.tag {
  display: inline-block; margin-top: .7rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px; border: 1.5px solid var(--ink);
}
.tag--fav { background: var(--amarillo); }
.tag--hot { background: var(--rojo); color: #fff; }
.tag--veg { background: var(--verde); color: #fff; }

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

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--rosa);
  animation: splashSafety .01s 4.5s forwards;
  transition: clip-path .8s var(--ease-out), opacity .5s;
  clip-path: inset(0 0 0 0);
}
.splash.is-out { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); visibility: hidden; } }
.splash-inner { display: flex; align-items: center; gap: .8rem; }
.splash-chili { width: 64px; height: 64px; color: var(--amarillo); animation: chiliWiggle .9s var(--ease-bounce) infinite alternate; }
.splash-word { font-family: var(--display); font-size: clamp(2.6rem, 9vw, 4.5rem); color: #fff; }
@keyframes chiliWiggle { from { transform: rotate(-14deg); } to { transform: rotate(14deg) scale(1.08); } }
html:not(.js) .splash { display: none; }

/* ---------- Papel picado ---------- */
.papel {
  --kick: 0;
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; justify-content: space-between; gap: 6px;
  padding-inline: 4px;
  pointer-events: none; z-index: 1;
  overflow: clip;
}
.papel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 2px;
  background: var(--ink); opacity: .55;
}
.flag {
  flex: 0 0 auto;
  width: clamp(38px, 5.2vw, 64px); height: auto; aspect-ratio: 60 / 74;
  transform-origin: 50% 0;
  animation: sway 3.6s ease-in-out infinite alternate;
  rotate: calc(var(--kick) * var(--k, 1) * 1deg);
  transition: rotate .7s var(--ease-bounce);
  filter: drop-shadow(0 3px 0 rgba(42,21,8,.12));
}
.flag:nth-child(6n+1) { color: var(--rosa);     --k: 1;    animation-delay: -.2s; }
.flag:nth-child(6n+2) { color: var(--amarillo); --k: -.8;  animation-delay: -1.1s; }
.flag:nth-child(6n+3) { color: var(--turquesa); --k: 1.2;  animation-delay: -2.3s; }
.flag:nth-child(6n+4) { color: var(--naranja);  --k: -1.1; animation-delay: -.7s; }
.flag:nth-child(6n+5) { color: var(--verde);    --k: .9;   animation-delay: -1.8s; }
.flag:nth-child(6n+6) { color: var(--cobalto);  --k: -1;   animation-delay: -2.9s; }
.flag use { fill: currentColor; }
@keyframes sway { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(4.8rem, 8.5vw, 7.5rem)) var(--gutter) 3.5rem;
  background:
    radial-gradient(60% 50% at 85% 40%, rgba(255,180,0,.35), transparent 70%),
    radial-gradient(40% 40% at 5% 90%, rgba(0,161,155,.18), transparent 70%),
    var(--cream);
}
.papel--hero { top: var(--nav-h); }
.hero-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; gap: 2.5rem; align-items: center;
}
.hero-title {
  margin-top: 1rem;
  font-weight: 800;
  font-size: clamp(2.6rem, 10.5vw, 5.4rem);
  line-height: .95; letter-spacing: -0.04em;
}
.hw { display: block; }
.hw:nth-child(1) { color: var(--ink); }
.hw:nth-child(2) { color: var(--ink); }
.hw-fiesta em {
  display: inline-block; color: var(--rosa);
  font-size: 1.3em; line-height: 1.1;
  transform: rotate(-3deg);
  text-shadow: 4px 4px 0 var(--amarillo);
}
.hero-sub { margin-top: 1.4rem; max-width: 44ch; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--ink-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2rem; font-size: .95rem; color: var(--ink-soft); }
.hero-facts li { display: flex; align-items: center; gap: .45rem; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--rosa); transform: rotate(45deg); }
.hero-facts li:nth-child(2)::before { background: var(--turquesa); }
.hero-facts li:nth-child(3)::before { background: var(--amarillo); }
.hero-facts strong { color: var(--ink); }

.hero-visual { position: relative; width: min(100%, 520px); margin-inline: auto; padding: 1.5rem 1.5rem 2.5rem; }
.arch {
  position: relative; overflow: hidden;
  border-radius: 999px 999px 28px 28px;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--rosa);
  aspect-ratio: 5 / 4;
  background: var(--amarillo);
}
.arch img { width: 100%; height: 108%; object-fit: cover; object-position: 50% 50%; will-change: transform; }
.sticker {
  position: absolute; overflow: hidden; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
}
.sticker img { width: 100%; height: 100%; object-fit: cover; }
.sticker--taco { width: 38%; aspect-ratio: 1; left: -4%; bottom: 4%; animation: bob 5s ease-in-out infinite; }
.sticker--marg { width: 30%; aspect-ratio: 1; right: -2%; top: 12%; animation: bob 6s ease-in-out -2s infinite; }
.sticker--marg img { object-position: 50% 30%; }
.sticker--taco img { object-position: 42% 50%; transform: scale(1.15); }
@keyframes bob { 50% { translate: 0 -10px; } }

.badge-spin { position: absolute; width: 30%; aspect-ratio: 1; right: 0; bottom: 0; }
.badge-spin > svg:first-child { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge-spin text { font-family: var(--sans); font-weight: 800; font-size: 17px; letter-spacing: 3px; fill: var(--ink); }
.badge-spin circle { stroke: var(--ink); stroke-width: 3; }
.badge-chili { position: absolute; inset: 24%; width: 52%; height: 52%; color: var(--rojo); transform-origin: 70% 20%; animation: chiliSwing 3.2s ease-in-out infinite alternate; filter: drop-shadow(1px 2px 0 rgba(42,21,8,.25)); }
@keyframes chiliSwing { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--amarillo);
  border-block: 10px solid transparent;
  border-image: var(--sarape) 10;
  padding-block: 1rem;
}
.marquee-track {
  display: flex; align-items: center; gap: 1.6rem; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track span { font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2.4rem); white-space: nowrap; }
.marquee-track span:nth-of-type(3n+2) { color: var(--rosa); }
.marquee-track span:nth-of-type(3n) { color: var(--turquesa); }
.marquee-track svg { width: 22px; height: 22px; color: var(--paper); flex: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Carta ---------- */
.carta { padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); background: var(--paper); }
.tabs-wrap {
  position: sticky; top: var(--nav-h); z-index: 20;
  margin-top: 2.2rem;
  background: linear-gradient(var(--paper) 78%, rgba(255,250,240,0));
  padding-block: .8rem 1.2rem;
}
.tabs {
  max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter);
  display: flex; gap: .55rem; overflow-x: auto; overflow-y: visible;
  scrollbar-width: none; scroll-snap-type: x proximity;
  padding-block: 4px 8px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; scroll-snap-align: start;
  padding: .62rem 1.1rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem;
  background: var(--paper); border: 2px solid var(--ink);
  transition: background .25s, color .25s, transform .3s var(--ease-bounce), box-shadow .3s;
}
.tab:hover { transform: translateY(-2px); }
.tab[aria-selected="true"] { background: var(--c); color: #fff; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg); }
html:not(.js) .tabs-wrap { display: none; }

.menu-panel { max-width: var(--max); margin: 0 auto; padding: 1.2rem var(--gutter) 1rem; }
.js .menu-panel:not(.is-active) { display: none; }
html:not(.js) .menu-panel { padding-top: 3rem; }
.panel-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--c); margin-bottom: 1.6rem;
  display: flex; align-items: center; gap: .8rem;
}
.panel-title::after { content: ""; flex: 1; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--c) 0 14px, transparent 14px 22px); opacity: .6; }

.dish-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; grid-auto-flow: dense; }
.dish {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--c, var(--rosa));
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
  transform-style: preserve-3d;
}
.dish:hover { box-shadow: 10px 10px 0 var(--c, var(--rosa)); }
.dish-media {
  display: block; width: 100%; overflow: hidden;
  border-radius: calc(var(--radius) - 4px) calc(var(--radius) - 4px) 0 0;
  aspect-ratio: 4 / 3; border-bottom: 2px solid var(--ink);
  cursor: zoom-in; position: relative;
}
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), filter .6s; }
.dish:hover .dish-media img { transform: scale(1.07); filter: saturate(1.15); }
.dish-media::after {
  content: "+"; position: absolute; right: .8rem; top: .8rem; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; line-height: 1;
  background: var(--paper); border: 2px solid var(--ink);
  transform: scale(0); transition: transform .35s var(--ease-bounce);
}
.dish:hover .dish-media::after, .dish-media:focus-visible::after { transform: scale(1); }
.dish-body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.dish-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.dish-head h4 { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.price {
  flex: none; font-weight: 800; font-size: .98rem; white-space: nowrap;
  background: var(--c, var(--rosa)); color: #fff;
  padding: .28rem .65rem; border-radius: 999px;
  transform: rotate(3deg);
}
.price small { font-weight: 600; font-size: .75em; opacity: .9; }
.dish-body p { margin-top: .45rem; font-size: .96rem; color: var(--ink-soft); line-height: 1.5; }
.variants { margin-top: .6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .9rem; font-size: .94rem; }
.variants li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: .2rem; }

/* Card pop-in when switching tabs */
.menu-panel.is-entering .dish,
.menu-panel.is-entering .menu-list li,
.menu-panel.is-entering .beer-strip figure { animation: popIn .6s var(--ease-bounce) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes popIn { from { opacity: 0; transform: translateY(26px) scale(.96) rotate(-1.5deg); } }

.more {
  margin-top: 2.2rem; padding: 1.6rem 1.4rem;
  border-radius: var(--radius); border: 2px dashed var(--c);
  background: color-mix(in srgb, var(--c) 6%, transparent);
}
.more--solo { margin-top: 0; }
.more-title { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--c); margin-bottom: .8rem; }
.menu-list { display: grid; gap: .9rem 3rem; }
.menu-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: .5rem; }
.ml-name { font-weight: 700; font-size: 1.05rem; }
.ml-dots { border-bottom: 2px dotted rgba(42,21,8,.3); transform: translateY(-4px); }
.ml-price { font-weight: 800; color: var(--c); white-space: nowrap; }
.menu-list p { grid-column: 1 / -1; font-size: .92rem; color: var(--ink-soft); margin-top: -.2rem; line-height: 1.45; }

.beer-strip { display: flex; gap: .8rem; margin-top: 1.8rem; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x mandatory; }
.beer-strip figure {
  flex: 0 0 38%; scroll-snap-align: start;
  border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 4px 4px 0 var(--amarillo);
  transition: transform .35s var(--ease-bounce);
}
.beer-strip figure:hover { transform: translateY(-6px) rotate(-2deg); }
.beer-strip img { aspect-ratio: 2 / 3; width: 100%; object-fit: cover; }
.beer-strip figcaption { text-align: center; font-weight: 800; padding: .5rem; font-size: .92rem; border-top: 2px solid var(--ink); }

.carta-note { max-width: var(--max); margin: 2.4rem auto 0; padding-inline: var(--gutter); font-size: .95rem; color: var(--ink-soft); }
.carta-note::before { content: "✦ "; color: var(--rosa); }

/* ---------- Promos ---------- */
.promos { padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter); background: var(--cream); }
.promo-grid { max-width: var(--max); margin: 0 auto; display: grid; gap: 1.4rem; }
.promo {
  position: relative; overflow: hidden;
  padding: 1.8rem 1.6rem; border-radius: var(--radius); border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  transition: transform .45s var(--ease-bounce);
}
.promo:hover { transform: rotate(-1.5deg) translateY(-4px); }
.promo--mie { background: var(--turquesa); color: #fff; }
.promo--jue { background: var(--rosa); color: #fff; }
.promo--cum { background: var(--amarillo); color: var(--ink); }
.promo--dom { background: var(--verde); color: #fff; }
.promo-txt a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.promo::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%;
  background: var(--talavera); background-size: 38px; opacity: .22;
}
.promo-day { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.promo-big { font-family: var(--display); font-size: clamp(4rem, 10vw, 5.6rem); line-height: 1; margin: .3rem 0 .2rem; }
.promo-big--sm { font-size: clamp(3rem, 7vw, 4.2rem); padding-block: .5rem; }
.promo-txt { font-size: 1.05rem; font-weight: 500; max-width: 26ch; position: relative; z-index: 1; }

/* ---------- Nosotros ---------- */
.nosotros { position: relative; background: var(--cobalto); color: var(--paper); padding: 0 var(--gutter) clamp(4rem, 8vw, 6.5rem); }
.talavera-band {
  height: 64px; margin-inline: calc(var(--gutter) * -1);
  background: var(--talavera); background-size: 64px;
  border-bottom: 3px solid var(--ink);
}
.nosotros-grid { max-width: var(--max); margin: 0 auto; padding-top: clamp(3.5rem, 7vw, 5.5rem); display: grid; gap: 3rem; align-items: center; }
.nosotros-copy p:not(.kicker) { margin-top: 1.1rem; font-size: 1.07rem; color: rgba(255,250,240,.88); max-width: 56ch; }
.count { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.count-num { font-family: var(--display); font-size: clamp(4.5rem, 11vw, 6.5rem); line-height: .9; color: var(--amarillo); text-shadow: 4px 4px 0 var(--rosa); }
.count-label { font-weight: 700; font-size: 1.05rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .08em; }
.pillars { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.pillars li {
  padding: .55rem .95rem; border-radius: 999px; font-size: .95rem;
  background: rgba(255,250,240,.1); border: 1.5px solid rgba(255,250,240,.35);
}
.pillars strong { color: var(--amarillo); }

.nosotros-photos { position: relative; min-height: 420px; max-width: 520px; width: 100%; margin-inline: auto; }
.polaroid {
  position: absolute; background: var(--paper); padding: 10px 10px 0; border-radius: 6px;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.55);
  transition: transform .5s var(--ease-bounce);
}
.polaroid img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 3px; }
.polaroid figcaption { font-family: var(--display); color: var(--ink); text-align: center; padding: .55rem 0 .7rem; font-size: 1.05rem; }
.polaroid::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 90px; height: 28px; translate: -50% 0;
  background: rgba(255,180,0,.85); rotate: -4deg; z-index: 2;
}
.polaroid--a { width: 60%; left: 0; top: 0; rotate: -5deg; z-index: 1; }
.polaroid--b { width: 55%; right: 0; top: 18%; rotate: 5deg; }
.polaroid--b::before { background: rgba(230,0,126,.8); rotate: 5deg; }
.polaroid:hover { z-index: 3; transform: scale(1.04) rotate(0deg); }

/* ---------- Ambiente ---------- */
.ambiente { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--paper); }
.mosaic {
  max-width: var(--max); margin: 2.4rem auto 0; padding-inline: var(--gutter);
  display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; grid-auto-flow: dense; gap: .8rem;
}
.m-item {
  position: relative; overflow: hidden; border-radius: 18px; border: 2px solid var(--ink);
  cursor: zoom-in; display: block;
}
.m-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.m-item:hover img { transform: scale(1.08); }
.m-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(230,0,126,.35)); opacity: 0; transition: opacity .4s; }
.m-item:hover::after { opacity: 1; }
.m-tall { grid-row: span 2; }
.m-wide { grid-column: span 2; }

/* ---------- Reservas ---------- */
.reservas { position: relative; background: var(--rosa); padding: 0 var(--gutter) clamp(4rem, 8vw, 6rem); }
.sarape-band { height: 26px; margin-inline: calc(var(--gutter) * -1); background: var(--sarape); border-bottom: 3px solid var(--ink); }
.reservas-grid { max-width: var(--max); margin: 0 auto; padding-top: clamp(3rem, 6vw, 4.5rem); display: grid; gap: 2rem; align-items: start; }
.reservas-form-wrap {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  box-shadow: 10px 10px 0 var(--ink);
}
.form { margin-top: 1.6rem; display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: .92rem; }
.field legend { margin-bottom: .45rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem 1rem; border-radius: 14px;
  border: 2px solid var(--ink); background: #fff;
  transition: box-shadow .2s, border-color .2s;
  min-height: 50px;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--turquesa); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--rojo); box-shadow: 4px 4px 0 rgba(215,38,30,.35); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; }
.field input, .field select { min-width: 0; max-width: 100%; }
.field input[type="date"] { -webkit-appearance: none; appearance: none; padding-inline: .8rem .5rem; }
.people { display: flex; flex-wrap: wrap; gap: .45rem; }
.people label { position: relative; cursor: pointer; }
.people input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.people span {
  display: grid; place-items: center; min-width: 46px; height: 46px; padding-inline: .6rem;
  border: 2px solid var(--ink); border-radius: 12px; background: #fff; font-weight: 800;
  transition: background .2s, color .2s, transform .3s var(--ease-bounce), box-shadow .2s;
}
.people label:hover span { transform: translateY(-2px); }
.people input:checked + span { background: var(--amarillo); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-4deg); }
.people input:focus-visible + span { outline: 3px solid var(--cobalto); outline-offset: 2px; }
.form-hint { text-align: center; font-size: .95rem; color: var(--ink-soft); }
.form-hint a { font-weight: 800; color: var(--rosa); text-decoration: underline; text-underline-offset: 3px; }
.form-result {
  border: 2px solid var(--ink); border-radius: 18px; padding: 1.2rem 1.3rem;
  background: color-mix(in srgb, var(--verde) 12%, #fff);
  animation: popIn .6s var(--ease-bounce) both;
}
.form-result h3 { font-family: var(--display); font-weight: 400; color: var(--verde); font-size: 1.5rem; }
.form-result p { margin-top: .4rem; font-size: .96rem; }
.form-result .btn { margin-top: .9rem; }

.info { display: grid; gap: 1rem; color: #fff; }
.info-card { background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.4); border-radius: 20px; padding: 1.2rem 1.3rem; }
.info-card h3 { font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--amarillo); margin-bottom: .45rem; }
.info-card p { font-size: 1.05rem; line-height: 1.5; }
.big-link { font-family: var(--display); font-size: 1.9rem; }
.delivery {
  margin-top: .8rem; padding: .7rem .9rem; border-radius: 14px;
  background: var(--amarillo); color: var(--ink); font-size: .98rem !important;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.link-arrow { display: inline-block; margin-top: .5rem; font-weight: 800; border-bottom: 2px solid var(--amarillo); }
.link-arrow::after { content: " →"; transition: margin .3s; }
.link-arrow:hover::after { margin-left: 4px; }
.socials { display: flex; gap: 1.2rem; }
.socials a { font-weight: 800; border-bottom: 2px solid var(--amarillo); }
.map { border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--ink); color: var(--paper); padding: 6.5rem var(--gutter) 2rem; }
.papel--footer .flag { width: clamp(30px, 4vw, 48px); }
.papel--footer::before { background: var(--amarillo); }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-big { font-size: clamp(2.8rem, 9vw, 6rem); line-height: .95; color: var(--amarillo); }
.footer-cols { display: grid; gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,250,240,.18); }
.footer-cols h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rosa); margin-bottom: .6rem; }
.footer-cols p { color: rgba(255,250,240,.8); margin-top: .5rem; }
.footer-cols a:hover { color: var(--amarillo); }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer-legal { margin-top: 3rem; font-size: .85rem; color: rgba(255,250,240,.5); }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; overflow: visible;
  margin: auto;
}
.lightbox::backdrop { background: rgba(42,21,8,.82); backdrop-filter: blur(4px); }
.lightbox[open] { animation: popIn .5s var(--ease-bounce) both; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; margin-inline: auto; border-radius: 20px; border: 3px solid var(--paper); }
.lightbox-cap { text-align: center; color: var(--paper); font-family: var(--display); font-size: 1.4rem; margin-top: .8rem; }
.lightbox-close {
  position: absolute; top: -18px; right: -10px; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--rosa); color: #fff; font-size: 1.8rem; line-height: 1;
  border: 2px solid var(--paper); box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- WhatsApp ---------- */
.wa-ico { width: 1.25em; height: 1.25em; flex: none; }
.btn-wa { --bg: #25d366; --fg: #fff; }
.wa-link { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-size: 1.6rem; }
.wa-link .wa-ico { width: 1.1em; height: 1.1em; color: #fff; }
.info-small { font-size: .95rem !important; opacity: .9; margin-top: .3rem; }
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45;
  display: inline-flex; align-items: center; gap: .55rem;
  height: 60px; padding: 0 14px; border-radius: 999px;
  background: #25d366; color: #fff;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800; font-size: 1rem;
  transition: transform .3s var(--ease-bounce), box-shadow .3s var(--ease-out), opacity .3s;
  animation: waIn .7s var(--ease-bounce) 2.2s both;
}
.wa-float svg { width: 30px; height: 30px; flex: none; }
.wa-float::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid #25d366;
  animation: waPulse 2.4s ease-out 3s infinite; pointer-events: none;
}
.wa-float:hover { transform: translate(-2px, -2px) rotate(-3deg); box-shadow: 6px 6px 0 var(--ink); }
.wa-float-label { display: none; }
.menu-open .wa-float { opacity: 0; pointer-events: none; }
@keyframes waIn { from { opacity: 0; transform: translateY(30px) scale(.6); } }
@keyframes waPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
@media (min-width: 720px) { .wa-float { padding: 0 18px 0 14px; } .wa-float-label { display: inline; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* =============================================================
   7. Effects — reveal
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.js .polaroid.reveal { transform: translateY(40px); }
.js .polaroid.reveal.is-visible { transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .dish-grid { grid-template-columns: repeat(2, 1fr); }
  .dish--wide { grid-column: span 2; }
  .dish--wide .dish-media { aspect-ratio: 16 / 8; }
  .beer-strip figure { flex-basis: 24%; }
  .mosaic { grid-auto-rows: 200px; }
}
@media (min-width: 720px) {
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-list { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; }
  .footer-cols { grid-template-columns: 1.3fr 1fr 1fr; }
  .nosotros-photos { min-height: 520px; }
}
@media (min-width: 960px) {
  :root { --nav-h: 84px; }
  .nav-links { display: flex; align-items: center; gap: 1.8rem; }
  .nav-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
  .hero-visual { width: 100%; }
  .dish-grid { grid-template-columns: repeat(3, 1fr); }
  .beer-strip { overflow: visible; }
  .beer-strip figure { flex: 1 1 0; }
  .nosotros-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .reservas-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
  .mosaic { grid-auto-rows: 220px; }
}
@media (min-width: 1280px) {
  .promo-grid { grid-template-columns: repeat(4, 1fr); }
  .promo { padding: 1.6rem 1.4rem; }
  .promo-big { font-size: 4.4rem; }
  .promo-big--sm { font-size: 3.2rem; }
  .dish-body { padding: 1.2rem 1.4rem 1.4rem; }
}

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .splash-chili { animation: none; }
  .sticker--taco, .sticker--marg { animation: none; }
}
