/* Tazza Básico · estilos */

:root {
  --rojo: #D81F26;
  --rojo-osc: #B5161C;
  --rojo-suave: #FDECEC;
  --tinta: #141212;
  --tinta-2: #2A2525;
  --suave: #F4F2F0;
  --linea: #E6E1DE;
  --apagado: #6B6361;
  --blanco: #FFFFFF;
  --verde: #1F8A4C;
  --verde-suave: #E6F5EC;
  --ambar: #B26B00;
  --ambar-suave: #FFF3DD;
  --wa: #25D366;
  --radio: 20px;
  --radio-chico: 14px;
  --sombra: 0 1px 2px rgba(20, 18, 18, .06), 0 8px 24px rgba(20, 18, 18, .06);
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --texto: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-alto: 68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--texto);
  color: var(--tinta);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.sin-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.cargando { padding: 40px; text-align: center; color: var(--apagado); }

/* ---------- Tipografía ---------- */
.titulo { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 4vw, 32px); letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.subtitulo { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0 0 12px; }
.texto-suave { color: var(--apagado); font-size: 14px; margin: 4px 0 0; }
.nota { font-size: 12px; color: var(--apagado); background: var(--suave); border-radius: 10px; padding: 8px 12px; margin: 0; }
.error { color: var(--rojo); font-weight: 600; }

/* ---------- Marco ---------- */
.marco { min-height: 100vh; min-height: 100dvh; }
.lateral { display: none; }
.barra-movil {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
}
.barra-movil .marca { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 18px; }
.marca-logo {
  width: 34px; height: 34px; border-radius: 11px; background: var(--rojo); color: #fff;
  display: block; object-fit: cover;
  box-shadow: 0 4px 12px rgba(216, 31, 38, .35);
}
.estado-caja {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; background: var(--suave); color: var(--apagado);
}
.estado-caja::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.estado-caja.abierta { background: var(--verde-suave); color: var(--verde); }
.estado-caja.abierta::before { animation: latido 1.6s infinite; }

.contenido { padding: 16px 16px calc(var(--nav-alto) + 24px + env(safe-area-inset-bottom)); }

.nav-movil {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-alto) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--tinta); border-radius: 22px 22px 0 0;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none; color: rgba(255, 255, 255, .55); font-size: 11px; font-weight: 600;
  transition: color .2s;
}
.nav-item.activo { color: #fff; }
.nav-movil .nav-item.activo svg { background: var(--rojo); border-radius: 999px; padding: 4px 14px; width: 52px; height: 30px; box-sizing: border-box; }

@media (min-width: 900px) {
  .marco { display: grid; grid-template-columns: 240px 1fr; }
  .barra-movil, .nav-movil { display: none; }
  .lateral {
    display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh;
    padding: 22px 16px; background: var(--tinta); color: #fff;
  }
  .lateral .marca { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
  .marca-texto { display: flex; flex-direction: column; line-height: 1.1; }
  .marca-texto b { font-family: var(--display); font-size: 22px; }
  .marca-texto small { font-size: 11px; color: rgba(255, 255, 255, .55); }
  .negocio-chip { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--tinta-2); }
  .negocio-chip .estado-caja { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); }
  .negocio-chip .estado-caja.abierta { background: rgba(31, 138, 76, .2); color: #6EE7A0; }
  .nav-lista { display: flex; flex-direction: column; gap: 4px; }
  .lateral .nav-item { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; border-radius: 999px; font-size: 15px; }
  .lateral .nav-item:hover { color: #fff; background: rgba(255, 255, 255, .06); }
  .lateral .nav-item.activo { background: var(--rojo); }
  .plan-pill { margin-top: auto; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .7); }
  .contenido { padding: 28px 32px; min-width: 0; }
}

/* ---------- Botones y pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .12s, background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-rojo { background: var(--rojo); color: #fff; box-shadow: 0 6px 16px rgba(216, 31, 38, .28); }
.btn-rojo:hover:not(:disabled) { background: var(--rojo-osc); }
.btn-negro { background: var(--tinta); color: #fff; }
.btn-borde { background: #fff; border: 1.5px solid var(--linea); color: var(--tinta); }
.btn-borde:hover { border-color: var(--tinta); }
.btn-borde.peligro { color: var(--rojo); }
.btn-whatsapp { background: var(--wa); color: #08361b; }
.btn-grande { min-height: 54px; font-size: 16px; padding: 14px 24px; }
.btn-ancho { width: 100%; }
.btn-texto { background: none; border: 0; color: var(--rojo); font-weight: 700; padding: 6px; }
.btn-icono { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--suave); display: grid; place-items: center; flex-shrink: 0; }
.btn-icono:hover { background: var(--linea); }
.fila-botones { display: flex; flex-wrap: wrap; gap: 10px; }
.fila-botones > * { flex: 1 1 auto; }
:focus-visible { outline: 3px solid rgba(216, 31, 38, .45); outline-offset: 2px; }

.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.scroll-x::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--linea); background: #fff;
  font-weight: 600; font-size: 14px; white-space: nowrap; transition: all .15s;
}
.pill.activa { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.pill-borde { border-style: dashed; color: var(--apagado); }
.pills-chicas .pill { padding: 5px 11px; font-size: 12.5px; }
.pill-dato { background: var(--suave); border-color: transparent; font-weight: 500; }

.segmentado { display: inline-flex; align-self: flex-start; padding: 4px; background: var(--suave); border-radius: 999px; gap: 2px; }
.segmentado button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--apagado); }
.segmentado button.activo { background: #fff; color: var(--tinta); box-shadow: var(--sombra); }
.segmentado-ancho { display: flex; }
.segmentado-ancho button { flex: 1; }

/* ---------- Formularios ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > span { font-size: 13px; font-weight: 600; color: var(--apagado); }
.campo input, .campo select, .campo textarea, .fila-precio input {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--radio-chico);
  border: 1.5px solid var(--linea); background: #fff; font-size: 16px;
}
.campo textarea { resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .fila-precio input:focus { outline: none; border-color: var(--tinta); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--rojo); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 13px; font-weight: 600; color: var(--apagado); margin-bottom: 8px; }
.grilla-campos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 16px; }

/* ---------- Pantallas ---------- */
.pantalla { max-width: 1100px; display: flex; flex-direction: column; gap: 18px; }
/* La entrada animada solo al cambiar de pantalla, no en cada toque */
.entrando .pantalla, .entrando .caja-productos, .entrando .caja-pedido { animation: entrar .3s ease both; }
.cabecera { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.tarjeta { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 20px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 14px; }
.tarjeta .subtitulo { margin: 0; }
.vacio { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; max-width: 420px; margin: 0 auto; }
.vacio .vaso { animation: flotar 3s ease-in-out infinite; }
.vacio-chico { align-items: flex-start; }
.form-abrir { display: flex; flex-direction: column; gap: 14px; width: 100%; margin-top: 12px; text-align: left; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { border-radius: var(--radio); padding: 16px; background: var(--suave); display: flex; flex-direction: column; gap: 4px; min-height: 104px; }
.kpi span { font-size: 13px; font-weight: 600; color: var(--apagado); }
.kpi strong { font-family: var(--display); font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; }
.kpi small { font-size: 12px; color: var(--apagado); }
.kpi-negro { background: var(--tinta); color: #fff; }
.kpi-negro span, .kpi-negro small { color: rgba(255, 255, 255, .6); }
.kpi-rojo { background: var(--rojo); color: #fff; }
.kpi-rojo span, .kpi-rojo small { color: rgba(255, 255, 255, .8); }

/* Listas */
.lista { display: flex; flex-direction: column; gap: 8px; }
.fila-lista {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: var(--radio-chico); background: var(--suave); text-decoration: none;
}
.fila-lista > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.fila-lista .texto-suave { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila-acciones { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.metodo { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #fff; }
.metodo.qr { color: var(--rojo); }

.estado-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.estado-pill.chica { padding: 4px 10px; font-size: 12px; }
.estado-pill.ok { background: var(--verde-suave); color: var(--verde); }
.estado-pill.mal { background: var(--rojo-suave); color: var(--rojo); }
.estado-pill.aviso { background: var(--ambar-suave); color: var(--ambar); }
.estado-pill.neutro { background: var(--suave); color: var(--apagado); }
.form-cierre { max-width: 520px; }
.cierre-ok { align-items: center; text-align: center; }

/* ---------- Caja ---------- */
.caja { display: grid; gap: 16px; }

.caja-productos { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.caja-pedido { display: none; }
.grilla-productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 420px) { .grilla-productos { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.producto {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 14px; border-radius: var(--radio); border: 1.5px solid var(--linea); background: #fff;
  text-align: left; min-height: 178px; transition: transform .12s, border-color .2s, box-shadow .2s;
}
.producto:hover { border-color: var(--tinta); box-shadow: var(--sombra); }
.producto:active { transform: scale(.96); }
.producto.en-pedido { border-color: var(--rojo); background: linear-gradient(180deg, var(--rojo-suave), #fff 60%); }
.producto-vaso { align-self: center; transition: transform .25s; }
.producto:hover .producto-vaso { transform: translateY(-3px) rotate(-3deg); }
.producto-nombre { font-weight: 700; font-size: 15px; line-height: 1.2; }
.producto-pie { margin-top: auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.producto-tamano { font-size: 12px; color: var(--apagado); font-weight: 600; }
.precio-pill { background: var(--tinta); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.contador {
  position: absolute; top: 10px; right: 10px; background: var(--rojo); color: #fff;
  font-weight: 800; font-size: 13px; padding: 3px 9px; border-radius: 999px; animation: pop .25s ease;
}

.pedido { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.pedido-cabecera { display: flex; justify-content: space-between; align-items: flex-start; }
.pedido-numero { font-family: var(--display); font-size: 26px; margin: 0; }
.pedido-lineas { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; flex: 1; min-height: 60px; }
.pedido-vacio { color: var(--apagado); text-align: center; padding: 30px 10px; border: 1.5px dashed var(--linea); border-radius: var(--radio-chico); margin: 0; }
.linea { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--suave); border-radius: var(--radio-chico); }
.linea-info { display: flex; flex-direction: column; min-width: 0; }
.linea-nombre { font-weight: 700; }
.linea-detalle { font-size: 13px; color: var(--apagado); }
.stepper { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 3px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--suave); font-size: 18px; font-weight: 700; }
.stepper button:last-child { background: var(--tinta); color: #fff; }
.stepper span { min-width: 20px; text-align: center; font-weight: 800; }
.pedido-pie { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--linea); padding-top: 14px; }
.total-fila { display: flex; justify-content: space-between; align-items: baseline; }
.total-grande { font-family: var(--display); font-size: 30px; letter-spacing: -.02em; }

.barra-pedido {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-alto) + 10px + env(safe-area-inset-bottom)); z-index: 25;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border: 0; border-radius: 999px; background: var(--rojo); color: #fff;
  font-weight: 700; font-size: 16px; box-shadow: 0 10px 28px rgba(216, 31, 38, .4);
  animation: subir .3s ease both;
}
.barra-pedido.oculta { display: none; }
.burbuja { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 999px; background: #fff; color: var(--rojo); font-weight: 800; margin-right: 8px; padding: 0 6px; }
.barra-total { font-family: var(--display); font-size: 18px; }

@media (min-width: 900px) {
  .caja { grid-template-columns: 1fr 360px; align-items: start; }
  .caja-pedido {
    display: block; position: sticky; top: 28px; height: calc(100vh - 56px);
    background: #fff; border: 1px solid var(--linea); border-radius: 24px; padding: 20px; box-shadow: var(--sombra);
  }
  .barra-pedido { display: none; }
  .scroll-x { margin: 0; padding: 2px 0; }
}

/* ---------- Modal ---------- */
#modal-root { position: fixed; inset: 0; z-index: 50; display: none; }
#modal-root.abierto { display: block; }
.modal-fondo { position: absolute; inset: 0; background: rgba(20, 18, 18, .5); backdrop-filter: blur(3px); animation: fundido .2s ease both; }
.modal {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 28px 28px 0 0; padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
  animation: subir .28s cubic-bezier(.2, .9, .3, 1.1) both;
}
.modal::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 9px; background: var(--linea); margin: 4px auto 12px; }
@media (min-width: 700px) {
  .modal { left: 50%; top: 50%; right: auto; bottom: auto; width: min(480px, 92vw); transform: translate(-50%, -50%); border-radius: 28px; padding: 24px; animation: aparecer .22s ease both; }
  .modal::before { display: none; }
  .modal-hoja { width: min(420px, 92vw); }
}
.modal-cuerpo { display: flex; flex-direction: column; gap: 16px; }
.modal-cabecera { display: flex; align-items: center; justify-content: space-between; }
.modal-titulo { font-family: var(--display); font-size: 24px; margin: 0; }
.monto-cobro { font-family: var(--display); font-weight: 800; font-size: 46px; letter-spacing: -.03em; margin: 0; text-align: center; }
.aviso-qr { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radio-chico); background: var(--rojo-suave); color: var(--rojo); }
.aviso-qr p { margin: 0; color: var(--tinta); font-size: 14px; }
.efectivo { display: flex; flex-direction: column; gap: 12px; }
.cambio-fila { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: var(--radio-chico); background: var(--suave); min-height: 56px; }
.cambio-fila strong { font-family: var(--display); font-size: 26px; color: var(--verde); }
.exito { align-items: stretch; text-align: center; }
.exito-icono { width: 76px; height: 76px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; margin: 0 auto; animation: pop .4s cubic-bezier(.2, .9, .3, 1.4) both; box-shadow: 0 10px 30px rgba(31, 138, 76, .35); }
.exito .campo { text-align: left; }
.cambio-destacado { margin: 0; font-size: 18px; }
.cambio-destacado strong { color: var(--verde); font-family: var(--display); font-size: 24px; }
.hoja-pedido .pedido-lineas { max-height: 40vh; }
.centrado { align-items: center; text-align: center; }
.centrado .modal-cabecera { width: 100%; }
.qr-img { border-radius: 16px; border: 1px solid var(--linea); background: #fff; }

/* Productos */
.fila-producto { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radio); border: 1px solid var(--linea); background: #fff; }
.fila-producto.pausado { opacity: .5; }
.mini-vaso { width: 52px; height: 52px; border-radius: 14px; background: var(--suave); display: grid; place-items: center; flex-shrink: 0; }
.fila-producto-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.fila-producto-info .texto-suave { margin: 0; font-size: 13px; }
.interruptor { width: 50px; height: 30px; border-radius: 999px; border: 0; background: var(--linea); position: relative; padding: 0; transition: background .2s; }
.interruptor span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.interruptor.on { background: var(--verde); }
.interruptor.on span { transform: translateX(20px); }
.precios { display: flex; flex-direction: column; gap: 8px; }
.fila-precio { display: grid; grid-template-columns: 1fr 110px; gap: 8px; }
.paletas { display: flex; flex-wrap: wrap; gap: 8px; }
.paletas legend { width: 100%; }
.paleta input { position: absolute; opacity: 0; }
.paleta span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; border: 2px solid var(--linea); cursor: pointer; }
.paleta input:checked + span { border-color: var(--rojo); background: var(--rojo-suave); }
.paleta input:focus-visible + span { outline: 3px solid rgba(216, 31, 38, .45); }

/* Reportes */
.barras { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding-top: 20px; }
.barras-mes { gap: 3px; }
.barra { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.barra-relleno { width: 100%; max-width: 44px; min-height: 3px; border-radius: 8px 8px 3px 3px; background: var(--tinta); transition: height .5s ease; }
.barra:last-child .barra-relleno { background: var(--rojo); }
.barra-valor { font-size: 11px; font-weight: 700; color: var(--apagado); white-space: nowrap; }
.barras-mes .barra-valor { display: none; }
.barra-etiqueta { font-size: 11px; color: var(--apagado); font-weight: 600; }
.ranking { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ranking li { display: flex; gap: 12px; align-items: center; }
.ranking-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--suave); font-weight: 800; flex-shrink: 0; }
.ranking li:first-child .ranking-num { background: var(--rojo); color: #fff; }
.ranking-info { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ranking-linea { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.ranking-linea span { color: var(--apagado); white-space: nowrap; }
.ranking-barra { height: 8px; border-radius: 9px; background: var(--suave); overflow: hidden; }
.ranking-barra span { display: block; height: 100%; border-radius: 9px; background: var(--tinta); }
.ranking li:first-child .ranking-barra span { background: var(--rojo); }

/* ---------- Público ---------- */
.publico { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }
.publico-cabecera { background: var(--tinta); color: #fff; margin: 0 -16px 20px; padding: 36px 24px 30px; border-radius: 0 0 32px 32px; text-align: center; position: relative; overflow: hidden; }
.publico-cabecera::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--rojo); right: -70px; top: -90px; opacity: .9; }
.publico-cabecera > * { position: relative; z-index: 1; }
.publico-cabecera p { margin: 6px 0 0; color: rgba(255, 255, 255, .7); }
.marca-negocio { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -.03em; }
.publico-seccion h2 { font-family: var(--display); font-size: 22px; margin: 24px 0 12px; display: flex; align-items: center; gap: 10px; }
.publico-seccion h2::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--rojo); }
.publico-grilla { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.publico-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radio); background: var(--suave); }
.publico-item h3 { margin: 0 0 6px; font-size: 16px; }
.powered { text-align: center; font-size: 12px; color: var(--apagado); margin-top: 32px; }
.powered b { color: var(--rojo); }

.acciones-comprobante { display: flex; justify-content: space-between; gap: 10px; padding: 16px 0; }
.ticket { max-width: 380px; margin: 0 auto; padding: 24px 22px; border: 1px solid var(--linea); border-radius: 22px; box-shadow: var(--sombra); background: #fff; }
.ticket-cabecera { text-align: center; border-bottom: 1.5px dashed var(--linea); padding-bottom: 14px; }
.ticket-cabecera .marca-negocio { font-size: 30px; }
.ticket-cabecera p { margin: 4px 0; font-size: 14px; }
.ticket-tipo { display: inline-block; background: var(--rojo); color: #fff; font-weight: 700; font-size: 12px !important; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.ticket-tabla { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.ticket-tabla td { padding: 6px 0; vertical-align: top; }
.ticket-tabla td:first-child { width: 32px; font-weight: 700; }
.ticket-tabla small { color: var(--apagado); }
.der { text-align: right; white-space: nowrap; }
.ticket-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px dashed var(--linea); padding-top: 12px; }
.ticket-total strong { font-family: var(--display); font-size: 28px; }
.ticket-pago { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--apagado); margin-top: 6px; }
.ticket-notas { font-size: 13px; }
.ticket-gracias { text-align: center; font-weight: 700; margin: 18px 0 4px; }
.ticket-legal, .ticket-powered { text-align: center; font-size: 11px; color: var(--apagado); margin: 2px 0; }

/* ---------- Aviso ---------- */
.toast {
  position: fixed; left: 50%; top: 16px; z-index: 60; transform: translate(-50%, -140%);
  max-width: min(92vw, 420px); padding: 12px 20px; border-radius: 999px; background: var(--tinta); color: #fff;
  font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); opacity: 0; transition: transform .3s cubic-bezier(.2, .9, .3, 1.2), opacity .2s; pointer-events: none;
}
.toast.visible { transform: translate(-50%, 0); opacity: 1; }
.toast.error { background: var(--rojo); }
.toast.exito { background: var(--verde); }

/* ---------- Animaciones ---------- */
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes subir { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fundido { from { opacity: 0; } }
@keyframes aparecer { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes latido { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Impresión (ticket 80 mm) ---------- */
@media print {
  @page { size: 80mm auto; margin: 4mm; }
  body { background: #fff; }
  .no-imprimir, #toast, #modal-root { display: none !important; }
  .publico { padding: 0; max-width: none; }
  .ticket { border: 0; box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
  .ticket-tipo { background: none; color: #000; border: 1px solid #000; }
}

/* ---------- Pantalla de entrada ---------- */
#splash {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--tinta); color: #fff; overflow: hidden;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
  transition: opacity .45s ease, transform .45s ease;
}
#splash.fuera { opacity: 0; transform: scale(1.04); pointer-events: none; }
.splash-onda { position: absolute; width: 140px; height: 140px; border-radius: 50%; background: var(--rojo); opacity: .9; animation: onda 1.5s cubic-bezier(.2, .8, .2, 1) .15s both; }
.splash-centro { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.splash-taza { border-radius: 30px; box-shadow: 0 22px 60px rgba(0, 0, 0, .45); animation: taza-entra .9s cubic-bezier(.2, 1.4, .4, 1) .25s both, latido-taza 1.1s ease-in-out 1.25s 2; }
.sp-fondo { fill: var(--rojo); }
.sp-taza { transform-origin: 56px 92px; animation: taza-sube .6s cubic-bezier(.2, 1.3, .4, 1) .55s both; }
.sp-t { transform-origin: 56px 70px; animation: t-pop .45s cubic-bezier(.2, 1.6, .4, 1) .95s both; }
.sp-vapor path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: vapor 1.4s ease-out 1.05s infinite; }
.sp-vapor path:nth-child(2) { animation-delay: 1.2s; }
.sp-vapor path:nth-child(3) { animation-delay: 1.35s; }
.splash-nombre { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 11vw, 64px); letter-spacing: -.03em; animation: texto-sube .6s ease 1s both; }
.splash-lema { color: rgba(255, 255, 255, .75); font-size: 15px; margin-top: -8px; animation: texto-sube .6s ease 1.15s both; }
.splash-pie { position: absolute; bottom: calc(28px + env(safe-area-inset-bottom)); font-size: 12px; color: rgba(255, 255, 255, .55); animation: texto-sube .6s ease 1.3s both; }
.splash-pie b { color: #fff; }
@keyframes onda { 0% { transform: scale(0); } 60% { opacity: .9; } 100% { transform: scale(14); opacity: 0; } }
@keyframes taza-entra { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes taza-sube { 0% { transform: translateY(30px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes t-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes vapor { 0% { stroke-dashoffset: 40; opacity: 0; } 30% { opacity: 1; } 100% { stroke-dashoffset: -40; opacity: 0; } }
@keyframes latido-taza { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.09); } 30% { transform: scale(.98); } 45% { transform: scale(1.05); } }
@keyframes texto-sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .splash-onda { display: none; } }

/* ---------- Fotos y logo ---------- */
.foto { display: block; object-fit: cover; border-radius: 14px; background: var(--suave); }
.producto-vaso { height: 96px; width: 100%; display: grid; place-items: center; }
.producto-vaso.con-foto .foto { width: 100%; height: 96px; border-radius: 14px; }
.producto:hover .producto-vaso.con-foto { transform: none; }
.producto:hover .producto-vaso.con-foto .foto { transform: scale(1.03); transition: transform .25s; }
.producto-vaso.con-foto { overflow: hidden; border-radius: 14px; }
.mini-vaso.con-foto { background: none; overflow: hidden; }
.mini-vaso.con-foto .foto { width: 52px; height: 52px; }
.publico-foto { flex-shrink: 0; width: 64px; height: 64px; display: grid; place-items: center; }
.publico-foto.con-foto .foto { width: 64px; height: 64px; }
.publico-logo { display: block; margin: 0 auto 12px; border-radius: 22px; object-fit: cover; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.ticket-logo { display: block; margin: 0 auto 8px; border-radius: 16px; object-fit: cover; }
.marca-logo { object-fit: cover; background: #fff; }
.splash-logo { object-fit: cover; background: #fff; }

.foto-campo { display: flex; flex-direction: column; gap: 8px; }
.campo-etiqueta { font-size: 13px; font-weight: 600; color: var(--apagado); }
.foto-fila { display: flex; gap: 14px; align-items: center; }
.foto-vista, .logo-vista { width: 88px; height: 88px; flex-shrink: 0; border-radius: 18px; background: var(--suave); display: grid; place-items: center; overflow: hidden; border: 1.5px dashed var(--linea); }
.foto-vista img { width: 100%; height: 100%; object-fit: cover; }
.logo-vista .logo-img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; }
.foto-vista.cargando-foto { animation: latido 1s infinite; }
.foto-botones { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.foto-botones .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.chico { font-size: 12px; }
.centro { text-align: center; }

/* Botones del menú: en celular, tres botones iguales en una fila */
.acciones-menu { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .acciones-menu { display: grid; grid-template-columns: 1fr 1fr 1fr; width: 100%; }
  .acciones-menu .btn { padding: 10px 8px; font-size: 13.5px; gap: 4px; min-width: 0; }
  .acciones-menu .btn svg { width: 16px; height: 16px; flex-shrink: 0; }
}

/* Textos que deben quedar en una sola fila */
.una-linea { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* ---------- Plan Completo: inventario, recetas, club ---------- */
.nav-item { position: relative; }
.nav-candado { display: inline-grid; place-items: center; margin-left: auto; opacity: .55; }
.nav-movil .nav-candado { display: none; }
.plan-etiqueta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--rojo); background: var(--rojo-suave); padding: 5px 12px; border-radius: 999px; }
.pill-plan { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--tinta); color: #fff; flex-shrink: 0; }

.bloqueo { max-width: 460px; margin: 6vh auto 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.bloqueo-icono { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--tinta); color: #fff; }
.bloqueo-lista { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 10px; }
.bloqueo-lista li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.bloqueo-lista svg { color: var(--verde); flex-shrink: 0; }

.grilla-accesos { display: grid; gap: 10px; }
@media (min-width: 700px) { .grilla-accesos { grid-template-columns: repeat(3, 1fr); } }
.acceso { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radio); border: 1.5px solid var(--linea); background: #fff; text-decoration: none; }
.acceso:hover { border-color: var(--tinta); }
.acceso-icono { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--rojo-suave); color: var(--rojo); flex-shrink: 0; }
.acceso.bloqueado .acceso-icono { background: var(--suave); color: var(--apagado); }
.acceso-texto { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.acceso-texto span { font-size: 13px; color: var(--apagado); }

.planes { display: grid; gap: 8px; }
@media (min-width: 700px) { .planes { grid-template-columns: repeat(3, 1fr); } }
.plan-opcion { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 14px 16px; border-radius: var(--radio-chico); border: 1.5px solid var(--linea); background: #fff; }
.plan-opcion span { font-size: 13px; color: var(--apagado); }
.plan-opcion.activo { border-color: var(--rojo); background: var(--rojo-suave); box-shadow: 0 0 0 1px var(--rojo); }
.plan-opcion.activo strong { color: var(--rojo); }

.kpis-3 { grid-template-columns: repeat(2, 1fr); }
.kpis-3 > :first-child { grid-column: 1 / -1; }
@media (min-width: 700px) { .kpis-3 { grid-template-columns: repeat(3, 1fr); } .kpis-3 > :first-child { grid-column: auto; } }
.kpi-verde { background: var(--verde); color: #fff; }
.kpi-verde span, .kpi-verde small { color: rgba(255, 255, 255, .8); }

.alerta { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radio-chico); background: var(--ambar-suave); color: var(--ambar); }
.alerta p { margin: 0; color: var(--tinta); font-size: 14px; }
.fila-derecha { justify-content: flex-end; }
.fila-derecha > * { flex: 0 0 auto; }
.btn-chico { min-height: 36px; padding: 6px 12px; font-size: 13px; gap: 6px; }

.fila-insumo, .fila-cliente { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radio); border: 1px solid var(--linea); background: #fff; }
.fila-insumo-info, .fila-cliente-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.fila-insumo-cabeza { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.stock-barra { height: 8px; border-radius: 9px; background: var(--suave); overflow: hidden; }
.stock-barra span { display: block; height: 100%; border-radius: 9px; background: var(--verde); }
.stock-barra.bajo span { background: var(--ambar); }
.stock-barra.agotado span { background: var(--rojo); }
@media (max-width: 520px) {
  .fila-insumo { flex-wrap: wrap; }
  .fila-insumo .fila-acciones { width: 100%; justify-content: flex-end; }
}

.grilla-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grilla-2 .campo > span { min-height: 34px; }

.tarjeta-receta { border: 1px solid var(--linea); border-radius: var(--radio); background: #fff; overflow: hidden; }
.tarjeta-receta-cabeza { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--suave); }
.tarjeta-receta-cabeza .mini-vaso { width: 40px; height: 40px; background: #fff; }
.fila-receta { width: 100%; display: grid; grid-template-columns: 64px 1fr 1fr auto; align-items: center; gap: 8px; padding: 12px 14px; border: 0; border-top: 1px solid var(--linea); background: #fff; text-align: left; font-size: 14px; }
.fila-receta:first-of-type { border-top: 0; }
.fila-receta:hover { background: #FBFAF9; }
.fila-receta-tam { font-weight: 800; }
.fila-receta-num { color: var(--apagado); white-space: nowrap; }
.fila-receta-num b { color: var(--tinta); }
@media (max-width: 520px) {
  .fila-receta { grid-template-columns: 1fr auto; }
  .fila-receta-num { font-size: 13px; }
  .fila-receta .estado-pill { grid-column: 1 / -1; justify-self: start; }
}
.filas-receta { display: flex; flex-direction: column; gap: 8px; }
.fila-ingrediente { display: grid; grid-template-columns: 1fr 120px 40px; gap: 8px; align-items: center; }
.fila-ingrediente select, .cantidad-con-unidad input, .input-chico, .club-cobro input {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--linea); background: #fff; font-size: 16px; min-width: 0;
}
.cantidad-con-unidad { position: relative; display: block; }
.cantidad-con-unidad input { padding-right: 34px; }
.cantidad-con-unidad span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--apagado); font-weight: 700; }
.resumen-receta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.resumen-receta > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: var(--suave); }
.resumen-receta span { font-size: 12px; color: var(--apagado); font-weight: 600; }
.resumen-receta strong { font-family: var(--display); font-size: 18px; }
.resumen-receta .ok { background: var(--verde-suave); } .resumen-receta .ok strong { color: var(--verde); }
.resumen-receta .aviso { background: var(--ambar-suave); } .resumen-receta .aviso strong { color: var(--ambar); }
.resumen-receta .mal { background: var(--rojo-suave); } .resumen-receta .mal strong { color: var(--rojo); }
@media (min-width: 700px) { .modal-ancho { width: min(560px, 92vw); } }

.sellos { display: flex; flex-wrap: wrap; gap: 5px; }
.sello { width: 18px; height: 18px; border-radius: 50%; border: 2px dashed var(--linea); }
.sello.lleno { border: 0; background: var(--rojo); box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--rojo); }
.buscador input { min-height: 46px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.acciones-2 { display: flex; gap: 8px; }
@media (max-width: 600px) { .acciones-2 { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } }

.club-cobro { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radio-chico); border: 1.5px dashed var(--linea); }
.club-cobro-cabeza { display: flex; align-items: center; gap: 8px; color: var(--rojo); }
.club-cobro-cabeza b { color: var(--tinta); }
.club-info { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.club-cliente { display: flex; flex-direction: column; gap: 6px; }
.canje { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--rojo); background: #fff; color: var(--rojo); text-align: left; font-size: 14px; }
.canje span { color: var(--tinta); }
.canje.activo { background: var(--rojo); color: #fff; animation: pop .3s ease; }
.canje.activo span { color: #fff; }
.tachado { font-size: 22px; color: var(--apagado); font-weight: 600; }
.club-resultado { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--rojo-suave); color: var(--rojo); font-size: 14px; }
.club-resultado span { color: var(--tinta); }
.segmentado-ancho { align-self: stretch; }

/* ---------- Plan Premium ---------- */
.descuentos { display: flex; flex-direction: column; gap: 6px; }
.linea-desc { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--verde-suave); color: var(--verde); font-size: 14px; }
.linea-desc span { display: inline-flex; align-items: center; gap: 6px; }
.banner-pedidos { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radio-chico); background: var(--tinta); color: #fff; text-decoration: none; animation: entrar .3s ease both; }
.banner-pedidos b { flex: 1; }
.banner-pedidos > span { font-weight: 700; color: #FFC83D; }
.banner-cobro { background: var(--rojo-suave); color: var(--rojo); }
.banner-cobro b { color: var(--tinta); }
.producto.destacado { border-color: #FFC83D; box-shadow: 0 0 0 2px #FFC83D inset; }
.cinta { position: absolute; top: 10px; left: 10px; z-index: 1; max-width: calc(100% - 56px); font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #FFC83D; color: var(--tinta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila-pills { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.grilla-2.ancho { width: 100%; }
.tarjeta-cumple { background: linear-gradient(180deg, #FFF8E6, #fff 70%); }
.fila-cumple { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--linea); }
.fila-cumple > div { display: flex; flex-direction: column; min-width: 0; }

.fila-promo { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radio); border: 1px solid var(--linea); background: #fff; }
.fila-promo.pausado { opacity: .5; }
.promo-icono { width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 16px; background: var(--suave); color: var(--tinta); }
.promo-icono.vigente { background: var(--rojo); color: #fff; animation: latido 1.6s infinite; }
.destacado-fila { display: grid; grid-template-columns: auto 1fr 1fr 110px; gap: 10px; align-items: end; }
.destacado-fila .mini-vaso { width: 52px; height: 52px; align-self: end; }
@media (max-width: 520px) { .destacado-fila { grid-template-columns: 1fr; } .destacado-fila .mini-vaso { display: none; } }
.dias { gap: 6px; }
.pill-check input { position: absolute; opacity: 0; }
.pill-check span { display: inline-block; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--linea); font-weight: 700; font-size: 14px; cursor: pointer; }
.pill-check input:checked + span { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.pill-check input:focus-visible + span { outline: 3px solid rgba(216, 31, 38, .45); }

.pantalla-ancha { max-width: 1300px; }
.columnas-pedidos { display: grid; gap: 14px; }
@media (min-width: 900px) { .columnas-pedidos { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.columna-pedidos { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--radio); background: var(--suave); min-width: 0; }
.columna-titulo { margin: 0; font-family: var(--display); font-size: 17px; display: flex; align-items: center; gap: 8px; }
.burbuja-gris { font-size: 12px; background: #fff; border-radius: 999px; padding: 2px 9px; }
.vacio-col { text-align: center; padding: 14px 0; margin: 0; }
.pedido-mesa { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--linea); animation: entrar .3s ease both; }
.pedido-mesa.nuevo { border: 2px solid var(--rojo); }
.pedido-mesa.listo { border: 2px solid var(--verde); }
.mesa-chip { font-family: var(--display); font-size: 18px; }
.pedido-nombre { font-weight: 700; color: var(--rojo); }
.pedido-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.pedido-items span { color: var(--apagado); font-size: 13px; }
.pedido-nota { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--ambar-suave); font-size: 13px; }
.btn-texto.peligro { color: var(--apagado); }
.fila-mesas { display: flex; gap: 10px; align-items: end; }
.fila-mesas .campo { flex: 1; }
.grilla-qr { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.qr-mesa { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: 16px; border: 1px solid var(--linea); }
.qr-mesa img { border-radius: 10px; background: var(--suave); }

/* Menú de la mesa (cliente) */
.mesa { padding-bottom: 110px; }
.mesa-numero { display: inline-block; margin-top: 10px !important; padding: 6px 16px; border-radius: 999px; background: var(--rojo); color: #fff !important; font-weight: 800; }
.mesa-cats { margin: 16px -16px 10px; position: sticky; top: 0; z-index: 5; background: #fff; padding-top: 8px; padding-bottom: 8px; }
.mesa-lista { display: flex; flex-direction: column; gap: 10px; }
.mesa-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radio); background: var(--suave); }
.mesa-item.destacado { background: #FFF8E6; box-shadow: 0 0 0 2px #FFC83D inset; }
.mesa-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mesa-item h3 { margin: 0; font-size: 16px; }
.mesa-tamanos { display: flex; flex-wrap: wrap; gap: 6px; }
.mesa-agregar { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 0; background: #fff; font-size: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.mesa-agregar:active { transform: scale(.96); }
.mesa-agregar svg { color: var(--rojo); }
.mesa-barra { bottom: calc(14px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .mesa-barra { display: flex; left: 50%; right: auto; width: 480px; transform: translateX(-50%); } .mesa-barra.oculta { display: none; } }
.promo-hoy { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--rojo-suave); color: var(--rojo); font-size: 14px; }
.promo-hoy span { color: var(--tinta); }
.seguimiento { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.seguimiento h2 { margin: 0; font-family: var(--display); font-size: 20px; }
.seguimiento-tarjeta { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radio); border: 2px solid var(--linea); background: #fff; }
.seguimiento-tarjeta.listo { border-color: var(--verde); background: var(--verde-suave); }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pasos li { font-size: 11.5px; font-weight: 700; color: var(--apagado); text-align: center; padding-top: 10px; border-top: 4px solid var(--linea); }
.pasos li.hecho { color: var(--tinta); border-color: var(--rojo); }
.pasos li.actual { color: var(--rojo); }
.listo-msg { margin: 0; font-weight: 800; color: var(--verde); text-align: center; font-size: 18px; animation: pop .4s ease; }
.nota-demo { margin-top: 14px; }

/* ---------- Portal de la mesa (v0.4.2) ---------- */
.sin-stock { position: absolute; top: 44px; right: 10px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--ambar-suave); color: var(--ambar); }
.mesa { padding-top: 0; }
.mesa-hero { margin: 0 -16px; padding: calc(18px + env(safe-area-inset-top)) 16px 22px; background: var(--tinta); color: #fff; border-radius: 0 0 28px 28px; position: relative; overflow: hidden; }
.mesa-hero::after { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: var(--rojo); right: -80px; bottom: -110px; opacity: .85; }
.mesa-hero > * { position: relative; z-index: 1; }
.mesa-hero-fila { display: flex; align-items: center; gap: 12px; }
.mesa-hero-fila > div { flex: 1; min-width: 0; }
.mesa-logo { border-radius: 16px; background: #fff; object-fit: cover; flex-shrink: 0; }
.mesa-negocio { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; line-height: 1.05; }
.mesa-lema { font-size: 13px; color: rgba(255, 255, 255, .65); }
.mesa-hero .mesa-numero { margin: 0 !important; flex-shrink: 0; font-size: 15px; box-shadow: 0 6px 16px rgba(216, 31, 38, .45); }
.mesa-saludo { margin: 16px 0 0; font-size: 15px; color: rgba(255, 255, 255, .85); }
.mesa-saludo b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--rojo); color: #fff; font-size: 15px; line-height: 1; }

.hero-sabor { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 18px; border-radius: 26px; color: #fff;
  background: linear-gradient(135deg, #D81F26 0%, #A9141A 60%, #141212 130%); box-shadow: 0 16px 36px rgba(216, 31, 38, .35); animation: latido-suave 2.4s ease-in-out infinite; }
.hero-sabor.agotada { filter: grayscale(.8); animation: none; }
.hero-brillo { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 45%, transparent 60%); transform: translateX(-100%); animation: brillo 3.2s ease-in-out infinite; pointer-events: none; }
.hero-texto { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hero-etiqueta { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: #FFC83D; color: var(--tinta); }
.hero-texto h2 { margin: 0; font-family: var(--display); font-size: 26px; line-height: 1.05; letter-spacing: -.02em; }
.hero-precio { display: flex; align-items: center; gap: 8px; }
.hero-precio .precio { font-family: var(--display); font-size: 26px; color: #fff; }
.hero-precio s { color: rgba(255, 255, 255, .7); font-size: 15px; }
.hero-desc { font-weight: 800; font-size: 14px; padding: 4px 10px; border-radius: 999px; background: #FFC83D; color: var(--tinta); animation: latido 1.2s ease-in-out infinite; }
.hero-agregar { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 12px 20px; border: 0; border-radius: 999px; background: #fff; color: var(--rojo); font-weight: 800; font-size: 16px; box-shadow: 0 8px 18px rgba(0, 0, 0, .2); }
.hero-agregar:active { transform: scale(.95); }
.hero-vaso { position: relative; z-index: 1; flex-shrink: 0; animation: latido-vaso 1.6s ease-in-out infinite; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .35)); }
.hero-vaso.con-foto .foto { width: 118px; height: 118px; border-radius: 22px; border: 3px solid #fff; }
@keyframes brillo { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes latido-vaso { 0%, 100% { transform: scale(1) rotate(-4deg); } 14% { transform: scale(1.08) rotate(2deg); } 28% { transform: scale(1) rotate(-4deg); } 42% { transform: scale(1.05) rotate(1deg); } }
@keyframes latido-suave { 0%, 100% { box-shadow: 0 16px 36px rgba(216, 31, 38, .35); } 50% { box-shadow: 0 16px 48px rgba(216, 31, 38, .6); } }

.tam-toggle { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: #fff; border: 1px solid var(--linea); }
.tam-toggle button { border: 0; background: none; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--apagado); }
.tam-toggle button.activo { background: var(--tinta); color: #fff; }
.tam-toggle button:disabled { text-decoration: line-through; opacity: .5; }
.tam-toggle.claro { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); }
.tam-toggle.claro button { color: rgba(255, 255, 255, .8); }
.tam-toggle.claro button.activo { background: #fff; color: var(--rojo); }
.tam-unico { font-size: 13px; font-weight: 700; color: var(--apagado); }
.tam-unico.claro { color: rgba(255, 255, 255, .8); }

.cartas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .cartas { grid-template-columns: repeat(3, 1fr); } }
.carta { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 12px 12px; border-radius: 22px; background: #fff; border: 1px solid var(--linea); box-shadow: var(--sombra); text-align: center; animation: entrar .3s ease both; }
.carta h3 { margin: 0; font-size: 15px; line-height: 1.2; min-height: 36px; display: grid; place-items: center; }
.carta-foto { height: 96px; display: grid; place-items: center; }
.carta-foto.con-foto .foto { width: 96px; height: 96px; border-radius: 18px; }
.carta-pie { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.carta-pie .precio { font-family: var(--display); font-size: 19px; }
.precio-con-desc { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.precio-con-desc s { font-size: 12px; color: var(--apagado); }
.carta .precio-con-desc .precio { color: var(--rojo); }
.btn-mas { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--rojo); color: #fff; box-shadow: 0 8px 18px rgba(216, 31, 38, .4); transition: transform .12s; }
.btn-mas:active { transform: scale(.88); }
.btn-mas:disabled { background: var(--linea); box-shadow: none; color: #fff; }
.carta-badge { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.carta-badge.desc { background: #FFC83D; color: var(--tinta); animation: latido 1.2s ease-in-out infinite; }
.carta-badge.agotado { background: var(--tinta); color: #fff; }
.carta-cuenta { position: absolute; top: 10px; right: 10px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--rojo); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; animation: pop .25s ease; }
.carta.agotada { opacity: .55; }
.carta.agotada .carta-foto { filter: grayscale(1); }
.carta.es-destacado { border: 2px solid #FFC83D; }
.mesa-barra.salto { animation: salto .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes salto { 0% { transform: scale(1); } 40% { transform: scale(1.06) translateY(-4px); } 100% { transform: scale(1); } }
@media (min-width: 900px) { .mesa-barra.salto { animation: none; } }
.mesa .nota-demo { margin-top: 12px; }
.mesa-cats { margin-top: 18px; }
.tam-toggle button { white-space: nowrap; padding: 6px 10px; }
.tam-toggle button:disabled { text-decoration: line-through; opacity: .45; }
.hero-precio s { color: rgba(255, 255, 255, .85); font-size: 15px; font-weight: 600; }
.pago-pendiente { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--apagado); }
.pago-hecho { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--linea); }
.pago-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pago-ok { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--verde); }
.pago-sellos { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: var(--rojo-suave); font-size: 14px; animation: pop .4s ease; }
.pedido-nombre small { color: var(--apagado); font-weight: 600; }

/* ---------- Navegación en dos niveles (Completo y Premium) y aviso de pedidos ---------- */
.barra-movil { flex-wrap: wrap; row-gap: 10px; }
.barra-derecha { display: flex; align-items: center; gap: 8px; }
.subnav { order: 3; width: calc(100% + 32px); margin: 0 -16px -2px; padding: 0 16px 2px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav-item { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--suave); color: var(--tinta); text-decoration: none; font-weight: 700; font-size: 13.5px; }
.subnav-item .nav-icono svg { width: 18px; height: 18px; }
.subnav-item.activo { background: var(--tinta); color: #fff; }
.nav-icono { position: relative; display: inline-grid; place-items: center; }
.nav-insignia { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #FFC83D; color: var(--tinta); font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--tinta); animation: pop .3s ease; }
.nav-item.con-aviso .nav-icono svg { animation: timbre 1.4s ease-in-out infinite; transform-origin: 50% 10%; }
.lateral .nav-item.con-aviso { background: rgba(255, 200, 61, .14); color: #fff; }
.lateral .nav-item.con-aviso.activo { background: var(--rojo); }
.campana-aviso { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: var(--rojo); color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; box-shadow: 0 0 0 0 rgba(216, 31, 38, .6); animation: llamado 1.6s ease-out infinite; }
.campana-aviso svg { animation: timbre 1.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes timbre { 0%, 60%, 100% { transform: rotate(0); } 10% { transform: rotate(16deg); } 20% { transform: rotate(-14deg); } 30% { transform: rotate(10deg); } 40% { transform: rotate(-6deg); } }
@keyframes llamado { 0% { box-shadow: 0 0 0 0 rgba(216, 31, 38, .55); } 100% { box-shadow: 0 0 0 12px rgba(216, 31, 38, 0); } }
.nav-movil.n3 { grid-template-columns: repeat(3, 1fr); }
.nav-movil.n4 { grid-template-columns: repeat(4, 1fr); }
.nav-movil.n5 { grid-template-columns: repeat(5, 1fr); }
.nav-movil .nav-item.activo .nav-icono svg { background: var(--rojo); border-radius: 999px; padding: 4px 14px; width: 52px; height: 30px; box-sizing: border-box; }
.nav-movil .nav-item.activo svg { background: none; padding: 0; width: auto; height: auto; }
.nav-movil .nav-item.activo .nav-icono svg { background: var(--rojo); padding: 4px 14px; width: 52px; height: 30px; }
.nav-movil .nav-insignia { right: -4px; top: -7px; }
.nav-movil .nav-item.activo .nav-insignia { right: 2px; }

.subnav-item { padding: 7px 12px 7px 9px; }

/* ---------- Barra con "Todo" (Completo y Premium) ---------- */
.nav-todo { border: 0; background: none; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.nav-todo .nav-icono svg { background: #fff; color: var(--tinta); border-radius: 10px; padding: 3px 9px; width: 42px; height: 28px; box-sizing: border-box; }
.nav-movil .nav-todo.activo .nav-icono svg { background: #fff; color: var(--rojo); padding: 3px 9px; width: 42px; height: 28px; }
.nav-punto { position: absolute; top: -3px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: #FFC83D; box-shadow: 0 0 0 2px var(--tinta); animation: latido 1.4s infinite; }
.panel-todo { gap: 12px; }
.todo-seccion { margin: 4px 0 -2px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--apagado); }
.todo-grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.todo-celda { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 12px; border-radius: 18px; border: 0; background: var(--suave); color: var(--tinta); text-decoration: none; text-align: center; font: inherit; cursor: pointer; transition: transform .12s; }
.todo-celda:active { transform: scale(.96); }
.todo-celda strong { font-size: 13.5px; }
.todo-celda small { font-size: 11.5px; color: var(--apagado); margin-top: -3px; }
.todo-icono { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--rojo); }
.todo-celda.fijo .todo-icono { background: var(--rojo); color: #fff; }
.todo-celda.actual { box-shadow: 0 0 0 2px var(--tinta) inset; }
.todo-insignia { position: absolute; top: 8px; right: 10px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #FFC83D; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.todo-etiqueta { position: absolute; top: 8px; right: 8px; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--ambar-suave); color: var(--ambar); }
.todo-check { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--linea); background: #fff; display: grid; place-items: center; color: #fff; }
.todo-celda.fijo .todo-check { background: var(--rojo); border-color: var(--rojo); }
.todo-leyenda { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 12px; color: var(--apagado); }
.todo-leyenda i { width: 12px; height: 12px; border-radius: 4px; background: var(--rojo); }
.todo-personalizar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 999px; border: 1.5px dashed var(--linea); background: none; font: inherit; font-weight: 700; cursor: pointer; }
@media (min-width: 900px) { .nav-todo { display: none; } }
