/* Gallo's StreetFood · hoja de estilos propia (diseño «brasa de noche», octubre de 2026;
   desde el 18/10, botones y acentos en amarillo y negro, como el local).
   La construye herramientas/construir.py en web/assets/estilo-<huella>.css.
   Tipografías libres (SIL OFL 1.1), alojadas aquí: Bricolage Grotesque (titulares) y Figtree (texto).
   Licencias en docs/licencias/. */

@font-face {
  font-family: "Bricolage";
  src: url("bricolage-a97804dc.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("figtree-4ba7d3d0.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --noche: #0b0a09;
  --noche-2: #131110;
  --carbon: #1b1715;
  --carbon-2: #25201c;
  --borde: rgba(255, 236, 214, 0.1);
  --borde-2: rgba(255, 236, 214, 0.2);
  --borde-campo: rgba(255, 236, 214, 0.44);
  --texto: #f6efe7;
  --texto-2: #cbc0b3;
  --texto-3: #9d9286;
  --amarillo: #ffd21f; /* el amarillo del local: botones y acentos, siempre con texto negro */
  --fuego: var(--amarillo);
  --naranja: var(--amarillo); /* iconos */
  --oro: #ffd84d; /* enlaces y foco sobre fondo oscuro */
  --rojo: #f0372c;
  --verde: #6fd59c;
  --error: #ff9d8f;
  --brasa: linear-gradient(115deg, #ffe45c 0%, #ffd21f 50%, #ffc400 100%);
  --brasa-suave: linear-gradient(115deg, rgba(255, 210, 31, 0.15), rgba(255, 210, 31, 0.05));
  --sobre-brasa: #0b0a09;
  --radio: 24px;
  --radio-m: 16px;
  --radio-s: 12px;
  --sombra: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
  --brillo: 0 0 0 1px rgba(255, 210, 31, 0.35), 0 18px 50px -18px rgba(255, 200, 0, 0.3);
  --curva: cubic-bezier(0.22, 0.9, 0.24, 1);
  --header-h: 68px;
  --mbar-h: 64px;
  --cart-h: 0px;
  --ancho: 1240px;
  --margen: clamp(16px, 4vw, 40px);
  --titulares: "Bricolage", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --letra: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html.has-cart { --cart-h: 68px; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scroll-padding-bottom: calc(var(--cart-h) + 24px);
  overflow-x: clip;
}
@media (max-width: 899px) {
  html { scroll-padding-bottom: calc(var(--mbar-h) + var(--cart-h) + env(safe-area-inset-bottom) + 16px); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(255, 210, 31, 0.1), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(240, 55, 44, 0.05), transparent 60%),
    var(--noche);
  background-repeat: no-repeat;
  color: var(--texto);
  font-family: var(--letra);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}
body::before {
  /* grano muy fino, como de papel de horno */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz48ZmlsdGVyIGlkPSdnJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nLjknIG51bU9jdGF2ZXM9JzInIHN0aXRjaFRpbGVzPSdzdGl0Y2gnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTAwJScgaGVpZ2h0PScxMDAlJyBmaWx0ZXI9J3VybCgjZyknLz48L3N2Zz4=");
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--oro); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--texto); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--titulares); line-height: 1.05; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
/* Modo de pedido (atributo data-pedidos de <html>): se ve solo el texto que toca. */
[data-pedidos="whatsapp"] .solo-tarjeta, [data-pedidos="tarjeta"] .solo-whatsapp { display: none !important; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amarillo); color: var(--sobre-brasa); }
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important;
  border: 0 !important; float: none !important;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.i--peq { width: 1em; height: 1em; }
.i--lleno { fill: currentColor; stroke: none; }
.envoltura { width: min(var(--ancho), 100% - 2 * var(--margen)); margin-inline: auto; }

.salto {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: 12px 18px; border-radius: 999px; background: var(--oro); color: var(--sobre-brasa);
  font-weight: 800; text-decoration: none; transform: translateY(-160%);
}
.salto:focus { transform: none; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 800; font-size: 1rem; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--curva), box-shadow 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
}
.boton--fuego { background: var(--brasa); color: var(--sobre-brasa); box-shadow: 0 10px 30px -12px rgba(255, 210, 31, 0.42); }
.boton--fuego:hover { color: var(--sobre-brasa); transform: translateY(-1px); box-shadow: 0 16px 40px -14px rgba(255, 210, 31, 0.54); }
.boton--linea { background: rgba(255, 236, 214, 0.04); border-color: var(--borde-2); color: var(--texto); }
.boton--linea:hover { color: var(--texto); border-color: var(--naranja); background: rgba(255, 210, 31, 0.1); }
.boton--grande { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.boton--peq { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.boton[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.boton-texto {
  background: none; border: 0; padding: 0; color: var(--oro); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px; font-weight: 600; min-height: 44px;
}
.boton-texto:hover { color: var(--texto); }
.enlace-flecha {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--naranja);
  text-decoration: none; min-height: 44px;
}
.enlace-flecha:hover { color: var(--oro); gap: 12px; }
.enlace-flecha .i { transition: transform 0.2s; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color 0.25s, border-color 0.25s, backdrop-filter 0.25s;
  border-bottom: 1px solid transparent;
}
.cabecera.es-solida {
  background: rgba(11, 10, 9, 0.86); border-bottom-color: var(--borde);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.cabecera__in { height: 100%; display: flex; align-items: center; gap: 12px; }
.marca { display: flex; align-items: center; gap: 10px; color: var(--texto); text-decoration: none; margin-right: auto; min-height: 44px; }
.marca img { width: 38px; height: auto; filter: drop-shadow(0 0 10px rgba(255, 80, 40, 0.45)); }
.marca__txt { font-family: var(--titulares); font-weight: 800; font-size: 1.25rem; line-height: 1; letter-spacing: -0.02em; }
@media (max-width: 359px) { .marca__txt { display: none; } }
.marca__txt small { display: block; font-family: var(--letra); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--texto-3); margin-top: 3px; }
.nav { order: 3; }
.nav__boton {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px;
  background: rgba(255, 236, 214, 0.06); border: 1px solid var(--borde-2); color: var(--texto);
}
.nav__lista {
  display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
  padding: 12px var(--margen) 20px; background: rgba(11, 10, 9, 0.97); border-bottom: 1px solid var(--borde);
}
.nav__lista.es-abierta { display: block; }
.nav__lista a {
  display: flex; align-items: center; min-height: 52px; padding: 0 6px; color: var(--texto);
  text-decoration: none; font-weight: 700; font-size: 1.125rem; border-bottom: 1px solid var(--borde);
}
.nav__lista a:hover { color: var(--oro); }
@media (min-width: 900px) {
  .nav { order: 0; }
  .nav__boton, .nav__solo-movil { display: none; }
  .nav__lista { display: flex; position: static; padding: 0; background: none; border: 0; gap: 4px; }
  .nav__lista a { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; font-size: 0.9375rem; color: var(--texto-2); }
  .nav__lista a:hover { color: var(--texto); background: rgba(255, 236, 214, 0.06); }
}

/* Menú «Pide ya» */
.pedir { position: relative; }
.pedir__flecha { transition: transform 0.2s; }
.order__toggle[aria-expanded="true"] .pedir__flecha { transform: rotate(180deg); }
.pedir__menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; width: min(300px, calc(100vw - 2 * var(--margen)));
  max-height: calc(100dvh - var(--header-h) - 24px); overflow-y: auto;
  padding: 8px; border-radius: 20px; background: #191513; border: 1px solid var(--borde-2);
  box-shadow: var(--sombra);
}
.pedir__menu--derecha { left: auto; right: 0; }
.pedir__menu--arriba { top: auto; bottom: calc(100% + 10px); }
@media (max-width: 899px) {
  /* El de la cabecera se ancla a la cabecera (fija) y no al botón: cabe en 320 px. */
  .cabecera .pedir { position: static; }
  .cabecera .pedir__menu { left: auto; right: var(--margen); top: calc(100% + 4px); }
}
.pedir__menu a {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 12px;
  border-radius: 14px; color: var(--texto); text-decoration: none; font-weight: 800;
}
.pedir__menu a .i { color: var(--naranja); width: 1.4em; height: 1.4em; }
.pedir__menu a small { display: block; font-weight: 500; color: var(--texto-3); font-size: 0.875rem; }
.pedir__menu a:hover, .pedir__menu a:focus-visible { background: rgba(255, 210, 31, 0.12); color: var(--texto); }
@media (prefers-reduced-motion: no-preference) {
  .pedir__menu:not([hidden]) { animation: abrir-menu 0.18s var(--curva); }
}
@keyframes abrir-menu { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Portada ---------- */
.portada { position: relative; padding: calc(var(--header-h) + 28px) 0 40px; }
.portada__rejilla { display: grid; gap: 40px; align-items: center; }
.portada__sellos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.sello, .estado {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; font-size: 0.875rem; font-weight: 700; border: 1px solid var(--borde-2);
  background: rgba(255, 236, 214, 0.04);
}
.sello { color: var(--oro); }
.sello .i { width: 1.15em; height: 1.15em; }
.estado { color: var(--texto-2); }
.estado__punto { width: 9px; height: 9px; border-radius: 50%; background: var(--texto-3); }
.estado.is-open { color: var(--texto); border-color: rgba(111, 213, 156, 0.45); }
.estado.is-open .estado__punto { background: var(--verde); box-shadow: 0 0 0 4px rgba(111, 213, 156, 0.18); }
.portada__titulo {
  /* «STREETFOOD.» en mayúsculas tiene que caber a 320 px con el margen de 16 px. */
  font-size: clamp(2.75rem, 1.2rem + 7.2vw, 6.6rem); font-weight: 800; line-height: 0.92; letter-spacing: -0.045em;
}
.brasa-texto {
  background: var(--brasa); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-right: 0.04em;
}
.portada__entrada { margin-top: 22px; max-width: 34ch; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--texto-2); }
.portada__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.portada__datos { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 34px; }
.portada__datos li { display: grid; }
.portada__datos b { font-family: var(--titulares); font-size: 1.75rem; line-height: 1.1; font-weight: 800; color: var(--texto); }
.portada__datos span { font-size: 0.875rem; color: var(--texto-3); }
.portada__visual { position: relative; padding: 0 0 30px 22px; }
.portada__foto {
  margin: 0; position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 5 / 4;
  box-shadow: var(--sombra), 0 0 0 1px var(--borde-2);
}
.portada__foto picture { height: 100%; }
.portada__foto img { width: 100%; height: 100%; object-fit: cover; }
.portada__foto::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 10, 9, 0) 45%, rgba(11, 10, 9, 0.55));
}
.portada__neon {
  position: absolute; left: -4px; bottom: 0; width: clamp(108px, 28%, 190px);
  filter: drop-shadow(0 0 24px rgba(255, 70, 30, 0.55)) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
}
.portada__chapa {
  position: absolute; top: 16px; right: 16px; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 0.875rem; font-weight: 700;
  background: rgba(14, 12, 11, 0.78); border: 1px solid var(--borde-2); color: var(--texto);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.portada__chapa .i { color: var(--naranja); }
@media (min-width: 1024px) {
  .portada { padding: calc(var(--header-h) + 56px) 0 64px; min-height: min(100svh, 920px); display: grid; align-items: center; }
  .portada__rejilla { grid-template-columns: 1.08fr 0.92fr; gap: 56px; }
  .portada__foto { aspect-ratio: 4 / 5; }
  .portada__visual { padding: 0 0 36px 40px; }
}

/* Franja de ventajas */
.ventajas {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; padding: 22px 0;
  border-block: 1px solid var(--borde); color: var(--texto-2); font-weight: 700; font-size: 0.9375rem;
}
.ventajas li { display: inline-flex; align-items: center; gap: 8px; }
.ventajas .i { color: var(--naranja); }

/* ---------- Secciones ---------- */
.seccion { padding-block: clamp(64px, 8vw, 104px); position: relative; }
.seccion__cabeza { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.antetitulo {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--oro);
}
.antetitulo::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--brasa); }
.titulo { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; }
.entrada { margin-top: 18px; color: var(--texto-2); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); max-width: 56ch; }

.aparece { --i: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .aparece { opacity: 0; transform: translateY(18px); }
  .js .aparece.es-visible {
    opacity: 1; transform: none;
    transition: opacity 0.6s var(--curva), transform 0.6s var(--curva);
    transition-delay: calc(var(--i) * 80ms);
  }
}

/* Foto ampliable */
.foto {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--carbon);
  overflow: hidden; cursor: zoom-in; color: var(--texto);
}
.foto picture { height: 100%; }
.foto:focus-visible { outline-offset: -4px; }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--curva); }
.foto:hover img { transform: scale(1.04); }
.foto__lupa {
  position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(11, 10, 9, 0.72);
  border: 1px solid var(--borde-2); opacity: 0.85;
}
.foto__lupa .i { width: 1.1em; height: 1.1em; }

/* Precio y añadir */
.precio { font-family: var(--titulares); font-weight: 800; font-size: 1.5rem; white-space: nowrap; }
.precio--peq { font-size: 1.25rem; }
.anadir {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 0;
  border-radius: 999px; background: var(--brasa); color: var(--sobre-brasa); font-weight: 800;
  box-shadow: 0 8px 24px -12px rgba(255, 210, 31, 0.48); text-decoration: none;
  transition: transform 0.2s var(--curva), box-shadow 0.2s, background 0.2s;
}
.anadir:hover { transform: translateY(-1px); color: var(--sobre-brasa); }
.anadir .i { transition: transform 0.3s var(--curva); }
.anadir--mini {
  justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0;
  background: rgba(255, 210, 31, 0.12); color: var(--oro); box-shadow: inset 0 0 0 1px rgba(255, 210, 31, 0.4);
}
.anadir--mini:hover { background: var(--brasa); color: var(--sobre-brasa); }
.anadir.es-anadido { background: var(--verde); color: #062413; box-shadow: none; }
.anadir.es-anadido .i { transform: rotate(90deg); }

/* ---------- Signature ---------- */
.firma__lista {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 330px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px;
  scrollbar-width: thin; scrollbar-color: var(--carbon-2) transparent;
}
.plato {
  scroll-snap-align: start; display: flex; flex-direction: column; border-radius: var(--radio);
  background: linear-gradient(180deg, var(--carbon), var(--noche-2)); border: 1px solid var(--borde);
  overflow: hidden; transition: transform 0.3s var(--curva), border-color 0.3s, box-shadow 0.3s;
}
.plato:hover { transform: translateY(-4px); border-color: rgba(255, 210, 31, 0.4); box-shadow: var(--brillo); }
.plato__foto { aspect-ratio: 5 / 4; }
.plato__foto .foto__lupa { top: 12px; bottom: auto; }
.plato__cuerpo { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; flex: 1; }
.plato__num {
  position: absolute; top: -34px; right: 16px; font-family: var(--titulares); font-weight: 800;
  font-size: 3.25rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 210, 31, 0.75);
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
}
.plato__nombre { font-size: 1.5rem; font-weight: 800; }
.plato__desc { color: var(--texto-2); font-size: 0.9688rem; line-height: 1.5; flex: 1; }
.plato__pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
@media (min-width: 1024px) {
  .firma__lista {
    grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); grid-auto-columns: auto;
    overflow: visible; padding: 0; margin: 0; gap: 20px;
  }
  .plato { grid-column: span 2; }
  .plato:nth-child(-n + 2) { grid-column: span 3; }
  .plato:nth-child(-n + 2) .plato__foto { aspect-ratio: 16 / 10; }
  .plato:nth-child(-n + 2) .plato__nombre { font-size: 1.875rem; }
}

/* ---------- Crea tu taco ---------- */
.taller { background: linear-gradient(180deg, transparent, rgba(255, 210, 31, 0.03) 30%, transparent); }
.taller__rejilla { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1023px) { #builder input { scroll-margin-bottom: 96px; } }
.taller__pasos { display: grid; gap: 16px; }
.paso {
  margin: 0; min-width: 0; padding: 20px; border-radius: var(--radio);
  background: var(--noche-2); border: 1px solid var(--borde);
}
.paso legend {
  float: left; width: 100%; padding: 0; margin-bottom: 14px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-family: var(--titulares); font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em;
}
.paso legend + * { clear: both; }
.paso__n {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brasa); color: var(--sobre-brasa); font-size: 1rem;
}
.paso__cuenta, .paso__mas {
  margin-left: auto; font-family: var(--letra); font-size: 0.875rem; font-weight: 700; letter-spacing: 0;
  color: var(--texto-2); padding: 4px 12px; border-radius: 999px; background: rgba(255, 236, 214, 0.06);
}
.paso__ayuda { color: var(--texto-3); font-size: 0.9375rem; margin-bottom: 14px; clear: both; }
.paso__nota { margin-top: 12px; color: var(--oro); font-weight: 700; font-size: 0.9375rem; }
.tamanos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tamano, .ficha, .interruptor { position: relative; }
.tamano input, .ficha input, .interruptor input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.tamano__caja {
  position: relative; display: grid; gap: 2px; justify-items: center; padding: 14px 8px; border-radius: var(--radio-m);
  border: 1px solid var(--borde-2); background: rgba(255, 236, 214, 0.03); cursor: pointer; text-align: center;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.tamano__letra { font-family: var(--titulares); font-size: 2rem; line-height: 1; font-weight: 800; }
.tamano__info { font-size: 0.875rem; color: var(--texto-2); }
.tamano__precio { font-weight: 800; color: var(--oro); white-space: nowrap; }
.tamano input:checked + .tamano__caja { border-color: var(--oro); background: var(--brasa-suave); box-shadow: 0 0 0 1px var(--oro), var(--brillo); }
.tamano input:checked + .tamano__caja::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--oro) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPScjMWMwYjAzJyBzdHJva2Utd2lkdGg9JzMuMicgc3Ryb2tlLWxpbmVjYXA9J3JvdW5kJyBzdHJva2UtbGluZWpvaW49J3JvdW5kJz48cGF0aCBkPSdtNiAxMi41IDQgNCA4LTknLz48L3N2Zz4=") center / 13px no-repeat;
}
.tamano input:focus-visible + .tamano__caja, .ficha input:focus-visible + span, .interruptor input:focus-visible ~ .interruptor__via {
  outline: 3px solid var(--oro); outline-offset: 3px;
}
.fichas { display: flex; flex-wrap: wrap; gap: 8px; }
.ficha span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid var(--borde-2); background: rgba(255, 236, 214, 0.03);
  font-weight: 600; font-size: 0.9375rem; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.ficha span b { color: var(--oro); font-weight: 800; }
.ficha:hover span { border-color: var(--naranja); }
.ficha input:checked + span { background: var(--brasa); border-color: transparent; color: var(--sobre-brasa); }
.ficha input:checked + span b { color: var(--sobre-brasa); }
.ficha input:disabled + span { opacity: 0.38; cursor: not-allowed; border-color: var(--borde); }
.paso--menu { background: var(--brasa-suave); border-color: rgba(255, 210, 31, 0.3); }
.interruptor { display: flex; align-items: center; gap: 14px; cursor: pointer; min-height: 44px; }
.interruptor__via {
  flex: none; position: relative; width: 52px; height: 30px; border-radius: 999px;
  background: var(--carbon-2); border: 1px solid var(--borde-2); transition: background 0.2s;
}
.interruptor__via::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--texto); transition: transform 0.2s var(--curva);
}
.interruptor input:checked ~ .interruptor__via { background: var(--brasa); border-color: transparent; }
.interruptor input:checked ~ .interruptor__via::after { transform: translateX(22px); background: var(--sobre-brasa); }
.interruptor__txt { color: var(--texto-2); }
.interruptor__txt b { color: var(--texto); }

.resumen { display: grid; gap: 14px; scroll-margin-top: calc(var(--header-h) + 16px); }
.resumen__caja {
  position: relative; padding: 24px; border-radius: var(--radio);
  background: linear-gradient(var(--carbon), var(--carbon)) padding-box, var(--brasa) border-box;
  border: 1.5px solid transparent; box-shadow: var(--sombra);
}
.resumen__cabeza {
  display: flex; align-items: center; justify-content: space-between; font-family: var(--titulares);
  font-weight: 800; font-size: 1.5rem; padding-bottom: 14px; border-bottom: 1px dashed var(--borde-2);
}
.resumen__cabeza .i { color: var(--naranja); }
.resumen__lineas { padding: 14px 0; display: grid; gap: 6px; min-height: 120px; }
.resumen__lineas li { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.resumen__lineas li span:last-child { white-space: nowrap; color: var(--texto-2); }
.resumen__lineas li.sub { font-weight: 500; color: var(--texto-2); padding-left: 10px; }
.resumen__lineas li.aviso { color: var(--oro); }
.resumen__total {
  display: flex; align-items: baseline; justify-content: space-between; padding-top: 14px;
  border-top: 1px dashed var(--borde-2); font-weight: 800; font-size: 1.125rem;
}
.resumen__total output { font-family: var(--titulares); font-size: 2.25rem; white-space: nowrap; }
.resumen__nota { margin-top: 6px; font-size: 0.8125rem; color: var(--texto-3); }
.resumen__acciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.resumen__acciones .boton { padding: 8px 16px; white-space: normal; text-align: center; line-height: 1.2; }
.resumen__acciones [aria-disabled="true"] { pointer-events: none; }
.resumen__pista { font-size: 0.875rem; color: var(--texto-3); }
@media (prefers-reduced-motion: no-preference) {
  .resumen__caja.se-mueve { animation: menear 0.38s ease-in-out; }
}
@keyframes menear { 30% { transform: rotate(-1.2deg); } 70% { transform: rotate(0.8deg); } }
.taller__barra {
  position: sticky; bottom: calc(var(--mbar-h) + var(--cart-h) + env(safe-area-inset-bottom) + 10px); z-index: 5;
  min-width: 0; transition: opacity 0.2s, visibility 0.2s;
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(27, 23, 21, 0.94); border: 1px solid var(--borde-2); box-shadow: var(--sombra);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.taller__barra span { font-weight: 700; color: var(--texto-2); }
.taller__barra b { font-family: var(--titulares); font-size: 1.25rem; margin-right: auto; white-space: nowrap; }
.taller__barra.esta-oculta { opacity: 0; visibility: hidden; }
.taller__barra a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  background: var(--brasa); color: var(--sobre-brasa); font-weight: 800; text-decoration: none;
}
@media (min-width: 900px) { .taller__barra { bottom: calc(18px + var(--cart-h)); } }
@media (min-width: 1024px) {
  .taller__rejilla { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; }
  .taller__barra { display: none; }
}
@media (min-width: 1024px) and (min-height: 880px) {
  /* Fijo al bajar solo si cabe entero: si no, la barra «Ver mi pedido» le taparía los botones. */
  .resumen { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ---------- Carta ---------- */
.filtros {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 18px;
  scrollbar-width: none;
}
.filtros::-webkit-scrollbar { display: none; }
.filtro {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--borde-2); background: rgba(255, 236, 214, 0.03);
  color: var(--texto-2); font-weight: 700;
}
.filtro:hover { color: var(--texto); border-color: var(--naranja); }
.filtro[aria-pressed="true"] { background: var(--texto); color: var(--noche); border-color: var(--texto); }
.carta__mas {
  display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%;
  background: rgba(255, 210, 31, 0.14); color: var(--oro); font-weight: 800; line-height: 1; vertical-align: 0.05em;
}
.carta__rejilla { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.bloque {
  padding: clamp(20px, 3vw, 30px); border-radius: var(--radio); background: var(--noche-2);
  border: 1px solid var(--borde); min-width: 0;
}
.bloque__titulo { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); font-weight: 800; margin-bottom: 18px; }
.bloque__titulo::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 3px; margin-top: 12px; background: var(--brasa); }
.bloque__sub {
  margin: 26px 0 8px; font-family: var(--letra); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--oro);
}
.bloque__nota { margin-top: 12px; font-size: 0.9375rem; color: var(--texto-3); }
.bloque__foto { aspect-ratio: 16 / 9; border-radius: var(--radio-m); margin-bottom: 14px; }
.filas { display: grid; }
.fila {
  display: grid; grid-template-columns: minmax(0, auto) minmax(12px, 1fr) auto auto; align-items: center;
  gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--borde);
}
.fila:last-child { border-bottom: 0; }
.fila__nombre { font-weight: 700; }
.fila__nombre small { display: block; font-weight: 500; font-size: 0.875rem; color: var(--texto-3); line-height: 1.35; }
.fila__puntos { align-self: center; height: 0; border-bottom: 2px dotted rgba(255, 236, 214, 0.18); }
.fila__precio { font-weight: 800; white-space: nowrap; }
.fila--par { grid-template-columns: minmax(0, auto) minmax(12px, 1fr) auto; }
.fila__par { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tabla { width: 100%; border-collapse: collapse; }
.tabla th, .tabla td { padding: 8px 0; border-bottom: 1px solid var(--borde); text-align: left; }
.tabla thead th { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--texto-3); text-align: right; }
.tabla tbody th { font-weight: 700; padding-right: 10px; overflow-wrap: anywhere; }
.tabla td { text-align: right; padding-left: 8px; width: 1%; }
.tabla tr:last-child th, .tabla tr:last-child td { border-bottom: 0; }
.precio-boton {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 14px;
  border-radius: 999px; border: 1px solid rgba(255, 210, 31, 0.35); background: rgba(255, 210, 31, 0.08);
  font-weight: 800; white-space: nowrap; transition: background 0.2s, color 0.2s;
}
.precio-boton .i { color: var(--naranja); }
.precio-boton:hover { background: var(--brasa); color: var(--sobre-brasa); border-color: transparent; }
.precio-boton:hover .i { color: var(--sobre-brasa); }
.precio-boton.es-anadido { background: var(--verde); color: #062413; border-color: transparent; }
.precio-boton.es-anadido .i { color: #062413; }
.etiqueta {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; white-space: nowrap;
  font-family: var(--letra); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em; vertical-align: middle;
  background: rgba(255, 236, 214, 0.08); color: var(--texto-2);
}
.etiqueta--picante { background: rgba(240, 55, 44, 0.16); color: #ff8f86; }
.etiqueta--veggie { background: rgba(111, 213, 156, 0.14); color: var(--verde); }
.bowls { display: grid; gap: 14px; }
.bowl { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: start; }
.bowl__foto { aspect-ratio: 1; border-radius: var(--radio-m); }
.bowl h4 { font-size: 1.25rem; font-weight: 800; }
.bowl__texto h4 + p { color: var(--texto-2); font-size: 0.9375rem; margin-top: 4px; line-height: 1.5; }
.bowl__compra { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.carta__pie { margin-top: 22px; color: var(--texto-3); font-size: 0.9375rem; }
.aviso-nojs { margin: 14px 0; padding: 14px 18px; border-radius: var(--radio-m); background: rgba(255, 210, 31, 0.1); border: 1px solid rgba(255, 210, 31, 0.4); }
@media (min-width: 640px) { .bowl { grid-template-columns: 132px minmax(0, 1fr); } }
@media (max-width: 399px) {
  .bloque { padding: 16px; }
  .bowl { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .precio-boton { padding: 0 9px; gap: 3px; font-size: 0.9375rem; }
  .tabla td { padding-left: 4px; }
}
@media (min-width: 1024px) {
  .carta__rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carta__rejilla.esta-filtrada { grid-template-columns: minmax(0, 780px); }
}

/* ---------- Opiniones ---------- */
.opiniones__rejilla { display: grid; gap: 32px; }
.nota-media { display: grid; justify-items: start; gap: 4px; margin: 26px 0 10px; }
.nota-media__cifra { font-family: var(--titulares); font-size: 5rem; line-height: 0.9; font-weight: 800; }
.nota-media__estrellas { display: flex; gap: 4px; color: var(--oro); }
.nota-media__estrellas .i { width: 1.4em; height: 1.4em; }
.nota-media__total { color: var(--texto-3); font-weight: 600; }
.opiniones__lista {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: 0 -4px;
}
.opinion {
  scroll-snap-align: start; position: relative; display: flex; flex-direction: column; justify-content: space-between;
  gap: 18px; padding: 28px 24px 22px; border-radius: var(--radio); background: var(--carbon); border: 1px solid var(--borde);
}
.opinion::before {
  content: "“"; position: absolute; top: -6px; right: 20px; font-family: var(--titulares); font-size: 6rem;
  line-height: 1; background: var(--brasa); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.opinion blockquote { margin: 0; font-size: 1.125rem; line-height: 1.5; }
.opinion__autor { display: grid; }
.opinion__autor b { font-weight: 800; }
.opinion__autor span { font-size: 0.875rem; color: var(--texto-3); }
@media (min-width: 1024px) {
  .opiniones__rejilla { grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: 56px; }
  .opiniones__lista { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; padding: 0; margin: 0; }
  .opinion:first-child { grid-column: span 2; }
}

/* ---------- Halal ---------- */
.halal__caja {
  position: relative; display: grid; gap: 24px; align-items: center; padding: clamp(28px, 5vw, 64px);
  border-radius: 36px; overflow: hidden; border: 1px solid rgba(255, 210, 31, 0.28);
  background: radial-gradient(600px 300px at 0% 100%, rgba(255, 210, 31, 0.17), transparent 70%), var(--noche-2);
}
.halal__cifra {
  font-family: var(--titulares); font-weight: 800; font-size: clamp(5.5rem, 3rem + 14vw, 13rem); line-height: 0.85;
  letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px var(--naranja);
}
.halal__texto { display: grid; gap: 18px; max-width: 52ch; }
.halal__texto > p:not(.sello) { color: var(--texto-2); font-size: 1.125rem; }
.sello--grande { justify-self: start; min-height: 44px; font-size: 1rem; }
@media (min-width: 1024px) { .halal__caja { grid-template-columns: auto 1fr; gap: 56px; } }

/* ---------- Galería ---------- */
.galeria__rejilla { display: grid; gap: 14px; grid-template-columns: 1fr; }
.galeria__item figure { margin: 0; position: relative; height: 100%; }
.galeria__item .foto { height: 100%; border-radius: var(--radio); aspect-ratio: 4 / 3; }
.galeria__item--alta .foto { aspect-ratio: 3 / 4; }
.galeria__item figcaption {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 72px); padding: 6px 12px;
  border-radius: 999px; background: rgba(11, 10, 9, 0.78); font-size: 0.875rem; font-weight: 700; pointer-events: none;
}
@media (min-width: 640px) {
  .galeria__rejilla { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; }
  .galeria__item .foto, .galeria__item--alta .foto { aspect-ratio: auto; }
  .galeria__item--ancha { grid-column: span 2; grid-row: span 2; }
  .galeria__item--alta { grid-row: span 2; }
}
@media (min-width: 1024px) {
  .galeria__rejilla { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 18px; }
}

/* ---------- Dónde estamos ---------- */
.visita__rejilla { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.datos { display: grid; gap: 0; margin: 28px 0 18px; }
.datos div { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--borde); }
@media (max-width: 399px) { .datos div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.datos dd a { display: inline-flex; align-items: center; min-height: 44px; }
.datos dt { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--texto-2); }
.datos dt .i { color: var(--naranja); }
.datos dd { margin: 0; font-weight: 600; }
.visita__servicios { color: var(--texto-2); }
.visita__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.mapa {
  position: relative; min-height: 420px; border-radius: 32px; overflow: hidden; border: 1px solid var(--borde-2);
  background: var(--carbon); display: grid; place-items: center;
}
.mapa__fondo, .mapa__fondo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mapa__fondo img { filter: brightness(0.4) saturate(1.1); }
.mapa__llamada { position: relative; display: grid; justify-items: center; gap: 14px; max-width: 420px; padding: 24px; text-align: center; }
.mapa__llamada p { font-size: 0.875rem; color: var(--texto-2); }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa.is-loaded .mapa__fondo, .mapa.is-loaded .mapa__llamada { display: none; }
@media (min-width: 1024px) { .visita__rejilla { grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: stretch; } .mapa { min-height: 560px; } }

/* ---------- Pie ---------- */
.pie { position: relative; margin-top: 40px; padding: 56px 0 calc(40px + var(--mbar-h) + var(--cart-h) + env(safe-area-inset-bottom)); border-top: 1px solid var(--borde); }
.pie::before { content: ""; position: absolute; top: -1px; left: 50%; width: min(600px, 80%); height: 1px; transform: translateX(-50%); background: var(--brasa); }
.pie__rejilla { display: grid; gap: 34px; }
.pie__marca { display: flex; align-items: center; gap: 18px; }
.pie__marca img { width: 72px; filter: drop-shadow(0 0 16px rgba(255, 70, 30, 0.45)); }
.pie__lema { font-family: var(--titulares); font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.pie__nav ul { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.pie__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--texto); text-decoration: none; font-weight: 700; border-radius: 999px; }
.pie__nav a:hover { background: rgba(255, 236, 214, 0.06); color: var(--oro); }
.pie__legal { display: grid; gap: 10px; color: var(--texto-3); font-size: 0.9375rem; }
.pie__legal b { color: var(--texto-2); }
.pie__enlaces { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.pie__enlaces a { display: inline-flex; align-items: center; min-height: 44px; }
.pie__firma { color: var(--texto-2); font-weight: 700; }
@media (min-width: 900px) {
  .pie { padding-bottom: 48px; }
  .pie__rejilla { grid-template-columns: 1.1fr 1fr; }
  .pie__legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--borde); }
}

/* ---------- Barra fija del móvil ---------- */
.barra-movil {
  position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--mbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(14, 12, 11, 0.94); border-top: 1px solid var(--borde);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.barra-movil a {
  display: grid; place-items: center; align-content: center; gap: 2px; min-height: 48px;
  color: var(--texto-2); text-decoration: none; font-size: 0.8125rem; font-weight: 700;
}
.barra-movil a .i { color: var(--naranja); width: 1.35em; height: 1.35em; }
.barra-movil a:hover { color: var(--texto); }
@media (min-width: 900px) { .barra-movil { display: none; } }

/* ---------- Barra «Ver mi pedido» ---------- */
.barra-pedido {
  position: fixed; z-index: 46; left: 12px; right: 12px;
  bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom) + 8px);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  min-height: 56px; padding: 6px 18px 6px 8px; border-radius: 999px; border: 0;
  background: var(--brasa); color: var(--sobre-brasa); font-weight: 800; text-align: left;
  box-shadow: 0 16px 40px -14px rgba(255, 210, 31, 0.54);
}
.barra-pedido__icono { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(28, 11, 3, 0.16); }
.barra-pedido__num {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; background: var(--sobre-brasa); color: var(--oro); font-size: 0.75rem;
}
.barra-pedido__total { white-space: nowrap; font-family: var(--titulares); font-size: 1.125rem; }
@media (min-width: 900px) { .barra-pedido { left: auto; right: 24px; bottom: 24px; width: 340px; } }
@media (prefers-reduced-motion: no-preference) {
  .barra-pedido.late { animation: latido 0.32s ease-out; }
}
@keyframes latido { 50% { transform: scale(1.04); } }

/* ---------- Aviso del mapa (cookies) ---------- */
.aviso-mapa {
  position: fixed; z-index: 70; left: 12px; right: 12px;
  bottom: calc(var(--mbar-h) + var(--cart-h) + env(safe-area-inset-bottom) + 10px);
  max-width: 440px; padding: 20px; border-radius: 22px; background: #1a1614; border: 1px solid var(--borde-2);
  box-shadow: var(--sombra); font-size: 0.9375rem; color: var(--texto-2);
}
.aviso-mapa__titulo { font-size: 1.375rem; font-weight: 800; color: var(--texto); margin-bottom: 8px; }
@media (max-width: 599px) { .aviso-mapa { padding: 16px; font-size: 0.875rem; } .aviso-mapa__titulo { font-size: 1.1875rem; } }
.aviso-mapa__botones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
@media (min-width: 900px) { .aviso-mapa { left: auto; right: 24px; bottom: calc(24px + var(--cart-h)); width: 420px; } }
@media (prefers-reduced-motion: no-preference) { .aviso-mapa:not([hidden]) { animation: subir 0.35s var(--curva); } }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } }

/* Aviso al volver de la página de pago (lo pinta fuente/pago.js) */
.gs-aviso {
  pointer-events: none; position: fixed; left: 50%; top: calc(var(--header-h) + 12px); transform: translateX(-50%); z-index: 75;
  width: max-content; max-width: min(92vw, 440px); padding: 12px 18px; border-radius: 16px;
  background: #1a1614; color: var(--texto); border: 1px solid var(--oro); box-shadow: var(--sombra); font-size: 0.9375rem;
}

/* ---------- Diálogos ---------- */
dialog { color: var(--texto); }
dialog::backdrop { background: rgba(5, 4, 3, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* Pedido: persiana inferior en móvil, cajón lateral en escritorio */
.pedido {
  margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92dvh; padding: 0; border: 0;
  border-radius: 26px 26px 0 0; background: var(--noche-2); display: none; flex-direction: column; overflow: hidden;
}
.pedido[open] { display: flex; }
.pedido__cabeza {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--borde);
}
.pedido__titulo { font-size: 1.75rem; font-weight: 800; }
.pedido__cerrar {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 236, 214, 0.06); border: 1px solid var(--borde-2);
}
.pedido__cuerpo { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 18px; }
.recogida { display: grid; gap: 10px; padding: 16px; border-radius: var(--radio-m); background: var(--brasa-suave); border: 1px solid rgba(255, 210, 31, 0.28); font-size: 0.9375rem; color: var(--texto-2); }
.recogida__titulo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--texto); }
.recogida__titulo .i { color: var(--naranja); }
.recogida .boton { justify-self: start; max-width: 100%; white-space: normal; text-align: left; line-height: 1.25; padding-block: 8px; }
.pedido__vacio { display: grid; justify-items: start; gap: 12px; color: var(--texto-2); }
.lineas { display: grid; }
.linea { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--borde); }
.linea__nombre { font-weight: 800; }
.linea__nombre span { font-weight: 600; color: var(--texto-2); }
.linea__detalle { font-size: 0.8125rem; color: var(--texto-3); line-height: 1.45; margin-top: 2px; }
.linea__menu { display: flex; align-items: center; gap: 10px; margin-top: 8px; cursor: pointer; font-size: 0.875rem; min-height: 44px; }
.linea__menu input { width: 20px; height: 20px; accent-color: var(--fuego); margin: 0; }
.linea__menu small { display: block; color: var(--texto-3); }
.linea__lado { display: grid; justify-items: end; align-content: start; gap: 8px; }
.linea__precio { font-weight: 800; white-space: nowrap; }
.contador { display: flex; align-items: center; border-radius: 999px; border: 1px solid var(--borde-2); }
.contador button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; color: var(--texto); }
.contador button:hover { color: var(--oro); }
.contador output { min-width: 22px; text-align: center; font-weight: 800; }
.formulario { display: grid; gap: 14px; }
.formulario__errores {
  padding: 14px 16px; border-radius: var(--radio-s); background: rgba(255, 157, 143, 0.1);
  border: 1px solid rgba(255, 157, 143, 0.5); color: var(--texto); font-size: 0.9375rem;
}
.formulario__errores ul { list-style: disc; padding-left: 20px; margin-top: 6px; }
.campo { display: grid; gap: 6px; }
.campo > label { font-weight: 800; font-size: 0.9375rem; }
.campo > label span { font-weight: 500; color: var(--texto-3); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radio-s); background: var(--noche);
  border: 1px solid var(--borde-campo); color: var(--texto); font-size: 1rem;
}
.campo textarea { resize: vertical; }
.campo select { appearance: auto; }
.campo input::placeholder, .campo textarea::placeholder { color: #8a8076; }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline: 3px solid var(--oro); outline-offset: 1px; }
.campo [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.consentimiento { display: flex; gap: 10px; align-items: flex-start; margin-top: 4px; font-size: 0.8125rem; line-height: 1.45; color: var(--texto-2); cursor: pointer; }
.consentimiento input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--fuego); }
.campo__error { color: var(--error); font-size: 0.875rem; font-weight: 800; }
.campo__ayuda { font-size: 0.8125rem; color: var(--texto-3); line-height: 1.5; }
/* Recoger o a domicilio */
.entrega { border: 0; margin: 0; padding: 0; min-width: 0; }
.entrega legend { padding: 0; margin-bottom: 8px; font-weight: 800; font-size: 0.9375rem; }
.entrega__opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 339px) { .entrega__opciones { grid-template-columns: minmax(0, 1fr); } }
.entrega__opcion { position: relative; display: grid; }
.entrega__opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.entrega__caja {
  display: grid; gap: 4px; align-content: start; min-height: 64px; padding: 12px 14px; border-radius: var(--radio-s);
  border: 1px solid var(--borde-2); background: rgba(255, 236, 214, 0.03); cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.entrega__caja b { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; }
.entrega__caja .i { color: var(--naranja); flex: none; }
.entrega__caja small { font-size: 0.8125rem; color: var(--texto-3); line-height: 1.35; }
.entrega__opcion input:checked + .entrega__caja { border-color: var(--oro); background: var(--brasa-suave); box-shadow: 0 0 0 1px var(--oro); }
.entrega__opcion input:focus-visible + .entrega__caja { outline: 3px solid var(--oro); outline-offset: 3px; }
.pedido__pie {
  display: grid; gap: 10px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--borde); background: var(--carbon);
}
.pedido__envio { display: flex; align-items: baseline; justify-content: space-between; font-size: 0.9375rem; color: var(--texto-2); }
.pedido__envio output { font-weight: 800; white-space: nowrap; }
.pedido__total { display: flex; align-items: baseline; justify-content: space-between; font-weight: 800; font-size: 1.125rem; }
.pedido__total output { font-family: var(--titulares); font-size: 1.75rem; white-space: nowrap; }
.pedido__pagar { width: 100%; min-height: 54px; }
.pedido__hecho { padding: 12px 14px; border-radius: var(--radio-s); background: rgba(111, 213, 156, 0.1); border: 1px solid rgba(111, 213, 156, 0.45); font-size: 0.875rem; }
.pedido__pagar[aria-busy="true"] { opacity: 0.75; }
.pedido__letra { font-size: 0.8125rem; color: var(--texto-3); }
@media (max-width: 399px) { .pedido__pagar { white-space: normal; text-align: center; padding-inline: 14px; } }
@media (max-height: 560px) {
  .pedido { max-height: 100dvh; border-radius: 0; overflow-y: auto; overscroll-behavior: contain; }
  .pedido > * { flex-shrink: 0; }
  .pedido__cuerpo { flex: none; overflow: visible; }
  .pedido__cabeza { position: sticky; top: 0; z-index: 1; background: var(--noche-2); }
}
@media (min-width: 900px) {
  .pedido { margin: 0 0 0 auto; width: 460px; height: 100dvh; max-height: 100dvh; border-radius: 26px 0 0 26px; }
}
@media (prefers-reduced-motion: no-preference) {
  .pedido[open] { animation: pedido-sube 0.32s var(--curva); }
  @media (min-width: 900px) { .pedido[open] { animation-name: pedido-entra; } }
}
@keyframes pedido-sube { from { transform: translateY(100%); } }
@keyframes pedido-entra { from { transform: translateX(100%); } }

/* Elegir opción (topping) */
.eleccion {
  width: min(420px, calc(100% - 32px)); padding: 26px; border: 1px solid var(--borde-2);
  border-radius: var(--radio); background: var(--noche-2); box-shadow: var(--sombra);
}
.eleccion__titulo { font-size: 1.75rem; font-weight: 800; }
.eleccion__nombre { margin-top: 6px; color: var(--texto-2); white-space: nowrap; }
.eleccion__opciones { display: grid; gap: 10px; margin: 18px 0 8px; }
.eleccion__opciones button {
  display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 18px;
  border-radius: var(--radio-m); border: 1px solid var(--borde-2); background: rgba(255, 236, 214, 0.03); font-weight: 800;
}
.eleccion__opciones button:hover { border-color: transparent; background: var(--brasa); color: var(--sobre-brasa); }

/* Visor de fotos */
.visor {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: rgba(7, 6, 5, 0.95); overflow: hidden;
}
.visor[open] { display: grid; place-items: center; }
.visor::backdrop { background: transparent; }
.visor__figura { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 64px 12px 72px; max-width: 100%; }
.visor__marco img { width: auto; max-width: 94vw; max-height: calc(100dvh - 180px); border-radius: 18px; transition: opacity 0.2s; }
.visor__marco img.is-loading { opacity: 0.55; }
.visor__pie { max-width: 70ch; text-align: center; color: var(--texto-2); font-size: 0.9375rem; padding: 0 16px; }
.visor__cuenta { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); font-weight: 800; color: var(--texto-2); }
.visor__boton {
  position: fixed; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(30, 26, 23, 0.85); border: 1px solid var(--borde-2); color: var(--texto);
}
.visor__boton:hover { background: var(--brasa); color: var(--sobre-brasa); }
.visor__cerrar { top: 12px; right: 12px; }
.visor__ant { left: 12px; top: 50%; transform: translateY(-50%); }
.visor__sig { right: 12px; top: 50%; transform: translateY(-50%); }
.visor[data-single] .visor__ant, .visor[data-single] .visor__sig, .visor[data-single] .visor__cuenta { display: none; }
@media (max-width: 639px) {
  .visor__ant, .visor__sig { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); transform: none; }
  .visor__figura { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .visor__marco img { max-height: calc(100dvh - 220px); }
}
@media (prefers-reduced-motion: no-preference) { .visor[open] { animation: fundir 0.22s ease-out; } }
@keyframes fundir { from { opacity: 0; } }

/* Móvil: lo fijo de abajo no tapa el contenido */
@media (max-width: 899px) {
  body { padding-bottom: 0; }
}

/* ---------- Páginas de texto (legales, 404, pedido pagado) ---------- */
.pagina-texto { min-height: 100vh; display: flex; flex-direction: column; }
.pagina-texto .cabecera { position: sticky; top: 0; background: rgba(11, 10, 9, 0.9); border-bottom-color: var(--borde); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.volver {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--borde-2); color: var(--texto); text-decoration: none; font-weight: 700; font-size: 0.9375rem;
}
.volver:hover { color: var(--texto); border-color: var(--naranja); }
.texto-legal { width: min(780px, 100% - 2 * var(--margen)); margin: 0 auto; padding: 48px 0 80px; flex: 1; }
.texto-legal h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 10px; }
.texto-legal h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); font-weight: 800; margin: 40px 0 12px; }
.texto-legal p, .texto-legal li { color: var(--texto-2); }
.texto-legal p + p { margin-top: 12px; }
.texto-legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.texto-legal b, .texto-legal strong { color: var(--texto); }
.texto-legal code { font-size: 0.9em; padding: 1px 6px; border-radius: 6px; background: var(--carbon-2); color: var(--texto); }
.texto-legal mark { background: rgba(255, 210, 31, 0.22); color: var(--texto); padding: 0 3px; border-radius: 4px; }
.updated, .texto-legal .updated { color: var(--texto-3); font-size: 0.9375rem; }
.legal-credit { margin-top: 36px; color: var(--texto-3); font-size: 0.875rem; }
.pie-texto { border-top: 1px solid var(--borde); padding: 26px 0 32px; color: var(--texto-3); font-size: 0.875rem; }
.pie-texto .envoltura { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.pie-texto a { display: inline-flex; align-items: center; min-height: 44px; }

/* Página del pedido pagado y 404 */
.resultado { display: grid; gap: 14px; align-content: start; }
.resultado h1 { margin-bottom: 0; }
.resultado .codigo { font-family: var(--titulares); font-weight: 800; font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); line-height: 1.1; color: var(--oro); }
.resultado ul { list-style: none; padding: 0; display: grid; gap: 0; margin: 4px 0; border-radius: var(--radio-m); border: 1px solid var(--borde); }
.resultado li { padding: 12px 16px; border-bottom: 1px solid var(--borde); color: var(--texto); }
.resultado li:last-child { border-bottom: 0; }
.resultado li small { color: var(--texto-3); }
.resultado > a { justify-self: start; }
.cargando { color: var(--texto-2); }
.texto-legal .grande-404 { font-family: var(--titulares); font-weight: 800; font-size: clamp(6rem, 4rem + 10vw, 11rem); line-height: 0.9; letter-spacing: -0.06em; background: var(--brasa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.acciones-404 { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Impresión: fondo blanco, nada flotando ---------- */
@media print {
  :root { color-scheme: light; --texto: #000; --texto-2: #222; --texto-3: #444; }
  *, *::before, *::after { color: #000 !important; -webkit-text-fill-color: #000 !important; background: transparent !important; box-shadow: none !important; text-shadow: none !important; }
  body { background: #fff; color: #000; }
  body::before, .cabecera, .barra-movil, .barra-pedido, .aviso-mapa, .gs-aviso, .taller__barra, .salto, .pedir__menu,
  .mapa, .visor, .pedido, .eleccion, .foto__lupa, .portada__chapa, .portada__visual { display: none !important; }
  .plato, .opinion, .bloque, .paso, .fila, .galeria__item { break-inside: avoid; }
  .firma__lista, .opiniones__lista { overflow: visible !important; grid-auto-flow: row !important; grid-template-columns: repeat(2, 1fr) !important; }
  .js .aparece { opacity: 1 !important; transform: none !important; }
  a { color: #000; }
  .brasa-texto, .opinion::before { color: #000; -webkit-text-fill-color: #000; background: none; }
  .plato, .bloque, .paso, .opinion, .halal__caja, .resumen__caja { background: #fff !important; border-color: #bbb !important; box-shadow: none !important; }
  .halal__cifra, .plato__num { -webkit-text-stroke-color: #000; }
  .texto-legal .grande-404 { color: #000; -webkit-text-fill-color: #000; background: none; }
  .texto-legal { padding-top: 0; }
  .pagina-texto .cabecera { position: static; background: #fff; }
  .no-imprimir, .pie-texto { display: none !important; }
}
