/* Soy Tu Torta — menú y pedido por WhatsApp
   Pizarra y mostaza de la marca; Shrikhand para rótulos, Archivo para todo lo demás. */

:root {
  --pizarra: #1F1F21;
  --pizarra-2: #29292C;
  --mostaza: #FFB223;
  --mostaza-2: #F09E0A;
  --gis: #FAF6EE;
  --gis-2: #BDB8AE;
  --papel: #FFFDF8;
  --tinta: #1F1F21;
  --tinta-2: #4A3A12;
  --gris-papel: #6B665C;
  --error: #B3261E;
  --display: "Shrikhand", Georgia, serif;
  --texto: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --alto-cabecera: 68px;
  --ancho: 1280px;
  --curva: cubic-bezier(.2, .8, .2, 1);
  --textura: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .09 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--alto-cabecera) + 70px); }
body {
  margin: 0;
  background: var(--pizarra);
  color: var(--gis);
  font-family: var(--texto);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
/* Tocar "+" varias veces seguidas no debe hacer zoom en el celular */
a, button, label, input, textarea { touch-action: manipulation; }
h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--mostaza); outline-offset: 3px; border-radius: 8px; }
.portada :focus-visible, .sucursales :focus-visible, .pedido__ticket :focus-visible { outline-color: var(--tinta); }

.envoltura { width: min(100% - 32px, var(--ancho)); margin-inline: auto; }
.salto { position: absolute; z-index: 100; left: 12px; top: -80px; padding: 10px 16px; border-radius: 999px; background: var(--mostaza); color: var(--tinta); font-weight: 700; text-decoration: none; }
.salto:focus { top: 12px; }

/* Logo: el PNG es solo la forma; el color lo pone `color` */
.logo {
  display: block;
  aspect-ratio: 1;
  background: currentColor;
  -webkit-mask: url(/img/logo.png) center / contain no-repeat;
  mask: url(/img/logo.png) center / contain no-repeat;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--tinta { background: var(--tinta); color: var(--mostaza); }
.btn--tinta:hover { background: #000; }
.btn--mostaza { background: var(--mostaza); color: var(--tinta); }
.btn--mostaza:hover { background: #FFC24F; }
.btn--linea { box-shadow: inset 0 0 0 2px var(--tinta); color: var(--tinta); }
.btn--linea:hover { background: rgba(31, 31, 33, .08); }
.btn--linea-clara { box-shadow: inset 0 0 0 2px rgba(250, 246, 238, .35); color: var(--gis); }
.btn--linea-clara:hover { box-shadow: inset 0 0 0 2px var(--gis); }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(31, 31, 33, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.cabecera__in { display: flex; align-items: center; gap: 10px; height: var(--alto-cabecera); }
.marca { display: block; color: var(--gis); border-radius: 50%; }
.marca .logo { width: 52px; }
.nav { display: none; gap: 2px; margin-left: 16px; }
.nav a { padding: 10px 14px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.nav a:hover { background: rgba(255, 255, 255, .08); }
.cabecera__wa {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
  min-height: 44px; padding: 6px 10px; border-radius: 999px;
  color: var(--mostaza); font-weight: 800; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap;
}
.cabecera__wa:hover { background: rgba(255, 178, 35, .12); }
.cabecera__wa svg { width: 22px; height: 22px; flex: none; }
.cabecera__wa-txt { display: none; color: var(--gis); font-weight: 600; }
.btn-pedido {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 12px; border-radius: 999px;
  background: var(--mostaza); color: var(--tinta);
  font-weight: 700; text-decoration: none; white-space: nowrap;
}
.btn-pedido svg { width: 22px; height: 22px; }
.btn-pedido__txt { display: none; }
.insignia {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 999px; background: var(--tinta); color: var(--mostaza);
  font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.insignia.salta { animation: salta .45s var(--curva); }
@keyframes salta { 40% { transform: scale(1.35); } }

@media (min-width: 560px) {
  .cabecera__wa-txt { display: inline; }
  .btn-pedido { padding: 8px 16px; }
  .btn-pedido__txt { display: inline; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
}

/* ---------- Portada ---------- */
:root { --escenario: calc(100vh - var(--alto-cabecera)); --recorrido: 250vh; }
/* El escenario mide la pantalla visible en cada momento (dvh): en celular, al deslizar se esconde la barra del
   navegador y la pantalla crece; con svh quedaba un hueco abajo. La pista usa svh para que su largo no cambie. */
@supports (height: 100svh) { :root { --escenario: calc(100svh - var(--alto-cabecera)); --escenario-pista: calc(100svh - var(--alto-cabecera)); } }
@supports (height: 100dvh) { :root { --escenario: calc(100dvh - var(--alto-cabecera)); } }
@media (min-width: 960px) { :root { --recorrido: 280vh; } }

.portada {
  position: relative; isolation: isolate;
  overflow-x: clip; /* clip y no hidden: hidden rompe el escenario fijo (sticky) */
  background: var(--mostaza); color: var(--tinta);
}
.portada::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--textura); opacity: .5; mix-blend-mode: multiply; }
.portada__in { display: grid; gap: 28px; padding-block: 32px 44px; }
.portada__texto { min-width: 0; }
.portada__logo { width: clamp(132px, 34vw, 200px); color: var(--tinta); }
.portada h1 {
  margin: 18px 0 14px;
  max-width: 12ch;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.5rem, 9vw, 4.6rem); line-height: 1; letter-spacing: -.005em;
}
.portada__lead { max-width: 36ch; margin: 0 0 24px; color: var(--tinta-2); font-size: clamp(1.06rem, 2.6vw, 1.22rem); }
.portada__acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.portada__acciones .btn--linea { font-variant-numeric: tabular-nums; }

/* Torta por capas */
.armar-pista { min-width: 0; }
.armar { display: flex; flex-direction: column; min-width: 0; }
.torta { display: block; width: 100%; max-width: 560px; height: auto; margin-inline: auto; overflow: hidden; }
.capa { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .16s linear, opacity .16s linear; }
.rot { opacity: 0; transition: opacity .35s ease; }
.rot.is-on { opacity: 1; }
.guia { fill: none; stroke: var(--tinta); stroke-width: 1.6; stroke-dasharray: 1 5; stroke-linecap: round; stroke-linejoin: round; }
.rotulo { fill: var(--tinta); font-family: var(--texto); font-size: var(--rot, 16px); font-weight: 650; }
.torta.rot-grande .rotulo { font-stretch: 88%; font-variation-settings: "wdth" 88; }
.rotulo--sub { font-size: .8em; font-weight: 500; fill: var(--tinta-2); }

.armar__cartel { display: none; margin: 0; text-align: center; }
.armar__cartel b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.1; }
.armar__cartel span { display: block; margin-top: 4px; color: var(--tinta-2); font-weight: 600; }
.armar__cartel.cambia b { animation: cartel .45s var(--curva); }
/* Nombre del ingrediente que va cayendo, en el espacio bajo la torta */
.armar__ingrediente { display: none; margin: 0; text-align: center; }
.armar__ingrediente b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.1; }
.armar__ingrediente.cambia b { animation: cartel .45s var(--curva); }
@keyframes cartel { from { opacity: 0; translate: 0 12px; } }

.armar__abajo { display: grid; }
.armar__abajo > * { grid-area: 1 / 1; min-width: 0; }
.armar__avance, .armar__saltar { display: none; }

.variantes { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.variantes legend { padding: 0; margin-bottom: 10px; font-weight: 800; font-size: 1.05rem; }
.variantes__opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.variante { position: relative; display: block; }
.variante input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.variante span {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  min-height: 50px; padding: 13px 14px; border-radius: 14px;
  box-shadow: inset 0 0 0 2px var(--tinta);
  transition: background-color .2s, color .2s;
}
.variante b { font-weight: 700; }
.variante i { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.variante:hover span { background: rgba(31, 31, 33, .08); }
.variante input:checked + span { background: var(--tinta); color: var(--mostaza); }
.variante input:focus-visible + span { outline: 3px solid var(--tinta); outline-offset: 3px; }
.armar__pie { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.armar__precio {
  font-weight: 900; font-stretch: 115%; font-variation-settings: "wdth" 115;
  font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums;
}
#armar-agregar { min-height: 54px; }
#armar-agregar.listo { background: #000; }

/* Escenario fijo: la torta se arma con el scroll y luego la página sigue.
   html.mov lo pone el <head> solo si hay JS, no se pidió movimiento reducido y la pantalla mide 520 px o más de alto. */
html.mov .portada__in { padding-bottom: 0; }
html.mov .armar-pista { height: calc(var(--escenario-pista, var(--escenario)) + var(--recorrido)); }
html.mov .armar { position: sticky; top: var(--alto-cabecera); height: var(--escenario); gap: 6px; padding-block: 14px 12px; }
html.mov .armar__cartel, html.mov .armar__ingrediente { display: block; }
html.mov .torta { flex: 1 1 0; min-height: 0; height: auto; transform-origin: 50% 0; }
/* Al terminar, las opciones aparecen encima de la parte de abajo y la torta se encoge hacia arriba para dejarles lugar
   (así, mientras se arma, la torta y el "Desliza" usan toda la pantalla, sin hueco abajo). --encoge lo calcula el JS. */
html.mov .torta.reveal {
  transition: opacity .7s var(--curva), transform .7s var(--curva), scale .5s var(--curva), translate .5s var(--curva);
  transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0s, 0s;
}
html.mov .armar.is-lista .torta { scale: var(--encoge, 1); translate: 0 var(--baja, 0px); }
html.mov .variantes { margin-top: 0; }
html.mov .armar__avance {
  display: grid; justify-items: center; align-content: start; gap: 8px; padding-top: 8px;
  transition: opacity .35s, visibility .35s;
}
html.mov .armar__final { position: absolute; left: 0; right: 0; bottom: 12px; opacity: 0; visibility: hidden; translate: 0 18px; transition: opacity .45s var(--curva), translate .45s var(--curva), visibility .45s; }
html.mov .armar.is-lista .armar__final { opacity: 1; visibility: visible; translate: 0 0; }
html.mov .armar.is-lista .armar__avance { opacity: 0; visibility: hidden; }
html.mov .armar__saltar {
  display: inline-flex; align-items: center; min-height: 44px; padding: 4px 12px;
  color: var(--tinta-2); font-weight: 700; font-size: .95rem; text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .rotulo { font-size: 21px; font-stretch: 88%; font-variation-settings: "wdth" 88; }
  .rotulo--sub { display: none; }
  html.mov .rotulos { display: none; }
}
@media (min-width: 960px) {
  /* la torta se lleva la columna más ancha */
  .portada__in { grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); align-items: center; gap: 48px; padding-block: 56px 72px; }
  .portada h1 { font-size: clamp(2.6rem, 4.4vw, 4.3rem); }
  .torta { max-width: none; }
  html.mov .portada__in { align-items: start; padding-block: 0; }
  html.mov .portada__texto {
    position: sticky; top: var(--alto-cabecera); min-height: var(--escenario);
    display: flex; flex-direction: column; justify-content: center; padding-block: 32px;
  }
  .variantes__opciones { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .variante span { flex-direction: column; gap: 2px; align-items: flex-start; }
}
/* Celulares angostos: "Con chorizo" y su precio en una sola línea */
@media (max-width: 380px) {
  .variante span { padding-inline: 11px; font-size: .94rem; gap: 6px; }
}
/* Pantallas bajas: botones más compactos para que la torta tenga espacio */
@media (max-height: 720px) {
  html.mov .armar__cartel b { font-size: 1.55rem; }
  html.mov .armar__cartel span { margin-top: 0; font-size: .92rem; }
  html.mov .armar__ingrediente b { font-size: 1.7rem; }
  html.mov .variantes legend { margin-bottom: 6px; font-size: 1rem; }
  html.mov .variante span { min-height: 42px; padding: 9px 12px; }
  html.mov .armar__pie { margin-top: 8px; }
  html.mov .armar__precio { font-size: 1.8rem; }
  html.mov #armar-agregar { min-height: 48px; }
}
@media (min-width: 960px) and (max-height: 800px) {
  .portada__logo { width: 120px; }
  .portada h1 { font-size: 3.7rem; }
}

/* ---------- Menú ---------- */
.menu { position: relative; isolation: isolate; padding-bottom: 80px; }
.menu::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--textura); pointer-events: none; }

.cats {
  position: sticky; top: var(--alto-cabecera); z-index: 40;
  background: rgba(31, 31, 33, .95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.cats__in { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.cats__in::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px;
  border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(250, 246, 238, .22);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.cats a:hover { box-shadow: inset 0 0 0 1.5px var(--gis); }
.cats a.is-activa { background: var(--mostaza); color: var(--tinta); box-shadow: none; }

.menu__grid { display: grid; gap: 48px; padding-top: 32px; }
.menu__platos { min-width: 0; }
.menu__ayuda { max-width: 52ch; margin: 0 0 32px; color: var(--gis-2); }
.menu__ayuda b { color: var(--gis); }

.seccion-menu + .seccion-menu { margin-top: 56px; }
.seccion-menu h2 {
  margin-bottom: 10px;
  font-family: var(--display); font-weight: 400; color: var(--mostaza);
  font-size: clamp(2.3rem, 7vw, 3.3rem); line-height: 1.05;
}
.seccion-menu__base { max-width: 56ch; margin: 0 0 18px; color: var(--gis-2); }

.platos { margin: 0; padding: 0; list-style: none; }
.plato {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px;
  padding: 18px 0;
  border-top: 1px dashed rgba(250, 246, 238, .18);
}
.plato:last-child { border-bottom: 1px dashed rgba(250, 246, 238, .18); }
.plato__fila { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.plato h3 {
  font-size: 1.22rem; font-weight: 750; line-height: 1.2;
  font-stretch: 108%; font-variation-settings: "wdth" 108;
}
.plato__guia { flex: 1; min-width: 20px; border-bottom: 2px dotted rgba(250, 246, 238, .28); transform: translateY(-5px); }
.plato__precio {
  color: var(--mostaza); font-weight: 900; font-size: 1.4rem; line-height: 1;
  font-stretch: 112%; font-variation-settings: "wdth" 112; font-variant-numeric: tabular-nums;
}
.plato__det { margin: 0; color: var(--gis-2); }
.plato.en-pedido h3 { color: var(--mostaza); }

.plato--especial {
  margin-top: 14px; padding: 18px; border: 2px solid var(--mostaza); border-radius: 18px;
  background: rgba(255, 178, 35, .07);
}
.plato--especial + .plato, .plato--especial:last-child { border-bottom: 0; }
.plato--especial h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; font-stretch: 100%; font-variation-settings: normal; color: var(--mostaza); }

/* Cantidad: en 0 solo se ve "Agregar"; con 1 o más, el − y el número */
.cant { display: inline-flex; align-items: center; gap: 4px; justify-self: end; }
.cant__btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--mostaza); color: var(--tinta);
  transition: background-color .2s, transform .15s;
}
.cant__btn:hover { background: #FFC24F; }
.cant__btn:active { transform: scale(.94); }
.cant__btn svg { width: 20px; height: 20px; }
.cant__menos { background: rgba(250, 246, 238, .12); color: var(--gis); }
.cant__menos:hover { background: rgba(250, 246, 238, .2); }
.cant__n { min-width: 30px; text-align: center; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.cant:not(.tiene) .cant__menos, .cant:not(.tiene) .cant__n { display: none; }
.cant:not(.tiene) .cant__mas { display: inline-flex; align-items: center; gap: 6px; width: auto; padding: 0 18px 0 13px; font-weight: 700; }
.cant.tiene .cant__txt { display: none; }

/* Comanda (el pedido) */
.pedido { min-width: 0; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .45)); }
.pedido__ticket {
  --diente: 16px;
  position: relative;
  padding: 28px 22px calc(28px + var(--diente) / 2);
  border-radius: 10px 10px 0 0;
  background: var(--papel); color: var(--tinta);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--diente) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--diente) 100%;
}
.pedido__cabeza { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding-bottom: 14px; border-bottom: 2px solid var(--tinta); }
.pedido__cabeza h2 { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.pedido__tel {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 800; font-variant-numeric: tabular-nums; text-decoration: none;
}
.pedido__tel svg { width: 20px; height: 20px; }
.pedido__tel:hover { text-decoration: underline; }
.pedido__vacio { margin: 16px 0 20px; color: var(--gris-papel); }
.pedido__lista { margin: 4px 0 0; padding: 0; list-style: none; }
.linea {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px;
  padding: 12px 0; border-bottom: 1px dashed rgba(31, 31, 33, .22);
}
.linea__nombre { font-weight: 700; line-height: 1.3; }
.linea__sub { font-weight: 800; font-variant-numeric: tabular-nums; }
.linea .cant { justify-self: start; }
.linea .cant__btn { width: 44px; height: 44px; }
.linea .cant__menos { background: rgba(31, 31, 33, .08); color: var(--tinta); }
.linea .cant__menos:hover { background: rgba(31, 31, 33, .14); }
.pedido__total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 2px 0 22px; padding-top: 12px; border-top: 2px solid var(--tinta);
  font-weight: 800;
}
.pedido__total strong { font-weight: 900; font-size: 1.7rem; font-stretch: 112%; font-variation-settings: "wdth" 112; font-variant-numeric: tabular-nums; }

.campo { display: block; min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.campo > label, .campo legend { display: block; margin-bottom: 8px; padding: 0; font-weight: 700; }
.campo small { font-weight: 500; color: var(--gris-papel); font-size: .9em; }
.campo input, .campo textarea {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid #CEC6B6; border-radius: 12px; background: #fff; color: var(--tinta);
  font-size: 16px; line-height: 1.35;
  transition: border-color .2s, box-shadow .2s;
}
.campo textarea { resize: vertical; min-height: 76px; }
.campo input::placeholder, .campo textarea::placeholder { color: #77716A; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(255, 178, 35, .7); }
.campo [aria-invalid="true"] { border-color: var(--error); }
.opciones { display: grid; gap: 8px; }
.opciones label { position: relative; display: block; }
.opciones input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opciones span {
  display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 14px;
  border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px #CEC6B6;
  font-weight: 600; transition: background-color .2s, box-shadow .2s;
}
.opciones span::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--tinta); background: #fff; transition: box-shadow .2s;
}
.opciones label:hover span { box-shadow: inset 0 0 0 1.5px var(--tinta); }
.opciones input:checked + span { background: #FFF1D2; box-shadow: inset 0 0 0 2px var(--tinta); }
.opciones input:checked + span::before { box-shadow: inset 0 0 0 5px var(--tinta); background: var(--mostaza); }
.opciones input:focus-visible + span { outline: 3px solid var(--tinta); outline-offset: 2px; }
.campo--invalido .opciones span { box-shadow: inset 0 0 0 1.5px var(--error); }
.campo__error { margin: 8px 0 0; color: var(--error); font-size: .93rem; font-weight: 600; }
#err-items { margin: 0 0 12px; }
.btn--wa { width: 100%; min-height: 58px; background: var(--tinta); color: var(--mostaza); font-size: 1.06rem; }
.btn--wa:hover { background: #000; }
.btn--wa svg { width: 24px; height: 24px; }
.pedido__nota { margin: 12px 0 0; color: var(--gris-papel); font-size: .92rem; text-align: center; }

@media (min-width: 1000px) {
  .menu__grid { grid-template-columns: minmax(0, 1fr) 390px; gap: 64px; align-items: start; padding-top: 44px; }
  .pedido { position: sticky; top: calc(var(--alto-cabecera) + 76px); }
  .pedido__ticket { padding-inline: 26px; max-height: calc(100vh - var(--alto-cabecera) - 100px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (min-width: 700px) {
  .plato:not(.plato--especial) { padding: 20px 0; }
  .plato--especial { padding: 20px 22px; }
}

/* ---------- Sucursales ---------- */
.sucursales { position: relative; isolation: isolate; background: var(--mostaza); color: var(--tinta); padding-block: 64px 72px; }
.sucursales::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--textura); opacity: .5; mix-blend-mode: multiply; }
.sucursales h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 7vw, 3.4rem); line-height: 1.05; }
.sucursales__lead { margin: 8px 0 28px; color: var(--tinta-2); font-size: 1.1rem; }
.sucs { display: grid; gap: 16px; }
.suc { min-width: 0; padding: 26px 22px; border-radius: 22px; background: var(--pizarra); color: var(--gis); }
.suc h3 { margin-bottom: 14px; font-family: var(--display); font-weight: 400; color: var(--mostaza); font-size: clamp(1.7rem, 5vw, 2.1rem); line-height: 1.1; }
.suc__dir { display: flex; gap: 10px; margin: 0 0 10px; color: var(--gis-2); }
.suc__dir svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--mostaza); }
.suc__acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.suc__acciones .btn--mostaza { font-variant-numeric: tabular-nums; }
.mapa { margin-top: 16px; border-radius: 22px; overflow: hidden; background: var(--pizarra); box-shadow: 0 0 0 3px var(--tinta); }
.mapa iframe { display: block; width: 100%; height: 320px; border: 0; }
@media (min-width: 800px) {
  .sucs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suc { padding: 30px; }
}

/* ---------- Pie ---------- */
.pie { padding-block: 48px 40px; }
.pie__in { display: grid; gap: 24px; justify-items: start; }
.pie__logo { width: 96px; color: var(--gis); }
.pie__datos { display: grid; gap: 10px; }
.pie__datos > a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 600; }
.pie__datos > a:hover { color: var(--mostaza); }
.pie__datos svg { width: 22px; height: 22px; flex: none; }
.pie__wa { color: var(--mostaza); font-weight: 800 !important; font-variant-numeric: tabular-nums; }
.pie__redes { display: flex; align-items: center; gap: 6px; color: var(--gis-2); }
.pie__redes a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(250, 246, 238, .25); }
.pie__redes a:hover { box-shadow: inset 0 0 0 1.5px var(--mostaza); color: var(--mostaza); }
.pie__redes span { margin-left: 6px; }
.pie__legal { margin: 0; color: var(--gis-2); font-size: .9rem; }
@media (min-width: 800px) {
  .pie__in { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 40px; }
  .pie__legal { text-align: right; }
}

/* ---------- Barra flotante y aviso ---------- */
.barra {
  position: fixed; z-index: 60; left: 50%; bottom: 16px; translate: -50% 0;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: var(--tinta); color: var(--gis);
  box-shadow: 0 0 0 2px var(--mostaza), 0 20px 44px -12px rgba(0, 0, 0, .7);
  transition: opacity .3s, translate .35s var(--curva), visibility .3s;
}
.barra[hidden] { display: flex !important; opacity: 0; visibility: hidden; pointer-events: none; translate: -50% 28px; }
.barra__n { white-space: nowrap; }
.barra__n b { color: var(--mostaza); font-size: 1.1rem; }
.barra__total { font-weight: 900; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.barra .btn { min-height: 46px; padding-inline: 18px; }
@media (max-width: 600px) {
  .barra { left: 12px; right: 12px; translate: 0 0; justify-content: space-between; gap: 10px; }
  .barra[hidden] { translate: 0 28px; }
  body.con-barra .pie { padding-bottom: 110px; }
}

.aviso {
  position: fixed; z-index: 70; left: 50%; top: calc(var(--alto-cabecera) + 12px);
  max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px;
  background: var(--tinta); color: var(--gis); box-shadow: 0 0 0 2px var(--mostaza), 0 14px 30px -10px rgba(0, 0, 0, .6);
  font-weight: 600; text-align: center;
  opacity: 0; translate: -50% -10px; pointer-events: none;
  transition: opacity .25s, translate .3s var(--curva);
}
.aviso.is-visible { opacity: 1; translate: -50% 0; }

/* ---------- Entradas animadas ---------- */
html.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--curva), transform .7s var(--curva);
  transition-delay: calc(var(--i, 0) * 80ms);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .capa, .barra, .aviso, .btn, .cant__btn { transition: none; }
  .insignia.salta, .armar__cartel.cambia b, .armar__ingrediente.cambia b { animation: none; }
}
