/* La Llamarada · sistema visual
   Tokens tomados del local (muros, carta, logo) y ordenados con la escala del DESIGN.md. */

@font-face {
  font-family: "Bungee";
  src: url("../fonts/bungee-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pirata One";
  src: url("../fonts/pirata-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color: tres núcleos + un acento (contrastes verificados en docs/07) */
  --amarillo: #ffb110;      /* muros y mesa de la carta */
  --amarillo-claro: #ffd640;
  --chile: #c81e1e;         /* letras del logo, barra roja */
  --chile-oscuro: #9e1414;
  --tinta: #1a1210;         /* contornos del logo */
  --crema: #fff4dc;         /* papel de lectura */
  --crema-2: #f6e6c4;
  --rosa: #c2006b;          /* acento: marcos rosa del salón azul */
  --rosa-claro: #ff5ea8;
  --agave: #146c45;         /* solo estados de éxito y detalles del logo */
  --texto-suave: #5c4a3d;   /* 7.68:1 sobre crema */

  --font-display: "Bungee", "Arial Black", Impact, system-ui, sans-serif;
  --font-gotica: "Pirata One", "Old English Text MT", Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala de espaciado (base 4 px, DESIGN.md) */
  --s-4: 0.25rem; --s-8: 0.5rem; --s-12: 0.75rem; --s-16: 1rem; --s-20: 1.25rem;
  --s-24: 1.5rem; --s-32: 2rem; --s-36: 2.25rem; --s-64: 4rem; --s-80: 5rem;

  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-pill: 9999px;
  --border: 2px solid var(--tinta);
  --hairline: 1px solid rgba(26, 18, 16, 0.14);
  --shadow-hard: 4px 4px 0 var(--tinta);  /* extruido de las letras de la carta */
  --max: 90rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 4.5rem;
  --ease-pop: cubic-bezier(.2, .9, .3, 1.2);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--crema);
  font-feature-settings: "lnum";
  overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--chile); }
p { margin: 0 0 var(--s-16); }
h1, h2, h3, h4 { margin: 0 0 var(--s-16); line-height: 1.08; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 5vw, 3.4rem); }
h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--rosa); color: #fff; }

:focus-visible {
  outline: 3px solid var(--tinta);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--amarillo-claro);
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--amarillo-claro); box-shadow: 0 0 0 6px var(--tinta); }

.visually-hidden {
  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: absolute; left: var(--s-16); top: -100px; z-index: 100;
  background: var(--tinta); color: var(--crema); padding: var(--s-12) var(--s-16);
  border-radius: var(--radius-btn); font-weight: 700;
}
.skip-link:focus { top: var(--s-16); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--text { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, var(--s-80)); position: relative; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40rem; }
.muted { color: var(--texto-suave); }
.small { font-size: 0.875rem; }

/* Textura de ladrillo blanco: el fondo de las cartas impresas */
.bricks {
  background-color: var(--crema);
  /* Ladrillo con juntas alternadas (filas de 20 px, piezas de 80 px) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40'%3E%3Cpath d='M0 1H80M0 21H80M1 1V21M41 21V40' fill='none' stroke='%23f2dfb8' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 80px 40px;
}
/* Rayos de la portada de la carta (Virgen y chiles en abanico) */
.rays {
  background-color: var(--amarillo);
  background-image: repeating-conic-gradient(from 0deg at 70% 55%, #ffbb2e 0deg 7deg, var(--amarillo) 7deg 14deg);
}
.night { background: var(--tinta); color: var(--crema); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8);
  min-height: 3rem; padding: 0.7rem 1.25rem;
  border: var(--border); border-radius: var(--radius-btn);
  font-weight: 750; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; box-shadow: 3px 3px 0 var(--tinta);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background-color 200ms;
  background: var(--crema); color: var(--tinta);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--tinta); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--tinta); transition-duration: 80ms; }
.btn--primary { background: var(--chile); color: #fff; }
.btn--primary:hover { background: var(--chile-oscuro); }
.btn--dark { background: var(--tinta); color: var(--crema); border-color: var(--tinta); box-shadow: 3px 3px 0 var(--amarillo-claro); }
.btn--dark:hover { box-shadow: 5px 5px 0 var(--amarillo-claro); }
.night .btn, .on-dark .btn { border-color: var(--crema); box-shadow: 3px 3px 0 var(--amarillo); }
.night .btn:hover, .on-dark .btn:hover { box-shadow: 5px 5px 0 var(--amarillo); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; transform: none; }
.btn--small { min-height: 2.75rem; padding: 0.45rem 0.9rem; font-size: 0.9375rem; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-12) var(--s-16); align-items: center; }

/* Píldora gótica: el gesto de énfasis (una palabra por pantalla) */
.pill {
  font-family: var(--font-gotica); font-weight: 400; letter-spacing: 0.01em;
  background: var(--rosa); color: #fff; text-shadow: none;
  padding: 0 0.32em 0.04em; border-radius: var(--radius-pill);
  display: inline-block; transform: rotate(-3deg); line-height: 1.15;
  box-shadow: 3px 3px 0 var(--tinta);
}

/* Estrella de precio: "¡POR PIEZA $40!" de la carta */
.burst {
  --burst-bg: var(--rosa); --burst-fg: #fff;
  display: inline-grid; place-items: center; text-align: center;
  width: 7.5rem; aspect-ratio: 1; padding: 1.2rem;
  background: var(--burst-bg); color: var(--burst-fg);
  font-family: var(--font-display); line-height: 1; font-size: 0.75rem;
  clip-path: polygon(50% 0%, 59% 13%, 75% 6%, 76% 22%, 93% 22%, 86% 37%, 100% 46%, 87% 56%, 96% 71%, 79% 73%, 78% 90%, 63% 84%, 52% 100%, 42% 86%, 26% 94%, 24% 77%, 7% 76%, 13% 61%, 0% 50%, 13% 40%, 5% 24%, 22% 22%, 24% 6%, 39% 13%);
  transform: rotate(-8deg);
}
.burst strong { display: block; font-size: 1.65rem; font-weight: 400; }
.burst--amarillo { --burst-bg: var(--amarillo-claro); --burst-fg: var(--tinta); }
.burst--chile { --burst-bg: var(--chile); --burst-fg: #fff; }
.burst--tinta { --burst-bg: var(--tinta); --burst-fg: var(--amarillo-claro); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--amarillo); border-bottom: 3px solid var(--tinta);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; padding-block: var(--s-4); }
.brand img { width: 7.25rem; height: auto; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-4); }
.nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s-12);
  border-radius: var(--radius-btn); text-decoration: none; font-weight: 700;
  transition: background-color 200ms;
}
.nav a:hover { background: rgba(26, 18, 16, 0.1); }
.nav a[aria-current="page"] { background: var(--tinta); color: var(--amarillo); }
.header-actions { display: flex; align-items: center; gap: var(--s-8); }
.lang-switch {
  display: inline-flex; border: var(--border); border-radius: var(--radius-btn); overflow: hidden; background: var(--crema);
}
.lang-switch button {
  min-width: 2.75rem; min-height: 2.75rem; border: 0; background: transparent; font-weight: 800; cursor: pointer; font-size: 0.875rem;
}
.lang-switch button[aria-pressed="true"] { background: var(--tinta); color: var(--amarillo); }
.lang-switch button:hover:not([aria-pressed="true"]) { background: var(--amarillo-claro); }
.menu-toggle {
  display: inline-flex; align-items: center; gap: var(--s-8); min-height: 2.75rem; padding: 0 var(--s-12);
  border: var(--border); border-radius: var(--radius-btn); background: var(--tinta); color: var(--amarillo);
  font-weight: 800; cursor: pointer;
}
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }
.header-cta { display: none; }

.mobile-nav {
  border-top: 3px solid var(--tinta); background: var(--amarillo);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: var(--s-16) var(--gutter) var(--s-24); display: grid; gap: var(--s-8); }
.mobile-nav a {
  display: flex; align-items: center; min-height: 3.25rem; padding: 0 var(--s-16);
  font-family: var(--font-display); font-size: 1.25rem; text-decoration: none;
  background: var(--crema); border: var(--border); border-radius: var(--radius-btn);
}
.mobile-nav a[aria-current="page"] { background: var(--tinta); color: var(--amarillo); }

@media (min-width: 64rem) {
  .nav { display: block; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .header-cta { display: inline-flex; }
  .brand img { width: 8.5rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); overflow: hidden; border-bottom: 3px solid var(--tinta); }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero h1 {
  font-size: clamp(2.35rem, 8.4vw, 5.6rem); line-height: 1.04; color: var(--chile);
  text-shadow: 3px 3px 0 var(--tinta); margin-bottom: var(--s-20);
}
.hero h1 .pill { font-size: 1.04em; margin-inline: 0.04em; }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 34rem; font-weight: 500; }
.status {
  display: inline-flex; align-items: center; gap: var(--s-8); margin-bottom: var(--s-20);
  padding: var(--s-8) var(--s-12); background: var(--crema); border: var(--border); border-radius: var(--radius-btn);
  font-weight: 700; font-size: 0.9375rem;
}
.status__dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--texto-suave); flex: none; border: 2px solid var(--tinta); }
.status[data-state="open"] .status__dot { background: #22a35a; }
.status[data-state="closed"] .status__dot { background: var(--chile); }
.hero__meta { margin-top: var(--s-24); font-size: 0.9375rem; display: flex; flex-wrap: wrap; gap: var(--s-8) var(--s-20); }
.hero__meta a { font-weight: 700; }

.collage { position: relative; min-height: clamp(22rem, 72vw, 36rem); }
.stamp {
  position: absolute; margin: 0; background: #fff; padding: 0.5rem 0.5rem 0.6rem;
  border: var(--border); box-shadow: var(--shadow-hard);
}
.stamp img { width: 100%; height: 100%; object-fit: cover; background: var(--crema-2); }
.stamp figcaption {
  font-family: var(--font-display); font-size: 0.75rem; padding-top: 0.4rem; line-height: 1.1;
}
.stamp--a { width: 58%; aspect-ratio: 3 / 4.2; left: 21%; top: 0; z-index: 3; transform: rotate(-3deg); }
.stamp--b { width: 44%; aspect-ratio: 3 / 4; left: 0; top: 32%; z-index: 2; transform: rotate(-9deg); }
.stamp--c { width: 44%; aspect-ratio: 3 / 4; right: 0; top: 38%; z-index: 4; transform: rotate(7deg); }
.stamp img { height: calc(100% - 1.4rem); }
.collage .burst { position: absolute; z-index: 5; left: 2%; top: 4%; }

@media (prefers-reduced-motion: no-preference) {
  .js .stamp { animation: stamp-in 560ms var(--ease-pop) both; }
  .js .stamp--b { animation-delay: 90ms; }
  .js .stamp--c { animation-delay: 180ms; }
  .js .collage .burst { animation: burst-in 520ms var(--ease-pop) 320ms both; }
}
@keyframes stamp-in {
  from { transform: translateY(-40px) rotate(-14deg) scale(1.06); }
}
@keyframes burst-in {
  from { transform: rotate(-60deg) scale(0); }
}

@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: 1.12fr 1fr; }
  .collage { min-height: 34rem; }
}

/* ---------- Marquesina ---------- */
.marquee { background: var(--tinta); color: var(--amarillo); overflow: hidden; border-bottom: 3px solid var(--tinta); }
.marquee__track { display: flex; width: max-content; }
.marquee__group { display: flex; gap: 2rem; padding: 0.9rem 1rem; font-family: var(--font-display); font-size: clamp(1rem, 2.4vw, 1.5rem); white-space: nowrap; }
.marquee__group span[aria-hidden] { color: var(--rosa-claro); }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 40s linear infinite; }
  .marquee.is-paused .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Lo que se sirve ---------- */
.serve__head { display: grid; gap: var(--s-12); margin-bottom: clamp(2rem, 5vw, 3rem); }
.serve__head h2 { color: var(--tinta); }
.serve__grid { display: grid; gap: var(--s-24); }
.panel {
  position: relative; border: var(--border); border-radius: var(--radius-card); padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-hard); display: flex; flex-direction: column; gap: var(--s-12);
}
.panel h3 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); margin-bottom: 0; padding-right: 4.5rem; }
.panel--mezcal h3 { padding-right: 0; }
.panel p { margin: 0; }
.panel .burst { position: absolute; right: -0.25rem; top: -1.75rem; }
@media (min-width: 40rem) { .panel .burst { right: -0.75rem; } }
.panel__link { margin-top: auto; padding-top: var(--s-12); }
.panel--mezcal { background: var(--tinta); color: var(--crema); }
.panel--mezcal h3 { color: var(--amarillo); }
.panel--pulque { background: var(--rosa); color: #fff; }
.panel--cocina { background: var(--chile); color: #fff; }
.panel--cocina h3 { color: var(--amarillo-claro); }
.panel__img { border: var(--border); border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--crema-2); }
.panel__img img { width: 100%; height: 100%; object-fit: cover; }
.panel--mezcal .panel__img { aspect-ratio: 16 / 11; }

@media (min-width: 40rem) {
  .serve__grid { grid-template-columns: 1fr 1fr; }
  .panel--mezcal { grid-row: span 2; }
}
@media (min-width: 64rem) {
  .serve__head { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .serve__grid { grid-template-columns: 1.25fr 1fr 1fr; }
  .panel--cocina { margin-top: var(--s-64); }
}

/* ---------- La casona (galería) ---------- */
.casona h2 { color: var(--amarillo); }
.casona__intro { display: grid; gap: var(--s-16); margin-bottom: clamp(2rem, 5vw, 3rem); }
.zones { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.zone__head { display: flex; align-items: baseline; gap: var(--s-12); flex-wrap: wrap; margin-bottom: var(--s-16); }
.zone__head h3 { margin: 0; color: var(--crema); }
.zone__head p { margin: 0; color: #e8d9bb; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-12); }
.gallery button {
  display: block; width: 100%; padding: 0; border: 2px solid var(--crema); border-radius: 8px; overflow: hidden;
  background: #2b201c; cursor: zoom-in; aspect-ratio: 3 / 4; position: relative;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery--3 button:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
@media (min-width: 40rem) {
  .gallery--6, .gallery--3 { grid-template-columns: repeat(3, 1fr); }
  .gallery--3 button:first-child { grid-column: auto; aspect-ratio: 3 / 4; }
  .gallery--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 64rem) {
  .casona__intro { grid-template-columns: 1fr 1fr; align-items: end; }
  .zones { grid-template-columns: 1fr; }
  .zone:nth-child(2) .zone__head { justify-content: flex-end; text-align: right; }
}

/* ---------- Teaser de la carta 3D ---------- */
.carta-teaser { overflow: hidden; border-block: 3px solid var(--tinta); }
.carta-teaser__grid { display: grid; gap: var(--s-32); align-items: center; }
.carta-teaser h2 { color: var(--chile); text-shadow: 3px 3px 0 var(--tinta); }
.covers { display: flex; justify-content: center; perspective: 1200px; padding-block: var(--s-24); min-height: 18rem; }
.covers a { display: block; width: min(46%, 15rem); border: var(--border); box-shadow: 8px 8px 0 var(--tinta); background: #fff; transition: transform 300ms var(--ease); }
.covers a:first-child { transform: rotateY(18deg) rotate(-4deg) translateX(8%); z-index: 1; }
.covers a:last-child { transform: rotateY(-18deg) rotate(4deg) translateX(-8%); }
.covers a:hover, .covers a:focus-visible { transform: rotateY(0) rotate(0) translateY(-6px); z-index: 2; }
.covers img { width: 100%; height: auto; }
@media (min-width: 64rem) { .carta-teaser__grid { grid-template-columns: 1fr 1.1fr; } }

/* ---------- Reseñas (en Google) ---------- */
.reviews-cta { display: grid; gap: var(--s-24); align-items: end; }
.reviews-cta .lead { margin-bottom: 0; }
@media (min-width: 64rem) { .reviews-cta { grid-template-columns: 1.4fr 1fr; } .reviews-cta .btn-row { justify-content: flex-end; } }

/* ---------- Visita / CTA final ---------- */
.visit { background: var(--chile); color: #fff; border-top: 3px solid var(--tinta); }
.visit h2 { color: var(--amarillo-claro); text-shadow: 3px 3px 0 var(--tinta); }
.visit__grid { display: grid; gap: var(--s-32); }
.visit address { font-style: normal; font-size: 1.15rem; font-weight: 600; margin-bottom: var(--s-20); }
.hours { border-collapse: collapse; margin-bottom: var(--s-20); width: 100%; max-width: 30rem; }
.hours th, .hours td { text-align: left; padding: var(--s-8) var(--s-12) var(--s-8) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.35); vertical-align: top; }
.hours th { font-weight: 700; }
.map-card {
  border: 3px solid var(--tinta); border-radius: var(--radius-card); overflow: hidden; background: var(--crema); color: var(--tinta);
  box-shadow: 6px 6px 0 var(--tinta); display: grid;
}
.map-card__img { margin: 0; position: relative; }
.map-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 35%; background: var(--crema-2); }
.map-card__img figcaption { position: absolute; left: var(--s-12); bottom: var(--s-12); background: var(--tinta); color: var(--crema); padding: var(--s-4) var(--s-12); border-radius: var(--radius-btn); font-size: 0.875rem; font-weight: 700; }
.map-card__body { padding: var(--s-24); display: grid; gap: var(--s-12); }
.map-card__body p { margin: 0; }
.map-card__title { font-family: var(--font-display); font-size: 1.25rem; }
@media (min-width: 64rem) { .visit__grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--tinta); color: var(--crema); padding-block: var(--s-64) var(--s-32); }
.footer__grid { display: grid; gap: var(--s-32); }
.footer__brand img { width: 11rem; }
.footer__brand p { margin-top: var(--s-16); max-width: 22rem; color: #e8d9bb; }
.site-footer h2 { font-size: 1rem; color: var(--amarillo); margin-bottom: var(--s-12); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.site-footer address { font-style: normal; }
.site-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--crema); }
.site-footer a:hover { color: var(--amarillo); }
.social { display: flex; gap: var(--s-12); flex-wrap: wrap; }
.social a {
  justify-content: center; gap: var(--s-8); padding: 0 var(--s-12); border: 2px solid var(--crema); border-radius: var(--radius-btn);
  text-decoration: none; font-weight: 700;
}
.social a:hover { background: var(--amarillo); color: var(--tinta); border-color: var(--amarillo); }
.social svg { width: 1.25rem; height: 1.25rem; }
.footer__legal { margin-top: var(--s-36); padding-top: var(--s-20); border-top: 1px solid rgba(255, 244, 220, 0.25); display: flex; flex-wrap: wrap; gap: var(--s-8) var(--s-24); justify-content: space-between; font-size: 0.875rem; color: #e8d9bb; }
.footer__legal p { margin: 0; }
.site-footer .legal-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-16); }
.legal-links a { color: #e8d9bb; }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed; right: var(--s-16); bottom: var(--s-16); z-index: 40;
  width: 3rem; height: 3rem; display: grid; place-items: center;
  background: var(--amarillo); border: var(--border); border-radius: var(--radius-btn); box-shadow: 3px 3px 0 var(--tinta);
  cursor: pointer; opacity: 0; transform: translateY(1rem); pointer-events: none;
  transition: opacity 200ms, transform 200ms var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--amarillo-claro); }
.to-top svg { width: 1.4rem; height: 1.4rem; }

/* ---------- Visor (lightbox) ---------- */
.lightbox {
  border: 3px solid var(--tinta); border-radius: var(--radius-card); padding: 0; background: var(--tinta); color: var(--crema);
  width: min(96vw, 64rem); max-height: 94vh; overflow: hidden;
}
.lightbox::backdrop { background: rgba(26, 18, 16, 0.86); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-12); padding: var(--s-8) var(--s-12); }
.lightbox__bar p { margin: 0; font-size: 0.9375rem; }
.lightbox__img { display: block; width: 100%; max-height: calc(94vh - 4rem); object-fit: contain; background: #0f0a09; }
.lightbox__nav { display: flex; gap: var(--s-8); }

/* ---------- Páginas interiores ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4rem); border-bottom: 3px solid var(--tinta); }
.page-hero h1 { font-size: clamp(2.2rem, 7vw, 4.4rem); color: var(--chile); text-shadow: 3px 3px 0 var(--tinta); margin-bottom: var(--s-16); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-8); padding: 0; margin: 0 0 var(--s-16); font-size: 0.9375rem; font-weight: 600; }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s-8); }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin-top: var(--s-36); }
.prose h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.15rem; margin-top: var(--s-24); }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 var(--s-16); }
.prose li { margin-bottom: var(--s-8); }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: var(--s-20); font-size: 0.9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid rgba(26, 18, 16, 0.25); padding: var(--s-8) var(--s-12); text-align: left; vertical-align: top; }
.prose th { background: var(--crema-2); }
.note { background: var(--amarillo-claro); border: var(--border); border-radius: var(--radius-card); padding: var(--s-16) var(--s-20); }

/* ---------- Campo de búsqueda (carta) ---------- */
.field { display: grid; gap: var(--s-8); }
.field label { font-weight: 750; }
.field .hint { font-size: 0.875rem; color: var(--texto-suave); margin: 0; }
.field input {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.85rem; background: #fff;
  border: 2px solid var(--tinta); border-radius: var(--radius-btn);
}
.field input:focus-visible { border-radius: var(--radius-btn); }

/* ---------- Carta 3D ---------- */
.carta-tabs { display: flex; gap: var(--s-8); flex-wrap: wrap; margin-bottom: var(--s-24); }
.carta-tabs [role="tab"] {
  min-height: 3rem; padding: 0 var(--s-20); border: var(--border); border-radius: var(--radius-btn);
  font-family: var(--font-display); font-size: 1rem; background: var(--crema); cursor: pointer; box-shadow: 3px 3px 0 var(--tinta);
}
.carta-tabs [role="tab"][aria-selected="true"] { background: var(--tinta); color: var(--amarillo); }
.book-stage { display: grid; gap: var(--s-16); justify-items: center; }
.book {
  --pw: min(44vw, 27rem);
  width: calc(var(--pw) * 2); max-width: 100%;
  perspective: 2400px; touch-action: pan-y; user-select: none;
}
.book__tilt { transition: transform 300ms var(--ease); transform-style: preserve-3d; }
.book__inner {
  position: relative; width: 100%; aspect-ratio: 1.5; transform-style: preserve-3d;
  transition: transform 700ms var(--ease);
}
.book.is-closed .book__inner { transform: translateX(-25%); }
.book.is-ended .book__inner { transform: translateX(25%); }
.sheet {
  position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
  transform-origin: left center; transform-style: preserve-3d;
  transition: transform 700ms var(--ease);
}
.sheet.is-turned { transform: rotateY(-180deg); }
.sheet.is-buried { visibility: hidden; } /* hojas tapadas por otras: no se pintan */
.sheet.is-moving { will-change: transform; }
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--crema); border: 2px solid var(--tinta); overflow: hidden;
}
.face--front { border-radius: 0 6px 6px 0; }
.face--back { transform: rotateY(180deg); border-radius: 6px 0 0 6px; }
.face img { width: 100%; height: 100%; object-fit: contain; background: #2b201c; }
.face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.face--front::after { background: linear-gradient(90deg, rgba(0,0,0,.28), transparent 9%); }
.face--back::after { background: linear-gradient(270deg, rgba(0,0,0,.28), transparent 9%); }
.face--blank { background: var(--chile); display: grid; place-items: center; }
.face--blank img { width: 70%; height: auto; background: none; object-fit: contain; }
.book-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-12); }
.book-controls output { font-weight: 800; min-width: 9rem; text-align: center; }
.book-hint { font-size: 0.9375rem; text-align: center; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .sheet, .book__inner, .book__tilt { transition: none; }
}

/* ---------- Carta en texto ---------- */
.menu-tools { display: grid; gap: var(--s-16); margin-bottom: var(--s-32); background: var(--crema); padding-block: var(--s-12); border-bottom: var(--hairline); }
@media (min-width: 64rem) { .menu-tools { position: sticky; top: calc(var(--header-h) + 3px); z-index: 20; } }
.menu-tools .field { max-width: 32rem; }
.chips { display: flex; gap: var(--s-8); flex-wrap: nowrap; overflow-x: auto; padding-bottom: var(--s-4); scrollbar-width: thin; }
.chips a { flex: none; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s-16); border: var(--border); border-radius: var(--radius-pill); text-decoration: none; font-weight: 700; background: #fff; }
.chips a:hover { background: var(--amarillo-claro); }
.menu-group { margin-bottom: var(--s-64); }
.menu-group > h2 { color: var(--chile); text-shadow: 2px 2px 0 var(--tinta); border-bottom: 3px solid var(--tinta); padding-bottom: var(--s-12); }
.menu-sec { margin-bottom: var(--s-36); }
.menu-sec__head { display: flex; flex-wrap: wrap; gap: var(--s-12) var(--s-24); align-items: center; justify-content: space-between; margin-bottom: var(--s-16); }
.menu-sec__head h3 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.9rem); }
.menu-sec__head p { margin: 0; max-width: 40rem; }
.menu-sec .burst { width: 6.5rem; font-size: 0.7rem; }
.menu-sec .burst strong { font-size: 1.35rem; }
.dishes { display: grid; gap: var(--s-12); list-style: none; padding: 0; margin: 0; }
@media (min-width: 48rem) { .dishes { grid-template-columns: 1fr 1fr; } }
.dish { display: grid; grid-template-columns: 1fr auto; gap: var(--s-4) var(--s-16); background: #fff; border: var(--hairline); border-radius: var(--radius-card); padding: var(--s-16) var(--s-20); }
.dish h4 { margin: 0; font-family: var(--font-body); font-weight: 800; font-size: 1.0625rem; line-height: 1.3; }
.dish p { margin: 0; grid-column: 1 / -1; font-size: 0.9375rem; color: var(--texto-suave); }
.dish .price { grid-column: 2; grid-row: 1; font-family: var(--font-display); font-size: 1.15rem; color: var(--chile-oscuro); white-space: nowrap; text-align: right; }
.dish .price small { display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; color: var(--texto-suave); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 800; padding: 0.1rem 0.5rem; border-radius: var(--radius-pill); background: var(--crema-2); border: 1px solid var(--tinta); margin-left: var(--s-8); vertical-align: 2px; }
.flavors { display: flex; flex-wrap: wrap; gap: var(--s-8); list-style: none; padding: 0; margin: var(--s-8) 0 0; grid-column: 1 / -1; }
.flavors li { padding: 0.15rem 0.6rem; border: 1px solid var(--tinta); border-radius: var(--radius-pill); font-size: 0.875rem; font-weight: 600; background: var(--crema); }
.price-list { display: grid; gap: var(--s-4); grid-column: 1 / -1; margin: var(--s-8) 0 0; }
.price-list div { display: flex; justify-content: space-between; gap: var(--s-12); border-top: 1px dashed rgba(26,18,16,.25); padding-top: var(--s-4); font-size: 0.9375rem; }
.price-list dt { color: var(--texto-suave); }
.price-list dd { margin: 0; font-family: var(--font-display); color: var(--chile-oscuro); white-space: nowrap; }
.is-hidden-by-filter { display: none !important; }

/* ---------- Revelado al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Transiciones entre páginas ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 250ms; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ---------- 404 / sin conexión ---------- */
.big-message { min-height: 70vh; display: grid; align-items: center; }
.big-message h1 { font-size: clamp(2.4rem, 8vw, 5rem); color: var(--chile); text-shadow: 3px 3px 0 var(--tinta); }
.big-message .burst { width: 9rem; margin-bottom: var(--s-24); }
.big-message .burst strong { font-size: 2.2rem; }

@media print {
  .site-header, .site-footer, .to-top, .marquee, .book-stage, .menu-tools { display: none !important; }
  body { background: #fff; }
}
