/* Menú de demostración (cerebro#248): imita el menú digital de un cliente, con sus propios colores.
   La taquería es inventada. Mismas reglas de seguridad que el resto del sitio (sin scripts de afuera). */

:root {
  --m-bg: #fbf5ec;
  --m-card: #ffffff;
  --m-ink: #2a1712;
  --m-muted: #7b6259;
  --m-line: #ead9c6;
  --m-brand: #7a1f12;
  --m-accent: #e2672a;
  --m-chip: #f3e2cd;
  --m-band: #0e0f11;
  --m-band-ink: #f2f2f0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --m-bg: #17100d;
    --m-card: #211714;
    --m-ink: #f6ece2;
    --m-muted: #c2a99c;
    --m-line: #3a2a23;
    --m-brand: #f08a5d;
    --m-accent: #f39a5c;
    --m-chip: #33231c;
    color-scheme: dark;
  }
}

html[data-lang='es'] [lang='en']:not(html),
html[data-lang='en'] [lang='es']:not(html) { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--m-bg); color: var(--m-ink);
  font: 400 1rem/1.5 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
.m-wrap { max-width: 40rem; margin: 0 auto; padding: 0 16px; }

.demo-band {
  margin: 0; padding: 8px 16px; background: var(--m-band); color: var(--m-band-ink);
  font-size: .82rem; text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px;
}
.demo-band a { color: var(--m-band-ink); font-weight: 600; }

/* Portada fija (v4): se queda quieta y la hoja del menú sube y la tapa. Funciona sin JavaScript. */
.m-hero {
  position: sticky; top: 0; z-index: 0; overflow: hidden;
  min-height: 78svh; display: flex; align-items: flex-end;
  color: #fff8f0;
  background:
    radial-gradient(120% 70% at 50% 110%, #e2672a 0%, rgba(226,103,42,0) 60%),
    radial-gradient(90% 60% at 80% 0%, #a3311a 0%, rgba(163,49,26,0) 70%),
    #3b0d07;
}
.m-embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.m-hero-in { position: relative; width: 100%; padding-top: 18px; padding-bottom: 34px; }
.m-hero .m-lang { position: absolute; top: 14px; right: 16px; z-index: 2; }
.m-kicker { margin: 0; font-size: .9rem; letter-spacing: .06em; opacity: .9; }
.m-title {
  margin: 4px 0 0; font-family: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  font-weight: 800; font-stretch: 118%; font-size: clamp(2.6rem, 13vw, 4.6rem); line-height: .95;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.m-hours { margin: 14px 0 0; display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.m-dot { width: 9px; height: 9px; border-radius: 50%; background: #6fdc8c; flex: none; }
.m-down {
  display: inline-flex; gap: 6px; margin-top: 22px; color: #fff8f0; text-decoration: none; font-weight: 600;
  border: 1px solid rgba(255,248,240,.55); border-radius: 999px; padding: 9px 16px;
}
.m-lang { display: flex; border: 1px solid rgba(255, 248, 240, .5); border-radius: 999px; overflow: hidden; flex: none; }
.m-lang button {
  background: transparent; color: inherit; border: 0; padding: 7px 12px; min-width: 44px; min-height: 36px;
  font: 600 .85rem 'Instrument Sans', Arial, sans-serif; cursor: pointer;
}
.m-lang button[aria-pressed='true'] { background: #fff8f0; color: #7a1f12; }
.m-lang button:focus-visible, .m-cats a:focus-visible, .m-wa:focus-visible, .m-down:focus-visible { outline: 2px solid var(--m-accent); outline-offset: 2px; }

/* La hoja del menú: sube por encima de la portada. */
.m-sheet {
  position: relative; z-index: 1; background: var(--m-bg);
  border-radius: 22px 22px 0 0; margin-top: -22px; box-shadow: 0 -12px 30px rgba(0,0,0,.25);
}
.m-cats { position: sticky; top: 0; z-index: 2; background: var(--m-bg); border-bottom: 1px solid var(--m-line); border-radius: 22px 22px 0 0; }
.m-cats .m-wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.m-cats .m-wrap::-webkit-scrollbar { display: none; }
.m-cats a {
  flex: none; text-decoration: none; background: var(--m-chip); color: var(--m-ink);
  padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  transition: background-color .25s ease, color .25s ease;
}
.m-cats a[aria-current='true'] { background: var(--m-brand); color: #fff8f0; }
@media (prefers-color-scheme: dark) { .m-cats a[aria-current='true'] { color: #1d120d; } }
.m-items li { transform-style: preserve-3d; backface-visibility: hidden; }

.m-sec { padding: 26px 0 4px; }
.m-sec h2 {
  margin: 0; font-family: 'Archivo', 'Arial Narrow', Arial, sans-serif; font-weight: 800; font-stretch: 110%;
  font-size: 1.45rem; color: var(--m-brand);
}
.m-sec-note { margin: 4px 0 0; color: var(--m-muted); font-size: .92rem; }
.m-items { list-style: none; margin: 12px 0 0; padding: 0; background: var(--m-card); border: 1px solid var(--m-line); border-radius: 14px; }
.m-items li { display: flex; justify-content: space-between; gap: 14px; padding: 14px 16px; }
.m-items li + li { border-top: 1px solid var(--m-line); }
.m-items h3 { margin: 0; font-size: 1.02rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.m-items p { margin: 3px 0 0; color: var(--m-muted); font-size: .9rem; }
.m-items b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.m-pop { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: var(--m-accent); color: #fff; padding: 2px 7px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .m-pop { color: #1d120d; } }

.m-pitch {
  margin: 34px 0 40px; padding: 22px 20px; border-radius: 16px;
  background: #0e0f11; color: #f2f2f0;
}
.m-pitch-label { margin: 0; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #9ea2a8; }
.m-pitch h2 { margin: 6px 0 0; font-family: 'Archivo', Arial, sans-serif; font-weight: 800; font-stretch: 110%; font-size: 1.35rem; line-height: 1.15; }
.m-pitch p { margin: 10px 0 0; color: #d4d6da; }
/* La lista dentro del pitch oscuro va sobre fondo oscuro: con la tarjeta blanca
   heredada de .m-items, el texto claro del pitch quedaba invisible (cuadro blanco). */
.m-pitch .m-items { background: #17181c; border-color: #33363d; }
.m-pitch .m-items li + li { border-top-color: #2c2f36; }
.m-pitch .m-items h3 { color: #fff; }
.m-pitch .m-items p { color: #c9ccd2; }
.m-wa {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  background: #0f7a3f; color: #fff; text-decoration: none; font-weight: 600;
  padding: 12px 20px; border-radius: 999px;
}
.m-back { font-size: .9rem; }
.m-back a { color: #d4d6da; }

/* Fotos de muestra (hechas con IA, cerebro#253). */
.m-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.m-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,5,3,.25) 0%, rgba(20,5,3,.15) 35%, rgba(20,5,3,.88) 78%); pointer-events: none; }
.m-embers, .m-hero-in, .m-hero .m-lang { z-index: 1; }
.m-hero .m-lang { z-index: 2; }
.m-sec-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin-top: 12px; background: var(--m-chip); }
