/* Sistema POS — estilos
   Paleta: tomate (marca), albahaca (acciones), brasa (tiempo y avisos), carbón (texto), harina (fondo). */

:root {
  /* Paleta Sistema POS */
  --fuego: #FF7417;          /* naranja fuego: botones y acentos */
  --fuego-osc: #E85F05;
  --fuego-claro: #FFE9D4;
  --rojo: #C83A10;           /* rojo anaranjado: enlaces, avisos, marca */
  --rojo-osc: #9E2C0A;
  --rojo-claro: #FCE3D8;
  --marron: #3A2117;         /* marrón oscuro */
  --negro: #140C09;          /* negro profundo */
  --blanco-calido: #FFF6EC;  /* fondo */
  --verde: #2F7A45;          /* solo para estados "listo" y "verificado" */
  --verde-claro: #E2F1E6;

  /* Alias usados en el resto de la hoja */
  --tomate: var(--rojo);
  --tomate-osc: var(--rojo-osc);
  --tomate-claro: var(--rojo-claro);
  --albahaca: var(--fuego);
  --albahaca-osc: var(--fuego-osc);
  --albahaca-claro: var(--fuego-claro);
  --brasa: #FF9A3D;
  --brasa-claro: #FFEBD6;
  --carbon: var(--negro);
  --tinta-2: #6E5548;
  --tinta-3: #A08A7D;
  --harina: var(--blanco-calido);
  --blanco: #FFFDF9;
  --linea: #EFDFD2;
  --crema: #FFF3E3;

  --f-letrero: 'Alfa Slab One', 'Rockwell', Georgia, serif;
  --f-texto: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.5;
  color: var(--carbon);
  background: var(--harina);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--tomate); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--fuego); outline-offset: 2px; border-radius: 4px; }
.ico { flex: none; }
.muted { color: var(--tinta-2); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.hidden, [hidden] { display: none !important; }
.row { display: flex; align-items: center; }
.gap { gap: 10px; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.h2 { font-family: var(--f-letrero); font-weight: 400; font-size: 22px; line-height: 1.2; margin: 0 0 12px; }
.h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }

/* ---------- Tienda ---------- */

body.store { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px); }
body.store.has-cart { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 84px); }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 480px; }

/* Portada: letrero rojo con borde de masa */
.portada {
  background: radial-gradient(120% 90% at 85% 110%, rgba(255,116,23,.38), transparent 60%), linear-gradient(165deg, var(--marron), var(--negro) 75%);
  color: var(--crema);
  position: relative;
  padding: 28px 0 40px;
}
.portada::after {
  /* borde ondulado, como el canto de la pizza */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 18px;
  background: var(--harina);
  -webkit-mask: radial-gradient(14px 12px at 14px 0, transparent 98%, #000) repeat-x;
  mask: radial-gradient(14px 12px at 14px 0, transparent 98%, #000) repeat-x;
  -webkit-mask-size: 28px 18px;
  mask-size: 28px 18px;
}
.portada .wrap { position: relative; }
.portada-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--crema); margin-bottom: 14px; border: 3px solid var(--crema); }
.letrero {
  font-family: var(--f-letrero);
  font-weight: 400;
  font-size: clamp(40px, 12vw, 58px);
  line-height: .95;
  letter-spacing: -.5px;
  margin: 0;
  text-shadow: 0 3px 0 var(--rojo);
}
.portada-lema { margin: 12px 0 18px; font-size: 16px; max-width: 34ch; color: #F3D9C4; }
.portada-datos { display: flex; flex-wrap: wrap; gap: 8px; }
.dato {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,116,23,.16); color: var(--crema); border: 1px solid rgba(255,116,23,.35);
  font-size: 14px; font-weight: 600;
}
.dato .punto { width: 8px; height: 8px; border-radius: 50%; background: #7BE08F; }
.dato.cerrado .punto { background: #D0C4C0; }
.redes { display: flex; gap: 10px; margin-top: 18px; }
.redes a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fuego); color: var(--negro);
}
.redes a:active { transform: scale(.94); }

.aviso-cerrado {
  margin: 16px 0 0; padding: 14px 16px;
  background: var(--brasa-claro); border-left: 4px solid var(--brasa);
  border-radius: var(--r-s); font-weight: 500;
}

/* Cuenta en la portada y llamado a registrarse */
.portada-top { display: flex; justify-content: flex-end; gap: 8px; margin: -8px 0 16px; }
.portada-cuenta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  color: var(--crema); text-decoration: none; font-weight: 700; font-size: 14px;
  border: 1px solid rgba(255,243,227,.35);
}
.portada-cuenta.destacado { background: var(--fuego); border-color: var(--fuego); color: var(--negro); }

.registro-cta {
  margin: 18px 0 0; padding: 18px;
  background: var(--blanco); border: 2px solid var(--fuego); border-radius: var(--r-m);
  display: grid; gap: 14px;
}
.registro-cta h2 { font-family: var(--f-letrero); font-weight: 400; font-size: 22px; line-height: 1.15; margin: 0 0 6px; }
.registro-cta p { margin: 0; color: var(--tinta-2); font-size: 15px; }
.registro-cta-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.registro-cta-btns .btn { padding: 0 10px; }
@media (min-width: 640px) { .registro-cta { grid-template-columns: 1fr auto; align-items: center; } .registro-cta-btns { grid-template-columns: auto auto; } }

.carrito-dos { display: inline-flex; flex-direction: column; line-height: 1.15; }
.carrito-dos small { font-size: 12px; font-weight: 600; opacity: .8; }

.ya-cuenta {
  display: block; margin: 16px 0 0; padding: 14px 16px; border-radius: var(--r-m);
  background: var(--fuego-claro); color: var(--negro); text-decoration: none; text-align: center;
}
.beneficios { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.beneficios li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--tinta-2); }
.beneficios .ico { color: var(--rojo); }
.nuevo-cliente { border: 2px solid var(--fuego); }
.btn-oscuro { background: var(--negro); color: var(--crema); }
.btn-oscuro:hover { background: var(--marron); }

/* Buscador y barra de categorías */
.buscador { position: relative; margin: 18px 0 4px; }
.buscador input {
  width: 100%; height: 48px; padding: 0 16px 0 44px;
  border: 1px solid var(--linea); border-radius: var(--r-m);
  background: var(--blanco); font-size: 16px;
}
.buscador .ico { position: absolute; left: 14px; top: 13px; color: var(--tinta-3); }

.cats {
  position: sticky; top: 0; z-index: 20;
  background: var(--harina);
  padding: 10px 0;
  margin: 0 -16px;
}
.cats-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.cats-scroll::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; padding: 9px 16px; border-radius: 999px;
  background: var(--blanco); border: 1px solid var(--linea);
  color: var(--carbon); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.cats a.on { background: var(--negro); border-color: var(--negro); color: var(--fuego); }

/* Recomendados */
.recos { margin: 14px -16px 6px; }
.recos-titulo { font-weight: 700; font-size: 17px; margin: 0 16px 10px; }
.recos-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.recos-scroll::-webkit-scrollbar { display: none; }
.reco {
  flex: none; width: 168px; scroll-snap-align: start;
  background: var(--blanco); border-radius: var(--r-m); overflow: hidden;
  border: 0; padding: 0; text-align: left; cursor: pointer;
}
.reco .foto { width: 100%; height: auto; aspect-ratio: 4/3; }
.reco-txt { padding: 10px 12px 12px; }
.reco-nombre { font-weight: 700; line-height: 1.25; }
.reco-precio { font-weight: 700; color: var(--rojo); margin-top: 4px; }

/* Secciones del menú */
.seccion { margin-top: 26px; scroll-margin-top: 64px; }
.seccion-titulo { font-family: var(--f-letrero); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 0; }
.seccion-desc { margin: 4px 0 0; color: var(--tinta-2); font-size: 15px; }
.lista { margin-top: 12px; background: var(--blanco); border-radius: var(--r-m); }
.plato {
  display: flex; gap: 14px; width: 100%;
  padding: 16px; border: 0; background: none; text-align: left; cursor: pointer;
  border-bottom: 1px solid var(--linea);
}
.lista .plato:last-child { border-bottom: 0; }
.plato:active { background: #FBF8F6; }
.plato-txt { flex: 1; min-width: 0; }
.plato-nombre { font-weight: 700; font-size: 16px; line-height: 1.3; }
.plato-desc {
  margin-top: 3px; color: var(--tinta-2); font-size: 14px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.plato-precio { margin-top: 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.usd { font-weight: 700; font-size: 16px; }
.ves { color: var(--tinta-3); font-size: 13px; }
.desde { font-size: 13px; color: var(--tinta-2); font-weight: 500; }
.plato .foto { width: 92px; height: 92px; border-radius: 12px; }
.plato.agotado { cursor: default; }
.plato.agotado .plato-txt, .plato.agotado .foto { opacity: .45; }
.etiqueta-agotado { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--tomate); background: var(--tomate-claro); padding: 2px 8px; border-radius: 6px; }

.foto { object-fit: cover; background: var(--fuego-claro); flex: none; }
.foto-vacia {
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--marron), var(--negro)); color: var(--fuego);
  font-family: var(--f-letrero); font-size: 30px;
}

.sin-resultados { padding: 28px 16px; text-align: center; color: var(--tinta-2); }

.pie { margin-top: 36px; padding: 20px 0; color: var(--tinta-2); font-size: 14px; border-top: 1px solid var(--linea); }
.pie p { margin: 4px 0; }

/* Barra de carrito */
.carrito-barra {
  position: fixed; z-index: 40;
  left: 12px; right: 12px;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px);
  max-width: 616px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-radius: var(--r-m);
  background: var(--fuego); color: var(--negro); text-decoration: none;
  box-shadow: 0 8px 24px rgba(232,95,5,.38);
  font-weight: 700;
}
.carrito-barra .cuenta {
  display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: 999px; background: var(--negro); color: var(--fuego); font-size: 14px; margin-right: 8px;
}
.carrito-barra.pop { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.04); } }

/* Barra inferior */
.tabbar {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: var(--blanco); border-top: 1px solid var(--linea);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--tinta-3); text-decoration: none; font-size: 12px; font-weight: 600;
}
.tabbar a.on { color: var(--tomate); }

/* Barra superior de páginas internas */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 6px;
  height: 56px; padding: 0 8px;
  background: var(--blanco); border-bottom: 1px solid var(--linea);
}
.topbar-back { width: 44px; height: 44px; display: grid; place-items: center; color: var(--carbon); border-radius: 50%; }
.topbar-title { font-size: 18px; font-weight: 700; margin: 0; }

/* Hoja inferior del producto */
.hoja-fondo {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(43,30,26,.55);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.hoja-fondo.abierta { opacity: 1; pointer-events: auto; }
.hoja {
  position: fixed; z-index: 100; left: 0; right: 0; bottom: 0;
  max-width: 640px; margin: 0 auto;
  max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--blanco); border-radius: var(--r-l) var(--r-l) 0 0;
  transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.hoja.abierta { transform: none; }
.hoja-cerrar {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer;
}
.hoja-foto { width: 100%; aspect-ratio: 16/10; border-radius: var(--r-l) var(--r-l) 0 0; }
.hoja-foto.foto-vacia { font-size: 64px; }
.hoja-cuerpo { padding: 18px 18px 0; }
.hoja-nombre { font-family: var(--f-letrero); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 0; }
.hoja-desc { color: var(--tinta-2); margin: 8px 0 0; }
.hoja-grupo { margin-top: 20px; }
.hoja-grupo-t { font-weight: 700; margin-bottom: 8px; display: flex; justify-content: space-between; }
.hoja-grupo-t small { font-weight: 600; color: var(--tomate); background: var(--tomate-claro); padding: 1px 8px; border-radius: 6px; font-size: 12px; }
.opcion {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border: 1px solid var(--linea); border-radius: var(--r-s);
  margin-bottom: 8px; cursor: pointer;
}
.opcion input { width: 20px; height: 20px; accent-color: var(--albahaca); margin: 0; }
.opcion span { flex: 1; font-weight: 500; }
.opcion b { font-weight: 700; }
.opcion:has(input:checked) { border-color: var(--albahaca); background: var(--albahaca-claro); }
.hoja textarea { width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid var(--linea); border-radius: var(--r-s); resize: vertical; font-size: 16px; }
.hoja-pie {
  position: sticky; bottom: 0; margin-top: 18px;
  display: flex; gap: 12px; align-items: center;
  padding: 12px 18px calc(12px + var(--safe-b));
  background: var(--blanco); border-top: 1px solid var(--linea);
}

.contador { display: inline-flex; align-items: center; border: 1px solid var(--linea); border-radius: 999px; }
.contador button { width: 42px; height: 42px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--carbon); border-radius: 50%; }
.contador button:disabled { color: var(--tinta-3); }
.contador output { min-width: 26px; text-align: center; font-weight: 700; }
.contador.sm button { width: 34px; height: 34px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: 0; border-radius: var(--r-m);
  background: var(--fuego); color: var(--negro);
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--fuego-osc); }
.btn:disabled { background: #E3CDBF; color: #7A665B; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; justify-content: space-between; }
.btn-ghost { background: var(--blanco); color: var(--carbon); border: 1px solid var(--linea); }
.btn-ghost:hover { background: var(--harina); }
.btn-tomate { background: var(--rojo); color: #fff; }
.btn-tomate:hover { background: var(--tomate-osc); }
.btn-peligro { background: var(--blanco); color: var(--rojo); border: 1px solid #EEC2B0; }
.btn-peligro:hover { background: var(--tomate-claro); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-wa { background: #1F8F4E; color: #fff; }
.btn-wa:hover { background: #18773F; }
.link-btn { background: none; border: 0; padding: 0; color: var(--tomate); font-weight: 600; cursor: pointer; text-decoration: underline; }

/* Formularios */
.form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.form input:not([type=checkbox]):not([type=radio]):not([type=file]),
.form select, .form textarea {
  display: block; width: 100%; margin-top: 6px;
  min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--linea); border-radius: var(--r-s);
  background: var(--blanco); font-size: 16px; font-weight: 400;
}
.form textarea { min-height: 84px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--carbon); outline: none; box-shadow: 0 0 0 3px rgba(255,116,23,.3); }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.form .check input { width: 20px; height: 20px; accent-color: var(--albahaca); }
.form .hint { display: block; font-weight: 400; font-size: 13px; color: var(--tinta-2); margin-top: 4px; }
.form input[type=file] { margin-top: 8px; font-size: 14px; max-width: 100%; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }

.card { background: var(--blanco); border-radius: var(--r-m); padding: 18px; margin-top: 16px; }
.card > :first-child { margin-top: 0; }

.flash { margin: 12px 16px 0; padding: 12px 16px; border-radius: var(--r-s); font-weight: 500; }
.panel-main .flash { margin: 0 0 12px; }
.flash-ok { background: var(--verde-claro); color: #1F5530; }
.flash-error { background: var(--tomate-claro); color: var(--tomate-osc); }
.flash-info { background: var(--brasa-claro); color: #7A4A06; }

/* Autenticación */
.auth-cabeza { background: linear-gradient(165deg, var(--marron), var(--negro) 80%); color: var(--crema); padding: 34px 0 30px; text-align: center; }
.auth-cabeza .letrero { font-size: 40px; }
.auth-cabeza p { margin: 8px 0 0; color: #F3D9C4; }
.auth-cabeza .portada-logo { display: block; margin: 0 auto 12px; }
.auth-alterno { text-align: center; margin-top: 18px; }

/* Checkout */
.paso { margin-top: 22px; }
.paso-t { font-weight: 700; font-size: 18px; margin: 0 0 10px; }
.item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.item:last-child { border-bottom: 0; }
.item-txt { flex: 1; min-width: 0; }
.item-nombre { font-weight: 700; }
.item-extra { font-size: 14px; color: var(--tinta-2); }
.item-der { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.selector { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.selector label {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px; border: 1px solid var(--linea); border-radius: var(--r-s);
  background: var(--blanco); cursor: pointer; margin: 0; font-weight: 700;
}
.selector label small { font-weight: 500; color: var(--tinta-2); font-size: 13px; }
.selector input { position: absolute; opacity: 0; pointer-events: none; }
.selector label:has(input:checked) { border-color: var(--albahaca); background: var(--albahaca-claro); box-shadow: inset 0 0 0 1px var(--albahaca); }
.selector label:has(input:focus-visible) { outline: 3px solid var(--brasa); }
.direccion { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--linea); border-radius: var(--r-s); margin-bottom: 8px; cursor: pointer; background: var(--blanco); }
.direccion input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--albahaca); }
.direccion:has(input:checked) { border-color: var(--albahaca); background: var(--albahaca-claro); }
.datos-pago { background: var(--harina); border-radius: var(--r-s); padding: 12px 14px; margin: 4px 0 14px; }
.datos-pago dl { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 12px; margin: 0; align-items: center; }
.datos-pago dt { color: var(--tinta-2); font-size: 14px; }
.datos-pago dd { margin: 0; font-weight: 700; word-break: break-all; }
.copiar { border: 0; background: none; color: var(--tomate); font-weight: 600; font-size: 13px; cursor: pointer; padding: 4px; }
.monto-pagar { font-size: 15px; margin: 0 0 10px; }
.monto-pagar b { font-size: 18px; }
.totales { margin-top: 10px; }
.totales div { display: flex; justify-content: space-between; padding: 4px 0; }
.totales .total { font-weight: 700; font-size: 19px; border-top: 1px solid var(--linea); margin-top: 6px; padding-top: 10px; }
.totales .total small { display: block; text-align: right; font-weight: 500; font-size: 14px; color: var(--tinta-2); }
.gps-ok { color: var(--verde); font-weight: 600; font-size: 14px; }

/* Seguimiento */
.estado-cabeza { background: radial-gradient(120% 90% at 90% 120%, rgba(255,116,23,.35), transparent 60%), linear-gradient(165deg, var(--marron), var(--negro) 80%); color: var(--crema); padding: 22px 0 26px; }
.estado-cabeza.listo { background: linear-gradient(165deg, var(--marron), var(--negro)); }
.estado-cabeza.cancelado { background: var(--tinta-2); }
.estado-codigo { font-size: 14px; opacity: .85; margin: 0; }
.estado-titulo { font-family: var(--f-letrero); font-weight: 400; font-size: 32px; line-height: 1.1; margin: 6px 0 0; }
.estado-eta { margin: 10px 0 0; font-size: 17px; }
.estado-eta b { font-size: 22px; color: var(--fuego); }
.progreso { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 18px; }
.progreso div { height: 6px; border-radius: 3px; background: rgba(255,243,227,.18); position: relative; overflow: hidden; }
.progreso div.hecho { background: var(--fuego); }
.progreso div.actual::after {
  content: ""; position: absolute; inset: 0; background: var(--fuego);
  animation: cargando 1.6s ease-in-out infinite;
}
@keyframes cargando { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.progreso-txt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; font-size: 12px; color: #BFA595; }
.progreso-txt span.on { color: var(--crema); font-weight: 700; }
.repartidor-card { display: flex; align-items: center; gap: 12px; }
.repartidor-card .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brasa-claro); color: #8A5208; display: grid; place-items: center; }
.linea-tiempo { list-style: none; padding: 0; margin: 0; }
.linea-tiempo li { display: flex; gap: 12px; padding: 6px 0; font-size: 14px; }
.linea-tiempo time { color: var(--tinta-2); min-width: 62px; }

.pedido-fila { display: flex; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--linea); text-decoration: none; color: inherit; }
.pedido-fila:last-child { border-bottom: 0; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--harina); color: var(--tinta-2); white-space: nowrap; }
.chip-recibido { background: var(--brasa-claro); color: #8A5208; }
.chip-preparando { background: var(--fuego-claro); color: #9A3E0B; }
.chip-listo { background: var(--verde-claro); color: #1F5530; }
.chip-en_camino { background: #E2ECF7; color: #1D4E89; }
.chip-entregado { background: var(--harina); color: var(--tinta-2); }
.chip-cancelado { background: var(--tomate-claro); color: var(--tomate-osc); }
.chip-pendiente { background: var(--brasa-claro); color: #8A5208; }
.chip-verificado { background: var(--verde-claro); color: #1F5530; }
.chip-rechazado { background: var(--tomate-claro); color: var(--tomate-osc); }
.chip-contra_entrega { background: var(--harina); color: var(--tinta-2); }

.empty { text-align: center; padding: 48px 12px; }
.empty h1, .empty h2 { font-family: var(--f-letrero); font-weight: 400; font-size: 26px; line-height: 1.15; margin: 0 0 8px; }
.empty p { color: var(--tinta-2); margin: 0 0 20px; }

.wa-flotante {
  position: fixed; z-index: 45; right: 16px;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1F8F4E; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
body.has-cart .wa-flotante { bottom: calc(var(--tabbar-h) + var(--safe-b) + 86px); }

.toast {
  position: fixed; z-index: 120; left: 50%; top: 16px; transform: translate(-50%, -140%);
  background: var(--carbon); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px; transition: transform .25s; white-space: nowrap;
}
.toast.on { transform: translate(-50%, 0); }

.steps-list { padding-left: 20px; }
.steps-list li { margin-bottom: 6px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 4px 0; }
.checklist .ok { color: var(--verde); }
.checklist .bad { color: var(--tomate); font-weight: 700; }

/* ---------- Panel (admin y repartidor) ---------- */

body.panel { background: var(--blanco-calido); }
.panel-head { background: var(--negro); color: var(--crema); border-bottom: 3px solid var(--fuego); position: sticky; top: 0; z-index: 30; }
.panel-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 6px; max-width: 1180px; margin: 0 auto; }
.panel-logo { font-family: var(--f-letrero); font-size: 20px; color: var(--fuego); text-decoration: none; }
.panel-link { color: #F4D6C9; font-size: 14px; font-weight: 600; }
.panel-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px 12px 10px; max-width: 1180px; margin: 0 auto; scrollbar-width: none; }
.panel-tabs::-webkit-scrollbar { display: none; }
.panel-tabs a { flex: none; color: #D8CBC6; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.panel-tabs a.on { background: var(--fuego); color: var(--negro); }
.panel-main { max-width: 1180px; margin: 0 auto; padding: 16px 16px 60px; }
.panel-main.narrow { max-width: 620px; }
.panel-titulo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.panel-titulo h1 { font-family: var(--f-letrero); font-weight: 400; font-size: 26px; margin: 0; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--blanco); border-radius: var(--r-m); padding: 14px 16px; }
.kpi b { display: block; font-size: 24px; line-height: 1.1; }
.kpi span { font-size: 14px; color: var(--tinta-2); }

.interruptor-tienda { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--blanco); border-radius: var(--r-m); padding: 12px 16px; margin-bottom: 12px; }
.interruptor-tienda.cerrada { background: var(--rojo-claro); }

.tablero { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 1000px) {
  .tablero { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .columna { scroll-snap-align: start; }
}
.columna { background: #F4E6DA; border-radius: var(--r-m); padding: 10px; min-height: 120px; }
.columna-t { display: flex; justify-content: space-between; align-items: center; font-weight: 700; padding: 4px 6px 10px; }
.columna-t span { background: var(--blanco); border-radius: 999px; padding: 0 10px; font-size: 14px; }
.columna-vacia { color: var(--tinta-3); font-size: 14px; padding: 8px 6px; }

.ticket { display: block; background: var(--blanco); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; text-decoration: none; color: inherit; border-left: 4px solid var(--linea); }
.ticket.recibido { border-left-color: var(--brasa); }
.ticket.preparando { border-left-color: var(--rojo); }
.ticket.listo { border-left-color: var(--verde); }
.ticket.en_camino { border-left-color: #2F6DB5; }
.ticket.nuevo { animation: brillo 1.4s ease-in-out 3; }
@keyframes brillo { 50% { box-shadow: 0 0 0 4px rgba(240,164,58,.5); } }
.ticket-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.ticket-top time { font-weight: 500; color: var(--tinta-2); font-size: 13px; }
.ticket-mid { font-size: 14px; color: var(--tinta-2); margin: 4px 0 8px; }
.ticket-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ticket-bot b { font-size: 16px; }

.tabla { width: 100%; border-collapse: collapse; background: var(--blanco); border-radius: var(--r-m); overflow: hidden; }
.tabla th, .tabla td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--linea); vertical-align: middle; }
.tabla th { font-size: 13px; color: var(--tinta-2); font-weight: 600; background: #FBF9F8; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla-scroll { overflow-x: auto; border-radius: var(--r-m); }

.prod-admin { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--linea); }
.prod-admin:last-child { border-bottom: 0; }
.prod-admin .foto { width: 56px; height: 56px; border-radius: 10px; }
.prod-admin .foto-vacia { font-size: 20px; }
.prod-admin-txt { flex: 1; min-width: 0; }
.prod-admin-txt a { color: var(--carbon); font-weight: 700; text-decoration: none; }
.prod-admin-txt div { font-size: 14px; color: var(--tinta-2); }
.prod-admin.off .prod-admin-txt a { color: var(--tinta-3); text-decoration: line-through; }

.switch { position: relative; display: inline-block; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #CFC4BF; border-radius: 999px; transition: background .15s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; }
.switch input:checked + span { background: var(--verde); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--brasa); outline-offset: 2px; }

.opciones-editor .fila-op { display: grid; grid-template-columns: 1fr 110px 44px; gap: 8px; margin-bottom: 8px; }
.opciones-editor .fila-op input { margin-top: 0 !important; }
.btn-x { width: 44px; height: 48px; border: 1px solid var(--linea); background: var(--blanco); border-radius: var(--r-s); display: grid; place-items: center; cursor: pointer; color: var(--tomate); }
.foto-actual { width: 140px; aspect-ratio: 4/3; border-radius: 10px; object-fit: cover; margin-top: 8px; }

.detalle-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.detalle-grid > * { min-width: 0; }
@media (max-width: 860px) { .detalle-grid { grid-template-columns: minmax(0, 1fr); } }
.acciones { display: flex; flex-direction: column; gap: 10px; }
.acciones form { margin: 0; }
.dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 0; }
.dl dt { color: var(--tinta-2); font-size: 14px; }
.dl dd { margin: 0; font-weight: 500; word-break: break-word; }
.comprobante { max-width: 100%; border-radius: 10px; margin-top: 8px; border: 1px solid var(--linea); }

.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filtros a { padding: 7px 14px; border-radius: 999px; background: var(--blanco); color: var(--carbon); text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid var(--linea); }
.filtros a.on { background: var(--carbon); color: #fff; border-color: var(--carbon); }

.barras { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.barras div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: 11px; color: var(--tinta-2); }
.barras i { display: block; width: 100%; background: var(--fuego); border-radius: 4px 4px 0 0; min-height: 2px; }

.reparto { background: var(--blanco); border-radius: var(--r-m); padding: 16px; margin-bottom: 12px; border-left: 5px solid #2F6DB5; }
.reparto.listo { border-left-color: var(--verde); }
.reparto h2 { margin: 0; font-size: 18px; }
.reparto .cobrar { background: var(--brasa-claro); border-radius: var(--r-s); padding: 10px 12px; margin: 10px 0; font-weight: 600; }
.reparto-acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.reparto-acciones .btn { padding: 0 10px; }
.reparto-acciones .ancho { grid-column: 1 / -1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 700px) {
  .plato .foto { width: 112px; height: 112px; }
}

/* Comanda impresa (botón "Imprimir comanda" en el detalle del pedido) */
@media print {
  body.panel { background: #fff; }
  .panel-head, .acciones, .flash, .panel-titulo .btn, .btn, details { display: none !important; }
  .detalle-grid { display: block; }
  .card { padding: 0; margin: 0 0 12px; }
  .panel-main { padding: 0; }
}
.aviso-membresia{background:linear-gradient(135deg,rgba(255,106,26,.12),rgba(255,160,46,.12));border:1px solid rgba(255,106,26,.35);border-radius:12px;padding:10px 14px;margin:0 0 12px}

/* =====================================================================
   Rediseño: portada con logo, modo oscuro, color de acento y vista en cuadrícula
   (el color principal y el modo se eligen en Tienda web → Ajustes → Apariencia)
   ===================================================================== */
:root {
  --fuego-osc: color-mix(in srgb, var(--fuego) 82%, #000);
  --fuego-claro: color-mix(in srgb, var(--fuego) 16%, #fff);
  --brasa: color-mix(in srgb, var(--fuego) 80%, #fff);
  --brillo: color-mix(in srgb, var(--fuego) 45%, transparent);
}
body.tema-oscuro {
  --harina: #0E0907;
  --blanco: #1A110D;
  --linea: #342319;
  --carbon: #FFF3E3;
  --tinta-2: #CDB6A5;
  --tinta-3: #94806F;
  --fuego-claro: color-mix(in srgb, var(--fuego) 22%, #1A110D);
  --brasa-claro: color-mix(in srgb, var(--fuego) 18%, #1A110D);
  --rojo-claro: #3A1A12;
  --tomate: #FF8A4C;
  --tomate-claro: #3A1A12;
  color-scheme: dark;
}
body.tema-oscuro .plato:active { background: #241812; }
body.tema-oscuro .toast, body.tema-oscuro .filtros a.on { background: var(--fuego); color: var(--negro); border-color: var(--fuego); }
body.tema-oscuro .btn:disabled { background: #33261E; color: #8B766A; }
body.tema-oscuro .topbar, body.tema-oscuro .tabbar { background: rgba(26,17,13,.94); backdrop-filter: blur(10px); }
body.tema-oscuro .form input, body.tema-oscuro .form select, body.tema-oscuro .form textarea,
body.tema-oscuro .buscador input { background: #130C09; border-color: var(--linea); color: var(--crema); }
body.tema-oscuro .hoja { background: var(--blanco); }
body.tema-oscuro .hoja-fondo { background: rgba(0,0,0,.7); }

/* Cinta de anuncio */
.anuncio {
  background: linear-gradient(90deg, var(--fuego-osc), var(--fuego), var(--fuego-osc));
  background-size: 200% 100%; animation: brillo-cinta 6s linear infinite;
  color: var(--negro); text-align: center; font-weight: 800; font-size: 14px; letter-spacing: .2px;
  padding: 8px 14px; position: relative; z-index: 31;
}
@keyframes brillo-cinta { to { background-position: -200% 0; } }

/* Portada con el logo */
.portada {
  background:
    radial-gradient(110% 45% at 50% 108%, color-mix(in srgb, var(--fuego) 38%, transparent), transparent 70%),
    #000;
  padding: 18px 0 46px; overflow: hidden; text-align: center;
}
.portada .wrap { z-index: 1; }
.portada-top { justify-content: flex-end; margin: 0 0 4px; }
.portada-cuenta { backdrop-filter: blur(6px); background: rgba(0,0,0,.25); }
.marca { margin: 0; display: flex; justify-content: center; }
.marca-logo {
  width: min(74vw, 330px); height: auto; aspect-ratio: 1;
  mix-blend-mode: screen;
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 72%, transparent 80%);
  mask: radial-gradient(circle at 50% 50%, #000 72%, transparent 80%);
  filter: drop-shadow(0 0 26px var(--brillo));
  animation: latido 4.5s ease-in-out infinite;
}
.marca-logo.propio { mix-blend-mode: normal; -webkit-mask: none; mask: none; border-radius: 22px; width: min(60vw, 240px); background: transparent; }
@keyframes latido { 50% { filter: drop-shadow(0 0 40px var(--brillo)) brightness(1.06); transform: scale(1.012); } }
@media (max-width: 420px) { .registro-cta-btns .btn { font-size: 15px; white-space: nowrap; } }
.portada-lema { margin: -6px auto 16px; max-width: 32ch; color: #F6DCC6; font-weight: 500; }
.portada-datos, .redes { justify-content: center; }
.dato { background: rgba(0,0,0,.35); border-color: var(--brillo); backdrop-filter: blur(6px); }
.redes a { background: var(--fuego); box-shadow: 0 0 16px var(--brillo); }

/* Brasas que suben */
.brasas { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.brasas i {
  position: absolute; bottom: -12px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brasa); box-shadow: 0 0 8px 2px var(--fuego); opacity: 0;
  animation: subir 7s linear infinite;
}
.brasas i:nth-child(1){left:6%;animation-delay:0s;animation-duration:7s}.brasas i:nth-child(2){left:13%;animation-delay:1.7s;animation-duration:9s;width:3px;height:3px}
.brasas i:nth-child(3){left:21%;animation-delay:3.1s;animation-duration:6s}.brasas i:nth-child(4){left:29%;animation-delay:.6s;animation-duration:8s;width:4px;height:4px}
.brasas i:nth-child(5){left:37%;animation-delay:4.2s;animation-duration:10s;width:3px;height:3px}.brasas i:nth-child(6){left:45%;animation-delay:2.2s;animation-duration:7.5s}
.brasas i:nth-child(7){left:52%;animation-delay:5.4s;animation-duration:6.5s;width:4px;height:4px}.brasas i:nth-child(8){left:59%;animation-delay:1.1s;animation-duration:9.5s}
.brasas i:nth-child(9){left:66%;animation-delay:3.8s;animation-duration:7s;width:3px;height:3px}.brasas i:nth-child(10){left:73%;animation-delay:.3s;animation-duration:8.5s}
.brasas i:nth-child(11){left:80%;animation-delay:2.9s;animation-duration:6s;width:4px;height:4px}.brasas i:nth-child(12){left:87%;animation-delay:4.7s;animation-duration:9s}
.brasas i:nth-child(13){left:93%;animation-delay:1.4s;animation-duration:7.5s;width:3px;height:3px}.brasas i:nth-child(14){left:3%;animation-delay:5.9s;animation-duration:8s}
@keyframes subir { 0% { transform: translate(0,0) scale(1); opacity: 0; } 12% { opacity: .95; } 100% { transform: translate(26px,-330px) scale(.3); opacity: 0; } }

/* Categorías, recomendados y platos */
.cats a.on { background: var(--fuego); border-color: var(--fuego); color: var(--negro); box-shadow: 0 4px 14px var(--brillo); }
body.tema-oscuro .cats { background: rgba(14,9,7,.92); backdrop-filter: blur(8px); }
.recos-titulo, .seccion-titulo { color: var(--carbon); }
.seccion-titulo::after { content: ""; display: block; width: 46px; height: 4px; border-radius: 4px; margin-top: 6px; background: linear-gradient(90deg, var(--fuego), var(--rojo)); }
.reco { border: 1px solid var(--linea); transition: transform .15s, box-shadow .15s; }
.reco:active { transform: scale(.97); }
.reco:hover { box-shadow: 0 8px 24px var(--brillo); }
.reco-precio, .usd { color: var(--fuego); }
.lista { border: 1px solid var(--linea); overflow: hidden; }
.plato { transition: background .15s; }
.plato .foto { box-shadow: 0 4px 14px rgba(0,0,0,.25); }

/* Vista en cuadrícula */
body.vista-cuadricula .lista { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: none; border: 0; border-radius: 0; overflow: visible; }
body.vista-cuadricula .plato {
  flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 10px;
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--r-m);
}
body.vista-cuadricula .lista .plato:last-child { border-bottom: 1px solid var(--linea); }
body.vista-cuadricula .plato .foto { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; }
body.vista-cuadricula .plato-desc { -webkit-line-clamp: 2; font-size: 13px; }
@media (min-width: 560px) { body.vista-cuadricula .lista { grid-template-columns: 1fr 1fr 1fr; } }

/* Carrito y barra inferior */
.carrito-barra { background: linear-gradient(135deg, var(--fuego), var(--fuego-osc)); box-shadow: 0 8px 26px var(--brillo); }
.tabbar a.on { color: var(--fuego); }
.tabbar a.on svg { filter: drop-shadow(0 0 6px var(--brillo)); }

/* Mensaje de agradecimiento */
.gracias { margin: 8px 0 12px; font-weight: 700; font-size: 17px; color: var(--crema); }

@media (prefers-reduced-motion: reduce) {
  .marca-logo, .brasas i, .anuncio { animation: none; }
}

/* Etiquetas de los platos */
.etqs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.etq { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--fuego-claro); color: var(--fuego-osc); border: 1px solid var(--brillo); white-space: nowrap; }
.etq-picante { background: rgba(232,56,26,.16); color: #FF6A4D; border-color: rgba(232,56,26,.45); }
.etq-vegetariano { background: rgba(63,165,91,.16); color: #4CC474; border-color: rgba(63,165,91,.45); }
.etq-nuevo { background: rgba(242,176,30,.18); color: #F2B01E; border-color: rgba(242,176,30,.5); }
.etq-oferta { background: var(--fuego); color: var(--negro); border-color: var(--fuego); }
body:not(.tema-oscuro) .etq-picante { color: #B3270F; } body:not(.tema-oscuro) .etq-vegetariano { color: #1F7A3E; } body:not(.tema-oscuro) .etq-nuevo { color: #8A6100; }

/* Barra de envío gratis (sobre la barra del carrito) */
.envio-barra {
  position: fixed; z-index: 39; left: 12px; right: 12px; max-width: 616px; margin: 0 auto;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 74px);
  background: var(--blanco); border: 1px solid var(--brillo); border-radius: 12px; padding: 8px 12px 10px;
  font-size: 13px; font-weight: 700; color: var(--carbon); box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.envio-barra i { display: block; height: 6px; margin-top: 6px; border-radius: 6px; background: var(--linea); overflow: hidden; }
.envio-barra b { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--fuego), var(--brasa)); transition: width .35s; }
.envio-barra.lista { border-color: #3FA55B; } .envio-barra.lista b { background: #3FA55B; }
body.has-cart .wa-flotante { bottom: calc(var(--tabbar-h) + var(--safe-b) + 140px); }
.envio-msg { margin: -2px 0 6px; color: var(--fuego); font-weight: 700; }

/* Cupones y pedir de nuevo */
.cupon-fila { display: flex; gap: 8px; margin-top: 8px; }
.cupon-fila input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; }
.cupon-msg { margin: 8px 0 0; font-weight: 700; } .cupon-msg.ok { color: #4CC474; } .cupon-msg.mal { color: var(--tomate); }
.totales .desc, .totales .desc span { color: #4CC474; font-weight: 800; }
.repetir { width: 100%; margin-top: 12px; }
.repetir-fila { padding: 0 16px 12px; border-bottom: 1px solid var(--linea); } .repetir-fila .btn { width: auto; }

/* Agrégale algo */
.sug-lista { display: grid; gap: 8px; margin-top: 8px; }
.sug { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px dashed var(--brillo); border-radius: var(--r-m); }
.sug-txt { display: flex; flex-direction: column; min-width: 0; } .sug-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sug-txt span { color: var(--fuego); font-weight: 800; }
.sug .btn { width: auto; flex-shrink: 0; }

/* Código de entrega */
.codigo-entrega { text-align: center; border: 2px solid var(--fuego); box-shadow: 0 0 26px var(--brillo); }
.ce-t { font-weight: 800; }
.ce-num { font-size: 52px; font-weight: 900; letter-spacing: .28em; padding-left: .28em; color: var(--fuego); line-height: 1.15; margin: 4px 0; font-variant-numeric: tabular-nums; }

/* ---- Modo oscuro: colores que quedaban claros (opciones elegidas, avisos, chips) ---- */
body.tema-oscuro {
  /* los alias se declaran en :root y no ven los cambios hechos aquí: se repiten */
  --albahaca: var(--fuego);
  --albahaca-osc: var(--fuego-osc);
  --albahaca-claro: color-mix(in srgb, var(--fuego) 20%, #1A110D);
  --tomate-osc: #FF9A7A;
  --verde-claro: #16301F;
  --verde: #4CC474;
}
body.tema-oscuro .selector label:has(input:checked),
body.tema-oscuro .direccion:has(input:checked),
body.tema-oscuro .opcion:has(input:checked) { background: var(--albahaca-claro); color: var(--crema); border-color: var(--fuego); }
body.tema-oscuro .selector label small, body.tema-oscuro .direccion small { color: var(--tinta-2); }
body.tema-oscuro .flash-ok { background: #16301F; color: #8FE0A8; }
body.tema-oscuro .flash-error { background: #3A1A12; color: #FFA58C; }
body.tema-oscuro .flash-info { background: #3A2A12; color: #FFCB85; }
body.tema-oscuro .chip-recibido, body.tema-oscuro .chip-pendiente { background: #3A2A12; color: #FFCB85; }
body.tema-oscuro .chip-preparando { background: #3A2412; color: #FFB27A; }
body.tema-oscuro .chip-listo, body.tema-oscuro .chip-verificado { background: #16301F; color: #8FE0A8; }
body.tema-oscuro .chip-cancelado, body.tema-oscuro .chip-rechazado { background: #3A1A12; color: #FFA58C; }
body.tema-oscuro .repartidor-card .avatar { background: #3A2A12; color: #FFCB85; }
body.tema-oscuro .columna { background: #241812; }
body.tema-oscuro .tabla th { background: #241812; color: var(--tinta-2); }
body.tema-oscuro .reparto .cobrar { background: #3A2A12; color: var(--crema); }
body.tema-oscuro .interruptor-tienda.cerrada { background: #3A1A12; }
body.tema-oscuro .etiqueta-agotado, body.tema-oscuro .hoja-grupo-t small { background: #3A1A12; color: #FFA58C; }
body.tema-oscuro .btn-peligro:hover { background: #3A1A12; }
body.tema-oscuro .foto { background: #241812; }
body.tema-oscuro .btn-ghost { color: var(--crema); border-color: var(--linea); }

/* Reseñas y puntos */
.estrellas { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; margin: 6px 0; }
.estrellas input { position: absolute; opacity: 0; pointer-events: none; }
.estrellas label { font-size: 44px; line-height: 1; color: var(--linea); cursor: pointer; transition: color .1s, transform .1s; }
.estrellas input:checked ~ label, .estrellas label:hover, .estrellas label:hover ~ label { color: #F2B01E; }
.estrellas label:active { transform: scale(1.15); }
.estrellas input:focus-visible + label { outline: 2px solid var(--fuego); border-radius: 6px; }
.resena { text-align: center; } .resena .h3 { margin-top: 0; }
.estrellas-fijas { font-size: 32px; color: #F2B01E; letter-spacing: 4px; }
.resp { margin-top: 8px; padding: 10px 12px; border-left: 3px solid var(--fuego); background: var(--fuego-claro); border-radius: 8px; text-align: left; font-size: 14px; }
.pt-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portada-puntos { margin: -6px auto 14px; font-weight: 700; color: #F2B01E; font-size: 14px; }
.puntos-card .pt-saldo { font-size: 38px; font-weight: 900; color: var(--fuego); line-height: 1.1; } .puntos-card .pt-saldo small { font-size: 14px; color: var(--tinta-2); font-weight: 600; }
.pt-mov { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--linea); font-size: 14px; } .pt-mov .mas { color: #4CC474; } .pt-mov .menos { color: var(--tomate); }
.resena textarea { border: 1px solid var(--linea); border-radius: 12px; padding: 10px 12px; font: inherit; resize: vertical; }
body.tema-oscuro .resena textarea { background: #130C09; color: var(--crema); }
body.tema-oscuro .resena textarea::placeholder { color: var(--tinta-3); }
