/* New York Pizza & Co. · app del cliente. Sobria y ordenada (pedido de Santiago, 28/11):
   la pared de ladrillo negro pintado del local (sus carteles de Pedix) detrás de cada porción, recta y a la misma escala;
   tinta, blanco hueso y el rojo de la marca como único acento. Nada flota sobre el producto: el precio va en la card. */
:root {
  --fondo: #f2efea; --papel: #fcfbf8; --tinta: #151515; --gris: #6b675f; --linea: #e0dbd2; --suave: #ebe7e0;
  --rojo: #c51f2a; --rojo-o: #a3161f; --verde: #0b6b3c;
  --sombra: 0 1px 2px rgba(20, 16, 10, .06), 0 8px 24px rgba(20, 16, 10, .06); --radio: 16px;
  --anton: 'Anton', Impact, 'Arial Narrow', sans-serif; --marker: 'Permanent Marker', 'Comic Sans MS', cursive;
  --barra-h: 64px; --calles-h: 56px; --lado: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--barra-h) + var(--calles-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, sans-serif; color: var(--tinta); background: var(--fondo); overflow-x: clip; -webkit-tap-highlight-color: transparent; }
body.trabado { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

/* La pared del local: ladrillo negro pintado, un poco más oscuro arriba para que lea el texto. */
.muro { background: linear-gradient(180deg, rgba(10, 10, 10, .55), rgba(10, 10, 10, .1) 55%, rgba(10, 10, 10, .25)), #1b1b1b url(img/ladrillo.webp) center / cover; }

/* ---------- Barra de arriba ---------- */
.barra { position: sticky; top: 0; z-index: 40; height: var(--barra-h); display: flex; align-items: center; gap: 10px; padding: 0 var(--lado); background: var(--papel); border-bottom: 1px solid var(--linea); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.marca img { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.marca span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.marca b { font-family: var(--anton); font-weight: 400; font-size: 18px; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
.marca small { font-size: 12px; color: var(--gris); font-weight: 600; white-space: nowrap; }
.marca small.abierto::before, .marca small.cerrado::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: var(--verde); }
.marca small.cerrado::before { background: #b5ad9f; }
.barra-mesa { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.chip-mesa { font-weight: 800; font-size: 13px; background: var(--tinta); color: #fff; padding: 8px 11px; border-radius: 999px; white-space: nowrap; }
.b-barra { border: 1.5px solid var(--tinta); background: transparent; border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 13px; }
.b-barra:active { background: var(--suave); }
.b-demo-mesa { margin-left: auto; font-size: 12.5px; font-weight: 700; text-decoration: none; border: 1.5px solid var(--tinta); border-radius: 999px; padding: 8px 12px; white-space: nowrap; }
.con-mesa .b-demo-mesa { display: none; }

/* ---------- Inicio: la pared y una porción ---------- */
.heroe { padding: 12px var(--lado) 0; }
.heroe-muro { position: relative; border-radius: 22px; overflow: hidden; color: #fff; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(8, 8, 8, .72), rgba(8, 8, 8, .35) 60%, rgba(8, 8, 8, .15)), #1b1b1b url(img/ladrillo.webp) center / cover; }
.heroe-texto { padding: 22px 20px 0; position: relative; z-index: 1; }
.heroe-sobre { margin: 0; font-family: var(--marker); font-size: 16px; color: #f1ece4; letter-spacing: .3px; }
.heroe-titulo { margin: 6px 0 0; font-family: var(--anton); font-weight: 400; text-transform: uppercase; line-height: .92; font-size: clamp(46px, 13.5vw, 60px); letter-spacing: .2px; }
.heroe-titulo .rojo { color: #e4313b; display: block; }
.heroe-bajada { margin: 10px 0 0; font-size: 15px; line-height: 1.4; color: #d9d4cb; max-width: 30ch; }
.heroe-precios { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .18); border-bottom: 1px solid rgba(255, 255, 255, .18); }
.heroe-precios li { padding: 9px 0; display: flex; flex-direction: column; gap: 1px; }
.heroe-precios li + li { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .18); }
.heroe-precios span { font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: #bdb7ad; font-weight: 600; }
.heroe-precios b { font-size: 17px; font-weight: 800; }
.heroe-acciones { display: flex; gap: 10px; margin-top: 16px; }
.heroe-acciones .boton { flex: 1; }
.heroe-foto { margin-top: 14px; align-self: center; width: min(86%, 380px); }
.heroe-porcion { width: 100%; height: auto; }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; font-weight: 700; font-size: 15.5px; text-decoration: none; background: var(--tinta); color: #fff; transition: transform .08s, background .15s; }
.boton:active { transform: scale(.98); }
.boton-rojo { background: var(--rojo); color: #fff; }
.boton-rojo:active { background: var(--rojo-o); }
.boton-verde { background: var(--tinta); color: #fff; }
.boton-claro { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--tinta); }
.boton-linea { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75); }
.boton-ancho { width: 100%; }
.boton[disabled] { opacity: .4; pointer-events: none; }

/* ---------- Rubros ---------- */
.calles { position: sticky; top: var(--barra-h); z-index: 30; height: var(--calles-h); display: flex; gap: 6px; align-items: center; padding: 0 var(--lado); overflow-x: auto; scrollbar-width: none; background: var(--fondo); border-bottom: 1px solid var(--linea); margin-top: 14px; }
.calles::-webkit-scrollbar { display: none; }
.calle { flex: none; display: inline-flex; align-items: baseline; gap: 4px; border: 1px solid var(--linea); background: var(--papel); color: var(--tinta); padding: 8px 13px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s; }
.calle small { font-weight: 600; font-size: 11px; color: var(--gris); }
.calle.activa { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.calle.activa small { color: #bdb7ad; }

/* ---------- Bloques de la carta ---------- */
.bloque { padding: 28px var(--lado) 4px; }
.titulo-bloque { margin: 0 0 14px; font-family: var(--anton); font-weight: 400; font-size: 32px; line-height: 1; text-transform: uppercase; letter-spacing: .3px; }
.bloque-cab { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.bloque-cab .titulo-bloque { margin: 0; }
.tamanos { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--suave); border-radius: 14px; padding: 4px; gap: 4px; }
.tam { border: 0; background: transparent; border-radius: 11px; padding: 8px 4px 7px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 700; font-size: 14px; color: var(--gris); }
.tam svg { width: 30px; height: 26px; }
.tam small { font-size: 11px; font-weight: 600; color: var(--gris); }
.tam.activo { background: var(--papel); color: var(--tinta); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* Card de pizza: la porción recta sobre la pared, el corte pegado al borde; abajo nombre, sabor y precio en fila. */
.grilla-pizzas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pz { position: relative; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; text-align: left; padding: 0; display: flex; flex-direction: column; box-shadow: var(--sombra); transition: transform .12s; }
.pz:active { transform: scale(.985); }
.pz-foto { position: relative; display: block; aspect-ratio: 1 / 1; }
.pz-foto img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 86%; height: auto; max-height: 92%; object-fit: contain; object-position: bottom; }
.pz-cuerpo { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pz-nombre { font-family: var(--anton); font-size: 19px; line-height: 1.05; text-transform: uppercase; letter-spacing: .3px; }
.pz-desc { font-size: 12.5px; color: var(--gris); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pz-pie { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pz-precio { font-weight: 800; font-size: 15.5px; }
.mas { width: 32px; height: 32px; border-radius: 50%; background: var(--rojo); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 600; line-height: 1; flex: none; }
.en-pedido .mas { background: var(--tinta); font-size: 14px; }
.pz-mas-titulo { grid-column: 1 / -1; margin: 10px 0 -2px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gris); }
.pz-renglon { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; padding: 4px 12px 4px 2px; }
.pz-renglon .pz-pie { margin: 0; padding: 0; flex-direction: column; align-items: flex-end; gap: 6px; }

/* Promo */
.promo { display: grid; grid-template-columns: 132px 1fr; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); width: 100%; text-align: left; padding: 0; }
.promo-foto { position: relative; min-height: 160px; }
.promo-foto img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 88%; height: auto; }
.promo-cuerpo { padding: 14px; display: flex; flex-direction: column; gap: 5px; }
.promo-etiqueta { font-size: 11.5px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: var(--rojo); }
.promo-nombre { font-family: var(--anton); font-size: 24px; line-height: 1; text-transform: uppercase; }
.promo-desc { font-size: 13px; color: var(--gris); line-height: 1.35; }
.promo-precio { font-weight: 800; font-size: 17px; }

/* Listas */
.lista { display: grid; gap: 8px; }
.fila { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; background: var(--papel); border: 1px solid var(--linea); border-radius: 14px; padding: 8px; text-align: left; width: 100%; }
.fila.sin-foto { grid-template-columns: 1fr auto; padding: 12px 10px 12px 14px; }
.fila:active { background: var(--suave); }
.fila-foto { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--suave); }
.fila-foto img { width: 100%; height: 100%; object-fit: cover; }
.fila-nombre { font-weight: 700; font-size: 15px; line-height: 1.2; display: block; }
.fila-desc { font-size: 12.5px; color: var(--gris); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; }
.fila-precio { font-weight: 800; font-size: 15px; white-space: nowrap; }
.fila-lado { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.chip-delivery { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--gris); border: 1px solid var(--linea); border-radius: 999px; padding: 1px 6px; margin-left: 5px; vertical-align: 1px; }

/* Riel de bebidas */
.riel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--lado)); padding: 2px var(--lado) 10px; scrollbar-width: none; }
.riel::-webkit-scrollbar { display: none; }
.beb { flex: none; width: 142px; scroll-snap-align: start; background: var(--papel); border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; text-align: left; padding: 0; display: flex; flex-direction: column; }
.beb-foto { aspect-ratio: 1; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--linea); }
.beb-foto img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.beb-foto .beb-sin { font-family: var(--anton); font-size: 24px; color: #b5ad9f; letter-spacing: .5px; }
.beb-cuerpo { padding: 9px 10px 10px; display: flex; flex-direction: column; flex: 1; }
.beb-nombre { font-weight: 700; font-size: 13.5px; line-height: 1.2; min-height: 2.4em; display: block; }
.beb-precio { font-weight: 800; font-size: 14.5px; }
.beb .mas { width: 30px; height: 30px; font-size: 18px; }

/* ---------- Club: Slice Card ---------- */
.club { padding-bottom: 20px; }
.club-bajada { margin: -6px 0 16px; color: var(--gris); font-size: 15px; line-height: 1.4; }
.tarjeta { position: relative; width: 100%; max-width: 420px; aspect-ratio: 85.6 / 54; border-radius: 16px; background: var(--rojo); color: #fff; overflow: hidden; box-shadow: 0 10px 28px rgba(110, 14, 20, .22); }
.tarjeta-banda { position: absolute; left: 0; right: 0; bottom: 21%; height: 13%; background: #151515; }
.tarjeta-cara { position: absolute; inset: 0; padding: 14px 16px 12px; display: flex; flex-direction: column; }
.tarjeta-cab { display: flex; justify-content: space-between; align-items: center; }
.tarjeta-cab span { font-family: var(--anton); font-size: 24px; letter-spacing: 1.2px; }
.tarjeta-cab img { border-radius: 50%; }
.agujeros { display: flex; gap: 6px; margin-top: 12px; flex-wrap: nowrap; }
.agujero { width: 26px; height: 28px; flex: none; }
.agujero path { fill: rgba(0, 0, 0, .2); stroke: rgba(255, 255, 255, .5); stroke-width: 1.6; }
.agujero circle { fill: transparent; }
.agujero.lleno path { fill: #fff3e0; stroke: #fff; }
.agujero.lleno circle { fill: var(--rojo-o); }
.agujero.regalo path { fill: #fff; stroke: #fff; }
.agujero.nuevo { animation: sella .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes sella { from { transform: scale(1.8); opacity: 0; } }
.tarjeta-pie { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; font-weight: 700; font-size: 13px; position: relative; z-index: 1; }
.flecha-meter { font-size: 9.5px; letter-spacing: 1.4px; opacity: .8; }
.club-acciones { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.club-dato { margin: 12px 0 0; font-size: 14px; color: var(--gris); font-weight: 600; }

/* Molinete: pasar la tarjeta */
.molinete { margin-top: 18px; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 14px; }
.molinete-pista { margin: 0 0 12px; font-size: 14px; color: var(--gris); }
.lector { position: relative; height: 150px; border-radius: 14px; background: linear-gradient(#d6d3ce, #a9a59e); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.lector-ranura { position: absolute; left: 0; right: 0; top: 64px; height: 10px; background: #2b2b2b; box-shadow: inset 0 2px 3px #000; }
.lector-tarjeta { position: absolute; left: 6px; top: 26px; width: 120px; height: 76px; border-radius: 9px; background: var(--rojo); display: grid; place-items: center; cursor: grab; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); touch-action: none; }
.lector-tarjeta span { font-family: var(--anton); font-size: 16px; letter-spacing: 1px; color: #fff; pointer-events: none; }
.lector-tarjeta.volando { transition: left .35s ease; }
.lector-pantalla { position: absolute; right: 10px; bottom: 10px; background: #111; color: #9df0b4; font-family: 'Courier New', monospace; font-weight: 700; font-size: 13px; padding: 7px 10px; border-radius: 6px; letter-spacing: .5px; max-width: 72%; text-align: right; }
.lector-pantalla.mal { color: #ffb4a8; }
.lector-pantalla.bien { background: var(--verde); color: #fff; }

/* ---------- Dónde estamos ---------- */
.info { padding-bottom: 150px; }
.cartel-calle { display: inline-flex; align-items: baseline; gap: 8px; background: var(--verde); color: #fff; padding: 10px 16px 8px; border-radius: 6px; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1.5px var(--verde); font-family: var(--anton); font-size: 26px; text-transform: uppercase; letter-spacing: .5px; margin: 4px 0 16px; }
.cartel-calle small { font-family: Inter, sans-serif; font-weight: 700; font-size: 13px; text-transform: none; }
.info-grilla { display: grid; gap: 8px; }
.info-grilla div { display: flex; flex-direction: column; gap: 2px; background: var(--papel); border: 1px solid var(--linea); border-radius: 14px; padding: 11px 14px; }
.info-grilla b { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gris); font-weight: 700; }
.info-grilla span { font-weight: 700; font-size: 15px; }
.info-acciones { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pie { margin: 22px 0 0; font-size: 12px; color: var(--gris); }

/* ---------- Barra flotante ---------- */
.flotante { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; width: min(440px, calc(100% - 28px)); animation: sube .35s cubic-bezier(.2, 1.2, .4, 1); }
.flotante.seguir { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 70px); }
.flotante.seguir.solo { bottom: max(14px, env(safe-area-inset-bottom)); }
.flotante-b { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 20px 0 10px; border-radius: 999px; border: 0; background: var(--tinta); color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); font-weight: 700; font-size: 16px; }
.flotante-b:active { transform: scale(.985); }
.flotante-cant { width: 38px; height: 38px; border-radius: 50%; background: var(--rojo); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.flotante-cant.salta { animation: salta .45s cubic-bezier(.2, 1.8, .4, 1); }
.flotante-txt { flex: 1; text-align: left; }
.seguir-b { background: var(--papel); color: var(--tinta); min-height: 52px; padding-left: 18px; box-shadow: 0 0 0 1px var(--linea), 0 10px 26px rgba(0, 0, 0, .14); }
.punto-vivo { width: 10px; height: 10px; border-radius: 50%; background: #2fbf63; box-shadow: 0 0 0 0 rgba(47, 191, 99, .6); animation: late 1.6s infinite; flex: none; }
@keyframes late { 70% { box-shadow: 0 0 0 9px rgba(47, 191, 99, 0); } }
@keyframes sube { from { transform: translate(-50%, 120%); } }
@keyframes salta { 40% { transform: scale(1.3); } }

/* ---------- Hojas ---------- */
.velo { position: fixed; inset: 0; z-index: 60; background: rgba(12, 10, 8, .5); animation: aparece .2s; }
.hoja { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--papel); border-radius: 24px 24px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); animation: hoja .34s cubic-bezier(.2, 1, .3, 1); }
.hoja::before { content: ''; display: block; width: 42px; height: 5px; border-radius: 3px; background: #d6d0c5; margin: 0 auto 12px; }
.hoja-cerrar { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); font-size: 17px; font-weight: 700; display: grid; place-items: center; z-index: 2; }
.hoja h3 { margin: 4px 0 4px; font-family: var(--anton); font-weight: 400; font-size: 30px; line-height: 1; text-transform: uppercase; padding-right: 44px; }
.hoja p { margin: 0; }
@keyframes hoja { from { transform: translateY(100%); } }
@keyframes aparece { from { opacity: 0; } }

.ficha-foto { margin: -10px -18px 16px; position: relative; height: 300px; background: var(--suave); overflow: hidden; border-radius: 24px 24px 0 0; }
.ficha-foto img { width: 100%; height: 100%; object-fit: cover; }
.ficha-foto.muro { background: linear-gradient(180deg, rgba(10, 10, 10, .55), rgba(10, 10, 10, .1) 55%, rgba(10, 10, 10, .25)), #1b1b1b url(img/ladrillo.webp) center / cover; }
.ficha-foto.porcion img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: auto; height: 92%; max-width: 92%; object-fit: contain; object-position: bottom; }
.ficha-foto.bebida { background: #fff; border-bottom: 1px solid var(--linea); }
.ficha-foto.bebida img { object-fit: contain; padding: 18px; }
.ficha-sin { height: 34px; }
.ficha-desc { color: var(--gris); font-size: 15px; line-height: 1.45; margin-top: 6px !important; }
.ficha-tams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 6px; }
.ficha-tam { border: 1px solid var(--linea); background: #fff; border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 700; font-size: 14px; }
.ficha-tam svg { width: 30px; height: 26px; }
.ficha-tam b { font-size: 15px; }
.ficha-tam.activo { border-color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.ficha-nota { font-size: 12.5px; color: var(--gris); text-align: center; margin: 4px 0 0 !important; }
.ficha-pie { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.cantidad { display: flex; align-items: center; border: 1px solid var(--linea); border-radius: 999px; background: #fff; }
.cantidad button { width: 44px; height: 46px; border: 0; background: none; font-size: 21px; font-weight: 600; }
.cantidad span { min-width: 26px; text-align: center; font-weight: 800; font-size: 16px; }
.ficha-pie .boton { flex: 1; }

/* Pedido */
.renglones { display: grid; gap: 8px; margin: 14px 0; }
.renglon { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; border-bottom: 1px solid var(--linea); padding-bottom: 8px; }
.renglon b { font-size: 15px; }
.renglon small { color: var(--gris); font-size: 12.5px; display: block; }
.renglon .cantidad button { width: 36px; height: 36px; font-size: 18px; }
.renglon .cantidad span { min-width: 20px; font-size: 15px; }
.renglon .cantidad { justify-self: start; }
.renglon-precio { font-weight: 800; font-size: 15px; text-align: right; }
.canales { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0 12px; }
.canal { border: 1px solid var(--linea); border-radius: 14px; background: #fff; padding: 11px 8px; font-weight: 700; font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.canal small { font-size: 12px; font-weight: 600; color: var(--gris); }
.canal.activo { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.canal.activo small { color: #cfc9bf; }
.campo { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.campo label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--gris); }
.campo input, .campo textarea { font: inherit; font-size: 16px; border: 1px solid #cfc9bf; border-radius: 12px; padding: 11px 12px; background: #fff; width: 100%; }
.campo input:focus, .campo textarea:focus { outline: 2px solid var(--tinta); outline-offset: -1px; }
.campo textarea { resize: none; min-height: 60px; }
.pagos { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pago { border: 1px solid var(--linea); background: #fff; border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 14px; }
.pago.activo { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.total-linea { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; margin: 6px 0; }
.total-linea.grande { font-size: 21px; font-weight: 800; border-top: 1px solid var(--tinta); padding-top: 10px; margin-top: 10px; }
.total-linea small { font-weight: 600; color: var(--gris); font-size: 13px; }
.etiqueta-seccion { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--gris); margin: 14px 0 6px; }
.vacio { text-align: center; padding: 24px 0 12px; color: var(--gris); font-weight: 600; }

/* Seguimiento: línea de subte */
.subte { position: relative; margin: 18px 0 10px; }
.subte-linea, .subte-relleno { position: absolute; left: 18px; top: 22px; width: 6px; border-radius: 3px; }
.subte-linea { bottom: 22px; background: var(--suave); }
.subte-relleno { background: var(--rojo); transition: height .6s ease; height: 0; }
.estacion { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.estacion i { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 3px solid var(--suave); display: grid; place-items: center; font-style: normal; font-family: var(--anton); font-size: 17px; color: #b5ad9f; flex: none; z-index: 1; transition: all .3s; }
.estacion b { font-size: 16px; color: #a8a094; transition: color .3s; display: block; }
.estacion small { display: block; font-size: 12.5px; color: var(--gris); font-weight: 500; }
.estacion.hecha i { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.estacion.hecha b { color: var(--tinta); }
.estacion.actual i { animation: salta 1.4s infinite; }
.seguir-cab { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-right: 44px; }
.seguir-num { font-weight: 800; font-size: 14px; background: var(--tinta); color: #fff; border-radius: 999px; padding: 5px 11px; }
.nota-demo { font-size: 12.5px; color: var(--gris); background: var(--suave); border-radius: 10px; padding: 9px 11px; margin-top: 10px !important; }

/* Mesa: mozo y cuenta */
.motivos { display: grid; gap: 8px; margin: 14px 0; }
.motivo { border: 1px solid var(--linea); border-radius: 14px; background: #fff; padding: 13px 14px; text-align: left; font-weight: 700; font-size: 15.5px; }
.motivo.activo { background: var(--tinta); border-color: var(--tinta); color: #fff; }

/* Aviso */
.aviso { position: fixed; left: 50%; top: calc(var(--barra-h) + var(--calles-h) + 12px); pointer-events: none; transform: translateX(-50%); z-index: 80; background: var(--tinta); color: #fff; padding: 11px 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: calc(100% - 28px); text-align: center; animation: aparece .2s; }

/* Foto que vuela al pedido */
.vuela { position: fixed; z-index: 90; width: 70px; height: 70px; object-fit: contain; pointer-events: none; transition: transform .6s cubic-bezier(.5, -0.3, .7, 1), opacity .6s; }

/* ---------- Entrada: la caja se abre sobre la pared y sale la porción ---------- */
.intro { position: fixed; inset: 0; z-index: 100; background: #121212 url(img/ladrillo.webp) center / cover; overflow: hidden; display: grid; place-items: center; cursor: pointer; }
.intro::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(0, 0, 0, .1), rgba(0, 0, 0, .65)); }
.intro-piso { position: absolute; left: -20%; right: -20%; bottom: -14%; height: 62%; background: conic-gradient(#151515 25%, #f4f1ec 0 50%, #151515 0 75%, #f4f1ec 0) 0 0 / 64px 64px; transform: perspective(600px) rotateX(52deg); transform-origin: bottom; animation: piso .7s cubic-bezier(.2, 1, .3, 1) both; }
.intro-caja { position: relative; width: min(66vw, 300px); aspect-ratio: 300 / 280; margin-top: 30vh; animation: cae .55s .15s cubic-bezier(.3, 1.4, .5, 1) both; }
.intro-caja svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.caja-tapa { transform-origin: 50% 7%; animation: tapa .6s .8s cubic-bezier(.5, 0, .3, 1) both; }
.intro-porcion { position: absolute; left: 20%; top: 4%; width: 60%; opacity: 0; animation: sale .9s 1.1s cubic-bezier(.2, 1.2, .4, 1) both; filter: drop-shadow(0 20px 20px rgba(0, 0, 0, .45)); }
.intro-titulo { position: absolute; top: 10vh; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; font-family: var(--anton); text-transform: uppercase; line-height: .9; font-size: clamp(44px, 14vw, 96px); color: #fff; }
.intro-titulo span { display: block; opacity: 0; animation: golpe .45s cubic-bezier(.2, 1.5, .4, 1) both; }
.intro-titulo span:nth-child(1) { animation-delay: 1.5s; }
.intro-titulo span:nth-child(2) { animation-delay: 1.65s; }
.intro-titulo .xxl { color: #e4313b; font-size: 1.4em; animation-delay: 1.8s; }
.intro-saltar { position: absolute; right: 16px; top: max(16px, env(safe-area-inset-top)); border: 1.5px solid rgba(255, 255, 255, .7); background: transparent; color: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; z-index: 2; }
.intro.sale { animation: introsale .45s ease-in both; }
@keyframes piso { from { transform: perspective(600px) rotateX(52deg) translateY(100%); } }
@keyframes cae { from { transform: translateY(-120vh) rotate(-14deg); } }
@keyframes tapa { to { transform: perspective(600px) rotateX(-170deg); opacity: 0; } }
@keyframes sale { 0% { opacity: 0; transform: translateY(30%) scale(.6); } 100% { opacity: 1; transform: translateY(-55%) scale(1.2); } }
@keyframes golpe { from { opacity: 0; transform: scale(1.8); } to { opacity: 1; transform: none; } }
@keyframes introsale { to { opacity: 0; transform: scale(1.04); } }
html.intro-pendiente #intro[hidden] { display: grid !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Teléfono chico ---------- */
@media (max-width: 359px) {
  :root { --lado: 12px; }
  .heroe-titulo { font-size: 42px; }
  .heroe-texto { padding: 18px 16px 0; }
  .b-demo-mesa { font-size: 11px; padding: 6px 9px; }
  .marca small { display: none; }
  .grilla-pizzas { gap: 8px; }
  .pz-nombre { font-size: 17px; }
  .b-barra { padding: 6px 9px; font-size: 12px; }
  .agujero { width: 22px; height: 24px; }
  .heroe-precios b { font-size: 15px; }
}

/* Con mesa en el teléfono: logo, mesa, mozo y cuenta (el nombre ya está en el inicio). */
.marca span b, .marca small { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 699px) { .con-mesa .marca span { display: none; } }

/* ---------- iPad parado ---------- */
@media (min-width: 700px) {
  :root { --barra-h: 72px; --lado: 32px; }
  .heroe { padding-top: 20px; }
  .heroe-muro { flex-direction: row; align-items: stretch; min-height: 430px; }
  .heroe-texto { flex: 1 1 52%; padding: 40px 0 36px 36px; display: flex; flex-direction: column; justify-content: center; }
  .heroe-titulo { font-size: 76px; }
  .heroe-bajada { font-size: 16.5px; }
  .heroe-acciones .boton { flex: 0 0 auto; }
  .heroe-foto { flex: 1 1 48%; margin: 0; align-self: flex-end; width: auto; max-width: 400px; padding: 30px 22px 0 10px; }
  .titulo-bloque { font-size: 40px; }
  .bloque { padding-top: 36px; }
  .bloque-cab { flex-direction: row; align-items: center; justify-content: space-between; }
  .tamanos { width: 360px; }
  .grilla-pizzas { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .pz-nombre { font-size: 20px; }
  .lista { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .promo { grid-template-columns: 220px 1fr; max-width: 720px; }
  .promo-foto { min-height: 200px; }
  .info-grilla { grid-template-columns: repeat(3, 1fr); }
  .hoja { left: 50%; right: auto; bottom: 50%; transform: translate(-50%, 50%); width: min(540px, calc(100% - 48px)); max-height: 88dvh; border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: hojamodal .3s cubic-bezier(.2, 1, .3, 1); }
  .hoja::before { display: none; }
  .ficha-foto { margin-top: -10px; height: 340px; }
  .intro-caja { margin-top: 26vh; }
  .pz-renglon { grid-column: auto; }
  .pz-mas-titulo { margin-top: 14px; }
}
@keyframes hojamodal { from { transform: translate(-50%, 60%); opacity: 0; } }

/* ---------- Escritorio ---------- */
@media (min-width: 1100px) {
  :root { --lado: 48px; }
  main { max-width: 1240px; margin: 0 auto; }
  .calles { justify-content: center; }
  .heroe-muro { min-height: 500px; }
  .heroe-texto { padding: 56px 0 50px 56px; }
  .heroe-titulo { font-size: 104px; }
  .heroe-foto { max-width: 470px; padding-right: 48px; }
  .grilla-pizzas { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .lista { grid-template-columns: repeat(3, 1fr); }
  .club { display: grid; grid-template-columns: 420px 1fr; column-gap: 40px; align-items: start; }
  .club > .titulo-bloque, .club > .club-bajada { grid-column: 1 / -1; }
  .club > .tarjeta, .club > .club-acciones { grid-column: 1; }
  .club > .molinete { grid-column: 2; grid-row: 3 / span 2; margin-top: 0; }
  .riel { margin: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
}
/* Entrada en pantallas apaisadas: título más bajo y caja más abajo, para que la porción no lo tape. */
@media (min-aspect-ratio: 1/1) {
  .intro-titulo { font-size: min(14vw, 96px, 9vh); top: 7vh; }
  .intro-caja { margin-top: 42vh; width: min(30vh, 300px); }
}
