/* =====================================================================
   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; }

/* ===== Paso 23: Karuhe ===== */
/* Reparto: botones Ir / Waze y app de ubicación */
.rep-btns.tres { grid-template-columns: 1fr 1fr 1fr; }
.rep-btns.tres .b { padding: 14px 6px; }
.b.b-waze { background: #33ccff; color: #0b2540; }
.rep-gps.no { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.gps-falta { background: #fef2f2; border: 2px solid #fca5a5; color: #991b1b; border-radius: 18px; padding: 14px; margin: 6px 0 4px; display: grid; gap: 8px; text-align: center; }
.gps-falta b { font-size: 1.05rem; }
.gps-falta .b { justify-content: center; padding: 12px; }
.gps-guia { background: #fff; border-radius: 20px; padding: 18px 16px; margin: 8px 0; box-shadow: 0 6px 20px rgba(29,53,87,.10); }
.gps-guia h2 { margin: 0; font-size: 1.35rem; }
.gps-guia-sub { margin: 4px 0 14px; color: #5c554e; }
.gps-pasos { list-style: none; counter-reset: gp; padding: 0; margin: 0; display: grid; gap: 12px; }
.gps-pasos > li { counter-increment: gp; position: relative; padding: 12px 12px 12px 50px; background: #f8fafc; border-radius: 14px; display: grid; gap: 8px; }
.gps-pasos > li::before { content: counter(gp); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; border-radius: 9px; background: #e4572e; color: #fff;
  font-weight: 800; display: grid; place-items: center; }
.gps-pasos small { color: #5c554e; }
.gps-tiendas { display: flex; gap: 8px; flex-wrap: wrap; }
.gps-tiendas .b { flex: 1; justify-content: center; padding: 12px; }
.gps-dato { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; }
.gps-dato span { grid-column: 1 / -1; font-size: .78rem; font-weight: 700; color: #5c554e; }
.gps-dato code { background: #fff; border: 1.5px dashed #cbd5e1; border-radius: 10px; padding: 9px 10px; font-size: 1rem; font-weight: 800; word-break: break-all; color: #1d3557; }
.gps-dato .b { padding: 10px 12px; }
.gps-espera { margin-top: 14px; padding: 14px; text-align: center; background: #fff7ed; color: #9a3412; border-radius: 14px; font-weight: 700; }
.gps-espera.ok { background: #f0fdf4; color: #166534; }
.gps-punto { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #f97316; margin-right: 6px; animation: jkParpadeo 1s ease-in-out infinite; }
a.btn-salgo.gps-listo { display: block; text-align: center; text-decoration: none; background: #16a34a; margin-top: 10px; }
/* Mapa de repartidores (caja) */
.flota { display: grid; grid-template-columns: 320px 1fr; gap: 12px; padding: 12px 16px 16px; height: calc(100vh - 70px); min-height: 480px; }
.flota-lista { background: #fff; border-radius: 16px; padding: 12px; overflow: auto; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.flota-cab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.flota-cab small { color: #8f877e; font-size: .75rem; }
.flota-ayuda { color: #8f877e; font-size: .8rem; margin: 10px 0 0; }
.flota-mapa { border-radius: 16px; overflow: hidden; background: #e5e7eb; z-index: 0; }
.fl-del { display: flex; gap: 10px; width: 100%; text-align: left; border: 1.5px solid #ece5dc; background: #fff; border-radius: 14px; padding: 10px; margin-bottom: 8px;
  font: inherit; cursor: pointer; }
.fl-del:hover { border-color: var(--c); }
.fl-del > i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-top: 5px; }
.fl-del.sin_senal { border-color: #fca5a5; background: #fef2f2; }
.fl-del.libre { opacity: .7; }
.fl-del b { display: block; }
.fl-del ol { margin: 6px 0 0; padding-left: 18px; font-size: .82rem; color: #5c554e; }
.fl-del em { font-style: normal; font-weight: 700; color: #9a3412; }
.fl-est { display: inline-block; font-size: .75rem; font-weight: 700; color: #5c554e; background: #f1f5f9; border-radius: 999px; padding: 2px 8px; margin-top: 3px; }
.fl-est.ok { background: #dcfce7; color: #166534; } .fl-est.disp { background: #e0f2fe; color: #075985; }
.fl-est.no { background: #ef4444; color: #fff; }
.fl-ico span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid var(--c);
  box-shadow: 0 2px 8px rgba(0,0,0,.35); font-size: 20px; }
.fl-ico.parada span { width: 30px; height: 30px; margin: 5px; font-size: 14px; font-weight: 800; color: #fff; background: var(--c); border-color: #fff; }
.fl-ico.gris span { filter: grayscale(1); opacity: .7; }
.fl-tt { font-weight: 700; font-size: .78rem; }
@media (max-width: 760px) {
  .flota { grid-template-columns: 1fr; height: auto; }
  .flota-mapa { height: 60vh; order: -1; }
}
/* Ajustes: Mi plan */
.cupos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.cupo { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 8px 12px; min-width: 96px; }
.cupo small { display: block; font-size: .75rem; color: #166534; font-weight: 700; }
.cupo b { font-size: 1.2rem; color: #14532d; }
.cupo.lleno { background: #fff7ed; border-color: #fed7aa; } .cupo.lleno small, .cupo.lleno b { color: #9a3412; }
.cupo.extra { background: #eff6ff; border-color: #bfdbfe; } .cupo.extra small, .cupo.extra b { color: #1e40af; }
/* Suscripciones: cupos y funciones del plan */
.adm-form .sus-cupos { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; background: #f8fafc; border-radius: 10px; padding: 8px 10px; }
.adm-form .sus-cupos > b { min-width: 70px; }
.adm-form .sus-cupos label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.adm-form .sus-cupos label.chk-fila input { width: 18px; height: 18px; }

/* =====================================================================
   Paso 25: turno de caja (apertura, gastos, cierre) y repartidores de afuera por QR
   ===================================================================== */
.tu { max-width: 900px; }
.tu-abrir { text-align: center; padding: 28px 18px; }
.tu-candado { font-size: 44px; }
.tu-abrir-f { display: grid; gap: 12px; max-width: 320px; margin: 14px auto 6px; }
.tu-abrir-f label, .tu-arqueo label, .tu-obs { display: grid; gap: 4px; font-weight: 700; font-size: .85rem; color: var(--tinta-2); text-align: left; }
.tu-monto { border: 2px solid var(--borde); border-radius: 12px; padding: 12px; font-size: 1.5rem; font-weight: 800; text-align: right; width: 100%; background: #fff; }
.tu-monto:focus { outline: none; border-color: var(--acc); }
.tu-gran { padding: 14px 18px; font-size: 1.05rem; width: 100%; }
.tu-cab-tit { display: flex; gap: 12px; align-items: center; }
.tu-cab-tit h2 { margin: 0; } .tu-cab-tit small { color: var(--tinta-3); }
.tu-punto { width: 14px; height: 14px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px var(--ok-suave); flex: none; }
.tu-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 12px; }
.tu-kpis span { background: var(--fondo); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.tu-kpis small { color: var(--tinta-3); font-weight: 600; font-size: .78rem; } .tu-kpis b { font-size: 1.05rem; }
.tu-kpis .ing b { color: var(--ok); } .tu-kpis .egr b { color: var(--no); }
.tu-kpis .esp { background: #1d3557; color: #fff; } .tu-kpis .esp small { color: #cfd8e6; } .tu-kpis .esp b { font-size: 1.3rem; }
.tu-botones { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.tu-bot { border: 0; border-radius: 14px; padding: 12px; text-align: left; font-weight: 800; font-size: .98rem; display: grid; gap: 2px; min-height: 64px; }
.tu-bot small { font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.tu-bot.egr { background: var(--no-suave); color: #991b1b; } .tu-bot.ing { background: var(--ok-suave); color: #166534; }
.tu-bot.otro { background: var(--fondo); color: var(--tinta); border: 1.5px dashed var(--borde); }
.tu-bot.sel { outline: 3px solid var(--acc); }
.tu-bot:active { transform: scale(.97); }
.tu-movs { display: grid; gap: 4px; }
.tu-mov { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 8px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--borde); }
.tu-mov .h { color: var(--tinta-3); font-size: .85rem; } .tu-mov .c small { display: block; color: var(--tinta-3); font-size: .78rem; }
.tu-mov .m { font-weight: 800; white-space: nowrap; } .tu-mov .m.ing { color: var(--ok); } .tu-mov .m.egr { color: var(--no); }
.tu-mov.anulado { opacity: .45; } .tu-mov.anulado .m { text-decoration: line-through; }
.tu-rep-in { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.tu-qr { display: grid; gap: 8px; justify-items: center; }
.tu-qr-img { width: 180px; height: 180px; background: #fff; padding: 8px; border-radius: 12px; border: 1.5px solid var(--borde); }
.tu-qr-img svg { width: 100%; height: 100%; }
.tu-rep-txt { flex: 1 1 260px; }
.tu-inv { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--borde); flex-wrap: wrap; }
.tu-inv > span { flex: 1 1 200px; } .tu-inv small { color: var(--tinta-3); display: block; }
.tu-inv form { display: contents; }
.tu-arqueo { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 10px; align-items: end; margin: 10px 0; }
.tu-arqueo > span { display: grid; gap: 2px; } .tu-arqueo small { color: var(--tinta-3); font-weight: 600; font-size: .8rem; } .tu-arqueo b { font-size: 1.15rem; }
.tu-obs { margin-bottom: 12px; } .tu-obs input { border: 1.5px solid var(--borde); border-radius: 10px; padding: 9px 10px; font-weight: 400; }
#cDif.ok, .tu-h .ok { color: var(--ok); } #cDif.falta, .tu-h .falta { color: var(--no); } #cDif.sobra, .tu-h .sobra { color: var(--av); }
.tu-hist { display: grid; gap: 4px; }
.tu-h { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 8px; padding: 8px 6px; border-radius: 10px; text-decoration: none; color: var(--tinta); align-items: center; }
.tu-h:hover { background: var(--fondo); } .tu-h.nuevo { background: var(--ok-suave); }
.tu-h small { display: block; color: var(--tinta-3); font-size: .75rem; } .tu-h span:not(:first-child) { text-align: right; font-weight: 700; }
@media (max-width: 560px) { .tu-arqueo { grid-template-columns: 1fr 1fr; } .tu-arqueo label { grid-column: 1 / -1; order: -1; } .tu-h { grid-template-columns: 1.4fr 1fr 1fr; } .tu-h span:nth-child(2) { display: none; } }

/* Caja: chip del turno y aviso de repartidor habilitado */
.turno-chip { display: grid; gap: 1px; padding: 6px 12px; border-radius: 12px; text-decoration: none; border: 0; text-align: left; flex: none; }
.turno-chip small { font-size: .72rem; font-weight: 600; } .turno-chip b { font-size: .95rem; }
.turno-chip.abierta { background: #1d3557; color: #fff; } .turno-chip.abierta small { color: #cfd8e6; }
.turno-chip.cerrada { background: var(--no-suave); color: #991b1b; } .turno-chip.gasto { background: var(--av-suave); color: #92400e; }
.dchip em.inv { font-style: normal; font-size: .68rem; background: #fde68a; color: #92400e; border-radius: 6px; padding: 0 4px; }
.aviso-inv { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; background: #1d3557; color: #fff; padding: 14px 18px;
  border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); text-decoration: none; font-weight: 600; max-width: calc(100% - 32px); animation: avInv .35s ease-out; }
@keyframes avInv { from { transform: translate(-50%, 30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* Reparto: escanear el QR del ticket */
.btn-escanear { display: block; width: 100%; border: 0; border-radius: 18px; padding: 16px; margin: 10px 0; background: #1d3557; color: #fff; font-weight: 800; font-size: 1.1rem; line-height: 1.25; }
.btn-escanear span { font-weight: 500; font-size: .85rem; opacity: .85; }
.esc { background: #000; color: #fff; border-radius: 16px; padding: 10px; margin-bottom: 10px; text-align: center; display: grid; gap: 8px; }
.esc video { width: 100%; max-height: 60vh; border-radius: 10px; object-fit: cover; background: #111; }
.esc p { margin: 0; }
.rep-soltar { margin-top: 6px; display: flex; justify-content: flex-end; }
.rp-terminar { border: 0; background: transparent; }

/* r.php: habilitación del repartidor de afuera */
.rp { background: linear-gradient(160deg, #1d3557 0%, #274b78 60%, #e4572e 140%); min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.rp-box { background: #fff; border-radius: 22px; padding: 26px 20px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.rp-box h1 { margin: 6px 0 4px; font-size: 1.4rem; } .rp-box p { color: var(--tinta-2); }
.rp-ico { font-size: 46px; }
.rp-logo { width: 74px; height: 74px; border-radius: 20px; margin: 0 auto; display: grid; place-items: center; font-size: 36px; background: var(--fondo); overflow: hidden; }
.rp-logo img { width: 100%; height: 100%; object-fit: cover; }
.rp-sub { margin: 0 0 14px; font-weight: 700; color: var(--acc-2) !important; }
.rp-form { display: grid; gap: 12px; text-align: left; margin: 10px 0; }
.rp-form label { display: grid; gap: 4px; font-weight: 700; font-size: .85rem; color: var(--tinta-2); }
.rp-form input { border: 2px solid var(--borde); border-radius: 12px; padding: 13px 12px; font-size: 1.05rem; }
.rp-form input:focus { outline: none; border-color: var(--acc); }
.rp-btn { padding: 15px; font-size: 1.05rem; width: 100%; }

/* ---------- Paso 26 ---------- */
/* Reparto: botones de cada parada solo con ícono, chicos y redondos */
.rep-iconos { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.rep-iconos .ri { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.rep-iconos .ri:active { transform: scale(.94); }
.rep-iconos .ri svg { width: 24px; height: 24px; }
.ri-wa { background: #25d366; }
.ri-maps { background: #1a73e8; }
.ri-waze { background: #33ccff; color: #0b2540 !important; }
.rep-card .rep-btns { margin-top: 10px; }
/* Menú del cliente en el celular: pie compacto, justo debajo de las categorías */
.menu-cli .menu { padding-bottom: 14px; }
.menu-cli .pie { padding: 6px 16px 0; gap: 4px; }
.menu-cli .jk-pie-tms { padding-top: 6px !important; padding-bottom: 96px !important; margin-top: 0 !important; }
/* Paso 26b: aviso chico de Traccar (ya no traba la salida) */
.gps-aviso { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px; padding: 10px 12px; margin: 8px 0; font-size: .9rem; }
.gps-aviso b { display: block; color: #9a3412; }
.gps-aviso small { display: block; color: var(--tinta-2); margin-top: 2px; }
.gps-aviso details { margin-top: 6px; }
.gps-aviso summary { cursor: pointer; font-weight: 700; color: #1a73e8; }
/* Paso 26c: escanear como opción secundaria para los deliverys propios */
.btn-escanear.chico { background: #fff; color: #1d3557; border: 1.5px dashed #9fb3cc; font-size: .95rem; padding: 10px 12px; border-radius: 14px; }
.btn-escanear.chico span { font-size: .8rem; opacity: .8; }
/* Paso 26c: "sin señal" discreto en la caja (sin parpadeo ni rojo) */
.aviso-senal { display: inline-block; margin: 8px 16px 0; padding: 4px 10px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: .8rem; font-weight: 600; text-decoration: none; }
.aviso-senal:hover { background: #e2e8f0; color: #334155; }
/* Paso 26e: "A cocina" a lo ancho aunque falte confirmar el pago */
.ped-btns .b-full { flex-basis: 100%; }
/* Paso 27: pedido por teléfono (caja): direcciones anteriores y ubicación pegada */
.cli-tel { background: #f1f5f9; border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.cli-nom { font-weight: 700; font-size: .9rem; margin: 6px 0; }
.dir-ant { display: block; width: 100%; text-align: left; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 9px 11px; margin: 6px 0; cursor: pointer; font: inherit; }
.dir-ant b { display: block; } .dir-ant span { display: block; font-size: .85rem; color: var(--tinta-2, #475569); }
.dir-ant small { display: block; font-size: .78rem; color: #64748b; margin-top: 2px; }
.dir-ant.act { border-color: var(--acc, #1d3557); box-shadow: 0 0 0 2px rgba(29,53,87,.15); }
.ubic-mapa { height: 220px; border-radius: 12px; margin: 8px 0 4px; overflow: hidden; border: 1px solid #e2e8f0; }
.ubic-acc { font-size: .82rem; color: #64748b; margin-bottom: 6px; } .ubic-acc a { color: #1a73e8; font-weight: 600; }
.ubic-msg { display: block; font-size: .82rem; margin: 4px 0; color: #64748b; } .ubic-msg.ok { color: #15803d; } .ubic-msg.err { color: #b91c1c; }
.jk-pin { font-size: 32px; line-height: 1; background: none; border: 0; }
/* Paso 28: el cliente marca o corrige su ubicación en el seguimiento */
.su-pide { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-size: .92rem; }
.su-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.su-btns .b { flex: 1 1 auto; justify-content: center; }
/* Paso 29: zonas por ubicación */
.zona-auto { display: block; font-size: .85rem; margin: -2px 0 8px; } .zona-auto.ok { color: #15803d; font-weight: 600; } .zona-auto.err { color: #b91c1c; font-weight: 600; }
.zm-mapa { height: 380px; border-radius: 14px; overflow: hidden; border: 1px solid #e2e8f0; margin: 8px 0; }
.zm-barra { position: sticky; top: 0; z-index: 500; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 8px 10px; font-size: .9rem; }
.zm-barra span { flex: 1 1 200px; font-weight: 600; color: #9a3412; }
.zm-color { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
:root { --zc0: #e4572e; --zc1: #1a73e8; --zc2: #16a34a; --zc3: #9333ea; --zc4: #f59e0b; --zc5: #0891b2; --zc6: #db2777; --zc7: #65a30d; }
/* Paso 30: pedido rápido: extras opcionales como botones */
.extras-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-extra { border: 1.5px dashed #cbd5e1; background: #fff; color: #334155; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.chip-extra.act { border-style: solid; border-color: var(--acc, #1d3557); color: var(--acc, #1d3557); background: #f1f5f9; }
.extras > div[id^="ex"] { margin-top: 10px; }
#dirsGuardadas .opc { display: block; margin-bottom: 2px; }
.seg-mapa .sm-tit { margin-top: 4px; }
.seg-mapa .sm-mapa { margin-top: 8px; }
/* Paso 31: stock (agotados) */
.turno-chip.stock { background: #fff; border: 1px solid #e2e8f0; cursor: pointer; } .turno-chip.stock.hay-agot { border-color: #fecaca; background: #fef2f2; } .turno-chip.stock.hay-agot b { color: #b91c1c; }
.dlg-stock .dlg-form { max-width: 520px; }
.dlg-stock input[type=search] { width: 100%; padding: 11px 12px; border: 2px solid var(--borde, #e2e8f0); border-radius: 12px; font: inherit; margin-bottom: 8px; }
.st-lista { max-height: 55vh; overflow: auto; border: 1px solid #eef2f7; border-radius: 12px; }
.st-cat { position: sticky; top: 0; background: #f8fafc; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #64748b; padding: 6px 12px; }
.st-prod { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid #f1f5f9; cursor: pointer; }
.st-prod span { flex: 1; font-weight: 600; } .st-prod em { font-style: normal; font-size: .8rem; font-weight: 700; color: #15803d; width: 62px; text-align: right; }
.st-prod.agot span { color: #94a3b8; text-decoration: line-through; } .st-prod.agot em { color: #b91c1c; }
.st-prod input { width: 44px; height: 24px; appearance: none; background: #cbd5e1; border-radius: 999px; position: relative; cursor: pointer; transition: background .15s; flex: none; }
.st-prod input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.st-prod input:checked { background: #16a34a; } .st-prod input:checked::after { left: 23px; }
.st-afect { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: .9rem; }
.st-ped { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0; border-top: 1px dashed #fed7aa; margin-top: 6px; }
.st-ped > span { flex: 1 1 100%; font-weight: 600; } .st-res { flex: 1 1 100%; color: #15803d; }
.seg-stock { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
.seg-nuevo { display: inline-block; margin-top: 12px; padding: 12px 18px; border-radius: 14px; text-decoration: none; }

/* Paso 33: reparto más limpio (la próxima parada abierta, el resto en una línea) */
.rep-estado { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 8px 12px; margin: 8px 0; font-size: .88rem; }
.rep-estado summary { cursor: pointer; font-weight: 700; color: #9a3412; list-style: none; }
.rep-estado summary::-webkit-details-marker { display: none; }
.rep-estado summary::after { content: ' ›'; color: #c2410c; }
.rep-estado[open] summary::after { content: ' ⌄'; }
.rep-estado > small { display: block; color: var(--tinta-2); margin: 6px 0; }
.rc-cab { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rc-cab b { font-size: 1.6rem; font-weight: 800; }
.rc-par { background: #0891b2; color: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: .9rem; }
.rep-card.sig .rc-par { background: #94a3b8; }
.rc-cli { font-weight: 800; font-size: 1.1rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-monto { font-weight: 800; white-space: nowrap; color: #92400e; }
.rc-monto.ok { color: #166534; font-size: .9rem; }
.rep-card .rep-dir { margin: 8px 0; }
.rep-dir .rc-zona { font-size: .8rem; color: var(--tinta-3); }
.rep-card.sig { padding: 12px 16px; }
.rep-card.sig summary { list-style: none; cursor: pointer; }
.rep-card.sig summary::-webkit-details-marker { display: none; }
.rep-card.sig .rc-cab b { font-size: 1.25rem; }
.rc-dir1 { color: var(--tinta-2); font-size: .92rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-card.sig[open] .rc-dir1 { display: none; }
.rep-card.sig summary::after { content: 'Ver ⌄'; display: block; text-align: right; font-size: .8rem; color: var(--tinta-3); margin-top: -18px; }
.rep-card.sig[open] summary::after { content: ''; }
.rep-iconos { align-items: center; }
.rc-orden { margin-right: auto; display: flex; gap: 6px; }
.rc-orden .b { padding: 8px 12px; font-size: 1.05rem; }
.ri-tel { background: #475569; }
.rep-mini-pie { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.b.b-link-rojo { background: none; border: 0; color: #b91c1c; font-size: .82rem; font-weight: 700; padding: 4px 0; text-decoration: underline; box-shadow: none; }
.rep-hoy { text-align: center; color: var(--tinta-3); font-size: .85rem; margin: 18px 0 4px; }
.rep-hoy b { color: var(--tinta-2); }
.btn-escanear.chico { margin-top: 16px; }
.su-abrir { display: block; margin: 8px auto 0; font-size: .85rem; color: var(--tinta-3); }
.rep-card:not(.sig) .rc-monto { display: none; }   /* abierta: el monto ya está en el recuadro de cobro */

/* ---------- Paso 36: mapa quieto en el celular (un dedo baja la página) ---------- */
.leaflet-container .leaflet-marker-draggable { touch-action: none; }
.jk-mapa-aviso { position: absolute; inset: 0; z-index: 650; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); color: #fff; font-weight: 600; font-size: 15px; text-align: center; padding: 16px;
  pointer-events: none; opacity: 0; transition: opacity .25s; }
.jk-mapa-aviso.ver { opacity: 1; }
.leaflet-control.jk-mapa-mover { border: 0; border-radius: 18px; background: #fff; color: #222; font: 600 13px/1 system-ui, sans-serif;
  padding: 8px 12px; box-shadow: 0 1px 5px rgba(0,0,0,.35); cursor: pointer; }
.leaflet-control.jk-mapa-mover.on { background: #16a34a; color: #fff; }

/* ---------- Paso 36: Reparto, mirar en Google Maps antes de salir ---------- */
.btn-ruta.sec { background: #fff; color: #1d4ed8; border: 2px solid #bfdbfe; box-shadow: none; padding: 10px; font-size: .98rem; margin: -2px 0 10px; }
.rm-pin { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: #eff6ff; border: 1px solid #bfdbfe; font-size: 15px; vertical-align: middle; }
.rm-km { color: #64748b; font-weight: 600; white-space: nowrap; }
.b.b-link-cian { background: none; border: 0; color: #0e7490; font-size: .85rem; font-weight: 700; padding: 4px 0; text-decoration: underline; box-shadow: none; }
.btn-salgo.btn-llevo { background: #16a34a; font-size: 1.15rem; padding: 16px; }

/* Paso 39: local solo con retiro: la caja con 3 columnas (sin "En camino") */
.tablero.t3 { grid-template-columns: repeat(3, minmax(250px, 1fr)); }
@media (max-width: 1100px) { .tablero.t3 { grid-template-columns: repeat(3, 280px); } }

/* Paso 43: abierto / cerrado del local en la caja */
.turno-chip.local { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.turno-chip.local.abierto { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.turno-chip.local.cerrado { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.turno-chip.local small { font-size: .78rem; font-weight: 700; }
.loc-f { margin: 0; display: inline; }
.loc-b { font: inherit; font-size: .8rem; font-weight: 700; border: 0; border-radius: 9px; padding: 5px 10px; cursor: pointer; background: #fff; color: inherit; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.turno-chip.local.cerrado .loc-f:first-of-type .loc-b { background: #16a34a; color: #fff; }

/* Paso 45: recargo por lluvia */
.turno-chip.lluvia { display: flex; align-items: center; gap: 8px; background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.turno-chip.lluvia small { font-size: .78rem; font-weight: 700; }
.turno-chip.lluvia.on { background: #e0f2fe; color: #075985; border-color: #7dd3fc; }
.turno-chip.lluvia:not(.on) .loc-b { background: #0284c7; color: #fff; }
.ficha-datos .lluvia { color: #075985; font-weight: 700; }

/* Paso 55: Ajustes → Logo y foto de portada */
.aj-imgs { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.aj-img { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.aj-img > b { flex-basis: 100%; }
.aj-img-ver { flex-basis: 100%; display: flex; align-items: center; justify-content: center; background: #f3f1ed; border: 1px dashed #d6d1c8; border-radius: 14px; overflow: hidden; color: #9ca3af; font-size: .85rem; }
.aj-img-logo { width: 140px; height: 140px; flex-basis: 140px; border-radius: 50%; }
.aj-img-portada { height: 140px; }
.aj-img-ver img { width: 100%; height: 100%; object-fit: cover; }
.aj-img-logo img { object-fit: contain; background: #fff; }
.aj-img-elegir { cursor: pointer; }
@media (max-width: 640px) { .aj-imgs { grid-template-columns: 1fr; } }

/* Paso 56: Reparto, aviso para instalar la app Karuhe Reparto (Android) */
.rep-inst { position: fixed; inset: 0; z-index: 9000; background: rgba(15, 23, 42, .72); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.rep-inst[hidden] { display: none; }
.rep-inst-box { background: #fff; border-radius: 22px; padding: 22px 18px 14px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.rep-inst-box img { border-radius: 16px; }
.rep-inst-box h2 { margin: 10px 0 6px; font-size: 1.3rem; color: #1d3557; }
.rep-inst-box p { margin: 0 0 14px; color: #475569; font-size: .95rem; line-height: 1.45; }
.rep-inst-box .b { display: block; width: 100%; box-sizing: border-box; margin: 6px 0; padding: 14px; font-size: 1.05rem; text-align: center; }
.rep-inst-no { display: block; margin: 8px auto 0; font-size: .85rem; color: #64748b; font-weight: 600; padding: 6px; }
body.rep-inst-on { overflow: hidden; }
.rep-app-ok { font-size: .75rem; font-weight: 700; color: #15803d; margin: 6px 2px; opacity: .85; }
.rep-app-ok.sin { color: #64748b; }
.rep-app-ok a { color: inherit; text-decoration: underline; font-weight: 600; }
.rep-inst-aviso { color: #b45309 !important; font-weight: 700; margin-bottom: 6px !important; }
/* Paso 58: caja, aviso del pedido recién cargado y etiqueta "Caja" */
.caja-nuevo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 12px; padding: 8px 12px; border-radius: 12px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: .9rem; }
.caja-nuevo > span { flex: 1 1 260px; }
.tag-caja { background: #eef2ff; color: #3730a3; }
.ped-origen { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .2px; padding: 1px 7px; border-radius: 999px; margin: 2px 0 1px; }
.ped-origen.web { background: #e0f2fe; color: #075985; }
.ped-origen.caja { background: #ede9fe; color: #5b21b6; }
/* Paso 58c / 59: origen al lado del número e historial del pedido */
.ped-num .ped-origen { vertical-align: middle; margin: 0 0 0 6px; font-size: .62rem; position: relative; top: -2px; }
.hist { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.hist li { padding: 5px 0; border-top: 1px solid #eee; } .hist li:first-child { border-top: 0; }
.hist li b { display: inline-block; min-width: 46px; } .hist li span { color: #6b7280; }
.hist-coc { margin: 8px 0 0; font-size: .85rem; color: #475569; }
.rep-inst-nota { display: block; margin-top: 8px; font-size: .78rem; color: #64748b; line-height: 1.4; }

/* Paso 63b: puntito que titila en la tarjeta del pedido (cambio del cliente). No mueve nada: va en la esquina. Texto al pasar el mouse o tocarlo. */
.ped { position: relative; }
.ped-alerta { position: absolute; top: -5px; right: -5px; width: 14px; height: 14px; border-radius: 50%; background: #dc2626; border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(220,38,38,.2); cursor: help; animation: jkTitila 1s infinite; z-index: 3; }
.ped-alerta::after { content: attr(data-txt); display: none; position: absolute; top: 16px; right: -4px; width: max-content; max-width: 240px; padding: 8px 10px; border-radius: 10px; background: #1f2937; color: #fff; font-size: .8rem; font-weight: 600; line-height: 1.3; box-shadow: 0 8px 20px rgba(0,0,0,.25); white-space: normal; }
.ped-alerta:hover::after, .ped-alerta:focus::after, .ped-alerta.ver::after { display: block; }
.ped-alerta:hover, .ped-alerta:focus, .ped-alerta.ver { animation: none; }
@keyframes jkTitila { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .2; transform: scale(.75); } }
/* Paso 63b: el aviso de la caja (ok/error) va flotando abajo: no corre los totales ni los puntos de los deliverys */
.flash.flash-mini { position: fixed; left: 18px; bottom: 22px; z-index: 61; max-width: min(440px, calc(100vw - 110px)); padding: 10px 14px; font-size: .9rem; box-shadow: 0 10px 28px rgba(0,0,0,.25); }

/* Paso 68: Ajustes → Zonas, Horarios y Datos del local */
.zn-lista { display: grid; gap: 10px; margin: 10px 0; }
.zn-fila { border: 1px solid var(--borde); border-radius: 14px; padding: 10px 12px; background: #fff; }
.zn-form { display: grid; grid-template-columns: minmax(150px, 2fr) repeat(4, minmax(70px, 1fr)) auto; gap: 8px; align-items: end; }
.zn-form label { display: grid; gap: 3px; font-size: .74rem; font-weight: 700; color: var(--tinta-3); }
.zn-form label span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.zn-form input { border: 1.5px solid var(--borde); border-radius: 10px; padding: 8px 9px; font: inherit; font-size: .92rem; font-weight: 600; background: #fff; color: var(--tinta); width: 100%; min-width: 0; }
.zn-form input:focus { outline: none; border-color: var(--acc); }
.zn-form .zm-color { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0; }
.zn-guardar { height: 38px; }
.zn-acc { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; font-size: .8rem; }
.zn-acc form { display: inline; margin: 0; }
.zn-der { margin-left: auto; display: inline-flex; gap: 4px; }
.zn-nueva { background: #f8fafc; border: 1.5px dashed var(--borde); border-radius: 14px; padding: 10px 12px; }
@media (max-width: 640px) {
  .zn-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zn-form .zn-nom { grid-column: 1 / -1; }
  .zn-guardar { grid-column: 1 / -1; width: 100%; }
}
.hr-dias { display: grid; gap: 6px; margin: 10px 0; }
.hr-dia { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: center; border: 1px solid var(--borde); border-radius: 12px; padding: 8px 10px; background: #fff; }
.hr-dia.cerrado { background: #f8fafc; }
.hr-dia.cerrado .hr-turnos { display: none; }
.hr-dia.cerrado .hr-cerr { display: inline; }
.hr-cerr { display: none; color: var(--tinta-3); font-weight: 600; font-size: .85rem; }
.hr-dia > label { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.hr-turnos { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.hr-turno { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; color: var(--tinta-3); }
.hr-turno input { border: 1.5px solid var(--borde); border-radius: 9px; padding: 6px 6px; font: inherit; font-weight: 700; background: #fff; }
.hr-t2[hidden] { display: none; }
.hr-mas { border: 0; background: none; color: var(--acc-2); font-weight: 700; font-size: .82rem; padding: 4px; }
@media (max-width: 640px) { .hr-dia { grid-template-columns: 1fr; } }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.dl-grid label { display: grid; gap: 4px; font-weight: 700; font-size: .85rem; color: var(--tinta-2); }
.dl-grid .dl-ancho { grid-column: 1 / -1; }
.dl-grid input, .dl-grid textarea, .dl-grid select { border: 1.5px solid var(--borde); border-radius: 10px; padding: 9px 10px; font: inherit; font-size: .95rem; background: #fff; color: var(--tinta); width: 100%; }
.dl-chks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.dl-chks label { display: flex; align-items: center; gap: 6px; font-weight: 700; }
@media (max-width: 640px) { .dl-grid { grid-template-columns: 1fr; } }
.zn-b { padding: 5px 10px; font-size: .78rem; border-radius: 9px; }
.zn-guardar { padding: 0 14px; }
.dl-grid .dl-chks label { display: flex; align-items: center; gap: 6px; color: var(--tinta); }
.dl-grid input[type=checkbox] { width: auto; }

/* Paso 69: usuarios y Ajustes plegable */
.us-lista { display: grid; gap: 8px; margin: 10px 0; }
.us-fila { border: 1px solid var(--borde); border-radius: 14px; padding: 10px 12px; background: #fff; }
.us-fila.inactivo { background: #f8fafc; opacity: .75; }
.us-form { display: grid; grid-template-columns: minmax(170px, 2fr) minmax(120px, 1fr) auto auto; gap: 8px; align-items: end; }
form.us-form.zn-nueva { grid-template-columns: minmax(150px, 2fr) minmax(110px, 1fr) minmax(140px, 1.3fr) minmax(120px, 1fr) auto; }
.us-form label { display: grid; gap: 3px; font-size: .74rem; font-weight: 700; color: var(--tinta-3); }
.us-form label span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.us-form label code { font-size: .78rem; color: var(--tinta-2); }
.us-form input:not([type=checkbox]), .us-form select { border: 1.5px solid var(--borde); border-radius: 10px; padding: 8px 9px; font: inherit; font-size: .92rem; font-weight: 600; background: #fff; color: var(--tinta); width: 100%; min-width: 0; }
.us-form label.us-act { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--tinta); height: 38px; }
.us-pass { margin-top: 6px; font-size: .84rem; }
.us-pass summary { cursor: pointer; font-weight: 700; color: var(--acc-2); }
.us-pass form { margin-top: 8px; }
.us-clave { background: #ecfdf5; border: 1.5px solid #86efac; border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; display: grid; gap: 6px; }
.us-clave-dat { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.us-clave code { font-size: 1.1rem; font-weight: 800; background: #fff; border-radius: 8px; padding: 2px 8px; }
@media (max-width: 640px) {
  .us-form, form.us-form.zn-nueva { grid-template-columns: 1fr 1fr; }
  .us-form .us-nom { grid-column: 1 / -1; }
  .us-form .zn-guardar { grid-column: 1 / -1; width: 100%; }
}
.aj-acord { display: flex; flex-direction: column; gap: 0; }
.aj-acord > .adm-card { margin: 0 0 10px; padding-top: 0; padding-bottom: 0; }
.aj-acord > .adm-card > h2 { cursor: pointer; margin: 0; padding: 14px 30px 14px 0; position: relative; user-select: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.aj-acord > .adm-card > h2::after { content: '⌄'; position: absolute; right: 2px; top: 10px; font-size: 1.3rem; color: var(--tinta-3); transition: transform .2s; }
.aj-acord > .adm-card.abierta > h2::after { transform: rotate(180deg); }
.aj-acord > .adm-card > h2 .aj-res { font-size: .8rem; font-weight: 600; color: var(--tinta-3); }
.aj-acord > .adm-card:not(.abierta) > :not(h2) { display: none !important; }
.aj-acord > .adm-card.abierta { padding-bottom: 16px; }
.aj-acord > a.adm-card { text-decoration: none; color: inherit; display: block; }
.aj-acord > a.adm-card h2::after { content: '›'; }
.aj-mas { margin: 12px 0 0; border: 1px solid var(--borde); border-radius: 12px; padding: 8px 12px; background: #fafaf9; }
.aj-mas > summary { cursor: pointer; font-weight: 700; color: var(--tinta-2); }

/* Paso 70: Mi cuenta, ¿Olvidaste la contraseña? y reglas de contraseña */
a.barra-yo { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: background .15s; }
a.barra-yo:hover, a.barra-yo:focus-visible { background: rgba(255,255,255,.18); }
.barra-llave { font-size: .75rem; opacity: .8; }
.mc-yo { display: flex; gap: 14px; align-items: center; }
.mc-yo h2 { margin: 0; }
.mc-yo p { margin: 2px 0 0; }
.mc-ava { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--acc-suave); color: var(--acc-2); display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; }
.mc-form { margin-top: 10px; }
.mc-form label, .cl-form label { flex: 1 1 220px; }
.mc-form label input, .cl-form label input { width: 100%; }
.mc-form .adm-btns, .cl-form .adm-btns { flex: 1 1 100%; margin-top: 2px; }
.mc-falta { background: var(--av-suave); color: #92400e !important; border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.cl-reglas { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .78rem; font-weight: 600; }
.cl-reglas li.no { color: var(--tinta-3); }
.cl-reglas li.si { color: var(--ok); }
.cl-rep { font-size: .78rem; font-weight: 700; }
.cl-rep.si { color: var(--ok); } .cl-rep.no { color: var(--no); }
.cl-pag { min-height: 100vh; background: linear-gradient(160deg, #1d3557 0%, #274b75 60%, #e4572e 160%); }
.cl-caja { max-width: 460px; margin: 0 auto; padding: 32px 16px; }
.cl-marca { display: block; text-align: center; color: #fff; font-weight: 800; font-size: 1.5rem; text-decoration: none; margin-bottom: 16px; letter-spacing: -.01em; }
.cl-caja .adm-card { padding: 22px; border-radius: 20px; }
.cl-caja .adm-card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.cl-err { background: var(--no-suave); color: #991b1b; border-radius: 12px; padding: 10px 12px; font-size: .9rem; font-weight: 600; margin: 8px 0; }
.cl-form .b-ok { width: 100%; padding: 12px; font-size: 1rem; }
.cl-form .adm-btns .b-ok { width: auto; flex: 1 1 100%; }
.cl-volver { margin-top: 14px !important; font-size: .9rem; text-align: center; }
.cl-pag .jk-pie-tms, .cl-pag .jk-pie-tms a { color: rgba(255,255,255,.75); }
.us-form.us-form-mail { grid-template-columns: minmax(150px, 1.6fr) minmax(110px, 1fr) minmax(150px, 1.5fr) auto auto; }
.us-form label.us-mail em { font-style: normal; font-weight: 500; }
@media (max-width: 640px) {
  .us-form.us-form-mail { grid-template-columns: 1fr 1fr; }
  .us-form .us-mail { grid-column: 1 / -1; }
}
/* Paso 73: ítem agregado al pedido después (cocina) */
.ti-agregado { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; background: #22c55e; color: #052e16; }

/* Paso 75: Modificar pedido en dos columnas en la compu (entrega y ubicación | cliente y pago) */
.mod-cols, .mod-izq, .mod-der { display: grid; gap: 8px; align-content: start; }
@media (min-width: 900px) {
  .dlg.dlg-ancho { width: min(920px, 96vw); }
  .mod-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
}
