/* Panel Mesa Dulce · mismo papel, bordó y crema que la web, pensado para el celu */
:root {
  color-scheme: only light;
  --bordo: #54110E;
  --bordo-ink: #3d0a08;
  --crema: #F7E492;
  --crema-2: #FBEFB8;
  --celeste: #A3C7D2;
  --celeste-2: #DCEBEF;
  --paper: #FBF7EF;
  --paper-2: #F3EBDC;
  --white: #FFFDF6;
  --error: #A8251B;
  --ok: #2F6B3A;
  --line: rgba(84,17,14,.14);
  --ink-soft: rgba(84,17,14,.72);
  --display: 'Fredoka', 'Quicksand', system-ui, sans-serif;
  --body: 'Quicksand', system-ui, sans-serif;
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.3,1.45,.5,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { background: var(--paper); color: var(--bordo); }
body { font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; accent-color: var(--bordo); min-height: 100dvh; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
input, textarea, select { font: inherit; color: var(--bordo); }
:focus-visible { outline: 3px solid var(--bordo); outline-offset: 2px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; }
.muted { color: var(--ink-soft); }

/* monograma */
.mono { width: 64px; height: 64px; border-radius: 20px; background: var(--bordo); color: var(--crema); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 26px; box-shadow: 3px 4px 0 var(--bordo-ink); flex: none; }
.mono.sm { width: 40px; height: 40px; border-radius: 13px; font-size: 16px; box-shadow: 2px 3px 0 var(--bordo-ink); }
/* Las letras M y D del logo de la marca (no una tipografía) */
.mono, .mono.sm { font-size: 0; }
.mono { position: relative; }
.mono::before { content: ''; position: absolute; left: 14%; right: 14%; top: 50%; transform: translateY(-50%); aspect-ratio: 1067 / 505; background: currentColor; -webkit-mask: url(img/md.svg) center / contain no-repeat; mask: url(img/md.svg) center / contain no-repeat; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 99px; border: 2px solid var(--bordo); background: var(--white); font-family: var(--display); font-weight: 600; font-size: 16px; box-shadow: 2px 3px 0 var(--bordo); transition: transform .15s var(--ease-out), box-shadow .15s; }
.btn:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--bordo); }
a.btn { text-decoration: none; color: inherit; }
a.btn.primary { color: var(--crema); }
.btn.primary { background: var(--bordo); color: var(--crema); box-shadow: 2px 3px 0 var(--bordo-ink); }
.btn.ok { background: var(--crema); }
.btn.danger { color: var(--error); border-color: var(--error); box-shadow: 2px 3px 0 var(--error); }
.btn.ghost { border-color: transparent; box-shadow: none; background: transparent; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn.big { min-height: 52px; font-size: 18px; width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* entrar */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(380px, 100%); background: var(--white); border: 2.5px solid var(--bordo); border-radius: 28px; box-shadow: 4px 6px 0 var(--bordo); padding: 28px 22px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.login-card h1 { font-size: 26px; }
.login-card form { width: 100%; display: grid; gap: 14px; text-align: left; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--ink-soft); }
label input { min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); font-size: 16px; font-weight: 600; }
label input:focus { border-color: var(--bordo); outline: none; background: var(--white); }
.form-error { color: var(--error); font-size: 14px; }

/* barra de arriba */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.who { display: grid; line-height: 1.15; min-width: 0; flex: 1; }
.who strong { font-family: var(--display); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who span { font-size: 13px; color: var(--ink-soft); text-transform: capitalize; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #b9a9a0; }
.live.on i { background: #3c9a4e; box-shadow: 0 0 0 0 rgba(60,154,78,.5); animation: latido 2s infinite; }
@keyframes latido { 70% { box-shadow: 0 0 0 7px rgba(60,154,78,0); } 100% { box-shadow: 0 0 0 0 rgba(60,154,78,0); } }
@media (max-width: 420px) { .live span { display: none; } }

/* filtros */
.view { padding: 14px 16px 40px; max-width: 980px; margin: 0 auto; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 99px; border: 2px solid var(--bordo); background: var(--white); font-family: var(--display); font-weight: 600; font-size: 15px; }
.chip b { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--paper-2); display: grid; place-items: center; font-size: 13px; }
.chip.on { background: var(--bordo); color: var(--crema); }
.chip.on b { background: var(--crema); color: var(--bordo); }

/* lista de pedidos */
.lista { display: grid; gap: 12px; }
@media (min-width: 760px) { .lista { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--white); border: 2px solid var(--bordo); border-radius: 22px; box-shadow: 3px 4px 0 var(--bordo); padding: 14px; display: grid; gap: 10px; text-align: left; width: 100%; }
.card.nuevo { background: var(--crema-2); animation: entra .5s var(--ease-spring); }
@keyframes entra { from { transform: translateY(-10px) scale(.97); opacity: 0; } }
.card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.num { font-family: var(--display); font-weight: 700; font-size: 22px; }
.hora { margin-left: auto; font-size: 14px; color: var(--ink-soft); }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; border: 1.5px solid currentColor; }
.badge.uber { background: #111; color: #fff; border-color: #111; }
.badge.web { background: var(--celeste-2); }
.badge.local { background: var(--paper-2); }
.badge.whatsapp { background: #dff3e4; color: #1f5e2c; }
.badge.estado { border-color: var(--line); background: var(--paper); }
.badge.pend { color: var(--error); background: #fbe9e6; border-color: transparent; }
.cli { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.cli strong { font-family: var(--display); font-size: 18px; }
.cli span { color: var(--ink-soft); font-size: 14px; }
.items { font-size: 15px; color: var(--ink-soft); }
.card-bot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.total { font-family: var(--display); font-weight: 700; font-size: 20px; margin-right: auto; }
.vacio { text-align: center; color: var(--ink-soft); padding: 48px 16px; font-family: var(--display); font-size: 18px; }

/* ventana de detalle: en el celu sube desde abajo */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(61,10,8,.38); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; background: var(--paper); border-radius: 26px 26px 0 0; border-top: 2.5px solid var(--bordo); padding: 8px 18px max(20px, env(safe-area-inset-bottom)); animation: sube .35s var(--ease-out); overscroll-behavior: contain; }
@keyframes sube { from { transform: translateY(100%); } }
@media (min-width: 760px) { .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 560px; transform: translate(-50%, -50%); border-radius: 26px; border: 2.5px solid var(--bordo); box-shadow: 5px 7px 0 var(--bordo); animation: aparece .3s var(--ease-out); } .grab { display: none; } }
@keyframes aparece { from { opacity: 0; transform: translate(-50%, -46%); } }
.grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 10px; }
.sh-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; }
.sh-head h2 { font-size: 26px; margin-right: auto; }
.bloque { background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; }
.bloque h3 { font-size: 15px; color: var(--ink-soft); margin-bottom: 6px; font-family: var(--body); }
.linea { display: flex; gap: 10px; justify-content: space-between; padding: 4px 0; }
.linea.hijo { padding-left: 18px; color: var(--ink-soft); font-size: 15px; }
.linea.tot { border-top: 1.5px dashed var(--line); margin-top: 6px; padding-top: 8px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.dato { display: grid; gap: 2px; padding: 3px 0; }
.dato small { color: var(--ink-soft); font-size: 13px; }
.conv { display: grid; gap: 4px; background: var(--paper-2); border-radius: 14px; padding: 8px 10px; max-height: 240px; overflow-y: auto; }
.conv-m { font-size: 14px; line-height: 1.3; }
.conv-m b { font-family: var(--display); font-weight: 600; }
.conv-m.cadete b { color: var(--ok); }
.conv-m small { font-size: 11px; }
.acciones { display: grid; gap: 10px; padding-top: 6px; }
.acciones .fila { display: flex; gap: 10px; }
.acciones .fila .btn { flex: 1; }
a.maplink { color: var(--bordo); font-weight: 700; }

/* botón flotante */
.fab { position: fixed; z-index: 30; right: 16px; bottom: max(18px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; min-height: 54px; padding: 10px 22px 10px 18px; border-radius: 99px; background: var(--bordo); color: var(--crema); font-family: var(--display); font-weight: 600; font-size: 17px; box-shadow: 3px 4px 0 var(--bordo-ink), 0 12px 26px -12px rgba(61,10,8,.7); transition: transform .15s var(--ease-out); }
.fab span { font-size: 26px; line-height: 0; margin-top: -2px; }
.fab:active { transform: translate(2px, 3px); }
.view { padding-bottom: 96px; }

/* nuevo pedido */
.seg { display: flex; gap: 4px; background: var(--paper-2); border-radius: 99px; padding: 4px; }
.seg button { flex: 1; min-height: 40px; border-radius: 99px; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.seg button.on { background: var(--bordo); color: var(--crema); }
.np-sec { margin-bottom: 14px; }
.np-sec > h3 { font-size: 16px; margin-bottom: 8px; }
.prods { display: grid; gap: 6px; }
.prod { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 8px 8px 14px; background: var(--white); border: 2px solid var(--line); border-radius: 16px; text-align: left; width: 100%; }
.prod .nm { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.prod .nm strong { font-family: var(--display); font-weight: 600; font-size: 16px; }
.prod .nm small { color: var(--ink-soft); font-size: 13px; }
.prod .nm small.bajo { color: var(--error); }
.prod .pr { font-weight: 700; white-space: nowrap; }
.prod[disabled] { opacity: .45; }
.mas { width: 38px; height: 38px; border-radius: 50%; background: var(--bordo); color: var(--crema); display: grid; place-items: center; font-size: 22px; font-weight: 700; flex: none; }
.qty { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--bordo); display: grid; place-items: center; font-size: 20px; font-weight: 700; background: var(--white); }
.qty button[disabled] { opacity: .35; }
.qty b { min-width: 26px; text-align: center; font-family: var(--display); font-size: 17px; }
.carrito .linea { align-items: center; }
.carrito .linea .nm { flex: 1; }
.campo { display: grid; gap: 6px; font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.campo input, .campo textarea, .campo select { min-height: 46px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--white); font-size: 16px; font-weight: 600; resize: vertical; }
.campo input:focus, .campo textarea:focus, .campo select:focus { border-color: var(--bordo); outline: none; }
.dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.campo input, .campo textarea, .campo select { width: 100%; min-width: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; }
.check input { width: 22px; height: 22px; }
.pagos { display: flex; flex-wrap: wrap; gap: 6px; }
.pagos .chip { min-height: 38px; }
.barra-total { position: sticky; bottom: calc(-1 * max(20px, env(safe-area-inset-bottom))); margin: 0 -18px; padding: 12px 18px max(16px, env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 -1px 0 var(--line); }
.np-error { color: var(--error); font-weight: 700; margin-bottom: 8px; }
.faltan { font-family: var(--display); font-size: 15px; padding: 6px 12px; border-radius: 99px; background: var(--crema-2); display: inline-block; margin-bottom: 10px; }

/* barra lateral: fija en compu y tablet, deslizable en el celu */
.lado { position: fixed; z-index: 45; top: 0; bottom: 0; left: 0; width: 248px; max-width: 82vw; display: flex; flex-direction: column; gap: 18px; padding: max(16px, env(safe-area-inset-top)) 12px 16px; background: var(--paper); border-right: 2px solid var(--line); transform: translateX(-105%); transition: transform .3s var(--ease-out); overflow-y: auto; }
.lado.abierto { transform: none; box-shadow: 10px 0 34px -14px rgba(61,10,8,.45); }
.lado-bg { position: fixed; inset: 0; z-index: 44; background: rgba(61,10,8,.32); animation: fade .2s; }
.lado-top { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.lado-top strong { font-family: var(--display); font-size: 19px; }
.secciones { display: grid; gap: 4px; }
.secciones button { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 12px; border-radius: 16px; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink-soft); text-align: left; transition: background-color .2s, color .2s; }
.secciones button:hover { background: var(--paper-2); }
.secciones button.on { background: var(--bordo); color: var(--crema); }
.secciones svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cuenta { margin-left: auto; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; font-size: 13px; background: var(--crema); color: var(--bordo); }
.cuenta.alerta { background: #fbe9e6; color: var(--error); }
.btn-lado { width: 42px; height: 42px; margin-left: -6px; display: grid; place-items: center; border-radius: 12px; flex: none; }
.btn-lado svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (min-width: 900px) {
  .lado { transform: none; box-shadow: none; }
  .lado-bg { display: none !important; }
  .app { padding-left: 248px; }
  .btn-lado, .top-mono { display: none; }
  .sheet { margin-left: 124px; }
}
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 2px 10px; }
.cat-head h3 { font-size: 20px; }
.cat-head .oculta { font-size: 13px; color: var(--ink-soft); font-family: var(--body); font-weight: 700; }
.chip.agregar { border-style: dashed; }
/* caja */
.caja-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.caja-head h2 { font-size: 26px; }
.caja-head .muted { font-size: 14px; }
.grande { background: var(--bordo); color: var(--crema); border-radius: 24px; padding: 16px 18px; box-shadow: 3px 4px 0 var(--bordo-ink); margin-bottom: 12px; }
.grande small { opacity: .85; font-size: 14px; }
.grande .monto { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.05; }
.metodos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
@media (min-width: 760px) { .metodos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.metodo { background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 10px 12px; display: grid; gap: 2px; }
.metodo small { color: var(--ink-soft); font-size: 13px; }
.metodo b { font-family: var(--display); font-size: 20px; }
.botonera { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
@media (min-width: 760px) { .botonera { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pendientes { font-size: 14px; color: var(--ink-soft); margin: -4px 2px 12px; }
.mov small.tipo { font-weight: 700; }
.pago-linea { background: var(--white); border: 2px solid var(--line); border-radius: 16px; padding: 10px 12px; margin-bottom: 8px; display: grid; gap: 8px; }
.pago-linea .fila2 { display: flex; gap: 8px; align-items: center; }
.pago-linea .fila2 .campo { flex: 1; margin: 0; }
.quitar { color: var(--error); font-weight: 700; font-size: 14px; min-height: 36px; padding: 0 6px; }
.resto { font-size: 14px; font-weight: 700; }
.resto.mal { color: var(--error); }
.vuelto { font-family: var(--display); font-size: 16px; }
.chip.sugerencia { background: var(--crema-2); border-style: dashed; min-height: 36px; font-size: 14px; }
[data-sug]:empty { display: none; }
.badge.cambio { background: var(--crema-2); border-color: transparent; color: #7a4b00; }
/* mapa para marcar la ubicación exacta (encima de todo) */
.mapa-ov { position: fixed; inset: 0; z-index: 80; background: var(--paper); display: flex; flex-direction: column; animation: fade .2s; }
.mapa-top { padding: max(12px, env(safe-area-inset-top)) 16px 8px; display: grid; gap: 8px; box-shadow: 0 1px 0 var(--line); position: relative; z-index: 2; background: var(--paper); }
.mapa-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mapa-fila h2 { font-size: 22px; }
.mapa-buscar { position: relative; }
.mapa-buscar input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--bordo); background: var(--white); font-size: 16px; font-weight: 600; }
.mapa-sug { position: absolute; left: 0; right: 0; top: calc(100% + 4px); list-style: none; background: var(--white); border: 2px solid var(--bordo); border-radius: 14px; box-shadow: 3px 4px 0 var(--bordo); overflow: hidden; z-index: 5; }
.mapa-sug button { width: 100%; text-align: left; padding: 12px 14px; font-size: 15px; border-bottom: 1px solid var(--line); }
.mapa-sug li:last-child button { border-bottom: 0; }
.mapa-sug button:hover { background: var(--crema-2); }
.mapa-ayuda { font-size: 13px; color: var(--ink-soft); }
.mapa-area { position: relative; flex: 1; min-height: 200px; z-index: 1; isolation: isolate; }   /* el mapa nunca tapa el buscador */
.mapa-el { position: absolute; inset: 0; }
.mapa-pin { position: absolute; left: 50%; top: 50%; width: 44px; height: 58px; transform: translate(-50%, -100%); pointer-events: none; z-index: 500; filter: drop-shadow(0 6px 6px rgba(61,10,8,.35)); }
.mapa-bot { padding: 10px 16px max(14px, env(safe-area-inset-bottom)); display: grid; gap: 8px; background: var(--paper); box-shadow: 0 -1px 0 var(--line); }
.mapa-calle { font-size: 14px; font-weight: 700; text-align: center; color: var(--ink-soft); }
@media (min-width: 900px) { .mapa-ov { inset: 24px 24px 24px 272px; border-radius: 26px; border: 2.5px solid var(--bordo); box-shadow: 5px 7px 0 var(--bordo); overflow: hidden; } }

/* cadetes */
.partida { font-size: 14px; margin: -6px 2px 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.linkbtn { color: var(--bordo); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.sel { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; border-bottom: 1px dashed var(--line); cursor: pointer; }
.sel:last-of-type { border-bottom: 0; }
.sel input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.sel .nm { flex: 1; display: grid; gap: 2px; min-width: 0; }
.sel .nm small { color: var(--ink-soft); font-size: 13px; }
.parada { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.parada:last-child { border-bottom: 0; }
.parada .n { width: 30px; height: 30px; border-radius: 50%; background: var(--bordo); color: var(--crema); display: grid; place-items: center; font-family: var(--display); font-weight: 700; flex: none; }
.parada .n.sin { background: var(--paper-2); color: var(--ink-soft); }
.parada .nm { flex: 1; display: grid; gap: 2px; min-width: 0; }
.parada small { color: var(--ink-soft); font-size: 13px; }
.cobrar { font-weight: 700; font-size: 14px; }
.tanda-acc { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.calle { border-top: 1.5px dashed var(--line); padding-top: 10px; margin-top: 10px; }
.calle:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.calle-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.calle-head strong { font-family: var(--display); font-size: 17px; }
.mini { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 0; font-size: 15px; }
.fila-link { width: 100%; text-align: left; color: inherit; cursor: pointer; border-radius: 8px; }
.fila-link:hover { background: var(--paper-2); }
.alerta-stock .fila-link { color: var(--bordo); }
.alerta-stock { background: #fbe9e6; border-color: var(--error); color: var(--error); }
.alerta-stock p { font-size: 14px; margin-top: 4px; color: var(--bordo); }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 2px 12px; font-size: 14px; }
.borrar { margin: 4px 0 14px; color: var(--error); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; min-height: 40px; }

/* menú y stock */
.menu-lista .prod { cursor: pointer; }
.foto { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--paper-2); flex: none; }
.foto.vacia { display: grid; place-items: center; color: var(--ink-soft); font-size: 22px; }
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--paper-2); }
.pill.ok { background: #e3f1e5; color: #1f5e2c; }
.pill.bajo { background: var(--crema-2); color: #7a4b00; }
.pill.cero { background: #fbe9e6; color: var(--error); }
.pill.oculto { background: var(--paper-2); color: var(--ink-soft); }
.prod .nm .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.stock-grande { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; }
.rapidos { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
.mov { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.mov:last-child { border-bottom: 0; }
.mov b.sube { color: #1f5e2c; } .mov b.baja { color: var(--error); }
.foto-edit { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.foto-edit img, .foto-edit .foto { width: 96px; height: 96px; border-radius: 20px; }
.campo select { min-height: 46px; padding: 8px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--white); font-size: 16px; font-weight: 600; }
.comp .prod { min-height: 44px; padding: 6px 8px 6px 12px; }

/* aviso */
.toast { position: fixed; z-index: 60; left: 50%; top: max(14px, env(safe-area-inset-top)); transform: translateX(-50%); background: var(--bordo); color: var(--crema); font-family: var(--display); font-weight: 600; padding: 10px 18px; border-radius: 99px; box-shadow: 0 10px 24px -10px rgba(61,10,8,.6); animation: pop .45s var(--ease-spring); max-width: calc(100% - 32px); text-align: center; }
@keyframes pop { from { transform: translate(-50%, -16px) scale(.9); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* cocina */
.view-cocina { max-width: 1280px; }
.k-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 2px 12px; }
.k-head h2 { font-size: 26px; }
.k-aviso { width: 100%; display: block; text-align: left; background: var(--crema); border: 2px solid var(--bordo); border-radius: 18px; padding: 10px 14px; font-weight: 700; font-size: 16px; margin-bottom: 12px; box-shadow: 3px 4px 0 var(--bordo); }
.k-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .k-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; } }
.k-card { background: var(--white); border: 2px solid var(--bordo); border-radius: 22px; box-shadow: 3px 4px 0 var(--bordo); padding: 14px; display: grid; gap: 10px; }
.k-card.tarde { border-color: var(--error); box-shadow: 3px 4px 0 var(--error); }
.k-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.k-num { font-family: var(--display); font-weight: 700; font-size: 24px; }
.k-tipo { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.k-reloj { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 14px; background: #e3f1e5; color: #1f5e2c; }
.k-reloj strong { font-family: var(--display); font-size: 20px; }
.k-reloj small { font-size: 14px; font-weight: 700; }
.k-reloj.justo { background: var(--crema-2); color: #7a4b00; }
.k-reloj.tarde { background: #fbe9e6; color: var(--error); }
.k-reloj.tarde strong { animation: late 1.6s ease-in-out infinite; }
@keyframes late { 50% { opacity: .55; } }
.k-cli { font-family: var(--display); font-weight: 600; font-size: 17px; }
.k-nota { background: var(--crema); border-radius: 14px; padding: 8px 12px; font-weight: 700; font-size: 16px; }
.k-nota.falta { background: #fbe9e6; color: var(--error); }
.k-mod { font-size: 14px; font-weight: 700; color: #7a4b00; }
.k-lista { display: grid; gap: 6px; }
.k-it { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); text-align: left; width: 100%; font-size: 17px; font-weight: 700; transition: background-color .2s, border-color .2s; }
.k-check { width: 26px; height: 26px; border-radius: 8px; border: 2.5px solid var(--bordo); flex: none; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.k-q { font-family: var(--display); min-width: 30px; }
.k-n { flex: 1; min-width: 0; display: grid; }
.k-n small { font-size: 14px; font-weight: 700; color: var(--error); }
.k-it.hecho { background: #e3f1e5; border-color: transparent; color: rgba(31,94,44,.8); }
.k-it.hecho .k-n { text-decoration: line-through; }
.k-it.hecho .k-n small { text-decoration: none; }
.k-it.hecho .k-check { background: var(--ok); border-color: var(--ok); }
.k-it.hecho .k-check::after { content: ''; width: 12px; height: 7px; margin-top: -3px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg); }
.k-it.pop .k-check::after { animation: pop-check .3s var(--ease-spring); }
.k-it.pop .k-check { animation: tilde .3s var(--ease-spring); }
@keyframes tilde { 40% { transform: scale(1.25); } }
@keyframes pop-check { from { transform: rotate(-45deg) scale(.2); } }
.k-box { display: grid; gap: 6px; padding: 8px; border: 2px dashed var(--line); border-radius: 16px; }
.k-box-t { font-family: var(--display); font-weight: 600; font-size: 16px; padding: 0 4px; }
.k-box-t small { color: var(--error); font-family: var(--body); font-weight: 700; }
.k-box.hecho .k-box-t::after { content: ' ✓'; color: var(--ok); }
.k-acc { display: flex; gap: 8px; }
.k-acc .btn:last-child { flex: 1; }
a.wa-cli { margin-top: 8px; justify-self: start; }

/* ajustes */
.view-aj { max-width: 720px; }
.aj-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; }
@media (min-width: 760px) { .aj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.aj-nota { font-size: 14px; margin-top: 2px; }
.bloque.aj { margin-bottom: 12px; }

/* mensajes y calificaciones del cliente */
.badge.msj { background: var(--celeste-2); border-color: transparent; }
.badge.cal { background: #fff6d6; border-color: transparent; color: #8a6a00; }
.cal-est { font-size: 22px; letter-spacing: 2px; color: #E8B923; }
.cal-est.baja { color: var(--error); }
.toast.tocable { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* reclamos */
.bloque.reclamo.abierto { border-color: var(--error); background: #fdf3f1; }
.bloque.reclamo.abierto h3 { color: var(--error); }

/* seguimiento al cliente */
.badge.falta-seg { background: var(--crema); color: var(--bordo); border-color: var(--bordo); }
.seg-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.seg-fila small { flex-basis: 100%; font-size: 12px; }
.seg-ok { color: var(--ok); font-weight: 700; }
.seg-falta { color: var(--error); font-weight: 700; }
[data-seg-enviado].hecho::after { content: ' ✓'; }
.btn.seg-calle { margin-top: 4px; }
.seg-fila .wa-cli { margin-top: 0; }

/* campanita de avisos */
.campana { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--bordo); }
.campana svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.campana.hay svg { fill: var(--crema); }
.campana b { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--error); color: #fff; font-size: 11px; font-family: var(--display); display: grid; place-items: center; border: 2px solid var(--paper); }
.campana.suena svg { animation: suena .9s ease; transform-origin: 50% 10%; }
@keyframes suena { 15% { transform: rotate(16deg); } 35% { transform: rotate(-14deg); } 55% { transform: rotate(9deg); } 75% { transform: rotate(-5deg); } }
.campana:focus-visible { outline: 2.5px solid var(--bordo); }
.avisos-bg { position: fixed; inset: 0; z-index: 40; background: rgba(61,10,8,.18); }
.avisos { position: fixed; z-index: 41; top: calc(max(10px, env(safe-area-inset-top)) + 54px); left: 8px; right: 8px; max-height: min(70vh, 560px); display: flex; flex-direction: column;
  background: var(--white); border: 2px solid var(--bordo); border-radius: 22px; box-shadow: 4px 6px 0 var(--bordo); overflow: hidden; animation: fade .15s; }
.avisos-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 8px 16px; border-bottom: 1px solid var(--line); }
.avisos-head strong { font-family: var(--display); font-size: 19px; }
.avisos-lista { overflow-y: auto; overscroll-behavior: contain; }
.aviso-it { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.aviso-it:last-child { border-bottom: 0; }
.aviso-it:hover { background: var(--crema-2); }
.aviso-it .ic { font-size: 20px; flex: none; }
.aviso-it .tx { flex: 1; min-width: 0; display: grid; }
.aviso-it strong { font-size: 15px; }
.aviso-it small { font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aviso-it .cuando { font-size: 12px; color: var(--ink-soft); flex: none; }
.avisos-vacio { padding: 28px 16px; text-align: center; color: var(--ink-soft); font-family: var(--display); }
@media (min-width: 900px) { .avisos { left: auto; right: 16px; width: 400px; } }
/* lo que se abre desde un aviso se marca un momento */
.resalta { animation: resalta 1.8s ease; border-radius: 14px; }
@keyframes resalta { 0%, 40% { box-shadow: 0 0 0 4px var(--crema), 0 0 0 6px var(--bordo); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .campana.suena svg, .resalta { animation: none; } }

/* caja: aviso, historial, detalle, billetes */
.cuenta.vencida { background: var(--error); color: #fff; }
.caja-vencida { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: #fbe9e6; color: var(--error); border: 2px solid var(--error); border-radius: 16px; padding: 10px 12px; font-weight: 700; margin-bottom: 12px; }
.hist-rangos { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
.hist-rangos .chip { flex: none; min-height: 36px; font-size: 14px; }
.hist-fechas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hist-sum { font-size: 13px; margin: 2px 0 6px; }
.hist .badge { font-size: 11px; padding: 1px 8px; vertical-align: 1px; }
.det-caja .linea { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.det-caja .linea.tot { font-family: var(--display); font-weight: 600; border-top: 1.5px dashed var(--line); margin-top: 4px; padding-top: 6px; }
.det-dif { margin-top: 8px; padding: 8px 12px; border-radius: 12px; font-family: var(--display); font-weight: 700; font-size: 18px; background: var(--paper-2); }
.det-dif.baja { background: #fbe9e6; color: var(--error); } .det-dif.sube { background: #e3f1e5; color: #1f5e2c; }
.billetes { border: 2px solid var(--line); border-radius: 16px; padding: 8px 12px; margin-bottom: 12px; background: var(--white); }
.billetes summary { cursor: pointer; font-family: var(--display); font-weight: 600; color: var(--bordo); min-height: 32px; display: flex; align-items: center; }
.bil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.bil { display: flex; align-items: center; gap: 8px; }
.bil span { flex: 1; font-weight: 700; font-size: 14px; }
.bil input { width: 64px; min-height: 40px; border: 2px solid var(--line); border-radius: 12px; text-align: center; font-size: 16px; font-weight: 700; background: var(--paper); }
.bil input:focus { outline: none; border-color: var(--bordo); }
.bil.otros { grid-column: 1 / -1; } .bil.otros input { width: 110px; }
.motivo-dif { color: var(--error); }

.volver { display: inline-flex; align-items: center; gap: 4px; font-family: var(--display); font-weight: 600; color: var(--bordo); background: var(--crema-2); border-radius: 99px; padding: 6px 14px 6px 10px; margin-bottom: 10px; min-height: 36px; }
.prob-txt { color: var(--error); font-weight: 700; }
.mov.con-prob { background: #fdf3f1; border-radius: 10px; }
.ok-caja { background: #e3f1e5; color: #1f5e2c; border-radius: 14px; padding: 8px 12px; font-weight: 700; margin-bottom: 10px; font-size: 14px; }

/* clientes */
.cli-buscar { width: 100%; min-height: 48px; border: 2px solid var(--bordo); border-radius: 99px; padding: 0 18px; background: var(--white); font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.cli-filtros { margin-bottom: 10px; }
.cli-lista { display: grid; gap: 8px; }
.cli-fila { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 10px 12px; }
.cli-fila:hover { border-color: var(--bordo); }
.cli-av { width: 40px; height: 40px; border-radius: 50%; background: var(--crema); color: var(--bordo); font-family: var(--display); font-weight: 700; font-size: 18px; display: grid; place-items: center; flex: none; }
.cli-fila .tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cli-fila strong { font-family: var(--display); font-size: 17px; }
.cli-fila small { color: var(--ink-soft); font-size: 13px; }
.cli-marcas { display: flex; flex-wrap: wrap; gap: 4px; }
.cli-marcas .badge { font-size: 11px; padding: 1px 8px; }
.cli-fila .chev { font-size: 22px; color: var(--ink-soft); }
.cli-contacto { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 2px 12px; font-weight: 700; }
.cli-contacto span { margin-right: auto; font-size: 17px; }
.cli-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.cli-stats div { background: var(--white); border: 2px solid var(--line); border-radius: 14px; padding: 8px; text-align: center; display: grid; }
.cli-stats small { font-size: 11px; color: var(--ink-soft); }
.cli-stats b { font-family: var(--display); font-size: 15px; }
@media (max-width: 380px) { .cli-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cli-extra { margin: 0 2px 10px; font-size: 14px; }
.cli-nota { width: 100%; min-height: 64px; resize: vertical; border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--paper); font-size: 16px; font-weight: 600; }
.cli-nota:focus { outline: none; border-color: var(--bordo); }
.cli-dir { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.cli-dir:last-child { border-bottom: 0; }
.nota-cli { background: var(--crema); border: 2px solid var(--bordo); border-radius: 14px; padding: 8px 12px; font-weight: 700; margin: 6px 0; }
.k-nota.cli { background: var(--crema); border: 2px solid var(--bordo); }
.cli-n { font-size: 13px; font-weight: 700; color: var(--ok); }
.cli-sug { border: 2px solid var(--bordo); border-radius: 16px; overflow: hidden; margin: -4px 0 10px; background: var(--white); box-shadow: 3px 4px 0 var(--bordo); }
.cli-sug-it { display: grid; width: 100%; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.cli-sug-it:last-child { border-bottom: 0; }
.cli-sug-it:hover { background: var(--crema-2); }
.cli-sug-it small { color: var(--ink-soft); }
.cli-info { background: var(--paper-2); border-radius: 16px; padding: 10px 12px; margin: -2px 0 12px; display: grid; gap: 6px; }
.cli-info-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cli-info-top .muted { font-size: 13px; }
.cli-debe { color: var(--error); font-weight: 700; font-size: 14px; }
.cli-dirs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cli-dirs .chip { min-height: 34px; font-size: 13px; }

/* descuentos */
.linea.desc span:last-child { color: var(--ok); font-weight: 700; }
.desc-cupon { display: flex; gap: 8px; margin-bottom: 8px; }
.desc-cupon input { flex: 1; min-width: 0; min-height: 44px; border: 2px solid var(--line); border-radius: 14px; padding: 0 14px; background: var(--white); font-size: 16px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.desc-cupon input:focus { outline: none; border-color: var(--bordo); }
.desc-cupon input[readonly] { background: var(--crema-2); border-color: var(--bordo); }
.desc-manual { border: 2px solid var(--line); border-radius: 14px; padding: 6px 12px; margin-bottom: 8px; background: var(--white); }
.desc-manual summary { cursor: pointer; font-family: var(--display); font-weight: 600; color: var(--bordo); min-height: 32px; display: flex; align-items: center; }
.desc-fila { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.desc-fila input { flex: 1; min-width: 0; min-height: 44px; border: 2px solid var(--line); border-radius: 14px; padding: 0 14px; background: var(--paper); font-size: 16px; font-weight: 700; }
.desc-motivo { width: 100%; min-height: 44px; border: 2px solid var(--line); border-radius: 14px; padding: 0 14px; background: var(--paper); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.desc-fila input:focus, .desc-motivo:focus { outline: none; border-color: var(--bordo); }
.seg.seg-sm button { min-height: 44px; min-width: 48px; padding: 0 12px; }
.desc-err { color: var(--error); font-weight: 700; font-size: 14px; margin: 2px 0 6px; }
.dsc-fila { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.dsc-fila:last-child { border-bottom: 0; }
.dsc-fila.paus { opacity: .6; }
.dsc-abrir { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; }
.dsc-val { min-width: 62px; height: 46px; padding: 0 8px; border-radius: 14px; background: var(--crema); color: var(--bordo); font-family: var(--display); font-weight: 700; font-size: 15px; display: grid; place-items: center; flex: none; border: 2px dashed var(--bordo); }
.dsc-abrir .tx { display: grid; gap: 1px; min-width: 0; }
.dsc-abrir small { color: var(--ink-soft); font-size: 12.5px; }
.dsc-cod { white-space: nowrap; font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--paper-2); border-radius: 6px; padding: 1px 6px; }
.dsc-est { flex: none; min-height: 34px; font-size: 13px; }
.dsc-est.act { background: #e3f1e5; color: #1f5e2c; border-color: transparent; }
.cupon-rec { display: grid; gap: 6px; margin-top: 8px; background: var(--crema-2); border-radius: 14px; padding: 8px 10px; }
.cupon-rec .pagos .chip { min-height: 34px; font-size: 14px; }
.cupon-rec .btn { justify-self: start; }

/* reportes */
.rep-exp { display: flex; gap: 6px; margin-left: auto; }
.rep-sec { margin-top: 18px; }
.rep-sec > h3 { font-family: var(--display); font-size: 21px; color: var(--bordo); margin-bottom: 10px; }
.rep-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.rep-tile { background: var(--white); border: 2px solid var(--line); border-radius: 16px; padding: 10px 12px; display: grid; gap: 2px; align-content: start; }
.rep-tile small { color: var(--ink-soft); font-size: 12.5px; }
.rep-tile b { font-family: var(--display); font-size: 22px; color: var(--bordo); line-height: 1.15; }
.rep-delta { font-size: 12px !important; font-weight: 700; color: var(--ink-soft); }
.rep-delta.bien { color: var(--ok); } .rep-delta.mal { color: var(--error); }
.rep-fig { background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 12px 14px; margin: 0 0 10px; }
.rep-fig figcaption { font-family: var(--display); font-weight: 600; color: var(--bordo); margin-bottom: 10px; }
.barras-v { display: flex; align-items: flex-end; gap: 2px; height: 150px; }
.bv-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.bv { display: block; width: min(100%, 34px); margin: 0 auto; background: var(--bordo); border-radius: 4px 4px 0 0; min-height: 0; padding: 0; border: 0; transition: background .15s; }
.bv:hover, .bv:focus-visible { background: var(--bordo-ink); outline: 2px solid var(--crema); outline-offset: -2px; }
.bv-et { font-size: 10.5px; color: var(--ink-soft); text-align: center; white-space: nowrap; overflow: visible; height: 16px; margin-top: 4px; border-top: 1.5px solid var(--line); padding-top: 2px; }
.bh { display: grid; grid-template-columns: minmax(80px, 38%) 1fr auto; align-items: center; gap: 8px; padding: 4px 0; }
.bh-et { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-pista { height: 12px; background: var(--paper-2); border-radius: 0 4px 4px 0; overflow: hidden; }
.bh-pista i { display: block; height: 100%; background: var(--bordo); border-radius: 0 4px 4px 0; }
.bh-val { font-size: 13px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.rep-dos { display: grid; gap: 10px; }
@media (min-width: 900px) { .rep-dos { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); } .rep-dos .rep-fig { margin: 0; } .rep-dos { margin-bottom: 10px; } }
.rep-tabla { overflow-x: auto; background: var(--white); border: 2px solid var(--line); border-radius: 18px; margin-bottom: 10px; }
.rep-tabla table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rep-tabla th { text-align: left; font-family: var(--display); font-weight: 600; color: var(--bordo); padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.rep-tabla td { padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rep-tabla tr:last-child td { border-bottom: 0; }
.rep-tabla td:not(:first-child), .rep-tabla th:not(:first-child) { text-align: right; }
.rep-tip { position: fixed; z-index: 90; background: var(--bordo); color: var(--crema); font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 10px; pointer-events: none; max-width: 260px; box-shadow: 0 6px 16px -8px rgba(61,10,8,.6); }

.bv.abre { cursor: pointer; }
.rep-viendo { font-family: var(--display); font-size: 18px; color: var(--bordo); margin: 0 2px 6px; }
.rep-viendo::first-letter { text-transform: uppercase; }

.tienda-sw { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 16px; padding: 8px 10px 8px 14px; margin-bottom: 12px; font-weight: 700; font-size: 14px; }
.tienda-sw span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tienda-sw i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tienda-sw.abierta { background: #e3f1e5; color: #1f5e2c; } .tienda-sw.abierta i { background: #3c9a4e; }
.tienda-sw.cerrada { background: #fbe9e6; color: var(--error); } .tienda-sw.cerrada i { background: var(--error); }

/* ═════════ Movimiento (pasada de diseño · compartido por panel, cadete y cliente) ═════════
   Rápido (≤ 0,6 s), sin desenfoques, personajes enteros. Con "reducir movimiento" todo queda quieto (regla de arriba). */
:root { --ease-salto: cubic-bezier(.34, 1.56, .64, 1); --ease-in: cubic-bezier(.4, 0, 1, 1); }

/* Entradas en cascada (solo lo nuevo) */
.entra-v { animation: entraV .42s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes entraV { from { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 12px)) scale(.98); } }
.card.nuevo.entra-v { animation: entraNuevo .55s var(--ease-salto) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes entraNuevo { 0% { opacity: 0; transform: translateY(-16px) scale(.94); } 55% { opacity: 1; } }
/* Cambió de estado: un pulso suave */
.cambia-v { animation: cambiaV .6s var(--ease-salto); }
@keyframes cambiaV { 30% { transform: scale(1.02); box-shadow: 0 0 0 4px var(--crema), 3px 4px 0 var(--bordo); } }
/* Un número que cambia */
.salta { animation: saltaV .45s var(--ease-salto); }
@keyframes saltaV { 35% { transform: scale(1.35); } }
/* Cambio de sección */
.view.entra-vista { animation: vistaV .3s var(--ease-out); }
@keyframes vistaV { from { opacity: 0; transform: translateY(8px); } }
#sheet-body.cambia { animation: vistaV .26s var(--ease-out); }

/* Tacto: todo responde al tocar y, con mouse, se levanta un poquito */
.card, .chip, .cli-fila, .mov.fila-link, .aviso-it, .dsc-abrir, .secciones button, .campana, .seg button, .k-it { transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), background-color .2s, color .2s, border-color .2s, opacity .2s; }
.chip:active, .cli-fila:active, .mov.fila-link:active, .aviso-it:active, .secciones button:active, .campana:active { transform: scale(.96); }
.card:active { transform: scale(.99); }
@media (hover: hover) {
  .btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 3px 4px 0 var(--bordo); }
  .btn:active:not(:disabled) { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--bordo); }
  .card:hover { transform: translateY(-2px); box-shadow: 4px 6px 0 var(--bordo); }
  .cli-fila:hover, .chip:hover { transform: translateY(-1px); }
}
.btn:disabled { transition: opacity .2s; }

/* Hojas: suben con impulso y bajan rápido al cerrar */
.sheet.cierra { animation: bajaSheet .22s var(--ease-in) forwards; }
@keyframes bajaSheet { to { transform: translateY(100%); } }
.sheet-bg.cierra, .lado-bg.cierra { animation: fueraFade .22s forwards; }
@keyframes fueraFade { to { opacity: 0; } }
@media (min-width: 760px) {
  .sheet.cierra { animation: fueraSheet .18s var(--ease-in) forwards; }
  @keyframes fueraSheet { to { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
}

/* Avisos de arriba: entran con resorte y se van hacia arriba */
.toast.sale { animation: toastSale .2s var(--ease-in) forwards; }
@keyframes toastSale { to { opacity: 0; transform: translate(-50%, -12px) scale(.96); } }
.avisos { transform-origin: top right; animation: abreAvisos .24s var(--ease-out); }
@keyframes abreAvisos { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.avisos .aviso-it { animation: entraV .3s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms); }

/* Personajes de la marca (siempre enteros) */
.pj { display: block; margin: 0 auto; width: 104px; height: auto; transform-origin: 50% 100%; animation: pjFlota 3.2s ease-in-out infinite; filter: drop-shadow(0 2px 0 rgba(84, 17, 14, .22)); pointer-events: none; user-select: none; }
@keyframes pjFlota { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-6px) rotate(1.5deg); } }
.pj.saluda { animation: pjSaluda 2.8s ease-in-out infinite; }
@keyframes pjSaluda { 0%, 55%, 100% { transform: rotate(0); } 65% { transform: rotate(-6deg) translateY(-5px); } 75% { transform: rotate(5deg); } 85% { transform: rotate(-3deg); } }
.pj.anda { animation: pjAnda .7s ease-in-out infinite; }
@keyframes pjAnda { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
.pj.festeja { animation: pjFesteja .8s var(--ease-salto) 2, pjFlota 3.2s ease-in-out 1.6s infinite; }
@keyframes pjFesteja { 30% { transform: translateY(-18px) rotate(-6deg) scale(1.05); } 60% { transform: translateY(0) rotate(4deg); } }
.vacio .pj { width: 92px; margin-bottom: 12px; }
.login-card .pj { width: 110px; margin-top: -6px; }

/* Festejo */
.confeti-capa { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
.confeti-p { position: absolute; width: 9px; height: 12px; border-radius: 2px; }
.confeti-g { position: absolute; width: 22px; height: 22px; }

/* Reportes: las barras crecen */
.bv { transform-origin: bottom; animation: creceV .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 22ms); }
@keyframes creceV { from { transform: scaleY(0); } }
.bh-pista i { transform-origin: left; animation: creceH .55s var(--ease-out) both; }
@keyframes creceH { from { transform: scaleX(0); } }

/* Entradas de pantallas */
.login-card { animation: entraV .5s var(--ease-out); }

/* Selectores con píldora que se desliza */
.seg.con-pill { position: relative; }
.seg.con-pill > .seg-pill, [data-pill].con-pill > .seg-pill { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 99px; background: var(--bordo); box-shadow: 1px 2px 0 var(--bordo-ink); z-index: 0; pointer-events: none;
  transition: left .34s var(--ease-salto), top .34s var(--ease-salto), width .34s var(--ease-salto), height .34s var(--ease-salto); }
/* Grupos de chips con píldora: los chips quedan "huecos" y la píldora bordó se mueve debajo */
[data-pill].con-pill { position: relative; }
[data-pill].con-pill > .chip { position: relative; z-index: 1; background: transparent; transition: color .2s, transform .16s var(--ease-out); }
[data-pill].con-pill > .chip.on { color: var(--crema); }
[data-pill].con-pill > .chip.on b { background: var(--crema); color: var(--bordo); }
.seg.con-pill button { position: relative; z-index: 1; background: transparent !important; transition: color .2s; }
.seg.con-pill button.on { color: var(--crema); }
.seg button:active { transform: scale(.97); }
/* Lo recién elegido rebota */
.pop-on { animation: popOn .38s var(--ease-salto); }
@keyframes popOn { 40% { transform: scale(1.09); } }
/* "+1" al sumar */
.masuno { position: fixed; z-index: 300; pointer-events: none; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--bordo); background: var(--crema); border: 2px solid var(--bordo); border-radius: 99px; padding: 1px 9px; box-shadow: 1px 2px 0 var(--bordo); }
/* Productos: respuesta al tocar */
.prod { transition: transform .14s var(--ease-out), border-color .2s, background-color .2s; }
.prod:not([disabled]):active { transform: scale(.97); border-color: var(--bordo); background: var(--crema-2); }
.qty button { transition: transform .14s var(--ease-out); } .qty button:not([disabled]):active { transform: scale(.88); }
.qty b { display: inline-block; }
/* Error: un temblor corto */
.np-error { animation: tiembla .4s; }
@keyframes tiembla { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* Armar box: la cajita con lugares que se llenan */
.bx-caja { display: grid; grid-template-columns: repeat(var(--cols, 6), 1fr); gap: 8px; padding: 12px; margin-bottom: 12px; background: var(--crema-2); border: 2.5px dashed var(--bordo); border-radius: 22px; transition: transform .3s var(--ease-salto), background-color .3s; }
.bx-slot { aspect-ratio: 1; border-radius: 50%; background: var(--paper); border: 2px dashed rgba(84, 17, 14, .28); display: grid; place-items: center; overflow: hidden; }
.bx-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bx-slot.on { border: 2px solid var(--bordo); background: var(--white); }
.bx-slot.llega img { animation: llegaGalleta .45s var(--ease-salto); }
@keyframes llegaGalleta { from { transform: translateY(-26px) scale(.4) rotate(-40deg); opacity: 0; } }
.bx-caja.completa { background: var(--crema); border-style: solid; animation: cajaLista .55s var(--ease-salto); }
@keyframes cajaLista { 35% { transform: scale(1.04) rotate(-1deg); } 70% { transform: scale(.99) rotate(.5deg); } }
.bx-sab .prod { padding-left: 8px; }
.bx-th { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--line); background: var(--paper-2); }
.prod.elegido { border-color: var(--bordo); background: var(--crema-2); }
#sheet-body.desde-der { animation: desdeDer .32s var(--ease-out); }
#sheet-body.desde-izq { animation: desdeIzq .32s var(--ease-out); }
@keyframes desdeDer { from { opacity: 0; transform: translateX(26px); } }
@keyframes desdeIzq { from { opacity: 0; transform: translateX(-26px); } }

/* Los grupos con píldora miden siempre respecto de sí mismos (si no, la píldora "salta") */
.seg, [data-pill] { position: relative; }

/* Salidas sutiles */
.avisos.cierra { animation: cierraAvisos .16s var(--ease-in) forwards; }
@keyframes cierraAvisos { to { opacity: 0; transform: translateY(-6px) scale(.97); } }
.avisos-bg.cierra { animation: fueraFade .16s forwards; }
.mapa-ov.cierra { animation: fueraFade .18s forwards; }

/* Armar box, compacto: una tira de lugares chiquitos fija arriba mientras se elige */
.bx-caja { position: sticky; top: -8px; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; padding: 8px 10px 6px; margin: 0 -4px 10px;
  background: var(--crema-2); border: 2px dashed var(--bordo); border-radius: 18px; box-shadow: 0 6px 12px -10px rgba(61, 10, 8, .5); grid-template-columns: none; }
.bx-slot { width: var(--s, 30px); height: var(--s, 30px); aspect-ratio: auto; flex: none; }
.bx-cuenta { flex-basis: 100%; text-align: center; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--bordo); margin-top: 2px; }
.bx-sab .prod { min-height: 48px; padding: 5px 8px; gap: 8px; }
.bx-sab .prod .nm strong { font-size: 15px; }
.bx-sab .bx-th { width: 34px; height: 34px; }
.bx-sab .qty button { width: 32px; height: 32px; font-size: 18px; }
.bx-sab .qty b { min-width: 22px; font-size: 16px; }

.bx-caja { display: grid; grid-template-columns: repeat(var(--cols, 6), var(--s, 30px)); justify-content: center; gap: 5px; }
.bx-cuenta { grid-column: 1 / -1; }

/* ¿Para cuándo? */
.cuando .seg { margin-bottom: 8px; }
.cuando-fila { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; }
.cuando-fila .pagos { flex: 1 1 auto; }
.cuando-h { flex: 0 0 150px; margin: 0; }
.cuando-ayuda { font-size: 13px; color: var(--ink-soft); font-weight: 600; margin-top: 4px; }
.k-aviso.encargos { background: var(--celeste-2); border-color: transparent; }
.k-encargos { background: var(--white); border: 2px solid var(--line); border-radius: 16px; padding: 4px 12px; margin-bottom: 12px; }

/* Funciones para probar */
.aj.prueba { border-color: var(--bordo); border-style: dashed; }
.check.sub, .aj-grid.sub { margin-left: 28px; }
.fila.imp { display: flex; gap: 8px; margin: 0 0 10px; }
.pill.costo { background: #e3f1e5; color: #1f5e2c; cursor: pointer; } .pill.costo.bajo { background: #fbe9e6; color: var(--error); }
.pill.sin-costo { background: var(--paper-2); color: var(--ink-soft); cursor: pointer; border: 1px dashed var(--line); }
.rec-fila { display: grid; grid-template-columns: 1fr 76px auto 36px; gap: 6px; align-items: center; margin-bottom: 6px; }
.rec-fila select, .rec-fila input, .ins-fila input { min-height: 44px; border: 2px solid var(--line); border-radius: 12px; padding: 0 10px; background: var(--white); font-size: 16px; font-weight: 600; min-width: 0; }
.rec-fila .uni { font-size: 13px; color: var(--ink-soft); min-width: 34px; }
.rec-fila .quitar, .ins-fila .quitar { width: 36px; height: 36px; border-radius: 50%; font-size: 20px; color: var(--error); }
.receta-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0; }
.receta-res div { background: var(--white); border: 2px solid var(--line); border-radius: 14px; padding: 8px; display: grid; text-align: center; }
.receta-res small { font-size: 11px; color: var(--ink-soft); } .receta-res b { font-family: var(--display); font-size: 15px; } .receta-res .bajo b { color: var(--error); }
.ins-fila { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ins-compra { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .ins-compra input { width: 90px; } .ins-compra span { font-weight: 700; color: var(--ink-soft); }
.sellos { display: grid; gap: 4px; justify-items: start; } .sellos small { font-size: 13px; font-weight: 600; }
.sel-fila { display: flex; flex-wrap: wrap; gap: 4px; }
.sel-fila i { width: 22px; height: 22px; border-radius: 50%; border: 2px dashed rgba(84, 17, 14, .3); background: var(--paper); }
.sel-fila i.on { border: 2px solid var(--bordo); background: url(img/galleta.webp) center / cover; }
.sellos.chico .sel-fila i { width: 16px; height: 16px; }

/* Registro de acciones */
.reg-dia { font-family: var(--display); font-size: 14px; color: var(--ink-soft); margin: 14px 2px 4px; text-transform: capitalize; }
.reg-it { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.reg-it .ic { font-size: 18px; flex: none; margin-top: 1px; }
.reg-it .tx { display: grid; gap: 2px; font-size: 14.5px; line-height: 1.35; }
.reg-it small { font-size: 12px; color: var(--ink-soft); }

/* Horarios */
.horarios { display: grid; gap: 6px; margin: 8px 0; }
.hor-dia { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hor-dia > b { width: 38px; font-family: var(--display); }
.hor-dia.cerrado > b { opacity: .55; }
.hor-fr { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.hor-f { display: inline-flex; align-items: center; gap: 4px; background: var(--paper-2); border-radius: 12px; padding: 3px 4px 3px 6px; }
.hor-f input { width: 92px; min-height: 36px; border: 2px solid var(--line); border-radius: 10px; padding: 0 4px; background: var(--white); font-weight: 700; }
.hor-f .quitar { width: 28px; height: 28px; border-radius: 50%; color: var(--error); font-size: 18px; }
.hor-dia .chip.agregar { min-height: 32px; font-size: 13px; }

/* Equipo */
.eq-fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.eq-fila.off b { opacity: .5; text-decoration: line-through; }

/* Ajustes con vida: interruptores, barra de guardar */
.aj .check input[type="checkbox"] { -webkit-appearance: none; appearance: none; box-sizing: border-box; width: 46px; height: 28px; min-height: 0; min-width: 46px; max-height: 28px; padding: 0; margin: 0; flex: none; border-radius: 99px; background: var(--paper-2); border: 2px solid var(--line); position: relative; cursor: pointer; transition: background-color .22s, border-color .22s; }
.aj .check input[type="checkbox"]::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(61, 10, 8, .35); transition: transform .3s var(--ease-salto), background-color .22s; }
.aj .check input[type="checkbox"]:checked { background: var(--bordo); border-color: var(--bordo); }
.aj .check input[type="checkbox"]:checked::after { transform: translateX(18px); background: var(--crema); }
.aj .check input[type="checkbox"]:focus-visible { outline: 2.5px solid var(--bordo); outline-offset: 2px; }
.aj .check input[type="checkbox"]:active::after { width: 24px; }
.aj .check input[type="checkbox"]:checked:active::after { transform: translateX(14px); }
.aj-barra { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 10px 10px 10px 16px;
  background: var(--crema); border: 2px solid var(--bordo); border-radius: 18px; box-shadow: 3px 4px 0 var(--bordo); font-family: var(--display); font-weight: 600;
  transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .34s var(--ease-salto), opacity .2s; }
.aj-barra.visible { transform: none; opacity: 1; pointer-events: auto; }

/* Pie de los avisos: activar avisos en este celu, instalar la app */
.avisos-pie { border-top: 1px solid var(--line); padding: 10px 14px 12px; display: grid; gap: 8px; background: var(--paper); }
.avisos-pie .pie-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.avisos-pie small { font-size: 13px; color: var(--ink-soft); }
.avisos-pie .pie-ok { font-family: var(--display); font-weight: 600; font-size: 15px; }
.avisos-pie .pie-link { font-size: 14px; font-weight: 700; color: var(--bordo); text-decoration: underline; padding: 6px 2px; }

/* Acceso a la guía, al pie del menú lateral */
.lado-guia { display: block; margin: 14px 16px max(16px, env(safe-area-inset-bottom)); font-size: 14px; font-weight: 700; color: var(--ink-soft); text-decoration: underline; }

/* Factura electrónica */
.bloque.fac .seg { margin: 6px 0 4px; }
.bloque.fac .fac-datos { margin-top: 8px; }
.fac-prueba { font-family: var(--body, Quicksand), sans-serif; font-size: 12px; font-weight: 700; background: var(--crema); border: 1.5px solid var(--bordo); border-radius: 99px; padding: 1px 8px; vertical-align: middle; }
[data-arca-res].error { color: #B42318; font-weight: 700; }

/* Arriba de la tarjeta: manija para arrastrar y ✕ para cerrar, siempre a la vista */
.sheet-top { position: sticky; top: -8px; z-index: 3; display: flex; align-items: center; justify-content: center; height: 40px; margin: -8px -18px 2px; padding: 0 10px; background: var(--paper); }
.sheet-top .grab { margin: 0; }
.sheet-x { position: absolute; right: 10px; top: 4px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--bordo); color: var(--bordo); transition: transform .15s; }
.sheet-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; }
.sheet-x:active { transform: scale(.9); }
@media (min-width: 760px) { .sheet-top { height: 30px; margin-bottom: 0; } .sheet-x { top: 0; } }

.avisos-pie .pie-diag { font-size: 12px; opacity: .8; }

/* venta rápida de mostrador */
.view-rapida { max-width: 1180px; padding-bottom: 230px; }
.vr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 2px 2px 10px; }
.vr-head h2 { font-size: 26px; }
.vr-head .muted { font-size: 14px; }
.vr-caja { font-size: 15px; }
.vr-cat { font-size: 18px; margin: 14px 2px 8px; }
.vr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .vr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) { .vr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .vr-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.vr-tile { position: relative; }
.vr-add { width: 100%; height: 100%; display: grid; justify-items: center; align-content: start; gap: 2px; padding: 10px 8px 10px; background: var(--white); border: 2px solid var(--line); border-radius: 18px; text-align: center; transition: transform .12s var(--ease-out), border-color .2s, background-color .2s, box-shadow .2s; }
.vr-add:active { transform: scale(.96); }
.vr-add:disabled { cursor: default; }
.vr-add img { width: 76px; height: 76px; object-fit: contain; margin-bottom: 4px; }
.vr-add strong { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.15; }
.vr-pr { font-weight: 700; font-size: 15px; }
.vr-add small { font-size: 12.5px; color: var(--ink-soft); min-height: 1.2em; }
.vr-add small.bajo { color: var(--error); }
.vr-tile.con .vr-add { border-color: var(--bordo); background: var(--crema-2); box-shadow: 2px 3px 0 var(--bordo); }
.vr-tile.off { opacity: .45; }
.vr-n { position: absolute; top: 6px; right: 6px; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; background: var(--bordo); color: var(--crema); font-family: var(--display); font-size: 17px; pointer-events: none; }
.vr-menos { position: absolute; top: 6px; left: 6px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--bordo); font-size: 22px; font-weight: 700; line-height: 1; }
.vr-barra { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--white); border-top: 2.5px solid var(--bordo); border-radius: 22px 22px 0 0; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); box-shadow: 0 -10px 26px -16px rgba(61,10,8,.55); }
@media (min-width: 900px) { .vr-barra { left: 248px; } }
.vr-barra > * { max-width: 760px; margin: 0 auto; }
.vr-fila { display: flex; align-items: center; gap: 10px; }
.vr-tot { flex: 1; display: grid; line-height: 1.1; min-width: 0; }
.vr-tot small { font-size: 13px; color: var(--ink-soft); }
.vr-tot b { font-family: var(--display); font-size: 26px; }
.vr-cobrar { min-height: 52px; font-size: 18px; padding: 10px 26px; }
.vr-pago .vr-fila .vr-cobrar { flex: 1; }
.vr-pago { display: grid; gap: 10px; }
.vr-det { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14px; color: var(--ink-soft); }
.vr-met, .vr-paga { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vr-paga .muted { font-size: 14px; margin-right: 2px; }
.vr-otro { width: 96px; min-height: 40px; padding: 0 12px; border: 2px solid var(--line); border-radius: 99px; background: var(--white); }
.vr-otro:focus { border-color: var(--bordo); outline: none; }
.vr-vuelto { font-size: 18px; min-height: 1.3em; }
.vr-vuelto b { font-family: var(--display); font-size: 24px; }
.vr-vuelto.mal { color: var(--error); font-size: 15px; }
.vr-nota { font-size: 14px; }
.vr-vacia { text-align: center; color: var(--ink-soft); padding: 8px 0; }
.vr-ok { display: flex; align-items: center; justify-content: center; gap: 6px 18px; flex-wrap: wrap; padding: 4px 0; animation: vrOk .35s var(--ease-spring); }
@keyframes vrOk { from { opacity: 0; transform: scale(.92); } }
.vr-ok strong { font-family: var(--display); font-size: 20px; }
.vr-ok span { font-size: 17px; }
.vr-ok b { font-family: var(--display); font-size: 26px; background: var(--crema); padding: 0 10px; border-radius: 10px; }
