/* =====================================================================
   Jakaru - estilos de las pantallas propias
   .pub = cliente (menú y seguimiento) · .staff = caja y reparto · .cocina = pantalla de cocina
   ===================================================================== */
:root {
  --acc: #e4572e; --acc-2: #c8431c; --acc-suave: #fdebe4;
  --tinta: #1d1a17; --tinta-2: #5c554e; --tinta-3: #8f877e;
  --fondo: #faf6f1; --tarj: #ffffff; --borde: #ece5dc;
  --ok: #16a34a; --ok-suave: #e7f6ec; --no: #dc2626; --no-suave: #fdecec; --av: #d97706; --av-suave: #fff4e0;
  --wa: #25d366; --rad: 16px; --sombra: 0 1px 2px rgba(40,25,10,.06), 0 6px 20px rgba(40,25,10,.07);
  --fuente: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; font-family: var(--fuente); color: var(--tinta); background: var(--fondo); line-height: 1.4; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--acc-2); }
.sin-scroll { overflow: hidden; }
.opc { color: var(--tinta-3); font-weight: 400; font-size: .85em; }
[hidden] { display: none !important; }

/* ---------- Cliente: cabecera ---------- */
.hero { background: linear-gradient(135deg, #e4572e 0%, #f08a4b 55%, #f6b25a 100%); background-size: cover; background-position: center;
  color: #fff; padding: 28px 16px 18px; }
.hero-in { display: flex; gap: 14px; align-items: center; max-width: 760px; margin: 0 auto; }
.hero-logo { width: 68px; height: 68px; flex: none; border-radius: 20px; background: rgba(255,255,255,.95); color: var(--acc);
  display: grid; place-items: center; font-size: 32px; font-weight: 800; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { margin: 0; font-size: 1.55rem; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 1px 8px rgba(0,0,0,.18); }
.hero-desc { margin: 4px 0 0; opacity: .95; font-size: .95rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; max-width: 760px; margin: 14px auto 0; }
.chip { background: rgba(255,255,255,.2); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  padding: 5px 11px; font-size: .82rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.chip-ok { background: #fff; color: var(--ok); } .chip-ok i { background: var(--ok); box-shadow: 0 0 0 3px rgba(22,163,74,.2); }
.chip-no { background: #fff; color: var(--no); } .chip-no i { background: var(--no); }
.aviso-cerrado { max-width: 760px; margin: 12px auto 0; background: var(--av-suave); border: 1px solid #f6d79c; color: #7a4b00;
  border-radius: 12px; padding: 10px 14px; font-size: .92rem; }
.aviso-cerrado, .menu, .tabs { width: calc(100% - 32px); }

/* ---------- Cliente: pestañas y menú ---------- */
.tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 760px;
  margin: 0 auto; padding: 10px 0; background: var(--fondo); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; text-decoration: none; color: var(--tinta-2); font-weight: 600; font-size: .9rem; padding: 8px 14px;
  border-radius: 999px; background: var(--tarj); border: 1px solid var(--borde); white-space: nowrap; transition: .15s; }
.tabs a.act { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.menu { max-width: 760px; margin: 0 auto; padding-bottom: 110px; }
.sec { padding-top: 10px; }
.sec h2 { font-size: 1.2rem; font-weight: 800; margin: 14px 0 10px; letter-spacing: -.01em; }
.prod { width: 100%; display: flex; gap: 12px; align-items: stretch; text-align: left; background: var(--tarj); border: 1px solid var(--borde);
  border-radius: var(--rad); padding: 12px; margin-bottom: 10px; position: relative; box-shadow: var(--sombra); transition: transform .1s; }
.prod:active { transform: scale(.99); }
.prod-tx { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.prod-tx b { font-size: 1rem; }
.prod-tx span { color: var(--tinta-2); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-tx em { font-style: normal; font-weight: 700; margin-top: auto; }
.prod-img { width: 96px; height: 96px; flex: none; border-radius: 12px; object-fit: cover; }
.ph { background: linear-gradient(135deg, var(--acc-suave), #fff6ee); display: grid; place-items: center; font-size: 42px; }
.mas { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; background: var(--acc); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 20px; box-shadow: 0 3px 8px rgba(228,87,46,.4); }
.agotado { opacity: .5; filter: grayscale(.8); cursor: not-allowed; }
.badge { display: inline-block; background: var(--acc); color: #fff; font-size: .7rem; font-weight: 800; padding: 2px 7px; border-radius: 6px;
  vertical-align: middle; letter-spacing: .02em; }
.combos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.combo { display: flex; gap: 10px; align-items: center; text-align: left; background: linear-gradient(135deg, #fff, #fff7f1);
  border: 1.5px dashed #f2b49a; border-radius: var(--rad); padding: 10px; position: relative; }
.combo-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; font-size: 30px; }
.combo-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 30px; }
.combo-tx span { font-size: .82rem; color: var(--tinta-2); }
.combo-tx em { font-style: normal; font-weight: 800; color: var(--acc-2); }
.dest { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.dest-it { flex: none; width: 150px; text-align: left; background: var(--tarj); border: 1px solid var(--borde); border-radius: var(--rad);
  padding: 8px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--sombra); position: relative; }
.dest-it .badge { position: absolute; top: 12px; left: 12px; }
.dest-img { width: 100%; height: 100px; border-radius: 10px; object-fit: cover; font-size: 44px; }
.dest-it b { font-size: .9rem; } .dest-it em { font-style: normal; font-weight: 700; font-size: .9rem; }
.pie { text-align: center; color: var(--tinta-2); font-size: .88rem; padding: 10px 16px 120px; display: grid; gap: 6px; }
.pie-jk { color: var(--tinta-3); font-size: .78rem; }

/* ---------- Cliente: barra del carrito ---------- */
.carrito-barra { position: fixed; z-index: 10; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom));
  width: min(728px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; border: 0; border-radius: 16px; padding: 14px 18px;
  background: var(--tinta); color: #fff; font-weight: 700; font-size: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: sube .25s ease; }
.carrito-barra b { margin-left: auto; }
.cb-q { background: var(--acc); border-radius: 8px; min-width: 28px; height: 28px; display: grid; place-items: center; font-size: .9rem; }
@keyframes sube { from { transform: translate(-50%, 30px); opacity: 0; } }

/* ---------- Hojas (modales de abajo) ---------- */
.hoja-fondo { position: fixed; inset: 0; z-index: 20; background: rgba(20,12,5,.45); display: flex; align-items: flex-end; justify-content: center;
  animation: aparece .2s ease; }
@keyframes aparece { from { opacity: 0; } }
.hoja { background: var(--tarj); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0;
  animation: subeh .25s cubic-bezier(.2,.8,.3,1); padding-bottom: env(safe-area-inset-bottom); overscroll-behavior: contain; }
@keyframes subeh { from { transform: translateY(40px); } }
.hoja-alta { min-height: 70vh; }
@media (min-width: 640px) { .hoja-fondo { align-items: center; } .hoja { border-radius: 22px; } }
.hoja-cab { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; position: sticky; top: 0; background: var(--tarj); z-index: 2; }
.hoja-cab h2 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.x { border: 0; background: #f2ede7; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; }
.x-flota { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.prod-cab { position: relative; }
.prod-cab img, .ph-grande { width: 100%; height: 220px; object-fit: cover; display: grid; place-items: center; font-size: 96px;
  background: linear-gradient(135deg, var(--acc-suave), #fff6ee); border-radius: 22px 22px 0 0; }
.prod-info { padding: 14px 18px 4px; }
.prod-info h2 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 800; }
.prod-info p { margin: 0 0 8px; color: var(--tinta-2); }
.precio-gr { font-weight: 800; font-size: 1.15rem; }
.grupo { border: 0; margin: 8px 0 0; padding: 0 18px; }
.grupo legend { font-weight: 800; padding: 10px 0 6px; width: 100%; display: flex; justify-content: space-between; align-items: center; }
.req { background: var(--tinta); color: #fff; font-size: .7rem; padding: 3px 8px; border-radius: 6px; font-weight: 700; }
.op { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--borde); cursor: pointer; }
.op input { width: 22px; height: 22px; accent-color: var(--acc); flex: none; }
.op span { flex: 1; } .op em { font-style: normal; color: var(--tinta-2); font-size: .9rem; }
.obs { display: block; padding: 14px 18px 0; font-weight: 700; }
.hoja-pie { position: sticky; bottom: 0; background: var(--tarj); padding: 12px 18px 16px; border-top: 1px solid var(--borde); margin-top: 14px; }
.fila-pie { display: flex; gap: 12px; align-items: center; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--borde); border-radius: 12px; overflow: hidden; flex: none; }
.stepper button { border: 0; background: transparent; width: 42px; height: 46px; font-size: 20px; font-weight: 700; }
.stepper b { min-width: 26px; text-align: center; }
.stepper.chico button { width: 34px; height: 36px; font-size: 16px; }
.btn-pri { flex: 1; border: 0; background: var(--acc); color: #fff; font-weight: 800; border-radius: 14px; padding: 14px 18px; font-size: 1rem;
  box-shadow: 0 6px 16px rgba(228,87,46,.35); transition: .15s; }
.btn-pri:hover { background: var(--acc-2); } .btn-pri:disabled { opacity: .6; box-shadow: none; }
.btn-grande { width: 100%; padding: 16px; font-size: 1.05rem; }
.btn-sec { border: 1.5px solid var(--borde); background: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.btn-link { border: 0; background: none; color: var(--acc-2); font-weight: 700; padding: 6px 18px 0; }
.btn-wa { display: flex; justify-content: center; align-items: center; gap: 8px; background: var(--wa); color: #fff; text-decoration: none;
  font-weight: 800; border-radius: 14px; padding: 13px 16px; margin-top: 10px; }

/* ---------- Carrito / datos ---------- */
.linea { display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--borde); }
.linea-tx { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.linea-tx span { font-size: .84rem; color: var(--tinta-2); }
.linea-tx em { font-style: normal; font-weight: 700; }
.nota { color: #9a5b00 !important; font-style: italic; }
.paso { padding: 6px 18px 4px; }
.paso h3 { font-size: 1.02rem; font-weight: 800; margin: 14px 0 8px; }
.paso label, .tarjeta label { display: block; font-weight: 600; font-size: .88rem; margin: 10px 0 0; color: var(--tinta-2); }
.paso input, .paso select, .paso textarea { display: block; width: 100%; margin-top: 5px; border: 1.5px solid var(--borde); border-radius: 12px;
  padding: 12px; background: #fff; font-size: 1rem; color: var(--tinta); }
.paso input:focus, .paso select:focus, .paso textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-suave); }
.fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmento, .pagos { display: flex; gap: 8px; }
.segmento button, .pagos button { flex: 1; border: 1.5px solid var(--borde); background: #fff; border-radius: 12px; padding: 12px 8px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pagos button span { font-size: 1.3rem; }
.segmento button.act, .pagos button.act { border-color: var(--acc); background: var(--acc-suave); color: var(--acc-2); }
.ubic-ok { color: var(--ok); font-weight: 700; margin-left: 8px; }
#btnUbic { margin-top: 10px; }
.info-pago { margin-top: 10px; background: #f7f3ee; border-radius: 12px; padding: 12px; font-size: .9rem; }
.info-pago pre, .pago-pend pre { white-space: pre-wrap; font-family: inherit; margin: 6px 0; font-weight: 600; }
.qr { display: block; max-width: 200px; margin: 6px auto; border-radius: 12px; }
.resumen { margin: 16px 18px 0; background: #f7f3ee; border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.resumen > div, .det-tot > div { display: flex; justify-content: space-between; }
.resumen .desc { color: var(--ok); }
.resumen .total, .det-tot .total { border-top: 1.5px dashed #d9cfc4; padding-top: 8px; margin-top: 2px; font-size: 1.15rem; font-weight: 800; }
.errores { margin: 12px 18px 0; background: var(--no-suave); color: #991b1b; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: .9rem; display: grid; gap: 4px; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--tinta); color: #fff; padding: 10px 18px;
  border-radius: 999px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: aparece .15s; }
.vacio { text-align: center; padding: 60px 20px; color: var(--tinta-2); }
.vacio.chico { padding: 30px 20px; }
.vacio-ico { font-size: 54px; }

/* ---------- Seguimiento ---------- */
.seg-cont { max-width: 560px; margin: 0 auto; padding: 14px 16px 40px; }
.seg-top { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--tinta-2); }
.seg-top a { text-decoration: none; font-weight: 700; }
.seg-estado { margin-top: 14px; border-radius: 22px; padding: 26px 18px 20px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #2563eb, #60a5fa); box-shadow: var(--sombra); }
.seg-estado.e-PAGO_CONFIRMADO { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.seg-estado.e-EN_COCINA { background: linear-gradient(135deg, #e4572e, #f6a14b); }
.seg-estado.e-LISTO { background: linear-gradient(135deg, #15803d, #4ade80); }
.seg-estado.e-EN_CAMINO { background: linear-gradient(135deg, #0e7490, #22d3ee); }
.seg-estado.e-ENTREGADO { background: linear-gradient(135deg, #334155, #64748b); }
.seg-estado.e-CANCELADO { background: linear-gradient(135deg, #991b1b, #ef4444); }
.seg-emoji { font-size: 64px; line-height: 1; animation: late 2s ease-in-out infinite; }
.e-ENTREGADO .seg-emoji, .e-CANCELADO .seg-emoji { animation: none; }
@keyframes late { 50% { transform: scale(1.1) rotate(-4deg); } }
.seg-estado h1 { margin: 10px 0 4px; font-size: 1.45rem; font-weight: 800; }
.seg-estado p { margin: 0; opacity: .95; font-size: 1.02rem; }
.seg-num { margin-top: 14px; display: inline-block; background: rgba(255,255,255,.2); border-radius: 999px; padding: 6px 14px; font-size: .95rem; }
.pasos { list-style: none; padding: 0; margin: 18px 0 6px; display: flex; justify-content: space-between; position: relative; }
.pasos::before { content: ''; position: absolute; top: 19px; left: 8%; right: 8%; height: 3px; background: var(--borde); }
.pasos li { position: relative; flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .72rem; color: var(--tinta-3); }
.pasos li span { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--borde); display: grid; place-items: center; font-size: 18px; filter: grayscale(1); }
.pasos li.hecho span { border-color: var(--ok); background: var(--ok-suave); filter: none; }
.pasos li.actual span { border-color: var(--acc); background: var(--acc-suave); filter: none; box-shadow: 0 0 0 5px rgba(228,87,46,.15); }
.pasos li.hecho, .pasos li.actual { color: var(--tinta); }
.pasos li b { font-weight: 700; }
.tarjeta { background: var(--tarj); border: 1px solid var(--borde); border-radius: var(--rad); padding: 14px 16px; margin-top: 12px; box-shadow: var(--sombra); }
.tarjeta h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.tarjeta p { margin: 4px 0; }
.pago-pend { border-color: #f6d79c; background: var(--av-suave); }
.det { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.det > span { display: block; min-width: 0; } .det small { display: block; color: var(--tinta-2); }
.det em { font-style: normal; font-weight: 600; white-space: nowrap; }
.det-hijo { padding-left: 22px; color: var(--tinta-2); font-size: .9rem; }
.det-tot { border-top: 1px solid var(--borde); margin-top: 6px; padding-top: 8px; display: grid; gap: 4px; }
.seg-pie { text-align: center; color: var(--tinta-3); font-size: .8rem; margin-top: 16px; }

/* =====================================================================
   PERSONAL: barra común
   ===================================================================== */
.staff { background: #f3f1ee; }
.barra { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: #1d1a17; color: #fff; padding: 10px 16px; }
.barra-izq { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.logo { font-weight: 800; color: #f6a14b; font-size: 1.1rem; letter-spacing: -.01em; }
.barra-tit { font-weight: 800; font-size: 1.1rem; }
.barra-neg { color: #b8ada1; font-size: .9rem; }
.barra-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.barra-nav a { color: #e9e1d8; text-decoration: none; font-weight: 600; padding: 7px 12px; border-radius: 10px; font-size: .92rem; }
.barra-nav a.act { background: #f6a14b; color: #1d1a17; }
.barra-nav a.salir { color: #fca5a5; }
.sel-neg { background: #2d2925; color: #fff; border: 1px solid #4a443e; border-radius: 10px; padding: 6px 8px; }
.flash { margin: 12px 16px 0; padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.flash-ok { background: var(--ok-suave); color: #14532d; } .flash-err { background: var(--no-suave); color: #991b1b; }

/* ---------- Caja ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; padding: 14px 16px 0; }
.kpi { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--sombra); }
.kpi small { color: var(--tinta-2); font-weight: 600; display: block; }
.kpi b { font-size: 1.4rem; font-weight: 800; }
.kpi.alerta b { color: var(--no); }
.acciones-top { display: flex; gap: 8px; padding: 12px 16px 0; flex-wrap: wrap; }
.acciones-top a { text-decoration: none; }
.tablero { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 12px; padding: 14px 16px 30px; overflow-x: auto; align-items: start; }
.col { background: #e9e5e0; border-radius: 16px; padding: 10px; min-height: 200px; }
.col-cab { display: flex; justify-content: space-between; align-items: center; font-weight: 800; padding: 4px 6px 10px; }
.col-cab span { background: #fff; border-radius: 999px; padding: 2px 10px; font-size: .85rem; }
.col-vacia { text-align: center; color: var(--tinta-3); padding: 24px 8px; font-size: .9rem; }
.ped { background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 10px; box-shadow: var(--sombra); border-left: 5px solid var(--c, #2563eb); }
.ped.nuevo { animation: brilla 1.2s ease 3; }
@keyframes brilla { 50% { box-shadow: 0 0 0 4px rgba(228,87,46,.45); } }
.ped-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ped-num { font-size: 1.5rem; font-weight: 800; }
.ped-hora { color: var(--tinta-2); font-size: .82rem; text-align: right; }
.ped-cli { font-weight: 700; margin-top: 2px; }
.ped-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.tag { font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #f2ede7; color: var(--tinta-2); }
.tag-ok { background: var(--ok-suave); color: #166534; } .tag-no { background: var(--no-suave); color: #991b1b; } .tag-av { background: var(--av-suave); color: #92400e; }
.ped-items { font-size: .88rem; color: var(--tinta-2); margin: 6px 0; padding-left: 0; list-style: none; }
.ped-items li { padding: 1px 0; }
.ped-total { display: flex; justify-content: space-between; font-weight: 800; border-top: 1px dashed var(--borde); padding-top: 6px; margin-top: 6px; }
.ped-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ped-btns form { display: contents; }
.b { border: 0; border-radius: 10px; padding: 9px 12px; font-weight: 800; font-size: .88rem; color: #fff; background: #475569; text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px; }
.b-ok { background: var(--ok); } .b-acc { background: var(--acc); } .b-azul { background: #2563eb; } .b-vio { background: #7c3aed; }
.b-cian { background: #0891b2; } .b-no { background: #fff; color: var(--no); border: 1.5px solid #fecaca; } .b-wa { background: var(--wa); }
.b-gris { background: #f2ede7; color: var(--tinta); }
.b-ancho { flex: 1; justify-content: center; }
.sel-del { border: 1.5px solid var(--borde); border-radius: 10px; padding: 8px; font-weight: 600; flex: 1; min-width: 0; }
@media (max-width: 1100px) { .tablero { grid-template-columns: repeat(4, 280px); } }

/* ---------- Reparto (celular) ---------- */
.rep { max-width: 560px; margin: 0 auto; padding: 12px 12px 40px; }
.rep h2 { font-size: 1.05rem; font-weight: 800; margin: 18px 4px 8px; display: flex; justify-content: space-between; }
.rep-card { background: #fff; border-radius: 18px; padding: 16px; margin-bottom: 12px; box-shadow: var(--sombra); border-top: 6px solid var(--c, #0891b2); }
.rep-num { display: flex; justify-content: space-between; align-items: center; }
.rep-num b { font-size: 2rem; font-weight: 800; }
.rep-cli { font-size: 1.35rem; font-weight: 800; margin: 6px 0 2px; }
.rep-tel { font-size: 1.15rem; font-weight: 700; color: var(--tinta-2); text-decoration: none; }
.rep-dir { background: #f7f3ee; border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-size: 1.05rem; }
.rep-dir small { display: block; color: var(--tinta-2); margin-top: 2px; }
.rep-cobro { display: flex; justify-content: space-between; align-items: center; background: var(--av-suave); border-radius: 12px; padding: 10px 12px; font-weight: 700; }
.rep-cobro b { font-size: 1.3rem; white-space: nowrap; }
.rep-cobro.pagado { background: var(--ok-suave); color: #166534; }
.rep-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.rep-btns .b { justify-content: center; padding: 14px; font-size: 1rem; border-radius: 14px; }
.rep-btns .full { grid-column: 1 / -1; padding: 18px; font-size: 1.15rem; }
.rep-vacio { text-align: center; padding: 50px 20px; color: var(--tinta-2); }
.rep-vacio div { font-size: 60px; }

/* =====================================================================
   COCINA (pantalla grande, fondo oscuro)
   ===================================================================== */
.cocina { background: #121110; color: #f4efe9; }
.cocina .barra { background: #000; }
.coc-reloj { font-size: 1.3rem; font-weight: 800; color: #f6a14b; font-variant-numeric: tabular-nums; }
.coc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding: 14px; align-items: start; }
.ticket { background: #1f1d1b; border-radius: 18px; overflow: hidden; border: 3px solid #2d2a27; display: flex; flex-direction: column; animation: entra .4s ease; }
@keyframes entra { from { transform: scale(.95); opacity: 0; } }
.ticket-cab { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; background: #16a34a; color: #fff; }
.ticket.medio { border-color: #d97706; } .ticket.medio .ticket-cab { background: #d97706; }
.ticket.tarde { border-color: #dc2626; animation: entra .4s ease, alarma 1.6s ease-in-out infinite; } .ticket.tarde .ticket-cab { background: #dc2626; }
@keyframes alarma { 50% { border-color: #fca5a5; } }
.ticket-num { font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.ticket-num small { font-size: 1rem; font-weight: 700; opacity: .9; margin-left: 4px; }
.ticket-tiempo { text-align: right; font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.ticket-tiempo small { display: block; font-size: .8rem; font-weight: 700; opacity: .9; }
.ticket-cli { padding: 8px 16px; display: flex; justify-content: space-between; gap: 8px; background: #2a2725; font-weight: 700; font-size: 1rem; }
.ticket-tipo { padding: 2px 10px; border-radius: 8px; background: #3b82f6; font-size: .85rem; }
.ticket-tipo.retiro { background: #a855f7; }
.ticket-items { list-style: none; margin: 0; padding: 8px 16px 12px; flex: 1; }
.ticket-items li { padding: 9px 0; border-bottom: 1px solid #34302c; }
.ticket-items li:last-child { border-bottom: 0; }
.ti-linea { display: flex; gap: 10px; font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.ti-q { color: #f6a14b; min-width: 42px; }
.ti-ad { margin: 4px 0 0 52px; font-size: 1.05rem; color: #d6cec5; }
.ti-ad div::before { content: '+ '; color: #f6a14b; font-weight: 800; }
.ti-obs { margin: 6px 0 0 52px; background: #facc15; color: #1d1a17; font-weight: 800; font-size: 1.05rem; padding: 4px 10px; border-radius: 8px; display: inline-block; }
.ti-combo { margin-left: 52px; font-size: .85rem; color: #a59c92; }
.ticket-obs { margin: 0 16px 10px; background: #3a2f12; color: #fde68a; padding: 8px 12px; border-radius: 10px; font-weight: 700; }
.ticket form { margin: 0; }
.btn-listo { width: 100%; border: 0; background: #16a34a; color: #fff; font-size: 1.6rem; font-weight: 800; padding: 18px; letter-spacing: .02em; }
.btn-listo:active { background: #15803d; }
.coc-vacio { text-align: center; padding: 18vh 20px; color: #8f877e; }
.coc-vacio div { font-size: 90px; } .coc-vacio h2 { color: #f4efe9; font-size: 2rem; }
.coc-pie { position: fixed; right: 14px; bottom: 12px; color: #6b635b; font-size: .85rem; }
.btn-sonido { background: #2d2a27; color: #f4efe9; border: 0; border-radius: 10px; padding: 7px 12px; font-weight: 700; }

/* ---------- Cliente: categorías desplegables ---------- */
.tit-menu { font-size: 1.2rem; font-weight: 800; margin: 22px 0 10px; }
.cat { margin-bottom: 10px; }
.cat-cab { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: var(--tarj); border: 1px solid var(--borde);
  border-radius: var(--rad); padding: 14px 16px; box-shadow: var(--sombra); }
.cat-emoji { width: 52px; height: 52px; flex: none; border-radius: 14px; background: linear-gradient(135deg, var(--acc-suave), #fff6ee);
  display: grid; place-items: center; font-size: 28px; }
.cat-nom { flex: 1; display: flex; flex-direction: column; }
.cat-nom b { font-size: 1.08rem; }
.cat-nom small { color: var(--tinta-3); font-size: .85rem; }
.cat-flecha { font-size: 1.4rem; color: var(--tinta-3); line-height: 1; transition: transform .2s; }
.cat.abierta .cat-cab { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-suave); }
.cat.abierta .cat-flecha { transform: rotate(180deg); color: var(--acc); }
.cat-cuerpo { padding: 10px 0 4px; }
.menu { padding-top: 6px; }

/* Cocina: etiqueta PEDIDO y tarjetas más grandes */
.ticket-lbl { display: block; font-size: .85rem !important; letter-spacing: .15em; margin: 0 0 2px !important; opacity: .9; }
.coc-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.ticket-num { font-size: 3.6rem; }

/* Mitad y mitad */
.mitad-sel { padding: 12px 18px 0; }
.mitad-sel .segmento button { flex-direction: row; justify-content: center; }
.mitad-sel .grupo { padding: 0; }
.mitad-nota { display: block; padding: 8px 0 0; }

/* Caja: franja de deliverys, espera de salida y diálogo de modificar */
.del-franja { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px 0; }
.del-tit { margin-right: 4px; }
.del-chip { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 8px 10px; box-shadow: var(--sombra); border: 2px solid transparent; }
.del-chip small { color: var(--tinta-2); }
.del-chip form { margin: 0; }
.del-chip.del-ok { border-color: #86efac; }
.del-chip.del-calle { border-color: #67e8f9; }
.tag-del { background: #cffafe; color: #155e75; }
.espera { width: 100%; text-align: center; font-size: .85rem; font-weight: 700; color: #0e7490; background: #ecfeff; border-radius: 10px; padding: 8px; }
.dlg { border: 0; border-radius: 18px; padding: 0; width: min(480px, 94vw); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.dlg::backdrop { background: rgba(20,12,5,.45); }
.dlg-form { padding: 18px; display: grid; gap: 8px; }
.dlg-form h3 { margin: 0 0 4px; }
.dlg-form label { display: block; font-weight: 600; font-size: .88rem; color: var(--tinta-2); }
.dlg-form input, .dlg-form select, .dlg-form textarea { display: block; width: 100%; margin-top: 4px; border: 1.5px solid var(--borde); border-radius: 10px; padding: 9px; font-size: .95rem; }
.dlg-form .segmento button { flex-direction: row; justify-content: center; }
.dlg-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* Reparto: disponibilidad, pedidos para llevar y SALGO */
.btn-disp { width: 100%; border: 0; border-radius: 18px; padding: 22px; margin-top: 14px; background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff; font-weight: 800; font-size: 1.35rem; box-shadow: 0 8px 22px rgba(22,163,74,.35); line-height: 1.25; }
.btn-disp span { font-size: 1rem; font-weight: 700; opacity: .95; }
.disp { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-radius: 16px; padding: 14px 16px; margin-top: 14px; }
.disp-si { background: var(--ok-suave); border: 2px solid #86efac; }
.disp b { font-size: 1.15rem; display: block; } .disp small { color: #166534; font-weight: 600; }
.rep h2 span { background: #fff; border-radius: 999px; padding: 0 10px; font-size: .9rem; }
.rep-mini { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--sombra); border-left: 5px solid #f59e0b; display: grid; gap: 3px; }
.rep-mini.listo { border-left-color: #16a34a; }
.rep-mini-cab { display: flex; justify-content: space-between; align-items: center; }
.rep-mini-cab b { font-size: 1.4rem; }
.btn-salgo { width: 100%; border: 0; border-radius: 18px; padding: 20px; margin: 6px 0 4px; background: #0891b2; color: #fff; font-weight: 800; font-size: 1.3rem;
  box-shadow: 0 8px 22px rgba(8,145,178,.35); }

/* Seguimiento: línea de tiempo vertical */
.tl { list-style: none; margin: 16px 0 4px; padding: 6px 16px; background: var(--tarj); border: 1px solid var(--borde); border-radius: var(--rad); box-shadow: var(--sombra); }
.tl li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; position: relative; color: var(--tinta-3); }
.tl li:not(:last-child)::after { content: ''; position: absolute; left: 19px; top: 46px; bottom: -8px; width: 2px; background: var(--borde); }
.tl li.hecho:not(:last-child)::after { background: #86efac; }
.tl-ico { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: #f4f1ec;
  border: 2px solid var(--borde); filter: grayscale(1); opacity: .7; }
.tl li.hecho .tl-ico { background: var(--ok-suave); border-color: #86efac; filter: none; opacity: 1; }
.tl li.actual .tl-ico { background: var(--acc-suave); border-color: var(--acc); filter: none; opacity: 1; animation: pulso 1.6s ease-in-out infinite; }
@keyframes pulso { 50% { box-shadow: 0 0 0 7px rgba(228,87,46,.15); } }
.tl-tx { flex: 1; display: flex; flex-direction: column; padding-top: 2px; }
.tl-tx b { font-size: .98rem; }
.tl-tx small { font-size: .85rem; }
.tl li.hecho, .tl li.actual { color: var(--tinta); }
.tl li.hecho small, .tl li.actual small { color: var(--tinta-2); }
.tl li.actual b { color: var(--acc-2); }
.tl em { font-style: normal; font-size: .82rem; font-weight: 700; padding-top: 4px; color: var(--tinta-2); }

/* Caja más limpia: franja compacta y botón flotante */
.franja { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px 0; }
.mini-kpis { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-kpis span { background: #fff; border-radius: 10px; padding: 4px 10px; box-shadow: var(--sombra); display: flex; gap: 6px; align-items: baseline; }
.mini-kpis small { color: var(--tinta-2); font-weight: 600; font-size: .75rem; }
.mini-kpis b { font-size: .95rem; }
.mini-kpis .alerta b { color: var(--no); }
.mini-del { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.mini-del form { margin: 0; }
.dchip { border: 1px solid var(--borde); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.dchip small { color: var(--tinta-3); font-weight: 600; }
.dchip i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.dchip.ok { border-color: #86efac; } .dchip.ok i { background: #16a34a; }
.dchip.calle { border-color: #67e8f9; } .dchip.calle i { background: #0891b2; }
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 30; width: 64px; height: 64px; border-radius: 50%; background: var(--acc); color: #fff;
  display: grid; place-items: center; font-size: 34px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 26px rgba(228,87,46,.45); transition: transform .15s; }
.fab:hover { transform: scale(1.08); }
.tablero { padding-bottom: 100px; }

/* Caja: aviso chico al lado de los totales, color llamativo, sin mover la pantalla */
.flash.flash-mini { margin: 0; padding: 4px 12px; border-radius: 10px; font-size: .85rem; display: flex; align-items: center; box-shadow: var(--sombra);
  transition: opacity .6s; animation: avisa .5s ease 2; }
.flash-mini.flash-ok { background: #16a34a; color: #fff; }
.flash-mini.flash-err { background: #dc2626; color: #fff; }
.flash-mini.apagado { opacity: 0; }
@keyframes avisa { 50% { transform: scale(1.06); } }

/* Reparto: ruta */
.btn-ruta { display: block; text-align: center; background: #2563eb; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem;
  border-radius: 16px; padding: 16px; margin: 0 0 12px; box-shadow: 0 8px 22px rgba(37,99,235,.3); }
.parada { display: flex; align-items: center; gap: 8px; margin: -4px 0 6px; }
.parada b { background: #0891b2; color: #fff; border-radius: 999px; padding: 3px 12px; font-size: .95rem; }
.parada small { color: var(--tinta-3); }
.parada-btns { margin-left: auto; display: flex; gap: 6px; }
.parada-btns .b { padding: 8px 14px; font-size: 1.1rem; }
.btn-ubic { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: 12px; border: 2px dashed var(--acc); background: var(--acc-suave);
  color: var(--acc-2); border-radius: 14px; padding: 12px; font-weight: 800; font-size: 1rem; }
.btn-ubic small { font-weight: 600; color: var(--tinta-2); font-size: .8rem; margin-top: 2px; }
.btn-ubic.ok { border-style: solid; border-color: var(--ok); background: var(--ok-suave); color: #166534; }

/* ---------- Paso 10: factura en formularios, facturación y ajustes ---------- */
.paso label.chk-fila, .dlg-form label.chk-fila, label.chk-fila { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--tinta); margin-top: 14px; cursor: pointer; }
.paso .chk-fila input, .dlg-form .chk-fila input, .chk-fila input { display: inline-block; width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--acc); }
.adm { max-width: 1200px; margin: 0 auto; padding: 16px; display: grid; gap: 16px; }
.adm-card { background: #fff; border-radius: 16px; box-shadow: var(--sombra); padding: 16px 18px; }
.adm-card h2 { margin: 0 0 4px; font-size: 1.15rem; }
.adm-card h3 { margin: 14px 0 6px; font-size: 1rem; }
.adm-card p { margin: 6px 0; color: var(--tinta-2); }
.adm-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.adm-form label { display: grid; gap: 4px; font-weight: 600; font-size: .85rem; color: var(--tinta-2); }
.adm-form input, .adm-form select, .adm-form textarea { border: 1.5px solid var(--borde); border-radius: 10px; padding: 9px 10px; font: inherit; font-size: .95rem; background: #fff; color: var(--tinta); }
.adm-form .ancho { flex: 1 1 320px; }
.adm-form .ancho input { width: 100%; }
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-tabs a { text-decoration: none; font-weight: 700; font-size: .88rem; padding: 7px 12px; border-radius: 999px; background: #f2ede7; color: var(--tinta); }
.adm-tabs a.act { background: var(--tinta); color: #fff; }
.adm-tabs a span { opacity: .7; font-weight: 600; margin-left: 4px; }
.tabla-wrap { overflow-x: auto; }
.tabla { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabla th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tinta-3); padding: 8px; border-bottom: 2px solid var(--borde); white-space: nowrap; }
.tabla td { padding: 8px; border-bottom: 1px solid var(--borde); vertical-align: top; }
.tabla td.n, .tabla th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabla tfoot td { font-weight: 800; border-bottom: 0; }
.tabla .acc-celda { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tabla .acc-celda form { display: flex; gap: 4px; }
.tabla .acc-celda input { width: 140px; border: 1.5px solid var(--borde); border-radius: 8px; padding: 5px 7px; font: inherit; font-size: .85rem; }
.fest { display: inline-block; font-size: .75rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; color: #fff; background: var(--c, #94a3b8); white-space: nowrap; }
.codigo { font-family: ui-monospace, Consolas, monospace; background: #f6f3ef; border: 1px solid var(--borde); border-radius: 8px; padding: 8px 10px; word-break: break-all; display: block; font-size: .85rem; }
.ayuda { font-size: .85rem; color: var(--tinta-2); }
.ayuda code { background: #f6f3ef; padding: 1px 5px; border-radius: 5px; }
.adm-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.adm-form label.chk-fila { display: flex; grid-template-columns: none; color: var(--tinta); }


/* =====================================================================
   Paso 11: SKIN del MENÚ del cliente (solo index.php: body.menu-cli).
   Misma estructura, sin emojis: íconos de línea y siluetas de comida de colores
   cuando falta foto. El color principal es el de la marca del local (--acc, llega
   por style="" en el body; por defecto el naranja de Jakaru).
   ===================================================================== */
.menu-cli { --linea: #edeae6; --rad: 14px; background: var(--fondo); color: var(--tinta); }
.menu-cli .carrito-barra { background: var(--tinta); }
.menu-cli .ico { width: 1.05em; height: 1.05em; flex: none; vertical-align: -.16em; }
.menu-cli .sil { width: 56%; height: 56%; }

/* Portada + ficha del local */
.menu-cli .portada { height: 150px; background-color: var(--acc); background-size: 168px 168px, cover; background-position: center; }
.menu-cli .portada.con-foto { height: 190px; background-size: cover; }
@media (min-width: 760px) { .menu-cli .portada { height: 200px; } .menu-cli .portada.con-foto { height: 260px; } }
.menu-cli .ficha { position: relative; max-width: 760px; width: calc(100% - 32px); margin: -46px auto 0; background: var(--tarj);
  border-radius: 20px; padding: 54px 18px 16px; box-shadow: 0 8px 28px rgba(40,25,10,.12); text-align: center; }
.menu-cli .ficha-logo { position: absolute; top: -42px; left: 50%; transform: translateX(-50%); width: 84px; height: 84px; border-radius: 22px;
  background: #fff; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(40,25,10,.18); overflow: hidden; display: grid; place-items: center; }
.menu-cli .ficha-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.menu-cli .ficha-logo.sin-logo { background: var(--acc-suave); color: var(--acc); }
.menu-cli .ficha-logo.sin-logo .sil { width: 66%; height: 66%; }
.menu-cli .ficha h1 { margin: 0; font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.15; }
.menu-cli .ficha-desc { margin: 6px auto 0; color: var(--tinta-2); font-size: .93rem; max-width: 520px; }
.menu-cli .ficha-datos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.menu-cli .ficha-datos > span { display: inline-flex; align-items: center; gap: 6px; background: var(--sec-suave); color: var(--sec-osc);
  font-size: .82rem; font-weight: 700; padding: 6px 11px; border-radius: 999px; }
.menu-cli .ficha-datos .ico { color: var(--sec-osc); width: 16px; height: 16px; }
.menu-cli .estado i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.menu-cli .ficha-datos .estado.ok { background: var(--ok-suave); color: #15803d; box-shadow: inset 0 0 0 1px #bbf7d0; }
.menu-cli .ficha-datos .estado.no { background: var(--no-suave); color: var(--no); }

/* Títulos de sección con rayita de color */
.menu-cli .sec h2, .menu-cli .tit-menu { font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; margin: 20px 0 12px; display: flex; align-items: center; gap: 10px; }
.menu-cli .sec h2::before, .menu-cli .tit-menu::before { content: ''; width: 5px; height: 1.1em; border-radius: 3px; background: var(--acc); }
.menu-cli .badge { background: var(--acc); color: var(--acc-txt, #fff); }

/* Siluetas cuando no hay foto: alternan color principal y secundario de la paleta */
.menu-cli .ph, .menu-cli .cat-emoji, .menu-cli .ph-grande { display: grid; place-items: center; font-size: 0; background: var(--acc-suave); color: var(--acc); }
.menu-cli .ph .sil { width: 58%; height: 58%; }
.menu-cli .cat:nth-of-type(even) .cat-emoji, .menu-cli .cat-cuerpo .prod:nth-child(even) .ph, .menu-cli .dest-it:nth-child(even) .ph,
.menu-cli .combo .ph { background: var(--sec-suave); color: var(--sec-osc); }

/* Combos */
.menu-cli .combo { background: linear-gradient(135deg, #fff, var(--acc-suave)); border: 1.5px solid var(--acc-suave); border-radius: var(--rad); padding: 10px; box-shadow: var(--sombra); }
.menu-cli .combo-img { width: 68px; height: 68px; border-radius: 12px; }
.menu-cli .combo-tx b { font-weight: 700; }
.menu-cli .combo-tx em { color: var(--acc-2); font-weight: 800; }

/* Botón + */
.menu-cli .mas { width: 32px; height: 32px; border-radius: 50%; background: var(--acc); color: var(--acc-txt, #fff); border: 0;
  display: grid; place-items: center; box-shadow: 0 3px 8px rgba(40,25,10,.2); font-size: 0; right: 8px; bottom: 8px; }
.menu-cli .mas .ico { width: 17px; height: 17px; stroke-width: 2.4; }

/* Los más pedidos */
.menu-cli .dest-it { border-radius: var(--rad); padding: 8px; gap: 4px; }
.menu-cli .dest-img { border-radius: 10px; height: 110px; }
.menu-cli .dest-it b { font-weight: 700; } .menu-cli .dest-it em { font-weight: 800; color: var(--acc-2); }

/* Categorías (acordeón) */
.menu-cli .cat { margin-bottom: 10px; }
.menu-cli .cat-cab { border-radius: var(--rad); padding: 10px 14px 10px 10px; gap: 14px; }
.menu-cli .cat-emoji { width: 52px; height: 52px; border-radius: 14px; }
.menu-cli .cat-emoji .sil { width: 70%; height: 70%; }
.menu-cli .cat-nom b { font-weight: 700; font-size: 1.05rem; }
.menu-cli .cat-flecha { font-size: 0; color: var(--tinta-3); }
.menu-cli .cat-flecha .ico { width: 22px; height: 22px; }
.menu-cli .cat.abierta .cat-cab { border-color: var(--acc); box-shadow: none; border-radius: var(--rad) var(--rad) 0 0; background: var(--acc-suave); }
.menu-cli .cat.abierta .cat-flecha { color: var(--acc); }

/* Productos: lista dentro de la categoría abierta, separada por líneas finas */
.menu-cli .cat-cuerpo { padding: 0; background: var(--tarj); border: 1px solid var(--acc); border-top: 0; border-radius: 0 0 var(--rad) var(--rad); overflow: hidden; }
.menu-cli .cat-cuerpo .prod { border: 0; border-bottom: 1px solid var(--linea); border-radius: 0; margin: 0; box-shadow: none; padding: 14px; }
.menu-cli .cat-cuerpo .prod:last-child { border-bottom: 0; }
.menu-cli .prod-tx b { font-weight: 700; }
.menu-cli .prod-tx em { font-weight: 800; color: var(--acc-2); }
.menu-cli .prod-img { width: 92px; height: 92px; border-radius: 12px; }
.menu-cli .prod.agotado, .menu-cli .combo.agotado { opacity: .5; }

/* Pie, carrito, hojas */
.menu-cli .pie a { display: inline-flex; align-items: center; gap: 6px; }
.menu-cli .pie > div { display: flex; justify-content: center; align-items: center; gap: 6px; }
.menu-cli .cb-q { background: var(--acc); color: var(--acc-txt, #fff); box-shadow: 0 0 0 1.5px rgba(255,255,255,.75); }
.menu-cli .ph-grande { height: 200px; }
.menu-cli .ph-grande .sil { width: 120px; height: 120px; }
.menu-cli .btn-pri { color: var(--acc-txt, #fff); box-shadow: 0 6px 16px rgba(40,25,10,.18); }
.menu-cli .segmento button .ico, .menu-cli .pagos button .ico { width: 24px; height: 24px; }
.menu-cli .pagos button span { font-size: 0; }
.menu-cli .segmento button { gap: 4px; }
.menu-cli .btn-ubic .ub-tit { display: inline-flex; align-items: center; gap: 6px; }
.menu-cli .stepper button { display: grid; place-items: center; }
.menu-cli .stepper .ico { width: 18px; height: 18px; }
.menu-cli .vacio-ico { font-size: 0; display: flex; justify-content: center; color: var(--acc); }
.menu-cli .vacio-ico .sil, .menu-cli .vacio-ico .ico { width: 64px; height: 64px; }

/* Ajustes: paletas de colores del menú */
.paletas { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 10px; }
.paleta { display: flex; align-items: center; gap: 10px; text-align: left; border: 1.5px solid var(--borde); background: #fff; border-radius: 12px;
  padding: 8px 10px; font: inherit; font-size: .85rem; font-weight: 700; color: var(--tinta); cursor: pointer; }
.paleta small { font-weight: 500; color: var(--tinta-3); }
.paleta.act { border-color: var(--tinta); box-shadow: 0 0 0 2px var(--tinta); }
.pal-mues { display: flex; flex: none; border-radius: 7px; overflow: hidden; border: 1px solid rgba(0,0,0,.08); }
.pal-mues i { width: 16px; height: 26px; display: block; }
.in-color { width: 70px; height: 42px; padding: 3px !important; cursor: pointer; }

/* =====================================================================
   Paso 13: mesas, cuenta del cliente y salón (mozos)
   ===================================================================== */
/* Menú del cliente en una mesa */
.menu-cli .aviso-mesa { max-width: 760px; width: calc(100% - 32px); margin: 14px auto 0; display: flex; align-items: center; gap: 12px;
  background: var(--sec-suave, #eef2ff); border: 1.5px solid var(--sec, #6366f1); border-radius: 14px; padding: 10px 12px; color: var(--tinta); }
.menu-cli .aviso-mesa b { display: block; font-size: 1rem; }
.menu-cli .aviso-mesa small { color: var(--tinta-2); font-size: .8rem; }
.menu-cli .am-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--sec-osc, #4338ca); }
.menu-cli .am-ico .sil { width: 70%; height: 70%; }
.menu-cli .am-cuenta { margin-left: auto; text-align: right; text-decoration: none; font-size: .78rem; font-weight: 700; color: var(--acc-2);
  background: #fff; border-radius: 10px; padding: 6px 10px; line-height: 1.25; flex: none; }
.menu-cli .am-cuenta b { font-size: .95rem; }
/* Cuenta del cliente */
.cta-cuenta { display: grid; gap: 8px; margin-top: 12px; }
.cta-cuenta a.btn-pri { display: block; text-align: center; text-decoration: none; }
.cta-cuenta .btn-sec { width: 100%; padding: 14px; font-size: 1rem; }
.ronda { margin-top: 10px; }
.ronda-cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.ronda-est { font-size: .78rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #f2ede7; color: var(--tinta-2); white-space: nowrap; }
.r-EN_COCINA .ronda-est { background: #ffedd5; color: #9a3412; }
.r-LISTO .ronda-est { background: #dcfce7; color: #166534; }
.r-ENTREGADO .ronda-est { background: #e0f2fe; color: #075985; }
.r-CANCELADO { opacity: .55; } .r-CANCELADO .ronda-est { background: #fee2e2; color: #991b1b; }
.r-RECIBIDO .ronda-est { background: #fef3c7; color: #92400e; }
.ronda-pie { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--borde); }
.ronda-pie .ped-btns { display: flex; gap: 6px; } .ronda-pie form { margin: 0; }
/* Caja */
.tag-mesa { background: #ede9fe; color: #5b21b6; }
.aviso-salon { display: block; margin: 10px 16px 0; padding: 10px 14px; border-radius: 12px; background: #fef3c7; color: #92400e; font-weight: 800; text-decoration: none; }
.cocina .ticket-tipo.en-mesa { background: #7c3aed; color: #fff; }
/* Salón */
.sal-tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 12px 16px 0; }
.sal-tabs a { text-decoration: none; font-weight: 800; font-size: .9rem; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--tinta); box-shadow: var(--sombra); }
.sal-tabs a.act { background: var(--tinta); color: #fff; }
.sal-ley { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: .75rem; color: var(--tinta-2); flex-wrap: wrap; }
.sal-ley i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 3px; }
.l-libre { background: #d1d5db; } .l-POR_CONFIRMAR { background: #f59e0b; } .l-ABIERTA { background: #3b82f6; } .l-PIDIO_CUENTA { background: #ef4444; }
.sal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; padding: 12px 16px 40px; }
.sal-sector { grid-column: 1 / -1; font-weight: 800; color: var(--tinta-2); text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; margin-top: 6px; }
.mesa { display: flex; flex-direction: column; gap: 2px; min-height: 104px; padding: 10px; border-radius: 14px; background: #fff; text-decoration: none; color: var(--tinta);
  border: 2px solid #e5e7eb; box-shadow: var(--sombra); position: relative; }
.mesa-num { font-size: 1.7rem; font-weight: 900; line-height: 1; }
.mesa-tot { font-weight: 800; font-size: .92rem; }
.mesa-info { font-size: .74rem; color: var(--tinta-2); }
.mesa-alerta { font-size: .72rem; font-weight: 800; color: #92400e; background: #fef3c7; border-radius: 6px; padding: 1px 6px; align-self: flex-start; }
.mesa-alerta.ok { background: #dcfce7; color: #166534; } .mesa-alerta.no { background: #fee2e2; color: #991b1b; }
.m-libre { background: #f9fafb; color: #6b7280; }
.m-POR_CONFIRMAR { border-color: #f59e0b; background: #fffbeb; animation: pulso 1.6s ease-in-out infinite; }
.m-ABIERTA { border-color: #3b82f6; background: #eff6ff; }
.m-PIDIO_CUENTA { border-color: #ef4444; background: #fef2f2; }
.mesa.mia::after { content: 'MÍA'; position: absolute; top: 8px; right: 8px; font-size: .62rem; font-weight: 900; background: var(--tinta); color: #fff; border-radius: 5px; padding: 1px 5px; }
.sal-det { max-width: 720px; margin: 0 auto; padding: 12px 16px 60px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.sal-det-cab { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sal-det-cab h2 { margin: 0; font-size: 1.6rem; } .sal-det-cab h2 small { font-size: .9rem; color: var(--tinta-2); font-weight: 600; }
.sal-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sal-res small { display: block; color: var(--tinta-2); font-size: .75rem; font-weight: 600; } .sal-res b { font-size: 1.1rem; }
.sal-acc { display: flex; gap: 8px; flex-wrap: wrap; } .sal-acc form { margin: 0; } .sal-acc .b-ancho { width: 100%; }
.cierre h3 { margin: 0 0 8px; }
.cie-fila { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; }
.cie-fila.tot { font-size: 1.2rem; font-weight: 900; border-top: 1.5px solid var(--borde); margin-top: 4px; padding-top: 8px; }
.cie-prop { display: flex; gap: 6px; align-items: center; } .cie-prop input { width: 110px; }
.cie-pagos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cie-pagos label, .cierre label { display: grid; gap: 3px; font-weight: 700; font-size: .85rem; color: var(--tinta-2); }
.cierre input { border: 1.5px solid var(--borde); border-radius: 10px; padding: 10px; font: inherit; font-size: 1rem; }
.cierre .chk-fila input { width: 22px; height: 22px; }
.rend { border: 1px solid var(--borde); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.rend-datos { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.rend-datos span { font-size: .8rem; color: var(--tinta-2); } .rend-datos b { display: block; font-size: 1rem; color: var(--tinta); }
@media (max-width: 520px) { .sal-grid { grid-template-columns: repeat(3, 1fr); } .mesa { min-height: 92px; padding: 8px; } .mesa-num { font-size: 1.4rem; } .sal-ley { margin-left: 0; } }
.cierre label.chk-fila { display: flex; flex-direction: row; align-items: center; }
.sal-det .adm-card { min-width: 0; }
.cie-pagos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cie-pagos input, .cierre input:not([type=checkbox]) { width: 100%; min-width: 0; box-sizing: border-box; } .cie-prop input { width: 110px; }
.cie-aviso { background: #fef3c7; color: #92400e; border-radius: 10px; padding: 8px 10px; font-weight: 700; font-size: .9rem; margin: 0 0 8px; }
/* Cocina: lo que no se cocina (bebidas, postres listos) también se ve, más chico */
.cocina .ticket-tipo { align-self: flex-start; }
.ti-otros { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #4a433d; }
.ti-otros-tit { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #a59c92; margin-bottom: 4px; }
.ti-otros .ti-linea { font-size: 1.05rem; font-weight: 700; color: #d6cec5; }
.ti-otros:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
/* Salón: capacidad de cada mesa y buscador de mesa libre */
.mesa-cap { position: absolute; right: 8px; bottom: 7px; font-size: .72rem; font-weight: 800; color: var(--tinta-2); background: rgba(0,0,0,.05); border-radius: 6px; padding: 1px 6px; }
.sal-libres { margin: 10px 16px 0; background: #fff; border: 1px solid var(--borde); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; }
.sl-tot { font-size: 1rem; } .sl-tot b { font-size: 1.15rem; color: #15803d; }
.sl-cap { display: flex; flex-wrap: wrap; gap: 6px; } .sl-cap span { font-size: .78rem; font-weight: 700; background: #dcfce7; color: #166534; border-radius: 999px; padding: 2px 9px; }
.sl-buscar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .sl-buscar > span { font-weight: 800; font-size: .85rem; color: var(--tinta-2); margin-right: 2px; }
.sl-buscar .b { min-width: 40px; padding: 6px 8px; } .sl-buscar .b.act { background: var(--tinta); color: #fff; }
.sal-grid .mesa.apagada { opacity: .28; }
.sal-grid .mesa.sirve { outline: 3px solid #22c55e; outline-offset: -1px; }
.sal-grid .mesa.justa { box-shadow: 0 0 0 6px rgba(34,197,94,.25); }
.mesa-cap { top: 8px; bottom: auto; }
.mesa.mia .mesa-cap { top: 30px; }
.mini-kpis .kpi-mesas { background: #dcfce7; border-radius: 10px; padding: 4px 10px; box-shadow: var(--sombra); display: flex; gap: 6px; align-items: baseline; text-decoration: none; color: #14532d; }
.mini-kpis .kpi-mesas b { color: #15803d; } .mini-kpis .kpi-mesas small { color: #166534; }
/* Mesas unidas */
.l-UNIDA { background: #8b5cf6; }
.m-UNIDA { border-color: #c4b5fd; background: #f5f3ff; color: #5b21b6; }
.mesa-junta { font-size: .72rem; font-weight: 800; color: #5b21b6; background: #ede9fe; border-radius: 6px; padding: 1px 6px; align-self: flex-start; }
.sal-unir h3 { margin: 0 0 8px; }
.sal-unir .unida { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--borde); margin: 0; }
.sal-unir .f-unir { margin-top: 8px; } .f-unir select { width: 100%; }
.mesa-junta { order: 5; margin-top: 2px; }
/* Barra del carrito: que quede claro que falta confirmar */
.carrito-barra .cb-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.carrito-barra .cb-txt small { font-size: .72rem; font-weight: 600; opacity: .75; }
.carrito-barra .cb-txt, .carrito-barra b { white-space: nowrap; }
.toast { white-space: nowrap; }
/* ---- Paso 16: avisos que llaman la atención + bloques del Salón con su color ---- */
@keyframes jkParpadeo { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes jkLatido { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); } 50% { box-shadow: 0 0 0 9px rgba(239,68,68,0); } }
.parpadea { animation: jkParpadeo 1s ease-in-out infinite; }
.sal-grid .mesa.urge { border-color: #ef4444; background: #fff1f2; animation: jkLatido 1.2s ease-out infinite; }
.mesa-alerta.no.parpadea { background: #ef4444; color: #fff; }
.aviso-llama { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px;
  background: #ef4444; color: #fff; font-weight: 800; font-size: 1.05rem; }
.aviso-llama small { font-weight: 600; opacity: .85; font-size: .8rem; }
.aviso-llama.cuenta { background: #f97316; }
.aviso-llama .b { background: #fff; color: #15803d; animation: none; }
.aviso-salon.urge { background: #ef4444; color: #fff; animation: jkParpadeo 1s ease-in-out infinite; }
/* Bloques del detalle de la mesa */
.sal-det .sal-res { background: #eff6ff; border: 1px solid #bfdbfe; border-left: 6px solid #3b82f6; }
.sal-det .ronda { border-left: 6px solid #d1d5db; }
.sal-det .ronda.r-RECIBIDO, .sal-det .ronda.r-PAGO_CONFIRMADO { border-left-color: #f59e0b; background: #fffbeb; }
.sal-det .ronda.r-EN_COCINA { border-left-color: #f97316; background: #fff7ed; }
.sal-det .ronda.r-LISTO { border-left-color: #22c55e; background: #f0fdf4; }
.sal-det .ronda.r-ENTREGADO { border-left-color: #9ca3af; background: #fafafa; }
.sal-det .ronda.r-CANCELADO { border-left-color: #ef4444; background: #fef2f2; opacity: .7; }
.sal-det .cierre { background: #f0fdf4; border: 2px solid #86efac; }
.sal-det .cierre h3 { color: #15803d; }
.sal-det .sal-unir { background: #f5f3ff; border: 1px solid #ddd6fe; border-left: 6px solid #8b5cf6; }
.b.b-pidio { background: #fff7ed; color: #c2410c; border: 2px solid #fb923c; font-weight: 800; }
.b.b-pidio:hover { background: #ffedd5; }
.f-quitar { display: inline; margin: 0 0 0 6px; }
.b-mini { font: inherit; font-size: .72rem; font-weight: 800; color: #b91c1c; background: #fff; border: 1.5px solid #fecaca; border-radius: 7px; padding: 1px 7px; cursor: pointer; vertical-align: middle; }
.b-mini:hover { background: #fee2e2; }
.ronda-obs { font-size: .8rem; color: #92400e; background: #fef3c7; border-radius: 8px; padding: 4px 8px; margin: 6px 0 0; }
/* Cliente: aviso con sonido y llamar al mozo */
.chip-sonido { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30;
  font: inherit; font-size: .82rem; font-weight: 800; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer;
  background: #1d1a17; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); white-space: nowrap; }
.chip-sonido.on { background: #dcfce7; color: #166534; box-shadow: none; }
.seg .seg-pie { margin-bottom: 70px; }
.llamado-ok { text-align: center; font-weight: 800; color: #166534; background: #dcfce7; border-radius: 14px; padding: 12px; }
.mesa.mia .mesa-cap { top: 8px; right: 54px; }
/* Salón: aviso del mozo (con sonido) */
.aviso-mozo { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 40; max-width: calc(100% - 24px);
  background: #ef4444; color: #fff; font-weight: 800; padding: 12px 16px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  animation: jkParpadeo 1s ease-in-out 3; cursor: pointer; }
.salon .chip-sonido { bottom: 12px; }
/* Barra: usuario y rol + botón de sonido chiquito */
.barra-yo { font-size: .8rem; color: #d6cec5; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.barra-yo b { color: #f6a14b; font-weight: 800; margin-left: 2px; }
#barraSonido:empty { display: none; }
.sonido-mini { font: inherit; font-size: .95rem; line-height: 1; border: 0; border-radius: 999px; padding: 5px 8px; cursor: pointer;
  background: #ef4444; color: #fff; animation: jkParpadeo 1.4s ease-in-out infinite; }
.sonido-mini.on { background: rgba(255,255,255,.12); animation: none; }
.aviso-mesa-vieja { margin: 10px 16px 0; padding: 10px 14px; border-radius: 12px; background: #fef3c7; color: #92400e; font-weight: 700; font-size: .9rem; }
.aviso-mesa-vieja[hidden] { display: none; }
/* Salón: pasar la cuenta al cliente (QR en la pantalla del mozo) */
.pasar-fondo { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; }
.pasar { background: #fff; border-radius: 18px; padding: 18px; width: min(380px, 100%); display: grid; gap: 10px; text-align: center; }
.pasar h3 { margin: 0; font-size: 1.05rem; }
.pasar-qr { width: min(260px, 70vw); margin: 0 auto; background: #fff; }
.pasar-qr svg { width: 100%; height: auto; display: block; }
.pasar-cod { font-size: .95rem; } .pasar-cod b { font-size: 1.2rem; letter-spacing: .08em; }
.pasar-tel { display: grid; gap: 4px; text-align: left; font-weight: 700; font-size: .85rem; color: var(--tinta-2); }
.pasar-tel input { border: 1.5px solid var(--borde); border-radius: 10px; padding: 10px; font: inherit; font-size: 1rem; }
.pasar .sal-acc { justify-content: center; }
.b.b-wa { background: #25d366; color: #fff; }
/* Listo para llevar: bien visible */
.aviso-llevar { margin: 10px 16px 0; padding: 12px 14px; border-radius: 14px; background: #16a34a; color: #fff; font-weight: 800; font-size: 1.05rem; }
.aviso-llevar a { color: #fff; text-decoration: underline; }
.mesa-alerta.ok.parpadea { background: #16a34a; color: #fff; }
.aviso-llama.llevar { background: #16a34a; }
.sal-grid .mesa:has(.mesa-alerta.ok) { border-color: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.25); }
/* Botón volver bien visible */
.b.b-volver { background: #1d1a17; color: #fff; font-weight: 800; border-radius: 10px; padding: 9px 14px; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.b.b-volver:hover { background: #3a3633; }

/* ---------- Paso 19: pie TMS, aviso de vencimiento, local cerrado ---------- */
.menu-cli .jk-pie-tms { padding-bottom: 86px !important; }
.franja-venc { background: #fff7ed; color: #9a3412; border-bottom: 1px solid #fed7aa; font-size: 12.5px; line-height: 1.35;
  padding: 5px 12px; text-align: center; }
.franja-venc a { color: #9a3412; font-weight: 700; margin-left: 4px; }
.cerrado-pag { max-width: 420px; margin: 0 auto; }
.cerrado-pag h1 { margin: 6px 0 8px; font-size: 1.5rem; }
.cerrado-pag .btn-pri { display: inline-block; text-decoration: none; padding: 10px 18px; margin-top: 8px; }

/* Ajustes: navegación, productos (ingredientes/etiquetas), cocineros */
.aj-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.aj-nav a { background: #fff; border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: .85rem; color: var(--tinta); text-decoration: none; box-shadow: var(--sombra); }
.aj-alerta { background: #ea580c; color: #fff; border-radius: 999px; padding: 1px 7px; font-size: .72rem; margin-left: 4px; }
.aj-aviso { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.aj-cat { margin: 16px 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tinta-3); }
.aj-prod { display: grid; grid-template-columns: 200px 1fr; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--borde); }
.aj-prod.falta textarea { border-color: #fb923c; background: #fff7ed; }
.aj-prod-nom small { display: block; }
.aj-prod textarea { width: 100%; box-sizing: border-box; border: 1.5px solid var(--borde); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: .92rem; resize: vertical; }
.aj-prod .aj-etqs { grid-column: 2; }
.aj-etqs { display: flex; flex-wrap: wrap; gap: 5px; }
.aj-etq { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--c); color: var(--c); border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 700; cursor: pointer; user-select: none; background: #fff; }
.aj-etq input { display: none; }
.aj-etq.on { background: var(--c); color: #fff; }
.aj-x { border: 0; background: rgba(255,255,255,.3); color: inherit; border-radius: 999px; width: 18px; height: 18px; font-size: .7rem; cursor: pointer; padding: 0; margin-left: 2px; }
.aj-guardar { position: sticky; bottom: 0; background: #fff; padding: 10px 0 4px; border-top: 1px solid var(--borde); margin-top: 6px; }
.aj-coc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.aj-coc-nom { border: 1.5px solid var(--borde); border-radius: 10px; padding: 7px 9px; font: inherit; width: 130px; }
.tabla tr.inactivo { opacity: .55; }
@media (max-width: 640px) { .aj-prod { grid-template-columns: 1fr; } .aj-prod .aj-etqs { grid-column: 1; } }
/* Menú: etiquetas del producto */
.etqs { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.etqs i { font-style: normal; font-size: .68rem; font-weight: 700; line-height: 1; padding: 3px 7px; border-radius: 999px;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c) 35%, #fff); }
.prod-info .etqs { margin: 6px 0 8px; }
.prod-info .etqs i { font-size: .78rem; padding: 4px 9px; }
.prod-tx span.etqs { display: flex; -webkit-line-clamp: unset; overflow: visible; margin: 0; }

/* Cocina: cocineros de turno y cocinero por ítem (paso 19) */
.coc-turno { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px 0; }
.coc-turno-tit { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #a59c92; margin-right: 2px; }
.coc-chip { border: 2px solid #4a433d; background: transparent; color: #a59c92; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; }
.coc-chip.on { background: #16a34a; border-color: #16a34a; color: #fff; }
.coc-chip.on::before { content: '● '; }
.ti-coc { margin: 6px 0 0 52px; border: 1.5px solid #4a433d; background: #2a2725; color: #f4efe9; border-radius: 999px; padding: 6px 14px; font: inherit;
  font-weight: 700; font-size: .95rem; cursor: pointer; min-height: 36px; }
.ti-coc.sin { border-style: dashed; color: #a59c92; }
.ti-coc:active { transform: scale(.97); }
.coc-menu { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.35); }
.cm-caja { position: fixed; background: #fff; color: #1d1a17; border-radius: 16px; padding: 12px; width: 260px; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.cm-tit { font-weight: 800; font-size: .85rem; color: #6b635b; margin-bottom: 8px; }
.cm-lista { display: grid; gap: 6px; }
.cm-op { border: 0; background: #f2ede7; border-radius: 12px; padding: 14px; font: inherit; font-weight: 800; font-size: 1.15rem; text-align: left; cursor: pointer; }
.cm-op.act { background: #16a34a; color: #fff; }
.cm-otros summary { font-size: .85rem; font-weight: 700; color: #6b635b; cursor: pointer; padding: 6px 2px; }
.cm-otros .cm-op { width: 100%; margin-top: 6px; font-size: 1rem; padding: 10px 14px; }
.cm-todo { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; font-size: .95rem; cursor: pointer; }
.cm-todo input { width: 20px; height: 20px; accent-color: #16a34a; }
/* Seguimiento: mapa con la moto (paso 19) */
.seg-mapa { padding: 12px; }
.sm-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sm-hace { font-size: .85rem; font-weight: 700; color: #0891b2; }
.sm-hace.vieja { color: #b45309; }
.sm-parada { margin: 6px 0 0; background: #ecfeff; color: #155e75; border-radius: 10px; padding: 6px 10px; font-weight: 700; font-size: .9rem; }
.sm-mapa { height: 260px; border-radius: 12px; margin-top: 10px; overflow: hidden; background: #e5e7eb; z-index: 0; }
.sm-espera { margin-top: 10px; padding: 18px; text-align: center; background: #f1f5f9; border-radius: 12px; color: #475569; font-weight: 600; }
.sm-ico { display: flex; align-items: center; justify-content: center; font-size: 22px; background: #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.sm-ico.moto { border: 3px solid #0891b2; }
.sm-ico.casa { border: 3px solid #e4572e; }
.rep-gps { background: #ecfeff; border: 1px solid #a5f3fc; color: #155e75; border-radius: 14px; padding: 10px 12px; margin: 0 0 10px; }
.rep-gps.ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.rep-gps small { display: block; margin-top: 2px; }
.rep-gps details { margin-top: 6px; font-size: .85rem; }
.rep-gps summary { font-weight: 700; cursor: pointer; }
.rep-gps code { background: #fff; padding: 1px 5px; border-radius: 5px; }
.coc-rep { color: #a59c92; font-weight: 700; text-decoration: none; font-size: .9rem; }
/* Suscripciones (superadmin) */
.sus { display: inline-block; font-size: .75rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.sus-ok { background: #dcfce7; color: #166534; } .sus-pronto { background: #ffedd5; color: #9a3412; }
.sus-gracia { background: #fee2e2; color: #b91c1c; } .sus-bloq { background: #1f2937; color: #fff; }
.prod-tx span.badge { display: inline-block; -webkit-line-clamp: unset; overflow: visible; color: var(--acc-txt, #fff); font-size: .7rem; }
/* Rondas servidas: una sola línea, se abren con un toque (Salón y cuenta del cliente) */
details.ronda.plegada > summary.ronda-res { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; }
details.ronda.plegada > summary.ronda-res::-webkit-details-marker { display: none; }
details.ronda.plegada[open] > summary.ronda-res { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--borde); }
details.ronda.plegada .ronda-flecha { font-style: normal; display: inline-block; margin-left: 4px; color: var(--tinta-3); transition: transform .15s; }
details.ronda.plegada[open] .ronda-flecha { transform: rotate(180deg); }
details.ronda.plegada:not([open]) { padding-top: 10px; padding-bottom: 10px; }
details.ronda.plegada > .ronda-cab, details.ronda.plegada > .ronda-pie { display: none; }   /* ya están en la línea de arriba */
details.ronda.plegada > summary.ronda-res > span:last-child { white-space: nowrap; flex: none; } details.ronda.plegada > summary.ronda-res > span:first-child { min-width: 0; }
.barra a.logo { text-decoration: none; }
/* Suscripciones: planes de la página de inicio (paso 20) */
.sus-plan { border-top: 1px solid var(--borde); padding: 14px 0; }
.sus-plan-tit { flex-basis: 100%; color: var(--tinta); }
.sus-plan textarea { width: 100%; min-height: 90px; }
