/* ============================================================
   27menu — motor de carta (base genérico)
   Sistema: Kinetic Brutalism adaptado a hostelería.
   Base casi negra igualada al fondo de los vídeos, acento ámbar,
   condensada 800 en mayúsculas, mono para precios, bordes 2px, radio 0.
   ============================================================ */

:root {
  --bg: #131312;
  --bg-deep: #0c0c0b;
  --card: #1a1a18;
  --line: #2b2b28;
  --line-soft: #22221f;
  --ink: #f4efe8;
  --ink-dim: #a8a29a;
  --accent: #ffb320;
  --accent-deep: #d99000;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Familjen Grotesk", system-ui, sans-serif;
  --mono: "Fira Code VF", "Consolas", monospace;
  --pad: 20px;
  --nav-h: 54px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }

::selection { background: var(--accent); color: #000; }

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

.mono {
  font-family: var(--mono);
  font-variation-settings: "wght" 450;
  letter-spacing: 0.04em;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: var(--pad);
  z-index: 200;
  background: var(--accent);
  color: #000;
  padding: 10px 14px;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus-visible { top: 10px; }

/* ---------- loader ---------- */

#loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--bg-deep);
  display: grid;
  place-items: center;
}
#loader.gone { display: none; }
.loader-inner { text-align: center; }
.loader-logo-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
}
.loader-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}
.loader-ring {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
}
.loader-ring circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}
.loader-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 10vw, 52px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}
.loader-sub {
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
}

/* ---------- caña de progreso (se VACÍA con el scroll) + volver arriba ----------
   Es a la vez indicador de avance y botón. La CAJA de #pinta se mantiene exactamente
   en 32×45 sin padding: las pieles de tenant cuelgan cosas de él en coordenadas
   absolutas (p. ej. la pajita de anubis en #pinta::after) y cualquier relleno aquí se
   las descolocaría. La pista va en position:absolute FUERA de la caja, a su izquierda.
   Enganches para override.css por tenant: #pinta · #pinta.util · .pinta-hint */

#pinta {
  position: fixed;
  right: 12px;
  /* 32 y no 14: la pista va DEBAJO del vaso y necesita ese hueco; con 14 se salía
     por el borde inferior de la pantalla. */
  bottom: calc(32px + env(safe-area-inset-bottom));
  width: 32px;
  height: 45px;
  z-index: 85;
  opacity: 0.92;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#pinta > svg { width: 100%; height: 100%; display: block; }
#pinta:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
#pinta .pinta-glass {
  fill: rgba(12, 12, 11, 0.55);
  stroke: var(--ink-dim);
  stroke-width: 2;
}
#pinta #pinta-fill { fill: var(--accent); }

/* La pista aparece cuando ya has bajado (antes no hay adónde volver) y, al estar DENTRO
   del <button>, amplía además la zona táctil: sola, la caña son 32 px de ancho. */
.pinta-hint {
  position: absolute;
  top: calc(100% + 5px);
  /* alineada al borde DERECHO del vaso, no centrada bajo él: la pista mide 54 px y el
     vaso 32, así que centrarla la dejaba a 1 px del borde de la pantalla. Así crece
     hacia dentro y conserva los 12 px de margen del propio #pinta. */
  right: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
#pinta.util .pinta-hint { opacity: 1; transform: none; }
.pinta-hint > svg { width: 11px; height: 11px; display: block; }
.pinta-hint > svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pinta-hint .mono {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- nav de categorías ---------- */

#catnav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.catnav-track {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 12px;
  height: var(--nav-h);
}
.catnav-track::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(15px, 3.9vw, 18px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-dim);
  transition: color 0.18s;
  min-height: 44px;
}
.chip:hover { color: var(--ink); }
.chip.active { color: var(--accent); }
#nav-ind {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 40px;
  background: var(--accent);
  will-change: transform;
}

/* ---------- hero ---------- */

#hero {
  /* 92svh: el ticker asoma bajo el pliegue e invita a deslizar
     (vh antes como fallback: iOS 14 no conoce svh y sin él el hero colapsa) */
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 24px) var(--pad) 96px;
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, #1d1d1b 0%, var(--bg) 62%);
  overflow: clip;
}
.hero-logo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 2px solid var(--line);
  margin-bottom: 26px;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-logo:active { cursor: grabbing; }
.hero-kicker {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
#hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(76px, 25vw, 250px);
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  /* nowrap: fitHeadings mide la línea completa y encoge para que quepa */
  white-space: nowrap;
}
/* clip para la entrada deslizante, con aire arriba para que las tildes
   (É, Á) no se recorten con line-height < 1 */
#hero h1 .w,
.cat h2 .w,
.sheet-body h2 .w,
.loader-word .w {
  display: inline-block;
  overflow: clip;
  vertical-align: top;
  padding-top: 0.22em;
  margin-top: -0.22em;
  /* INDISPENSABLE: la animación de entrada mete cada letra en su propio
     <span class="l"> inline-block, así que sin esto el navegador puede cortar DENTRO
     de la palabra ("ANU / BIS"). Cada .w es una palabra entera: fijándola aquí, en el
     motor, el corte solo puede caer en los espacios pase lo que pase con el
     white-space del padre — que cada piel de tenant cambia a su gusto. */
  white-space: nowrap;
}
#hero h1 .l,
.cat h2 .l,
.sheet-body h2 .l {
  display: inline-block;
  will-change: transform;
}
.hero-tag {
  margin-top: 22px;
  max-width: 300px;
  color: var(--ink-dim);
  font-size: 16px;
  text-wrap: balance;
}
/* ---------- ticker de la carta (movido por el scroll del usuario) ---------- */

#ticker {
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--bg-deep);
  overflow: clip;
  padding: 10px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.ticker-run {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 5.4vw, 26px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
  padding-right: 16px;
}
.ticker-run b {
  font-family: var(--mono);
  font-variation-settings: "wght" 500;
  font-weight: normal;
  font-size: 17px;
  color: var(--accent);
  vertical-align: 2px;
  padding: 0 4px;
}

/* ---------- secciones ---------- */

.cat { padding: 72px 0 30px; }
.cat-head { padding: 0 var(--pad) 26px; position: relative; }
.cat-num {
  font-size: 12px;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.cat h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(46px, 14vw, 140px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.cat-sub {
  margin-top: 10px;
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 340px;
}

/* ---------- tarjetas de plato ---------- */

.dish-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 0 var(--pad);
}
.dish {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dish-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: clip;
}
.dish-media video,
.dish-media img.posterimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(115% 115% at 50% 46%, #000 52%, transparent 88%);
  mask-image: radial-gradient(115% 115% at 50% 46%, #000 52%, transparent 88%);
}
.dish-idx {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  color: var(--ink-dim);
}
.dish-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  background: var(--accent);
  padding: 4px 8px;
}
.vplay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  background: rgba(12, 12, 11, 0.82);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 9px 12px;
  min-height: 40px;
  cursor: pointer;
}
.vplay[hidden] { display: none; }
.dish-info {
  border-top: 2px solid var(--line);
  padding-top: 12px;
  margin-top: 2px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 14px;
  align-items: baseline;
}
.dish-info h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(23px, 6.2vw, 31px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.dish-price {
  font-family: var(--mono);
  font-variation-settings: "wght" 500;
  font-size: clamp(15.5px, 3.9vw, 18px);
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dish-price .ch { display: inline-block; will-change: transform; }
.dish-desc {
  grid-column: 1 / -1;
  color: var(--ink-dim);
  font-size: 14.5px;
  max-width: 460px;
}
.dish-open-hint {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 10px;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.dish-open-hint b { color: var(--accent); font-weight: 400; }

/* ---------- cervezas ---------- */

.beer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 var(--pad);
}
.beer-card {
  position: relative;
  border: 2px solid var(--line);
  padding: 18px 16px 16px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: clip;
  cursor: default;
}
.beer-card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(29px, 8vw, 40px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.beer-size {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-dim);
}
.beer-price {
  font-family: var(--mono);
  font-variation-settings: "wght" 500;
  font-size: 17px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.bubbles {
  position: absolute;
  right: 8px;
  bottom: 0;
  height: 100%;
  width: 30px;
  pointer-events: none;
}
.bubbles circle {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}

/* ---------- cafés ---------- */

.coffee-list {
  border-top: 2px solid var(--line);
  margin: 0 var(--pad);
}
.coffee-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line-soft);
}
.coffee-row h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 5.4vw, 26px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.coffee-dots {
  flex: 1;
  border-bottom: 2px dotted var(--line);
  translate: 0 -4px;
}
.coffee-price {
  font-family: var(--mono);
  font-variation-settings: "wght" 500;
  font-size: 16px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.steam {
  position: absolute;
  right: var(--pad);
  top: 4px;
  width: 56px;
  height: 50px;
  overflow: visible;
  opacity: 0.85;
}
.steam path {
  fill: none;
  stroke: var(--accent-deep);
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ---------- outro ---------- */

#outro {
  padding: 90px var(--pad) 70px;
  text-align: center;
  border-top: 2px solid var(--line);
  background: var(--bg-deep);
}
#outro .claim {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 13vw, 110px);
  line-height: 0.92;
  text-transform: uppercase;
}
#outro .claim em {
  font-style: normal;
  color: var(--accent);
}
#outro .outro-note {
  margin-top: 34px;
  color: var(--ink-dim);
  font-size: 12px;
  text-transform: uppercase;
}

/* ---------- footer ---------- */

footer {
  border-top: 2px solid var(--line);
  padding: 26px var(--pad) calc(30px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-dim);
}
footer .f-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
footer .f-brand img { width: 22px; height: auto; display: block; }
footer .f-demo {
  color: var(--ink-dim);
}
footer .f-demo b {
  color: var(--accent);
  font-weight: 600;
}
footer .f-credit {
  color: var(--ink-dim);
  font-size: 12px;
  text-align: center;
}
footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
footer a:hover { border-color: var(--accent); }

/* ---------- ficha (bottom sheet) ---------- */

#backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
}
#backdrop.on { pointer-events: auto; }

#sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: #171716;
  border-top: 2px solid var(--accent);
  max-height: 92vh; /* fallback: sin svh la ficha crecía más que la pantalla y no se podía cerrar */
  max-height: 92svh;
  transform: translateY(103%);
  display: flex;
  flex-direction: column;
  will-change: transform;
  visibility: hidden;
}
#sheet.on { visibility: visible; }
.sheet-grip {
  padding: 10px 0 6px;
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: grab;
}
.sheet-grip::before {
  content: "";
  width: 44px;
  height: 4px;
  background: var(--line);
}
.sheet-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
}
.sheet-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: clip;
}
.sheet-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 46%, #000 55%, transparent 90%);
  mask-image: radial-gradient(120% 120% at 50% 46%, #000 55%, transparent 90%);
}
/* imagen "explotada": aparece con fundido suave sobre el vídeo */
#sheet-img-x {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 46%, #000 55%, transparent 90%);
  mask-image: radial-gradient(120% 120% at 50% 46%, #000 55%, transparent 90%);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.sheet-media.expl #sheet-img-x { opacity: 1; }
.sheet-media.expl #sheet-video { opacity: 0; transition: opacity 0.6s cubic-bezier(.22,.61,.36,1); }
/* banda de luz: oscurece todo menos la franja del ingrediente señalado */
#sheet-band {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
#sheet-band.on { opacity: 1; }
#sheet-band .bs-top,
#sheet-band .bs-bot {
  position: absolute;
  left: 0;
  right: 0;
  height: 0%;
  background: rgba(10, 10, 9, 0.55);
  -webkit-backdrop-filter: blur(5px) saturate(0.6);
  backdrop-filter: blur(5px) saturate(0.6);
}
@supports not (backdrop-filter: blur(5px)) {
  #sheet-band .bs-top,
  #sheet-band .bs-bot { background: rgba(10, 10, 9, 0.78); }
}
#sheet-band .bs-top {
  top: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
}
#sheet-band .bs-bot {
  bottom: 0;
  -webkit-mask-image: linear-gradient(to top, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(to top, #000 calc(100% - 26px), transparent);
}
/* filos ámbar de la franja iluminada */
#band-frame {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 0;
  height: 0%;
  border-top: 1px solid rgba(255, 179, 32, 0.55);
  border-bottom: 1px solid rgba(255, 179, 32, 0.55);
  pointer-events: none;
}
/* etiqueta flotante del ingrediente señalado */
#band-tag {
  position: absolute;
  left: 12px;
  top: 50%;
  translate: 0 -50%;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(12, 12, 11, 0.88);
  border-left: 2px solid var(--accent);
  padding: 7px 9px;
  max-width: 46%;
  pointer-events: none;
}
.sheet-body {
  padding: 16px var(--pad) 0;
  position: relative;
}
.sheet-num {
  position: absolute;
  top: 4px;
  right: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(64px, 18vw, 92px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
  user-select: none;
}
@supports not (-webkit-text-stroke: 1px black) {
  .sheet-num { color: var(--line-soft); }
}
.sheet-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sheet-cat {
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sheet-tag {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000;
  background: var(--accent);
  padding: 3px 8px;
}
.sheet-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.sheet-body h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 8.6vw, 44px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.sheet-price {
  font-family: var(--mono);
  font-variation-settings: "wght" 550;
  font-size: clamp(18px, 4.8vw, 22px);
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sheet-desc {
  margin-top: 10px;
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 520px;
}
.sheet-lleva {
  margin-top: 20px;
  font-size: 10.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sheet-ing {
  list-style: none;
  margin-top: 4px;
}
.sheet-ing li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  will-change: transform;
}
.sheet-ing li b {
  font-family: var(--mono);
  font-weight: normal;
  font-variation-settings: "wght" 450;
  font-size: 11px;
  color: var(--accent);
  min-width: 22px;
}
#sheet.has-explode .sheet-ing li { cursor: pointer; }
.sheet-ing li.hot {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.sheet-ing li.hot b { color: var(--ink); }
.sheet-note {
  margin-top: 16px;
  font-size: 10.5px;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(12, 12, 11, 0.82);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.sheet-close:hover { background: var(--accent); color: #000; }

/* ---------- feedback táctil / press ---------- */

.pressable { will-change: transform; }

/* ---------- reveals (solo con JS y sin reduced-motion) ---------- */

.js.motion .reveal { opacity: 0; }
.js.motion .cat h2 .l,
.js.motion #hero h1 .l { transform: translateY(110%); }
.js.motion .dish-price .ch { opacity: 0; }
.js.motion #loader .loader-word .l { display: inline-block; transform: translateY(120%); }
#loader .loader-word .w { display: inline-block; overflow: clip; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #pinta { display: none; }
}

/* ---------- desktop ---------- */

@media (min-width: 700px) {
  :root { --pad: 40px; }
  .dish-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 28px; }
  .beer-grid { grid-template-columns: repeat(4, 1fr); }
  .cat { padding-top: 96px; }
  .cat-sub { max-width: 420px; }
  .catnav-track { justify-content: center; }
}

@media (min-width: 1100px) {
  .dish-grid { grid-template-columns: repeat(3, 1fr); max-width: 1400px; margin: 0 auto; }
  .cat-head, .beer-grid, .coffee-list { max-width: 1400px; margin-left: auto; margin-right: auto; }
  .coffee-list { margin-left: auto; margin-right: auto; }
  #sheet {
    left: 50%;
    right: auto;
    translate: -50% 0;
    width: min(1020px, 94vw);
    border: 2px solid var(--accent);
    border-bottom: none;
    max-height: 88vh;
  }
  .sheet-scroll {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }
  .sheet-media { aspect-ratio: auto; height: 100%; min-height: 460px; }
  /* sin medio no hay dos columnas que repartir: el texto ocupa la ficha entera en vez
     de dejar media rejilla en blanco */
  .sheet-scroll:has(.sheet-media.empty) { grid-template-columns: 1fr; }
  .sheet-body { padding-bottom: 26px; }
}

@media (hover: hover) and (pointer: fine) {
  .dish-media video { transition: scale 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
  .dish:hover .dish-media video { scale: 1.03; }
  .dish:hover .dish-info h3 { color: var(--accent); }
  .dish-info h3 { transition: color 0.18s; }
}

/* Variantes de media añadidas por el generador (foto estática / sin media) */
.dish-media .dish-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish:not(:has(.dish-media)) .dish-info { padding-top: 18px; }
/* ficha (bottom sheet) de un plato con foto estática: mostrar imagen, ocultar vídeo */
.sheet-media.photo #sheet-img-x { opacity: 1; }
.sheet-media.photo #sheet-video { opacity: 0; transition: opacity 0.45s ease; }
/* plato SIN media (lo normal en un restaurante nuevo hasta que sube fotos): la caja 4/3
   se colapsa. Si no, la ficha abre con medio móvil en negro — y era el lienzo donde se
   quedaba pintado el póster del plato anterior. */
.sheet-media.empty { display: none; }

/* ---------- estados de producto (oferta / agotado / destacado / alérgenos) ---------- */

.dish.agotado { opacity: 0.55; filter: grayscale(0.4); }
.dish.destacado { outline: 2px solid var(--accent); outline-offset: 2px; }
.precio-antes { text-decoration: line-through; color: var(--ink-dim); margin-right: 6px; }
.precio-oferta { color: var(--accent); font-weight: 700; }
.oferta-badge { font-family: var(--mono); font-size: 0.72em; color: #000; background: var(--accent); padding: 1px 6px; border-radius: 6px; margin-left: 6px; }
.badge-agotado, .badge-destacado { display: inline-block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 6px; margin-top: 6px; }
.badge-agotado { background: var(--line); color: var(--ink-dim); }
.badge-destacado { background: var(--accent); color: #000; }
.alergenos { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 0 0; margin: 0; }
.alergenos li { font-size: 11px; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
