/* Las Alitas Gourmet · carta v2 (/2)
   Una carta para pedir, no una portada: arriba el estado del local, las secciones fijas y los
   platos con foto desde la primera pantalla. Del restaurante salen solo cuatro cosas: el negro
   de su pizarra, el mostaza y el vino del logo, la letra condensada de sus afiches y la comanda
   de papel térmico, que es el único gesto propio. Todo lo demás es lo que la gente ya sabe usar. */

:root {
  --carbon: #121514;
  --carbon-2: #181C1A;
  --grafito: #1E2321;
  --grafito-2: #272D2A;
  --linea: rgba(243, 241, 234, .10);
  --borde: rgba(243, 241, 234, .24);
  --tiza: #F3F1EA;
  --tiza-2: #B3B9B3;
  --mostaza: #FFC53A;
  --mostaza-2: #FFD466;
  --tinta-mostaza: #231806;
  --vino: #9B1D2D;
  --abierto: #8FD27E;

  --papel: #F7F5EE;
  --tinta-papel: #22211E;
  --tinta-papel-2: #5E5A50;
  --corte: #BDB7A8;

  --f-texto: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Courier Prime', 'Courier New', monospace;

  --gutter: clamp(14px, 4vw, 40px);
  --ancho: 1240px;
  --r1: 10px; --r2: 14px; --r3: 20px; --rp: 999px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --chips: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--chips) + 8px); background: var(--carbon); }
body {
  margin: 0; min-height: 100vh; background: var(--carbon); color: var(--tiza);
  font: 400 1rem/1.5 var(--f-texto); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--mostaza); color: var(--tinta-mostaza); }
:focus-visible { outline: 3px solid var(--mostaza); outline-offset: 3px; border-radius: 8px; }
input, textarea { caret-color: var(--mostaza); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--mostaza); color: var(--tinta-mostaza); padding: 10px 16px; border-radius: var(--rp); font-weight: 700; }
.saltar:focus { top: 12px; }
[hidden] { display: none !important; }
html { scrollbar-color: #3a413d var(--carbon); }

/* ---------- botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border: 0; border-radius: var(--rp); cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 800 1rem/1 var(--f-texto); font-stretch: 82%; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .14s var(--ease), background-color .18s var(--ease);
}
.boton svg { width: 20px; height: 20px; }
.boton-principal { background: var(--mostaza); color: var(--tinta-mostaza); }
.boton-principal:active { transform: scale(.98); }
.boton-principal:disabled { background: #5d5949; color: #23221d; cursor: not-allowed; }
.boton-wa { background: #25D366; color: #0b2a16; }
.boton-ancho { width: 100%; }
.boton-texto { background: none; border: 0; padding: 12px 4px; min-height: 44px; color: var(--tiza); font-weight: 600; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .boton-principal:not(:disabled):hover { background: var(--mostaza-2); }
  .boton-texto:hover { color: var(--mostaza); }
}

/* ---------- arriba: marca y estado ---------- */
.tope { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--ancho); margin: 0 auto; padding: 12px var(--gutter) 0; }
.tope-marca { display: block; flex: 0 0 auto; }
.tope-marca img { height: 52px; width: auto; }
/* El reloj de la cocina: el anillo es lo que queda del turno de hoy y se va vaciando; el punto late
   mientras se reciben pedidos. Verde abierto, mostaza en la última hora, gris cerrado. */
.reloj {
  --tono: #8E958F;
  display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 6px 16px 6px 6px;
  border-radius: var(--rp); background: var(--grafito); box-shadow: inset 0 0 0 1px var(--linea);
}
.reloj.abierto { --tono: var(--abierto); }
.reloj.ultimos { --tono: var(--mostaza); }
.reloj-aro { flex: 0 0 auto; width: 38px; height: 38px; transform: rotate(-90deg); }
.reloj-pista { fill: none; stroke: rgba(243, 241, 234, .12); stroke-width: 3.2; }
.reloj-arco { fill: none; stroke: var(--tono); stroke-width: 3.2; stroke-linecap: round; transition: stroke-dasharray .8s var(--ease); }
.reloj.cerrado .reloj-arco { stroke-width: 0; }
.reloj-punto { fill: var(--tono); transform-origin: 18px 18px; }
.reloj.abierto .reloj-punto, .reloj.ultimos .reloj-punto { animation: latido 2.4s ease-in-out infinite; }
@keyframes latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(.62); opacity: .55; } }
.reloj-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; line-height: 1.1; }
.reloj-etiqueta { color: var(--tono); font-size: .75rem; font-weight: 800; font-stretch: 80%; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.reloj.cerrado .reloj-etiqueta { color: var(--tiza-2); }
.reloj-linea { color: var(--tiza); font-size: .92rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.intro { max-width: var(--ancho); margin: 0 auto; padding: 14px var(--gutter) 4px; }
.intro-titulo {
  margin: 0; font-weight: 900; font-stretch: 66%; text-transform: uppercase; letter-spacing: .005em;
  font-size: clamp(2.15rem, 1.6rem + 2.6vw, 3.6rem); line-height: .95; text-wrap: balance;
}
.intro-titulo em { font-style: normal; color: var(--mostaza); }
.intro-texto { margin: 8px 0 0; max-width: 52ch; color: var(--tiza-2); font-size: .98rem; line-height: 1.45; text-wrap: pretty; }
.promo { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 14px 0 0; padding: 11px 14px; border-radius: var(--r2); background: var(--vino); color: #fff; font-size: .95rem; line-height: 1.3; }
.promo b { font-weight: 900; font-stretch: 72%; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; }

/* ---------- secciones fijas ---------- */
.chips { position: sticky; top: 0; z-index: 20; margin-top: 12px; background: var(--carbon); box-shadow: 0 1px 0 var(--linea); }
.chips-fila {
  display: flex; gap: 8px; max-width: var(--ancho); margin: 0 auto; padding: 10px var(--gutter);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding-inline: var(--gutter);
}
.chips-fila::-webkit-scrollbar { display: none; }
.chips a {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--rp);
  background: var(--grafito); color: var(--tiza-2); text-decoration: none; white-space: nowrap;
  font-weight: 800; font-stretch: 80%; letter-spacing: .05em; text-transform: uppercase; font-size: .84rem;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.chips a.activa { background: var(--mostaza); color: var(--tinta-mostaza); }
@media (hover: hover) and (pointer: fine) { .chips a:not(.activa):hover { background: var(--grafito-2); color: var(--tiza); } }

/* ---------- la carta ---------- */
.marco { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }
.seccion { padding-top: 26px; }
.sec-titulo {
  margin: 0; color: var(--mostaza); font-weight: 900; font-stretch: 66%; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(1.9rem, 1.55rem + 1.5vw, 2.6rem); line-height: 1;
}
.cat { padding-top: 14px; }
.cat + .cat { padding-top: 26px; }
.cat-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; }
.cat-titulo { margin: 0; font-weight: 800; font-stretch: 74%; text-transform: uppercase; letter-spacing: .04em; font-size: 1.2rem; line-height: 1.1; }
.cat-promo { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: var(--rp); border: 1px solid rgba(214, 70, 85, .7); color: #FFB3BC; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cat-promo.hoy { background: var(--vino); border-color: var(--vino); color: #fff; }
.cat-nota { flex-basis: 100%; margin: 0; color: var(--tiza-2); font-size: .9rem; line-height: 1.45; max-width: 64ch; text-wrap: pretty; }
.cat-adicional { margin: 12px 0 0; color: var(--tiza-2); font-size: .88rem; }
.cat-adicional b { color: var(--tiza); font-weight: 700; font-variant-numeric: tabular-nums; }

.rejilla { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rejilla > li { display: flex; }

/* la tarjeta: la foto manda, el precio y el «+» siempre a la misma altura */
.pl {
  position: relative; display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; border-radius: var(--r3);
  background: var(--grafito); color: inherit; text-align: left; cursor: pointer; overflow: hidden;
  transition: transform .16s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.pl:active { transform: scale(.98); }
.pl-foto { position: relative; display: block; aspect-ratio: 1; background: #0C0E0D; overflow: hidden; }
.pl-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.pl-sin-foto { display: block; width: 100%; height: 100%; background: radial-gradient(70% 70% at 50% 45%, #232826, #0f1211); }
.pl-badge { position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 6px; background: rgba(18, 21, 20, .86); color: var(--tiza); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pl-badge.caliente { background: var(--vino); color: #fff; }
.pl-agotado { position: absolute; inset: auto 10px 10px 10px; padding: 6px 10px; border-radius: 8px; background: rgba(12, 14, 13, .88); text-align: center; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pl-cant {
  position: absolute; right: 10px; top: 10px; min-width: 32px; height: 32px; padding: 0 9px; border-radius: var(--rp);
  display: none; place-items: center; background: var(--mostaza); color: var(--tinta-mostaza); font-weight: 900; font-size: .95rem;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .7);
}
.pl-info { display: flex; flex-direction: column; flex: 1 1 auto; gap: 4px; padding: 11px 12px 12px 13px; }
.pl-nombre { font-weight: 800; font-stretch: 78%; text-transform: uppercase; letter-spacing: .03em; font-size: 1.02rem; line-height: 1.15; text-wrap: balance; }
.pl-meta { color: var(--tiza-2); font-size: .84rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-pie { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.pl-precio { display: flex; flex-direction: column; font-weight: 800; font-stretch: 88%; font-size: 1.1rem; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-precio small { color: var(--tiza-2); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pl-precio s { color: var(--tiza-2); font-weight: 500; font-size: .8rem; }
.pl-mas {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mostaza); color: var(--tinta-mostaza); transition: transform .14s var(--ease), background-color .16s var(--ease);
}
.pl-mas svg { width: 20px; height: 20px; }
.plato.en-pedido { box-shadow: inset 0 0 0 2px var(--mostaza); }
.plato.en-pedido .pl-cant { display: grid; }
.plato:active .pl-mas { transform: scale(.9); }
.plato.agotado { cursor: not-allowed; }
.plato.agotado img { filter: grayscale(1) brightness(.6); }
.plato.agotado .pl-nombre, .plato.agotado .pl-precio { opacity: .55; }
.plato.agotado .pl-mas { background: #3b413e; color: #7f8681; }
@media (hover: hover) and (pointer: fine) {
  .pl:not(.agotado):hover { background: var(--grafito-2); }
  .pl:not(.agotado):hover .pl-foto img { transform: scale(1.04); }
  .plato:not(.agotado):hover .pl-mas { background: var(--mostaza-2); }
}

/* bebidas: filas compactas */
.filas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.fl {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 40px; align-items: center; gap: 12px; width: 100%;
  padding: 8px 10px 8px 8px; border: 0; border-radius: var(--r2); background: var(--grafito); color: inherit; text-align: left; cursor: pointer;
  transition: background-color .18s var(--ease), transform .14s var(--ease), box-shadow .18s var(--ease);
}
.fl:active { transform: scale(.985); }
.fl-foto { position: relative; width: 64px; height: 64px; border-radius: var(--r1); overflow: hidden; background: #0C0E0D; }
.fl-foto img { width: 100%; height: 100%; object-fit: cover; }
.fl .pl-cant { top: 4px; right: 4px; min-width: 24px; height: 24px; padding: 0 6px; font-size: .8rem; }
.fl-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fl .pl-nombre { font-size: .98rem; }
.fl .pl-meta { -webkit-line-clamp: 2; font-size: .82rem; }
.fl .pl-precio { font-size: 1rem; }
.fl-badge { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 1px 7px; border-radius: 6px; background: var(--vino); color: #fff; font-size: .76rem; letter-spacing: .05em; }
.fl-agotado { color: #FFB3BC; }
@media (hover: hover) and (pointer: fine) { .fl:not(.agotado):hover { background: var(--grafito-2); } }

/* las 17 salsas, a un toque */
.salsas-ver { margin-top: 14px; border-radius: var(--r2); background: var(--carbon-2); border: 1px solid var(--linea); }
.sx-boton {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 0 16px; border: 0; background: none; cursor: pointer; text-align: left;
  font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: .05em; font-size: .9rem;
}
.sx-boton svg { width: 18px; height: 18px; transform: rotate(90deg); transition: transform .2s var(--ease); }
.sx-boton[aria-expanded="true"] svg { transform: rotate(-90deg); }
.sx { display: grid; gap: 14px; padding: 0 16px 16px; }
.sx-titulo { margin: 0 0 8px; color: var(--tiza-2); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sx ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sx li { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 4px 12px 4px 9px; border-radius: var(--rp); background: var(--grafito); font-size: .9rem; font-weight: 600; }
.sx li i { width: 13px; height: 13px; border-radius: 50%; background: var(--salsa); box-shadow: 0 0 0 1.5px rgba(243, 241, 234, .5); }
.sx li.agotada { opacity: .45; }
.sx li small { color: var(--tiza-2); font-weight: 500; }
.sx-aji { display: inline-flex; gap: 1px; }
.sx-aji svg { width: 14px; height: 14px; }

/* ---------- pie ---------- */
.pie { margin-top: 48px; padding: 30px var(--gutter) calc(112px + env(safe-area-inset-bottom)); background: var(--carbon-2); border-top: 1px solid var(--linea); color: var(--tiza-2); font-size: .92rem; }
.pie-rejilla { display: grid; gap: 26px; max-width: var(--ancho); margin: 0 auto; }
.pie h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--tiza); font-weight: 800; font-stretch: 80%; letter-spacing: .07em; text-transform: uppercase; font-size: .92rem; }
.pie h2 svg { width: 19px; height: 19px; color: var(--mostaza); }
.pie-sedes { list-style: none; margin: 0; padding: 0; }
.pie-sedes li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 6px 0; border-bottom: 1px solid var(--linea); }
.pie-sedes b { color: var(--tiza); font-weight: 700; }
.pie-sedes a, .pie-tels a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mostaza); font-weight: 700; }
.pie-horario { margin: 0; }
.hora-fila { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.hora-fila dd { margin: 0; color: var(--tiza); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.hora-fila.hoy dt { color: var(--tiza); }
.hora-fila.hoy dt::after { content: " · hoy"; color: var(--mostaza); font-weight: 700; }
.pie-tels { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0; }
.pie-tels a { font-size: 1.12rem; font-variant-numeric: tabular-nums; text-decoration: none; color: var(--tiza); }
.pie-redes { display: flex; gap: 6px; margin: 6px 0 0 -10px; }
.pie-redes a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--tiza-2); }
.pie-redes svg { width: 22px; height: 22px; }

/* ---------- aviso ---------- */
.aviso {
  position: fixed; z-index: 40; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(94vw, 560px); display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-radius: var(--r2);
  background: #F3F2EC; color: #1B1F1D; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .7); animation: entrar .26s var(--ease);
}
.aviso p { margin: 0; flex: 1; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.aviso button { flex: 0 0 auto; min-height: 44px; border: 0; border-radius: var(--rp); padding: 10px 16px; background: #1B1F1D; color: #F3F2EC; font-weight: 700; cursor: pointer; }
@keyframes entrar { from { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- hojas (diálogos) ---------- */
dialog.hoja { padding: 0; border: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; color: var(--tiza); overflow: hidden; }
dialog.hoja::backdrop { background: rgba(8, 10, 9, .7); }
.hoja-caja {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92svh; display: flex; flex-direction: column; margin: 0;
  background: var(--grafito); border-radius: var(--r3) var(--r3) 0 0; box-shadow: 0 -24px 60px rgba(0, 0, 0, .55); overflow: hidden;
  animation: subir .28s var(--ease);
}
@keyframes subir { from { transform: translateY(40px); opacity: 0; } }
.hoja-cab { display: flex; align-items: center; gap: 8px; padding: 14px 14px 6px 20px; }
.hoja-cat { margin: 0; color: var(--mostaza); font-weight: 800; font-stretch: 80%; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; }
.hoja-titulo { margin: 0; flex: 1; font-weight: 900; font-stretch: 72%; letter-spacing: .02em; text-transform: uppercase; font-size: 1.35rem; line-height: 1.1; }
.hoja-cerrar, .hoja-atras { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(243, 241, 234, .09); display: grid; place-items: center; cursor: pointer; }
.hoja-cerrar svg, .hoja-atras svg { width: 22px; height: 22px; }
.hoja-cuerpo { overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 20px; flex: 1 1 auto; }
.hoja-pie { display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: var(--grafito); }
.hoja-pie-pedido { flex-wrap: wrap; }
/* 14-oct: a 320 px «AGREGAR · $114.000» no cabía al lado del contador y se salía de la pantalla.
   El botón se encoge y, si el precio no cabe en una línea, lo baja a la segunda. */
.hoja-pie .boton-ancho { flex: 1 1 0; min-width: 0; padding: 0 14px; white-space: normal; text-align: center; line-height: 1.15; }
.hoja-error { margin: 12px 0 0; color: #FF9A8A; font-weight: 600; font-size: .95rem; }
.hoja-error:empty { display: none; }

/* la hoja del plato abre con su foto */
.hoja-con-foto .hoja-cerrar { position: absolute; z-index: 3; top: 12px; right: 12px; background: rgba(12, 14, 13, .72); color: #fff; }
.hp-foto { margin: -4px -20px 14px; aspect-ratio: 16 / 10; background: #0C0E0D; overflow: hidden; }
.hp-foto:empty { display: none; }
.hp-foto img { width: 100%; height: 100%; object-fit: cover; }
.hp-nombre { margin: 4px 0 0; font-weight: 900; font-stretch: 70%; text-transform: uppercase; letter-spacing: .02em; font-size: 1.9rem; line-height: 1; }
.hp-desc { margin: 8px 0 0; color: var(--tiza-2); font-size: .96rem; line-height: 1.5; }
.opcion { margin-top: 22px; border: 0; padding: 0; min-width: 0; }
.opcion-titulo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; margin: 0 0 10px; padding: 0; font-weight: 800; font-stretch: 80%; letter-spacing: .08em; text-transform: uppercase; font-size: .88rem; }
.opcion-titulo small { color: var(--tiza-2); font-weight: 600; letter-spacing: .02em; text-transform: none; font-size: .86rem; font-stretch: 100%; }
.opcion-titulo small.lleno { color: var(--mostaza); }
.pastillas { display: flex; flex-wrap: wrap; gap: 8px; }
.pastillas label { position: relative; }
.pastillas input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pastillas span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: var(--rp);
  background: var(--grafito-2); border: 1.5px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1.2;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.pastillas input:checked + span { background: var(--tiza); color: var(--carbon); }
.pastillas input:focus-visible + span { outline: 3px solid var(--mostaza); outline-offset: 2px; }
.pastillas input:disabled + span { opacity: .35; }
.pastillas .punto-salsa { width: 12px; height: 12px; border-radius: 50%; background: var(--salsa); box-shadow: 0 0 0 1.5px rgba(243, 241, 234, .55); }
.pastillas small { font-weight: 700; font-variant-numeric: tabular-nums; opacity: .8; }
.familia-mini { margin: 12px 0 8px; color: var(--tiza-2); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.extra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.extra b { font-weight: 600; }
.extra small { display: block; color: var(--tiza-2); font-variant-numeric: tabular-nums; }
.contador { display: inline-flex; align-items: center; border-radius: var(--rp); background: var(--grafito-2); flex: 0 0 auto; }
.contador button { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.contador button svg { width: 18px; height: 18px; }
.contador button:disabled { opacity: .3; cursor: default; }
.contador output { min-width: 26px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.contador.chico button { width: 40px; height: 40px; }
.campo { display: block; margin-top: 16px; border: 0; padding: 0; min-width: 0; }
.campo > span, .campo > label, .campo > legend { display: block; margin-bottom: 7px; padding: 0; color: var(--tiza-2); font-weight: 800; font-stretch: 85%; letter-spacing: .07em; text-transform: uppercase; font-size: .8rem; }
.campo i { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; opacity: .85; }
.campo input, .campo textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r2); border: 1.5px solid rgba(243, 241, 234, .2); background: var(--carbon);
  font-size: 1rem; line-height: 1.35; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.campo textarea { resize: vertical; min-height: 52px; }
.campo input::placeholder, .campo textarea::placeholder { color: #7d8580; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--mostaza); box-shadow: 0 0 0 3px rgba(255, 197, 58, .22); }
.campo input.mal { border-color: #FF8A78; }
.campo-nota { margin-top: 22px; }
.nota-campo { margin: 6px 2px 0; color: var(--tiza-2); font-size: .88rem; }
.nota-campo b { color: var(--mostaza); }
.campo-barrio { position: relative; }
.sugerencias { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% - 24px); margin: 0; padding: 4px; list-style: none; max-height: 232px; overflow-y: auto; border-radius: var(--r2); background: #0F1211; border: 1.5px solid var(--borde); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8); }
.sugerencias li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 8px; cursor: pointer; }
.sugerencias li b { color: var(--mostaza); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sugerencias li[aria-selected="true"], .sugerencias li:hover { background: rgba(243, 241, 234, .1); }
.entrega { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 4px; margin: 8px 0 0; border: 0; border-radius: var(--rp); background: var(--carbon); }
.entrega label { position: relative; }
.entrega input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.entrega span { display: block; text-align: center; padding: 12px 6px; border-radius: var(--rp); font-weight: 800; font-stretch: 82%; letter-spacing: .06em; text-transform: uppercase; font-size: .92rem; color: var(--tiza-2); }
.entrega input:checked + span { background: var(--mostaza); color: var(--tinta-mostaza); }
.entrega input:focus-visible + span { outline: 3px solid var(--mostaza); outline-offset: 2px; }
.cerrado-aviso { margin: 8px 0; padding: 12px 14px; border-radius: var(--r2); background: rgba(155, 29, 45, .35); border: 1px solid rgba(214, 70, 85, .5); font-size: .93rem; line-height: 1.45; }
.lineas { list-style: none; margin: 0; padding: 0; }
.linea { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.linea-nombre { margin: 0; font-weight: 800; line-height: 1.2; }
.linea-detalle { margin: 3px 0 0; font-size: .88rem; line-height: 1.4; }
.linea-precio { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.linea-acciones { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.linea-quitar { min-height: 40px; border: 0; background: none; text-decoration: underline; text-underline-offset: .2em; font-size: .88rem; cursor: pointer; padding: 8px 0; }
.vacio { text-align: center; padding: 40px 16px; }
.totales { width: 100%; margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .95rem; }
.totales dt { color: var(--tiza-2); }
.totales dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.totales .gran { color: var(--tiza); font-weight: 800; font-size: 1.12rem; }
.totales dd.gran { color: var(--mostaza); }
.hoja-pie-pedido[data-en-paso="1"] .totales { display: none; }
.sugeridos { list-style: none; margin: 0; padding: 0; }
.sugeridos li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.sugeridos img { flex: 0 0 auto; width: 56px; height: 56px; border-radius: var(--r1); object-fit: cover; }
.sugeridos div { flex: 1; min-width: 0; }
.sugeridos b { display: block; font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: .03em; }
.sugeridos small { color: var(--mostaza); font-weight: 700; font-variant-numeric: tabular-nums; }
.sugeridos button { min-height: 44px; border: 0; background: var(--grafito-2); border-radius: var(--rp); padding: 10px 16px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.sugeridos button.hecho { background: var(--tiza); color: var(--carbon); }
.listo { align-items: center; text-align: center; padding: 26px 22px calc(24px + env(safe-area-inset-bottom)); gap: 8px; }
.listo .hoja-titulo { flex: 0 0 auto; }
/* WhatsApp 3D de Iconly (gratis) que salta al abrir el «listo» */
.listo-3d { width: 96px; height: 96px; margin: -4px auto 2px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); animation: listo-salta .6s cubic-bezier(.34, 1.56, .5, 1) both; }
@keyframes listo-salta { from { transform: scale(.4) rotate(-14deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .listo-3d { animation: none; } }
.listo p { margin: 0; color: var(--tiza-2); max-width: 36ch; }
.listo .hp-foto { width: calc(100% + 44px); margin: -26px -22px 12px; }
.listo-ref { font-size: 1.05rem; }
.listo-ref b { color: var(--mostaza); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.listo-aviso { color: var(--mostaza) !important; font-weight: 600; }
.listo .boton { margin-top: 14px; }
.dia-precio { color: var(--mostaza) !important; font-weight: 900; font-stretch: 85%; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.hoja-chica .hoja-caja { max-height: 88svh; }

/* ---------- la comanda (ticket de papel térmico) ----------
   Celular: tira de papel fija abajo. Computador: prendida con tachuela en el riel derecho.
   Cada plato vuela con su foto hasta el ticket y se imprime como línea nueva. */
.riel { display: contents; }
.comanda {
  position: fixed; z-index: 26; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: block; padding: 0; margin: 0; border: 0; background: none; text-align: left; color: var(--tinta-papel); cursor: pointer;
}
.comanda.vacia { display: none; }
.comanda.entra { animation: salePapel .5s var(--ease) both; }
.comanda.sacude { animation: avancePapel .36s var(--ease); }
@keyframes salePapel { from { transform: translateY(115%); } }
@keyframes avancePapel { 0% { transform: translateY(7px); } 60% { transform: translateY(-2px); } 100% { transform: none; } }
.cm-papel {
  position: relative; display: block; font-family: var(--f-mono); background-color: var(--papel);
  background-image: repeating-linear-gradient(0deg, rgba(34, 33, 30, .022) 0 1px, transparent 1px 3px);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 255, 255, .6) inset;
}
.cm-papel::before {
  content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px;
  background: linear-gradient(to top right, var(--papel) 50%, transparent 50%) 0 0 / 14px 10px repeat-x,
              linear-gradient(to top left, var(--papel) 50%, transparent 50%) 0 0 / 14px 10px repeat-x;
}
.cm-cab, .cm-lineas, .cm-total, .cm-ver, .cm-vacia { display: none; }
.cm-tira { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 18px 10px 12px; }
.cm-cuenta { flex: 0 0 auto; min-width: 40px; height: 40px; padding: 0 8px; border-radius: var(--rp); display: grid; place-items: center; background: var(--tinta-papel); color: var(--papel); font: 800 1rem/1 var(--f-texto); }
.cm-tira-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cm-tira-txt b { font: 800 .92rem/1.1 var(--f-texto); font-stretch: 82%; letter-spacing: .08em; text-transform: uppercase; }
.cm-tira-txt small { font-size: .8rem; color: var(--tinta-papel-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-tira-total { font-weight: 700; font-size: 1.08rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.comanda:focus-visible { outline: 3px solid var(--mostaza); outline-offset: 6px; }
.cm-linea { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 8px; padding: 6px 0; font-size: .86rem; line-height: 1.3; border-bottom: 1px dotted #CEC8B8; }
.cm-linea:last-child { border-bottom: 0; }
.cm-linea .q, .cm-linea .n, .cm-linea .p { font-weight: 700; }
.cm-linea .n { text-transform: uppercase; }
.cm-linea .p { font-variant-numeric: tabular-nums; }
.cm-linea .d { grid-column: 2 / -1; color: var(--tinta-papel-2); font-size: .78rem; }
.cm-linea.pendiente { opacity: 0; }
.cm-linea.imprimiendo { animation: imprimeLinea .6s steps(6, end) both; }
.cm-linea.resalta .n { background: linear-gradient(transparent 58%, #FFE27A 58%); }
@keyframes imprimeLinea { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* el recibo completo (paso 1 del pedido) */
.recibo { position: relative; margin: 4px 2px 22px; padding: 18px 16px 14px; background-color: var(--papel); color: var(--tinta-papel); font-family: var(--f-mono);
  background-image: repeating-linear-gradient(0deg, rgba(34, 33, 30, .022) 0 1px, transparent 1px 3px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .75); }
.recibo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px;
  background: linear-gradient(to bottom right, var(--papel) 50%, transparent 50%) 0 0 / 14px 10px repeat-x,
              linear-gradient(to bottom left, var(--papel) 50%, transparent 50%) 0 0 / 14px 10px repeat-x; }
.recibo-cab { margin: 0 0 8px; padding-bottom: 10px; text-align: center; font-size: .8rem; line-height: 1.45; border-bottom: 1.5px dashed var(--corte); }
.recibo-cab b, .recibo-cab span { display: block; }
.recibo-cab b { font-size: .98rem; letter-spacing: .08em; }
.recibo .linea { border-bottom: 1px dotted #CEC8B8; padding: 12px 0; }
.recibo .linea:last-child { border-bottom: 0; }
.recibo .linea-nombre { font-family: var(--f-mono); color: var(--tinta-papel); text-transform: uppercase; }
.recibo .linea-detalle { color: var(--tinta-papel-2); font-size: .82rem; }
.recibo .linea-precio { font-family: var(--f-mono); color: var(--tinta-papel); }
.recibo .contador { background: #ECE8DC; }
.recibo .contador button, .recibo .contador output { color: var(--tinta-papel); }
.recibo .linea-quitar { color: var(--tinta-papel-2); }
.recibo .vacio { color: var(--tinta-papel-2); padding: 24px 8px; font-size: .92rem; }
.recibo-sub { display: flex; justify-content: space-between; margin: 10px 0 0; padding-top: 10px; border-top: 1.5px dashed var(--corte); font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.recibo-pie { margin: 12px 0 0; text-align: center; font-size: .76rem; letter-spacing: .06em; color: var(--tinta-papel-2); white-space: pre; }

/* el plato vuela con su foto hasta la comanda */
.vuelo { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden;
  background: var(--papel); box-shadow: 0 0 0 3px var(--papel), 0 14px 28px -8px rgba(0, 0, 0, .85); }
.vuelo img { width: 100%; height: 100%; object-fit: cover; }
.vuelo.sin-foto { width: auto; height: auto; max-width: 230px; border-radius: 4px; padding: 7px 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--tinta-papel); font: 700 .8rem/1.2 var(--f-mono); text-transform: uppercase; }

/* ---------- tamaños ---------- */
@media (max-width: 359px) {
  .tope-marca img { height: 44px; }
  .reloj { gap: 8px; padding: 5px 12px 5px 5px; }
  .reloj-aro { width: 32px; height: 32px; }
  .reloj-linea { font-size: .84rem; }
  .rejilla { gap: 10px; }
  .pl-info { padding: 10px 10px 11px 11px; }
  .pl-nombre { font-size: .95rem; }
  .pl-mas { width: 36px; height: 36px; }
  .fl { grid-template-columns: 56px minmax(0, 1fr) auto 36px; gap: 10px; }
  .fl-foto { width: 56px; height: 56px; }
}
@media (min-width: 700px) {
  .rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .filas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hoja-caja { left: 50%; top: 50%; right: auto; bottom: auto; width: min(560px, 92vw); max-height: min(88vh, 860px); border-radius: var(--r3); transform: translate(-50%, -50%); animation: aparecer .24s var(--ease); }
  @keyframes aparecer { from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)) scale(.98); } }
  .hoja-chica .hoja-caja { width: min(460px, 92vw); }
  .pie-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .aviso { bottom: 100px; }
}
@media (min-width: 1024px) {
  .tope { padding-top: 18px; }
  .tope-marca img { height: 62px; }
  .intro { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: end; gap: 6px 40px; padding-top: 18px; }
  .intro-titulo { grid-row: span 2; }
  .intro-texto { margin: 0 0 2px; }
  .promo { margin: 0; justify-self: start; }
  .marco { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .riel { display: block; padding-top: 30px; }
  .comanda, .comanda.vacia { position: sticky; top: calc(var(--chips) + 30px); left: auto; right: auto; bottom: auto; display: block; }
  .comanda::before { content: ""; position: absolute; z-index: 2; left: 50%; top: -8px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #E0606F, var(--vino) 58%, #45090F); box-shadow: 0 3px 4px rgba(0, 0, 0, .55); }
  .cm-papel { display: flex; flex-direction: column; max-height: calc(100vh - var(--chips) - 90px); padding: 18px 16px 14px; transform: rotate(-1.2deg); transform-origin: 50% 0; }
  .cm-papel::before { top: auto; bottom: -9px;
    background: linear-gradient(to bottom right, var(--papel) 50%, transparent 50%) 0 0 / 14px 10px repeat-x,
                linear-gradient(to bottom left, var(--papel) 50%, transparent 50%) 0 0 / 14px 10px repeat-x; }
  .cm-tira { display: none; }
  .cm-cab { display: block; margin-bottom: 6px; padding-bottom: 9px; text-align: center; font-size: .76rem; line-height: 1.4; border-bottom: 1.5px dashed var(--corte); }
  .cm-cab b { display: block; font-size: .9rem; letter-spacing: .08em; }
  .cm-lineas { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; }
  .cm-lineas::-webkit-scrollbar { display: none; }
  .cm-total { display: flex; justify-content: space-between; margin-top: 6px; padding-top: 9px; border-top: 1.5px dashed var(--corte); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
  .cm-ver { display: block; margin-top: 12px; padding: 12px 10px; border-radius: 6px; text-align: center; background: var(--tinta-papel); color: var(--papel);
    font: 800 .82rem/1 var(--f-texto); font-stretch: 82%; letter-spacing: .08em; text-transform: uppercase; }
  .comanda.vacia .cm-total, .comanda.vacia .cm-ver { display: none; }
  .comanda.vacia .cm-vacia { display: block; padding: 14px 4px 18px; text-align: center; font-size: .86rem; line-height: 1.45; color: var(--tinta-papel-2); }
  .comanda.vacia { cursor: default; }
  .comanda.entra, .comanda.sacude { animation-name: avancePapel; }
  .pie { padding-bottom: 40px; }
  .pl-nombre { font-size: 1.08rem; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .comanda:not(.vacia):hover .cm-ver { background: #000; }
  .comanda:not(.vacia):hover .cm-papel { transform: rotate(-.5deg) translateY(-2px); transition: transform .25s var(--ease); }
}
@media (min-width: 1280px) {
  .rejilla { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hoja-caja, .comanda, .aviso, .cm-linea, .reloj-punto { animation: none !important; }
  * { transition-duration: .01ms !important; }
}
