/* ═══════════════════════════════════════════════════════════════════════
   ALTOGRANO · Tostaduría & Coffee Lab · Sistema de diseño
   Superficie crema, cromado espresso, acción caramelo, acento salvia.
   Las variables antiguas (--navy, --azul, --cafe…) siguen existiendo como
   alias para que las vistas con estilos en línea hereden la paleta nueva.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Marca ─────────────────────────────────────────────── */
  --espresso:      #2B1A12;
  --espresso-2:    #3A251A;
  --espresso-3:    #4B3124;
  --caramelo:      #A8571F;   /* acción principal · blanco encima 5.2:1 */
  --caramelo-600:  #8C4617;
  --caramelo-050:  #FBEFE3;
  --caramelo-100:  #F5DCC4;
  --caramelo-claro:#E6A869;   /* sobre espresso */
  --acento:        #2F6F62;   /* salvia (hoja de cafeto) · info */
  --crema:         #F7F1E9;
  --crema-2:       #EFE5D8;

  /* Alias de compatibilidad (vistas existentes) */
  --navy:   var(--espresso);
  --navy-2: var(--espresso-2);
  --navy-3: var(--espresso-3);
  --azul:   var(--caramelo);
  --azul-600: var(--caramelo-600);
  --azul-050: var(--caramelo-050);
  --cafe:     #7A4A2A;
  --cafe-050: #F3E6D7;

  /* ── Neutros cálidos ───────────────────────────────────── */
  --bg:        var(--crema);
  --surface:   #FFFFFF;
  --surface-2: #FBF8F4;
  --surface-3: #F4EDE4;
  --line:      #EAE1D6;
  --line-2:    #DACDBE;
  --muted:     #6F6158;   /* 5.9:1 sobre blanco */
  --ink:       #22160F;
  --ink-2:     #4A3B32;
  --on-dark:   #F6EDE3;
  --on-dark-2: #D9C7B5;
  --on-dark-3: #A8927E;   /* 5.3:1 sobre espresso */

  /* ── Semánticos (fondo · tinta) ────────────────────────── */
  --ok:        #2E7D4F;  --ok-050: #E7F3EA;   --ok-ink: #1F5E3A;
  --warn:      #C98A1E;  --warn-050: #FCF1DC; --warn-ink: #8A5A12;
  --danger:    #B42318;  --danger-050: #FCE9E7; --danger-ink: #9A1C13;
  --info:      var(--acento); --info-050: #E5F0ED; --info-ink: #24574D;
  --rojo:      var(--danger);

  /* ── Tipografía (escala 1.2) ───────────────────────────── */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --t-xs: .75rem;    /* 12 */
  --t-sm: .875rem;   /* 14 */
  --t-base: 1rem;    /* 16 */
  --t-md: 1.2rem;    /* 19 */
  --t-lg: 1.44rem;   /* 23 */
  --t-xl: 1.728rem;  /* 28 */
  --t-2xl: 2.074rem; /* 33 */
  --t-3xl: 2.488rem; /* 40 */

  /* ── Espaciado 4/8 ─────────────────────────────────────── */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px;

  /* ── Radios y sombras ──────────────────────────────────── */
  --r-xs: 6px; --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(43,26,18,.06), 0 1px 1px rgba(43,26,18,.03);
  --sh-2: 0 2px 4px rgba(43,26,18,.04), 0 10px 28px rgba(43,26,18,.09);
  --sh-3: 0 24px 64px rgba(43,26,18,.30);
  --shadow: var(--sh-2);
  --shadow-lg: var(--sh-3);
  --ring: 0 0 0 4px rgba(168,87,31,.18);

  /* ── Capas ─────────────────────────────────────────────── */
  --z-sticky: 10; --z-bar: 30; --z-drawer: 40; --z-tip: 50; --z-modal: 60; --z-toast: 80; --z-alert: 9999;

  /* ── Movimiento ────────────────────────────────────────── */
  --ease: cubic-bezier(.2,.7,.2,1);
  --d-1: 150ms; --d-2: 200ms; --d-3: 250ms;

  /* ── Métricas táctiles / layout ────────────────────────── */
  --tap:      56px;
  --tap-min:  44px;
  --topbar-h: 64px;
  --rail-w:   132px;
  --ticket-w: 384px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-sm);
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button, input, select, textarea { font-family: inherit; }
button { touch-action: manipulation; }
::selection { background: var(--caramelo); color: #fff; }
a { color: var(--caramelo-600); }

/* Foco visible solo con teclado, en todo */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--caramelo); outline-offset: 2px; border-radius: 6px; }
.topbar :focus-visible, .rail :focus-visible, .adm-side :focus-visible, .kds :focus-visible, .salon-top :focus-visible, .solo :focus-visible, .pos-bar:focus-visible { outline-color: var(--caramelo-claro); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono, .num { font-variant-numeric: tabular-nums; }
kbd { font: 700 11px/1 var(--font); padding: 3px 6px; border-radius: 5px; background: var(--surface-3); border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--ink-2); }

/* Scrollbars discretos */
.scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.scroll::-webkit-scrollbar { width: 10px; }
.scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 20px; border: 3px solid transparent; background-clip: content-box; }

/* ─── Animaciones base (solo transform/opacity) ─────────────────────── */
@keyframes ag-in   { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ag-pop  { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ag-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ag-bump { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes ag-added { 0% { transform: scale(1); } 35% { transform: scale(.96); } 100% { transform: scale(1); } }
@keyframes ag-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes ag-spin { to { transform: rotate(360deg); } }

/* Skeleton liviano (único movimiento en bucle: indicador de carga) */
.sk { position: relative; overflow: hidden; background: var(--surface-3); border-radius: var(--r-sm); }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: ag-shimmer 1.3s linear infinite; }
.spin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ag-spin .7s linear infinite; vertical-align: -3px; }

/* ─── Logo / marca ──────────────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 11px; user-select: none; text-decoration: none; flex: none; }
.brand .gear { width: 34px; height: 34px; flex: none; position: relative; display: grid; place-items: center; }
.brand .gear img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.brand .word { display: flex; flex-direction: column; line-height: 1; }
.brand .word b, .brand > b { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: var(--on-dark); }
.brand .word b span, .brand > b span { color: var(--caramelo-claro); }
.brand .word small {
  font-size: 9.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-dark-3); margin-top: 4px;
}

/* ═══ BOTONES (sistema) ══════════════════════════════════════════════
   .btn  = táctil (POS)        .abtn = compacto (back office)
   variantes: -primary · -secondary/-ghost · -quiet · -danger · -ok     */
.btn, .abtn {
  appearance: none; border: 0; cursor: pointer; font-family: inherit; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  transition: transform var(--d-1) var(--ease), box-shadow var(--d-2) var(--ease), background-color var(--d-2) var(--ease), color var(--d-2) var(--ease), border-color var(--d-2) var(--ease), opacity var(--d-2) var(--ease);
}
.btn:active, .abtn:active { transform: scale(.98); }
.btn[disabled], .abtn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.is-loading { pointer-events: none; }
.is-loading::before { content: ""; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ag-spin .7s linear infinite; }

.btn { border-radius: 14px; font-weight: 700; font-size: 15px; min-height: var(--tap); padding: 0 var(--s-4); letter-spacing: -.005em; }
.btn-primary { background: var(--caramelo); color: #fff; box-shadow: 0 6px 18px rgba(168,87,31,.28); }
.btn-primary:hover { background: var(--caramelo-600); }
.btn-pay { grid-column: 1 / -1; min-height: 62px; font-size: 18px; background: var(--caramelo); color: #fff; box-shadow: 0 10px 26px rgba(168,87,31,.32); }
.btn-pay:hover { background: var(--caramelo-600); transform: translateY(-1px); }
.btn-pay:active { transform: scale(.98); }
.btn-ghost, .btn-secondary { background: var(--surface); color: var(--ink-2); border: 1.5px solid var(--line-2); }
.btn-ghost:hover, .btn-secondary:hover { background: var(--surface-2); border-color: var(--muted); color: var(--ink); }
.btn-danger-ghost { background: var(--surface); color: var(--danger); border: 1.5px solid #F2C9C4; }
.btn-danger-ghost:hover { background: var(--danger-050); }
.btn.is-confirm, .abtn.is-confirm { background: var(--danger); color: #fff; border-color: var(--danger); box-shadow: none; }

.icon-btn {
  width: var(--tap-min); height: var(--tap-min); border-radius: 12px; border: 0; background: var(--surface-2); color: var(--muted);
  cursor: pointer; display: grid; place-items: center; font-size: 18px; transition: background-color var(--d-2) var(--ease), transform var(--d-1) var(--ease);
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.del:hover, .icon-btn.del:active { background: var(--danger-050); color: var(--danger); }

/* Botones back office */
.abtn { border-radius: 11px; font-weight: 650; font-size: 14px; min-height: 42px; padding: 0 16px; }
.abtn-primary { background: var(--caramelo); color: #fff; box-shadow: var(--sh-1); }
.abtn-primary:hover { background: var(--caramelo-600); box-shadow: 0 6px 16px rgba(168,87,31,.25); transform: translateY(-1px); }
.abtn-primary:active { transform: scale(.98); }
.abtn-ghost, .abtn-secondary { background: var(--surface); color: var(--ink-2); border: 1.5px solid var(--line-2); }
.abtn-ghost:hover, .abtn-secondary:hover { background: var(--surface-2); border-color: var(--muted); color: var(--ink); }
.abtn-quiet { background: transparent; color: var(--ink-2); }
.abtn-quiet:hover { background: var(--surface-3); }
.abtn-ok { background: var(--ok); color: #fff; }
.abtn-ok:hover { background: var(--ok-ink); transform: translateY(-1px); }
.abtn-danger { background: var(--danger); color: #fff; }
.abtn-danger:hover { background: var(--danger-ink); }
.abtn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }

/* ═══ SHELL POS ═════════════════════════════════════════════════════ */
.pos {
  height: 100vh; height: 100dvh;
  display: grid;
  grid-template-rows: var(--topbar-h) 1fr;
  grid-template-columns: var(--rail-w) 1fr var(--ticket-w);
  grid-template-areas:
    "top  top   top"
    "rail grid  ticket";
}

/* ─── Topbar ─────────────────────────────────────────────────────── */
.topbar {
  grid-area: top;
  background: var(--espresso);
  background-image: linear-gradient(100deg, var(--espresso), var(--espresso-3));
  color: var(--on-dark);
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  box-shadow: 0 2px 16px rgba(43,26,18,.22);
  z-index: 20; min-width: 0;
}
.topbar .spacer { flex: 1; }

/* Segmentado tipo de pedido */
.seg { display: flex; background: rgba(255,255,255,.08); padding: 4px; border-radius: 13px; gap: 2px; flex: none; }
.seg button {
  appearance: none; border: 0; background: transparent; color: var(--on-dark-2);
  font-size: 13.5px; font-weight: 650; padding: 0 14px; min-height: 42px; border-radius: 10px;
  cursor: pointer; display: flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: background-color var(--d-2) var(--ease), color var(--d-2) var(--ease), transform var(--d-1) var(--ease);
}
.seg button .i { font-size: 15px; }
.seg button:hover:not(.on) { background: rgba(255,255,255,.08); color: #fff; }
.seg button.on { background: var(--crema); color: var(--espresso); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.seg button:active { transform: scale(.97); }

/* Enlaces de la barra (icono + etiqueta que se oculta en pantallas angostas) */
.top-link {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  color: var(--on-dark-2); text-decoration: none; font-weight: 600; font-size: 13.5px;
  background: rgba(255,255,255,.07); min-height: 42px; padding: 0 13px; border-radius: 11px;
  transition: background-color var(--d-2) var(--ease), color var(--d-2) var(--ease), transform var(--d-1) var(--ease);
}
.top-link:hover { background: rgba(255,255,255,.14); color: #fff; }
.top-link:active { transform: scale(.97); }
.top-link.prim { background: var(--caramelo); color: #fff; }
.top-icon { background: rgba(255,255,255,.08); border: 0; color: var(--on-dark-2); cursor: pointer; font-size: 15px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; transition: background-color var(--d-2) var(--ease); }
.top-icon:hover { background: rgba(255,255,255,.18); color: #fff; }

/* Chip de usuario / reloj */
.chip-user {
  display: flex; align-items: center; gap: 9px; padding: 4px 4px 4px 12px; flex: none;
  background: rgba(255,255,255,.07); border-radius: 13px; color: var(--on-dark); font-weight: 600; font-size: 13px;
}
.chip-user .av {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--caramelo); color: #fff; font-weight: 800;
}
.chip-user form { margin: 0; display: flex; }
.clock { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; font-size: 15px; letter-spacing: .01em; white-space: nowrap; flex: none; text-align: right; }
.clock small { display: block; font-size: 10px; color: var(--on-dark-3); font-weight: 600; letter-spacing: .04em; }

/* ─── Rail de categorías ─────────────────────────────────────────── */
.rail {
  grid-area: rail;
  background: var(--espresso);
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 10px; overflow-y: auto; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail .cat {
  appearance: none; border: 0; cursor: pointer; flex: none;
  background: transparent; color: var(--on-dark-2);
  border-radius: var(--r); padding: 12px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-weight: 650; font-size: 12px; line-height: 1.15; text-align: center;
  transition: background-color var(--d-2) var(--ease), color var(--d-2) var(--ease), transform var(--d-1) var(--ease);
  position: relative; min-height: 78px; justify-content: center;
}
.rail .cat .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; background: rgba(255,255,255,.07); transition: transform var(--d-2) var(--ease), background-color var(--d-2) var(--ease);
}
.rail .cat:hover:not(.on) { background: rgba(255,255,255,.05); color: #fff; }
.rail .cat.on { background: var(--espresso-3); color: #fff; }
.rail .cat.on .ico { background: var(--caramelo); box-shadow: 0 6px 16px rgba(0,0,0,.28); transform: translateY(-1px); }
.rail .cat.on::before {
  content: ""; position: absolute; left: -10px; top: 18px; bottom: 18px; width: 4px;
  background: var(--caramelo-claro); border-radius: 0 4px 4px 0;
}
.rail .cat:active { transform: scale(.97); }

/* ─── Grilla de productos ────────────────────────────────────────── */
.grid-wrap { grid-area: grid; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.grid-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 6px; }
.grid-head h2 { margin: 0; font-family: var(--font-display); font-size: var(--t-lg); font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.grid-head .count { color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.search { margin-left: auto; position: relative; }
.search input {
  width: 280px; height: 46px; border: 1.5px solid var(--line-2); border-radius: 12px;
  padding: 0 44px 0 40px; font-size: 14px; background: var(--surface); color: var(--ink); outline: none;
  transition: border-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--caramelo); box-shadow: var(--ring); }
.search .ic { position: absolute; left: 13px; top: 13px; color: var(--muted); font-size: 16px; pointer-events: none; }
.search kbd { position: absolute; right: 12px; top: 14px; pointer-events: none; transition: opacity var(--d-1) var(--ease); }
.search input:focus ~ kbd { opacity: 0; }

.prods {
  flex: 1; overflow-y: auto; padding: 12px 20px 24px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; align-content: start;
}
.prods:empty::before { content: "Sin productos para mostrar."; grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 12px; font-weight: 600; }
.card-prod {
  appearance: none; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
  border-radius: var(--r); padding: 7px 7px 12px; text-align: left; color: var(--ink);
  display: flex; flex-direction: column; gap: 9px; min-height: 0; position: relative;
  box-shadow: var(--sh-1);
  transition: transform var(--d-1) var(--ease), border-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
  animation: ag-in var(--d-3) var(--ease) both;
}
.card-prod:hover { border-color: var(--caramelo-100); box-shadow: var(--sh-2); transform: translateY(-2px); }
.card-prod:active { transform: scale(.98); border-color: var(--caramelo); box-shadow: var(--ring); }
.card-prod.added { animation: ag-added var(--d-3) var(--ease); border-color: var(--caramelo); box-shadow: var(--ring); }
/* Ilustración del plato: área crema con un halo claro detrás (sprite platos.svg, <use> = liviano con muchas tarjetas) */
.card-prod .thumb {
  width: 100%; height: 88px; border-radius: 10px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,.55) 62%, rgba(255,255,255,0)) center 48% / 116px 96px no-repeat, var(--crema);
}
.card-prod .thumb > .ilu { width: 84px; height: 84px; transition: transform var(--d-3) var(--ease); }
.card-prod:hover .thumb > .ilu { transform: translateY(-2px) scale(1.06); }
.card-prod:active .thumb > .ilu { transform: scale(.96); }
.card-prod .nm {
  padding: 0 5px; font-weight: 700; font-size: 12.5px; line-height: 1.32; letter-spacing: .025em; color: var(--ink); flex: 1;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; overflow-wrap: anywhere;
}
/* Combo («TAMAL + CAFÉ»): la comida grande algo a la izquierda y la bebida chica en una burbuja con borde crema */
.card-prod .thumb { position: relative; }
.card-prod .thumb.combo > .ilu { transform: translateX(-12px); }
.card-prod:hover .thumb.combo > .ilu { transform: translate(-12px, -2px) scale(1.06); }
.card-prod:active .thumb.combo > .ilu { transform: translateX(-12px) scale(.96); }
.card-prod .ilu-2 {
  position: absolute; right: 10px; bottom: 7px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--crema); box-shadow: 0 2px 6px rgba(43,26,18,.10), 0 0 0 1px var(--caramelo-100);
  display: grid; place-items: center; transition: transform var(--d-3) var(--ease);
}
.card-prod .ilu-2 > .ilu { width: 38px; height: 38px; stroke-width: 1.9; }
.card-prod:hover .ilu-2 { transform: translateY(-2px) rotate(-4deg); }
.card-prod .ilu-mas {
  position: absolute; right: 6px; bottom: 46px; min-width: 22px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--espresso); color: #fff; font: 800 10.5px/18px var(--font); text-align: center; letter-spacing: .02em;
}
.card-prod .pr { padding: 0 5px; font-weight: 800; font-size: 15.5px; line-height: 1; color: var(--espresso); font-variant-numeric: tabular-nums; }
.card-prod .pr small { font-size: 11px; font-weight: 700; color: var(--caramelo-600); margin-right: 1px; }
.card-prod .pr s { color: var(--muted); font-weight: 600; font-size: 12px; }
.card-prod .badge-add {
  position: absolute; top: 13px; right: 13px; z-index: 1; width: 30px; height: 30px; border-radius: 10px;
  background: var(--caramelo); color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 700;
  opacity: 0; transform: scale(.6); transition: opacity var(--d-2) var(--ease), transform var(--d-2) var(--ease);
}
.card-prod:hover .badge-add, .card-prod:active .badge-add, .card-prod.added .badge-add { opacity: 1; transform: scale(1); }

/* ═══ TICKET / COMANDA ══════════════════════════════════════════════ */
.ticket {
  grid-area: ticket; background: var(--surface); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
}
.ticket-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.ticket-head .t-ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--espresso); color: #fff;
  display: grid; place-items: center; font-size: 21px; flex: none;
}
.ticket-head .t-meta { min-width: 0; }
.ticket-head .t-meta b { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.ticket-head .t-meta span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ticket-head .t-num { margin-left: auto; text-align: right; }
.ticket-head .t-num b { font-size: 15px; color: var(--caramelo-600); font-variant-numeric: tabular-nums; }
.ticket-head .t-num span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; display: block; }
.ticket-head .t-meta b #tipo-nombre { font-size: inherit; color: inherit; font-weight: inherit; }
.ticket-head .t-meta b .cart-n { font-size: 12px; color: #fff; }
/* En pantallas táctiles el hover no se queda pegado */
@media (hover: none) {
  .card-prod:hover { transform: none; box-shadow: var(--sh-1); border-color: var(--line); }
  .card-prod:hover .badge-add { opacity: 0; transform: scale(.6); }
  .card-prod:hover .thumb > .ilu { transform: none; }
  .card-prod:hover .thumb.combo > .ilu { transform: translateX(-12px); }
  .card-prod:hover .ilu-2 { transform: none; }
  .card-prod.added { border-color: var(--caramelo); box-shadow: var(--ring); }
  .card-prod.added .badge-add { opacity: 1; transform: scale(1); }
  .inicio-mod:hover, .ficha:hover, .mesa-fig:hover .tablero { transform: none; }
}
.cart-n { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: var(--r-pill); background: var(--caramelo); color: #fff; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ticket-head .t-meta b .cart-n[data-n="0"], .cart-n[data-n="0"] { background: var(--surface-3); color: var(--muted); }
.bump { animation: ag-bump var(--d-3) var(--ease); }
.sheet-close { display: none; }

/* Selector de mesa */
.mesa-pick { padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mesa-pick button {
  width: 100%; min-height: 48px; border: 1.5px dashed var(--line-2); background: #fff; border-radius: 12px;
  font-weight: 650; color: var(--ink-2); font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 9px; justify-content: center;
  transition: border-color var(--d-2) var(--ease), background-color var(--d-2) var(--ease);
}
.mesa-pick button:hover { border-color: var(--caramelo); color: var(--ink); }
.mesa-pick button.sel { border-style: solid; border-color: var(--caramelo); color: var(--espresso); background: var(--caramelo-050); }

/* Líneas */
.lines { flex: 1; overflow-y: auto; padding: 8px 10px; min-height: 0; }
.empty {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); text-align: center; padding: 24px; animation: ag-fade var(--d-3) var(--ease);
}
.empty .big { font-size: 40px; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); }
.empty b { color: var(--ink-2); font-size: 15px; }
.empty span { font-size: 13px; max-width: 230px; }

.line {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center;
  padding: 10px 8px; border-radius: 12px; animation: ag-in var(--d-2) var(--ease);
}
.line + .line { border-top: 1px solid var(--line); }
.line .nm { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.line .nt { grid-column: 1; font-size: 12px; color: var(--cafe); font-weight: 600; }
.line .amt { font-weight: 800; font-size: 15px; color: var(--espresso); font-variant-numeric: tabular-nums; text-align: right; }
.stepper { grid-column: 1; display: flex; align-items: center; background: var(--surface-3); border-radius: 12px; width: max-content; }
.stepper button {
  width: var(--tap-min); height: var(--tap-min); border: 0; background: transparent; font-size: 20px; font-weight: 700; color: var(--espresso);
  cursor: pointer; border-radius: 12px; display: grid; place-items: center; transition: background-color var(--d-1) var(--ease), transform var(--d-1) var(--ease);
}
.stepper button:hover { background: var(--line); }
.stepper button:active { transform: scale(.92); }
.stepper .q { min-width: 30px; text-align: center; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.line .del { grid-row: 2; grid-column: 2; justify-self: end; }

/* Totales + acciones */
.foot { border-top: 1px solid var(--line); padding: 14px 16px 16px; background: var(--surface-2); }
.totrow { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.totrow span:last-child, .totrow b { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.totrow.big { font-size: 15px; color: var(--ink); font-weight: 700; margin: 10px 0 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.totrow.big b { font-size: 30px; font-weight: 800; color: var(--espresso); letter-spacing: -.02em; }
.totrow.big b small { font-size: 15px; color: var(--muted); font-weight: 700; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mesa-solo-caja { align-self: center; font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* Barra inferior del carrito (solo celular) */
.pos-bar { display: none; }
.pos-scrim { display: none; }

/* ═══ MODALES ═══════════════════════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0; background: rgba(34,22,15,.55); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; z-index: var(--z-modal); padding: 24px;
}
.overlay.on { display: flex; animation: ag-fade var(--d-2) var(--ease); }
.modal {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px; max-height: calc(100dvh - 48px); overflow: auto;
  animation: ag-pop var(--d-3) var(--ease);
}
.modal-head { padding: 22px 22px 0; }
.modal-head h3 { margin: 0; font-family: var(--font-display); font-size: var(--t-lg); font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.modal-body { padding: 18px 22px; }
.modal .tot-cobro { text-align: center; padding: 6px 0 18px; }
.modal .tot-cobro b { font-size: 44px; font-weight: 800; color: var(--espresso); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.modal .tot-cobro small { font-size: 20px; color: var(--muted); font-weight: 700; }
.modal-foot { padding: 6px 22px 22px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.modal-foot.end { display: flex; justify-content: flex-end; }
.modal-msg { padding: 0 22px 16px; color: var(--danger); font-weight: 700; }
.modal-msg:empty { display: none; }

.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.pay-methods button {
  min-height: 60px; border: 1.5px solid var(--line-2); background: #fff; border-radius: 13px; cursor: pointer;
  display: flex; align-items: center; gap: 11px; padding: 0 14px; font-weight: 700; font-size: 15px; color: var(--ink-2);
  transition: border-color var(--d-2) var(--ease), background-color var(--d-2) var(--ease), transform var(--d-1) var(--ease);
}
.pay-methods button:hover { border-color: var(--muted); }
.pay-methods button:active { transform: scale(.98); }
.pay-methods button .pi { font-size: 22px; }
.pay-methods button.on { border-color: var(--caramelo); background: var(--caramelo-050); color: var(--espresso); box-shadow: var(--ring); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 6px; }
.field input {
  width: 100%; height: 56px; border: 1.5px solid var(--line-2); border-radius: 13px; padding: 0 16px;
  font-size: 22px; font-weight: 800; color: var(--espresso); outline: none; font-variant-numeric: tabular-nums; text-align: right; background: var(--surface-2);
  transition: border-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
}
.field input:focus { border-color: var(--caramelo); box-shadow: var(--ring); background: #fff; }
.vuelto { display: flex; justify-content: space-between; align-items: center; background: var(--cafe-050); border-radius: 13px; padding: 14px 18px; margin-bottom: 4px; }
.vuelto span { font-weight: 700; color: var(--ink-2); }
.vuelto b { font-size: 26px; font-weight: 800; color: var(--cafe); font-variant-numeric: tabular-nums; }

/* Keypad rápido */
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.keypad button { min-height: 52px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; font-size: 20px; font-weight: 700; color: var(--ink); cursor: pointer; }
.keypad button:active { background: var(--surface-2); transform: scale(.97); }
.keypad .wide { grid-column: span 1; color: var(--danger); }

/* ═══ TOAST ═════════════════════════════════════════════════════════ */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  background: var(--espresso); color: #fff; padding: 14px 22px; border-radius: 14px; font-weight: 650; font-size: 15px;
  box-shadow: var(--shadow-lg); z-index: var(--z-toast); display: flex; align-items: center; gap: 11px; max-width: calc(100vw - 32px);
  transition: transform var(--d-3) var(--ease), opacity var(--d-2) var(--ease);
}
.toast .ok-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; font-size: 16px; flex: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }

/* Mesa modal grid */
.mesas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mesa-btn {
  aspect-ratio: 1; min-height: 64px; border: 1.5px solid var(--line-2); background: #fff; border-radius: 14px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 700; color: var(--ink);
  transition: border-color var(--d-2) var(--ease), background-color var(--d-2) var(--ease), transform var(--d-1) var(--ease);
}
.mesa-btn .cap { font-size: 11px; color: var(--muted); font-weight: 600; }
.mesa-btn.libre:hover { border-color: var(--caramelo); }
.mesa-btn.libre:active { transform: scale(.96); }
.mesa-btn.libre:active, .mesa-btn.on { border-color: var(--caramelo); background: var(--caramelo-050); color: var(--espresso); box-shadow: var(--ring); }
.mesa-btn.ocupada { background: var(--danger-050); border-color: #F2C9C4; color: var(--danger-ink); cursor: not-allowed; }
.zona-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.zona-tabs button { min-height: var(--tap-min); padding: 0 16px; border-radius: 11px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: background-color var(--d-2) var(--ease), color var(--d-2) var(--ease); }
.zona-tabs button.on { background: var(--espresso); color: #fff; border-color: var(--espresso); }

/* ─── POS adaptativo ─────────────────────────────────────────────── */
@media (max-width: 1360px) {
  .topbar .top-link .lbl { display: none; }
  .topbar .top-link { padding: 0 11px; }
  .chip-user > span:first-child { display: none; }
  .chip-user { padding-left: 4px; }
}
@media (max-width: 1180px) {
  :root { --ticket-w: 340px; --rail-w: 108px; }
  .search input { width: 200px; }
  .search kbd { display: none; }
  .clock small { display: none; }
  .seg button span.lbl { display: none; }
  .seg button { padding: 0 13px; }
  .seg button .i { font-size: 18px; }
}
@media (max-width: 920px) {
  .brand .word small { display: none; }
  .grid-head .count { display: none; }
}

/* Celular / tablet vertical: rail horizontal, carrito como hoja inferior */
@media (max-width: 760px) {
  :root { --topbar-h: 58px; }
  .pos {
    grid-template-columns: 1fr;
    grid-template-rows: var(--topbar-h) auto 1fr;
    grid-template-areas: "top" "rail" "grid";
  }
  .topbar { gap: 8px; padding: 0 10px; overflow-x: auto; scrollbar-width: none; }
  .topbar::-webkit-scrollbar { display: none; }
  .topbar .brand .word { display: none; }
  .topbar .clock { display: none; }
  .seg button { min-height: 40px; padding: 0 11px; }
  .caja-chip { padding: 0 11px; }
  .caja-chip .lbl { display: none; }

  .rail { flex-direction: row; padding: 8px 10px; gap: 6px; overflow-x: auto; overflow-y: hidden; }
  .rail .cat { min-height: 0; flex-direction: row; padding: 5px 12px 5px 5px; gap: 8px; border-radius: 12px; white-space: nowrap; font-size: 13px; }
  .rail .cat .ico { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; }
  .rail .cat.on::before { display: none; }

  .grid-head { padding: 12px 14px 4px; flex-wrap: wrap; }
  .grid-head h2 { font-size: var(--t-md); }
  .search { flex: 1 1 100%; margin-left: 0; }
  .search input { width: 100%; }
  .prods { padding: 10px 14px 96px; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-prod { padding: 6px 6px 11px; gap: 8px; }
  .card-prod .thumb { height: 80px; }
  .card-prod .thumb > .ilu { width: 76px; height: 76px; }
  .card-prod .ilu-2 { width: 42px; height: 42px; right: 8px; bottom: 6px; }
  .card-prod .ilu-2 > .ilu { width: 34px; height: 34px; }

  .ticket {
    position: fixed; left: 0; right: 0; bottom: 0; height: 88dvh; z-index: var(--z-drawer);
    border-left: 0; border-radius: 20px 20px 0 0; box-shadow: var(--sh-3);
    transform: translateY(105%); visibility: hidden;
    transition: transform var(--d-3) var(--ease), visibility 0s linear var(--d-3);
  }
  .pos.sheet-on .ticket { transform: none; visibility: visible; transition: transform var(--d-3) var(--ease), visibility 0s; }
  .ticket-head { padding-top: 18px; position: relative; }
  .ticket-head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
  .sheet-close { display: grid; flex: none; }
  .pos-scrim { display: block; position: fixed; inset: 0; background: rgba(34,22,15,.45); z-index: calc(var(--z-drawer) - 1); opacity: 0; pointer-events: none; transition: opacity var(--d-2) var(--ease); }
  .pos.sheet-on .pos-scrim { opacity: 1; pointer-events: auto; }

  .pos-bar {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: var(--z-bar); min-height: 60px; padding: 0 18px 0 12px; border: 0; border-radius: 16px; cursor: pointer;
    background: var(--espresso); color: #fff; font: 700 15px/1 var(--font); box-shadow: var(--sh-3);
    transition: transform var(--d-2) var(--ease);
  }
  .pos-bar:active { transform: scale(.98); }
  .pos-bar .cart-n { min-width: 36px; height: 36px; border-radius: 11px; font-size: 15px; }
  .pos-bar .cart-n[data-n="0"] { background: rgba(255,255,255,.12); color: var(--on-dark-2); }
  .pos-bar .pb-t { flex: 1; text-align: left; }
  .pos-bar .pb-t small { display: block; font-size: 11.5px; font-weight: 600; color: var(--on-dark-3); margin-top: 3px; }
  .pos-bar b { font-variant-numeric: tabular-nums; font-size: 17px; }
  .pos.sheet-on .pos-bar { transform: translateY(140%); }

  .modal-foot { grid-template-columns: 1fr 1fr; }
  .mesas-grid { grid-template-columns: repeat(3, 1fr); }
  .overlay { padding: 12px; align-items: flex-end; }
  .modal { max-height: calc(100dvh - 24px); }
  .toast { bottom: 88px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   BACK-OFFICE (admin)
   ═══════════════════════════════════════════════════════════════════════ */
body.admin { background: var(--bg); }
.adm { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; min-height: 100dvh; }

.adm-side {
  background: var(--espresso); color: var(--on-dark); display: flex; flex-direction: column;
  padding: 18px 14px 14px; position: sticky; top: 0; height: 100vh; height: 100dvh; z-index: var(--z-drawer);
}
.adm-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; text-decoration: none; color: inherit; }
.adm-brand img { width: 36px; height: 36px; border-radius: 10px; }
.adm-brand b { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.01em; display: block; color: var(--on-dark); line-height: 1.05; }
.adm-brand b span { color: var(--caramelo-claro); }
.adm-brand small { font-size: 9.5px; color: var(--on-dark-3); font-weight: 700; letter-spacing: .1em; white-space: nowrap; text-transform: uppercase; }
.adm-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; min-height: 0; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.adm-nav a {
  display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; border-radius: 11px; flex: none;
  color: var(--on-dark-2); text-decoration: none; font-weight: 550; font-size: 14px; position: relative;
  transition: background-color var(--d-2) var(--ease), color var(--d-2) var(--ease);
}
.adm-nav a span { font-size: 16px; width: 22px; text-align: center; flex: none; }
.adm-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.adm-nav a.on { background: var(--caramelo); color: #fff; font-weight: 650; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.adm-nav a.on::before { content: ""; position: absolute; left: -6px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--caramelo-claro); }
.adm-sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--on-dark-3); font-weight: 700; padding: 16px 12px 6px; flex: none; }
.adm-foot { font-size: 11px; color: var(--on-dark-3); padding: 10px 10px 0; }
.adm-foot b { color: var(--on-dark-2); }

.adm-main { min-width: 0; display: flex; flex-direction: column; }
.adm-top {
  display: flex; align-items: center; gap: 14px; padding: 16px 32px; min-height: 76px;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: var(--z-sticky);
}
.adm-top h1 { margin: 0; font-family: var(--font-display); font-size: var(--t-xl); font-weight: 700; letter-spacing: -.015em; color: var(--ink); line-height: 1.15; }
.adm-top .sp { flex: 1; }
.adm-burger { display: none; }
.adm-scrim { display: none; }
.adm-body { padding: 28px 32px 48px; max-width: 1480px; width: 100%; }
.adm-body > * { animation: ag-in var(--d-3) var(--ease) both; }
.adm-body > :nth-child(2) { animation-delay: 40ms; }
.adm-body > :nth-child(3) { animation-delay: 80ms; }
.adm-body > :nth-child(4) { animation-delay: 120ms; }
.adm-body > :nth-child(n+5) { animation-delay: 160ms; }
.adm-body > .overlay, .adm-body > script, .adm-body > .tb-tip { animation: none; }
.lead { margin: 0 0 20px; color: var(--muted); font-size: 15px; max-width: 760px; line-height: 1.55; }
.lead b { color: var(--ink); }

/* Tarjetas KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 26px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--sh-1); min-width: 0; }
.kpi .lbl { font-size: 12px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.kpi .val { font-size: var(--t-xl); font-weight: 800; color: var(--espresso); letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.15; overflow-wrap: anywhere; }
.kpi .val small { font-size: 15px; color: var(--muted); font-weight: 700; }
.kpi .val.sm { font-size: var(--t-md); }
.kpi .sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.kpi.warn { border-color: #EED9B0; background: linear-gradient(180deg, #fff, var(--warn-050)); }
.kpi.warn .val { color: var(--warn-ink); }
.kpi.danger { border-color: #F2C9C4; background: linear-gradient(180deg, #fff, var(--danger-050)); }
.kpi.danger .val { color: var(--danger); }
.kpi.ok .val { color: var(--ok-ink); }
.kpis.flat { gap: 18px; margin: 0; padding: 18px 20px; }
.kpis.flat .kpi { border: 0; background: transparent; padding: 0; box-shadow: none; }
.kpis.flat .kpi .val { font-size: var(--t-md); }

/* Panel + tabla */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 24px; box-shadow: var(--sh-1); min-width: 0; }
.panel-h { display: flex; align-items: center; gap: 10px 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-h h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.005em; }
.panel-h .sp { flex: 1; }
.panel-h .hint { font-size: 12.5px; color: var(--muted); }
.panel-h.sub { border-top: 1px solid var(--line); }
.panel-h.sub h2 { font-size: 14px; }
.panel-b { padding: 18px 20px; }
.panel.destacado { border: 1.5px solid var(--caramelo-100); background: linear-gradient(100deg, #fff, var(--caramelo-050)); }
.panel.destacado .panel-h { border-bottom-color: var(--caramelo-100); }

/* Tablas: contenedor con desplazamiento, cabecera fija en tablas largas */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.tbl-wrap.largo { max-height: min(72vh, 760px); overflow-y: auto; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; }
table.data th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700;
  padding: 11px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
table.data th.r, table.data td.r { text-align: right; }
table.data td { padding: 12px 20px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:nth-child(even) td { background: #FDFBF8; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--caramelo-050); }
table.data .nom { font-weight: 700; color: var(--ink); }
table.data td.mono, table.data td.r { font-variant-numeric: tabular-nums; }
table.data tr.fila-total td { background: var(--surface-3); font-weight: 700; color: var(--ink); }
table.data tr.inactivo td { opacity: .62; }
table.data td.ent { color: var(--ok-ink); font-weight: 800; }
table.data td.sal { color: var(--danger); font-weight: 800; }
table.data th.ent { color: var(--ok-ink); }
table.data th.sal { color: var(--danger); }
.tbl-sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.u { color: var(--muted); font-weight: 500; }

/* Estados vacíos / avisos */
.empty-state { text-align: center; padding: 44px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state .ic { font-size: 28px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); }
.empty-state b { color: var(--ink-2); font-size: 15px; }
.empty-state span { font-size: 13.5px; max-width: 380px; }
.callout { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--caramelo); border-radius: 12px; padding: 13px 16px; margin-bottom: 20px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; max-width: 980px; box-shadow: var(--sh-1); }
.callout > .ic { font-size: 18px; line-height: 1.3; flex: none; }
.callout.info { border-left-color: var(--acento); }
.form-msg { margin-top: 12px; font-weight: 700; min-height: 20px; }
.form-msg:not(:empty) { animation: ag-in var(--d-2) var(--ease); }
.form-msg.r { text-align: right; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; min-height: 24px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; white-space: nowrap; font-family: inherit; line-height: 1.2; }
.badge.ok { background: var(--ok-050); color: var(--ok-ink); }
.badge.warn { background: var(--warn-050); color: var(--warn-ink); }
.badge.danger { background: var(--danger-050); color: var(--danger-ink); }
.badge.info { background: var(--info-050); color: var(--info-ink); }
.badge.gray { background: var(--surface-3); color: var(--muted); }
.badge.lg { font-size: 13px; padding: 5px 12px; }
button.badge { border: 0; cursor: pointer; min-height: 32px; padding: 0 12px; transition: transform var(--d-1) var(--ease), box-shadow var(--d-2) var(--ease); }
button.badge:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
button.badge:active { transform: scale(.96); }

/* Barra de nivel */
.bar { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; width: 110px; display: inline-block; vertical-align: middle; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--ok); transform-origin: left; animation: ag-bar var(--d-3) var(--ease) both; }
@keyframes ag-bar { from { transform: scaleX(0); } to { transform: none; } }
.bar.low > i { background: var(--warn); }
.bar.crit > i { background: var(--danger); }
.bar.full { width: 100%; }
.bar.cafe > i { background: var(--caramelo); }

/* Formularios */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld + .fld, .fld.mb { margin-bottom: 12px; }
.form-2 .fld { margin-bottom: 0; }
.fld label, .lbl-sm { font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.fld input, .fld select, .inp {
  height: 46px; border: 1.5px solid var(--line-2); border-radius: 11px; padding: 0 13px; font-size: 14px; font-family: inherit;
  color: var(--ink); background: #fff; outline: none; min-width: 0;
  transition: border-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
}
.inp { height: 42px; }
.fld textarea {
  border: 1.5px solid var(--line-2); border-radius: 11px; padding: 10px 13px; font-size: 14px; font-family: inherit; line-height: 1.4;
  color: var(--ink); background: #fff; outline: none; min-width: 0; resize: vertical;
  transition: border-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
}
.fld textarea::placeholder { color: #8E7E72; }
.fld textarea:hover { border-color: var(--muted); }
.fld textarea:focus { border-color: var(--caramelo); box-shadow: var(--ring); }
.inp.sm { height: 40px; padding: 0 10px; border-radius: 9px; }
.inp.r { text-align: right; font-variant-numeric: tabular-nums; }
.fld input::placeholder, .inp::placeholder { color: #8E7E72; }
.fld input:hover, .fld select:hover, .inp:hover { border-color: var(--muted); }
.fld input:focus, .fld select:focus, .inp:focus { border-color: var(--caramelo); box-shadow: var(--ring); }
.fld input[aria-invalid="true"], .inp[aria-invalid="true"] { border-color: var(--danger); }
.fld .help, .help { font-size: 12.5px; color: var(--muted); }
.fld .err { font-size: 12.5px; color: var(--danger); font-weight: 600; }
.fld.big input { height: 56px; font-size: 22px; font-weight: 800; text-align: right; color: var(--espresso); font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); cursor: pointer; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--caramelo); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }

/* Rejillas utilitarias */
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.grid-2 > .panel { margin: 0; }
.grid-2.w { max-width: 980px; }
.grid-fichas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.toolbar-row { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar-row .sp { flex: 1; }
.toolbar-row form { display: flex; align-items: center; gap: 10px; margin: 0; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cuadre-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.cuadre-row span:last-child { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.cuadre-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line-2); padding-top: 12px; margin: 4px 0 18px; }
.cuadre-total b:first-child { font-size: 15px; }
.cuadre-total b:last-child { font-size: 22px; color: var(--espresso); font-variant-numeric: tabular-nums; }
.difbox { display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); border-radius: 13px; padding: 14px 18px; margin-bottom: 16px; transition: background-color var(--d-2) var(--ease); }
.difbox > span { font-weight: 700; color: var(--ink-2); }
.difbox b { font-size: 24px; font-variant-numeric: tabular-nums; }
.total-line { font-size: 14px; color: var(--muted); font-weight: 700; }
.total-line span { font-size: 22px; color: var(--espresso); font-weight: 800; font-variant-numeric: tabular-nums; margin-left: 6px; }

/* Receta: ficha */
.ficha { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--sh-1); transition: box-shadow var(--d-2) var(--ease), transform var(--d-2) var(--ease); }
.ficha:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.ficha-h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ficha-h b { font-size: 16px; font-weight: 750; color: var(--ink); }
.ficha-h .abtn { margin-left: auto; }
.ficha-h .meta { font-size: 13px; color: var(--muted); margin-left: auto; }
.ficha .ficha-sub { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.ficha ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ficha li { display: flex; align-items: center; gap: 8px 10px; font-size: 14px; padding: 8px 12px; background: var(--surface-2); border-radius: 10px; flex-wrap: wrap; }
.ficha li .ing { font-weight: 600; color: var(--ink); flex: 1; }
.ficha li .q { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 20px; }

/* Gráfico de barras de Reportes */
.chart-h { display: flex; align-items: flex-end; gap: 6px; height: 200px; }
.chart-h .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.chart-h .col i { display: block; width: 100%; border-radius: 6px 6px 0 0; background: var(--caramelo); min-height: 3px; transform-origin: bottom; animation: ag-col var(--d-3) var(--ease) both; }
.chart-h .col i.cero { background: var(--surface-3); }
.chart-h .col:hover i:not(.cero) { background: var(--caramelo-600); }
.chart-h .v { font-size: 10px; font-weight: 700; color: var(--espresso); font-variant-numeric: tabular-nums; }
.chart-h .h { font-size: 10px; color: var(--muted); }
@keyframes ag-col { from { transform: scaleY(0); } to { transform: none; } }

/* Menú en celular/tablet vertical: cajón lateral */
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side {
    position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); height: 100dvh;
    transform: translateX(-102%); visibility: hidden; box-shadow: var(--sh-3);
    transition: transform var(--d-3) var(--ease), visibility 0s linear var(--d-3);
  }
  body.menu-on .adm-side { transform: none; visibility: visible; transition: transform var(--d-3) var(--ease), visibility 0s; }
  .adm-scrim { display: block; position: fixed; inset: 0; z-index: calc(var(--z-drawer) - 1); background: rgba(34,22,15,.45); opacity: 0; pointer-events: none; transition: opacity var(--d-2) var(--ease); }
  body.menu-on .adm-scrim { opacity: 1; pointer-events: auto; }
  body.menu-on { overflow: hidden; }
  .adm-burger {
    display: grid; place-items: center; width: 44px; height: 44px; margin-left: -8px; flex: none;
    border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; font-size: 22px;
  }
  .adm-burger:hover { background: var(--surface-3); }
  .adm-top { padding: 10px 20px; min-height: 64px; flex-wrap: wrap; }
  .adm-top h1 { font-size: var(--t-lg); }
  .adm-body { padding: 20px 20px 40px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .adm-top, .adm-body { padding-left: 16px; padding-right: 16px; }
  .adm-top { gap: 10px; }
  .adm-top h1 { font-size: var(--t-md); flex: 1; min-width: 0; }
  .adm-top .sp { display: none; }
  .adm-top .abtn { min-height: 40px; padding: 0 12px; font-size: 13px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .val { font-size: var(--t-lg); }
  .kpi .lbl { font-size: 11px; }
  .panel-h { padding: 14px 16px; }
  table.data th, table.data td { padding: 10px 14px; }
  .chart-h { gap: 3px; }
  .chart-h .v { display: none; }
  .form-2 { grid-template-columns: 1fr; }
}

/* Chip de estado de caja en el POS */
.caja-chip { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; min-height: 42px; padding: 0 14px; border-radius: 11px; text-decoration: none; font-family: inherit; flex: none; white-space: nowrap; transition: background-color var(--d-2) var(--ease), transform var(--d-1) var(--ease); }
.caja-chip:active { transform: scale(.97); }
.caja-chip.open { background: rgba(46,125,79,.22); color: #A9E2BE; }
.caja-chip.open:hover { background: rgba(46,125,79,.34); }
.caja-chip.closed { background: rgba(180,35,24,.26); color: #FFC2BC; }
.caja-chip.closed:hover { background: rgba(180,35,24,.4); }

/* ═══════════════════════════════════════════════════════════════════════
   KDS · Tablero de cocina (pantalla oscura, lectura a distancia)
   ═══════════════════════════════════════════════════════════════════════ */
body.kds-body { background: #17100C; }
.kds { height: 100vh; height: 100dvh; display: flex; flex-direction: column; color: var(--on-dark); }
.kds-top { min-height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--espresso); box-shadow: 0 2px 14px rgba(0,0,0,.4); overflow-x: auto; scrollbar-width: none; flex: none; }
.kds-top::-webkit-scrollbar { display: none; }
.kds-top .brand b { font-size: 20px; }
.kds-top .k-tag { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-3); font-weight: 700; white-space: nowrap; }
.kds-top .sp { flex: 1; }
.kds-top .k-clock { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 18px; white-space: nowrap; }
.kds-link { color: var(--on-dark-2); text-decoration: none; font-weight: 600; font-size: 13px; min-height: 40px; padding: 0 11px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; transition: background-color var(--d-2) var(--ease); }
.kds-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.kds-user { color: var(--on-dark-2); font-weight: 600; font-size: 13px; white-space: nowrap; }
.kds-estado { font-size: 12px; font-weight: 700; color: #FFC2BC; background: rgba(180,35,24,.25); padding: 6px 10px; border-radius: 99px; white-space: nowrap; }
.kds-estado[hidden] { display: none; }
.kds-cols { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(255,255,255,.06); overflow: hidden; min-height: 0; }
.kds-col { background: #17100C; display: flex; flex-direction: column; min-height: 0; }
.kds-col .col-h { padding: 12px 16px; font-weight: 800; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; display: flex; align-items: center; gap: 9px; border-bottom: 2px solid; }
.kds-col.pend .col-h { color: #F2C46D; border-color: #6B4F1E; }
.kds-col.prep .col-h { color: #F0B27A; border-color: #6E3F1C; }
.kds-col.listo .col-h { color: #8FD6A8; border-color: #1F5A3A; }
.col-h .n { margin-left: auto; background: rgba(255,255,255,.1); padding: 2px 10px; border-radius: 99px; font-size: 13px; font-variant-numeric: tabular-nums; }
.kds-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.kds-list:empty::before, .kds-list:empty::after { content: ""; display: block; height: 118px; border-radius: 14px; background: #241A14; }
.kcard { background: #261B15; border-radius: 14px; padding: 13px 14px; border-left: 5px solid #4A3528; animation: ag-in var(--d-3) var(--ease) both; }
.kcard.urgente { border-left-color: #E5493C; background: #33201B; box-shadow: inset 0 0 0 1.5px rgba(229,73,60,.45); }
.kcard .kc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.kcard .mesa { background: var(--caramelo); color: #fff; font-weight: 800; font-size: 12.5px; padding: 3px 11px; border-radius: 8px; }
.kcard .num { color: var(--on-dark-3); font-size: 12px; font-weight: 600; }
.kcard .t { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; color: var(--on-dark-2); white-space: nowrap; }
.kcard .t.warn { color: #F2C46D; } .kcard .t.bad { color: #FF9C93; }
.kcard .prod { font-size: 18px; font-weight: 750; line-height: 1.25; }
.kcard .prod .q { color: var(--caramelo-claro); }
.kcard .nota { margin-top: 6px; font-size: 13px; color: #F2C46D; font-weight: 600; background: rgba(242,196,109,.1); padding: 4px 9px; border-radius: 7px; display: inline-block; }
.kcard .kbtn { margin-top: 11px; width: 100%; border: 0; border-radius: 12px; min-height: 52px; font-weight: 800; font-size: 15px; cursor: pointer; color: #fff; font-family: inherit; transition: transform var(--d-1) var(--ease), background-color var(--d-2) var(--ease), opacity var(--d-2) var(--ease); }
.kcard .kbtn:active { transform: scale(.98); }
.kcard .kbtn[disabled] { opacity: .6; cursor: progress; }
.kcard .kbtn.start { background: var(--caramelo); } .kcard .kbtn.start:hover { background: var(--caramelo-600); }
.kcard .kbtn.ready { background: var(--ok); } .kcard .kbtn.ready:hover { background: var(--ok-ink); }
.kcard .waiting { margin-top: 10px; text-align: center; font-size: 13px; color: #8FD6A8; font-weight: 700; }
.kds-empty { color: var(--on-dark-3); text-align: center; padding: 40px 10px; font-size: 14px; }
@media (max-width: 760px) {
  .kds-cols { grid-template-columns: repeat(3, 86vw); overflow-x: auto; scroll-snap-type: x mandatory; }
  .kds-col { scroll-snap-align: start; }
  .kds-link .lbl, .kds-user, .kds-top .k-tag { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SALÓN · Mapa de mesas
   ═══════════════════════════════════════════════════════════════════════ */
body.salon-body { background: var(--bg); }
.salon { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.salon-top { min-height: var(--topbar-h); background: var(--espresso); background-image: linear-gradient(100deg, var(--espresso), var(--espresso-3)); color: var(--on-dark); display: flex; align-items: center; gap: 10px; padding: 0 20px; box-shadow: 0 2px 16px rgba(43,26,18,.2); position: sticky; top: 0; z-index: var(--z-sticky); overflow-x: auto; scrollbar-width: none; }
.salon-top::-webkit-scrollbar { display: none; }
.salon-top .spacer { flex: 1; }
.salon-top .nav-link { color: var(--on-dark-2); text-decoration: none; font-weight: 600; font-size: 13.5px; background: rgba(255,255,255,.07); min-height: 42px; padding: 0 14px; border-radius: 11px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; flex: none; transition: background-color var(--d-2) var(--ease), transform var(--d-1) var(--ease); }
.salon-top .nav-link:hover { background: rgba(255,255,255,.14); color: #fff; }
.salon-top .nav-link:active { transform: scale(.97); }
.salon-top .nav-link.prim { background: var(--caramelo); color: #fff; }
.salon-stat { font-size: 13px; color: var(--on-dark-2); font-weight: 600; white-space: nowrap; background: rgba(255,255,255,.07); padding: 6px 12px; border-radius: 99px; font-variant-numeric: tabular-nums; flex: none; }
.salon-stat b { color: #fff; }
.salon-user { font-size: 13px; color: var(--on-dark-2); font-weight: 600; white-space: nowrap; }
.salon-body2 { flex: 1; padding: 24px 28px 40px; max-width: 1480px; width: 100%; }
.salon-leyenda { display: flex; gap: 18px; margin-bottom: 20px; font-size: 13px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.salon-leyenda span { display: flex; align-items: center; gap: 7px; }
.lg-dot { width: 13px; height: 13px; border-radius: 5px; }

.zona-block { margin-bottom: 28px; animation: ag-in var(--d-3) var(--ease) both; }
.zona-block:nth-child(3) { animation-delay: 50ms; }
.zona-block:nth-child(n+4) { animation-delay: 100ms; }
.zona-title { font-family: var(--font-display); font-size: var(--t-md); font-weight: 700; color: var(--ink); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.zona-title .cnt { font-family: var(--font); font-size: 12px; color: var(--muted); font-weight: 600; background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 99px; }

/* ─── Mesas dibujadas (vista desde arriba): tablero + sillas ─────────────
   .mesa-fig  = toda la mesa es el botón (tap abre/entra a la mesa)
   .mf        = cuadro de la figura (sillas en % del cuadro)
   .tablero   = tapa de la mesa, lleva el color del estado
   Formas: redonda (1–2) · cuadrada (3–4) · rect (5–6) · larga (7+) · barra */
.mesa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-flow: dense; gap: 14px 12px; align-items: end; }
.mesa-fig { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 96px; min-width: 96px; padding: 6px 4px 4px; border-radius: var(--r); text-decoration: none; color: inherit; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; transition: background-color var(--d-2) var(--ease); }
.mesa-fig:hover { background: rgba(43,26,18,.035); }
.mesa-fig:active { background: rgba(43,26,18,.06); }
.mesa-fig:hover .tablero { transform: translateY(-2px); }
.mesa-fig:active .tablero { transform: scale(.96); }
.mesa-fig.larga { grid-column: span 2; }

.mf { position: relative; width: 100%; aspect-ratio: 1 / 1; display: block; }
.mesa-fig.rect .mf { aspect-ratio: 4 / 3; }
.mesa-fig.larga .mf { aspect-ratio: 2 / 1; }

.tablero { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; padding: 4px; background: var(--surface); border: 2.5px solid var(--line-2); box-shadow: 0 4px 12px rgba(43,26,18,.10); transition: transform var(--d-2) var(--ease), border-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease); }
.mesa-fig.redonda  .tablero { left: 18%; top: 18%; width: 64%; height: 64%; border-radius: 50%; }
.mesa-fig.cuadrada .tablero { left: 20%; top: 20%; width: 60%; height: 60%; border-radius: 16%; }
.mesa-fig.rect     .tablero { left: 10%; top: 22%; width: 80%; height: 56%; border-radius: 14px; }
.mesa-fig.larga    .tablero { left: 7%;  top: 22%; width: 86%; height: 56%; border-radius: 14px; }
.mesa-fig.barra    .tablero { left: 0;   top: 14%; width: 100%; height: 40%; border-radius: 10px; }

.silla { position: absolute; display: block; width: 24%; height: 11%; transform: translate(-50%, -50%); background: var(--crema-2); border: 1.5px solid var(--line-2); box-sizing: border-box; }
.silla.arr { border-radius: 40% 40% 22% 22% / 60% 60% 30% 30%; }
.silla.aba { border-radius: 22% 22% 40% 40% / 30% 30% 60% 60%; }
.silla.izq, .silla.der { width: 11%; height: 24%; }
.silla.izq { border-radius: 40% 22% 22% 40% / 60% 30% 30% 60%; }
.silla.der { border-radius: 22% 40% 40% 22% / 30% 60% 60% 30%; }
.mesa-fig.rect .silla { width: 15%; height: 13%; }
.mesa-fig.larga .silla { width: 9%; height: 14%; }
.silla.tab { width: 20%; height: 20%; border-radius: 50%; box-shadow: inset 0 0 0 3px #fff; }
.mesa-fig.barra .tablero::after { content: ""; position: absolute; left: 3%; right: 3%; bottom: -6px; height: 4px; border-radius: 4px; background: var(--line-2); }

.mf-name { font-size: 14px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.mf-cap { font-size: 12px; font-weight: 600; opacity: .8; line-height: 1.1; }
.mf-estado { font-size: 11.5px; font-weight: 750; line-height: 1.1; }
.mf-total { font-size: 17px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mf-total small { font-size: 11px; opacity: .75; font-weight: 700; }
.mf-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 18px; font-size: 12.5px; font-weight: 650; }
.mf-sub { font-size: 12px; color: var(--muted); font-weight: 600; }
.mf-add { font-size: 13px; color: var(--caramelo-600); font-weight: 750; }
.mf-time { position: absolute; top: 4px; right: 6px; z-index: 2; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--espresso-3); padding: 3px 8px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.mesa-fig .pill-pend { display: inline-flex; align-items: center; gap: 5px; background: var(--warn-050); color: var(--warn-ink); font-size: 11.5px; font-weight: 750; padding: 3px 9px; border-radius: 99px; width: max-content; }

.mesa-fig.libre .tablero { background: var(--surface); border-color: var(--ok); color: var(--ink-2); }
.mesa-fig.libre .mf-estado { color: var(--ok-ink); }
.mesa-fig.libre:hover .tablero { box-shadow: 0 0 0 4px rgba(46,125,79,.16), 0 6px 14px rgba(43,26,18,.12); }

.mesa-fig.ocupada .tablero { background: linear-gradient(145deg, var(--espresso), var(--espresso-3)); border-color: var(--caramelo); color: #fff; box-shadow: 0 8px 20px rgba(43,26,18,.28); }
.mesa-fig.ocupada .silla { background: #C9A88B; border-color: #A9805F; }
.mesa-fig.ocupada .tablero::after { background: #C9A88B; }

.mesa-fig.reservada .tablero { background: #FFF6EA; border-color: #E9BE84; color: var(--warn-ink); }
.mesa-fig.reservada .mf-estado { color: var(--warn-ink); }
.mesa-fig.reservada .silla { background: #F4DDBC; border-color: #E2B57A; }
.mesa-fig.reservada .tablero::after { background: #E9BE84; }

@media (max-width: 1100px) {
  .salon-top .nav-link .lbl, .salon-user { display: none; }
  .salon-top .nav-link { padding: 0 12px; }
}
@media (max-width: 760px) {
  .salon-top { padding: 0 12px; gap: 8px; }
  .salon-top .brand .word { display: none; }
}
@media (max-width: 560px) {
  .salon-body2 { padding: 16px 16px 32px; }
  .mesa-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px 10px; }
  .mesa-fig.larga { grid-column: span 2; }
  .mf-name { font-size: 13px; }
  .mf-total { font-size: 15px; }
}

/* ─── Ticket en modo MESA (servicio en salón) ─────────────────────────── */
.mesa-ticket .t-salon { margin-left: auto; width: var(--tap-min); height: var(--tap-min); border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 19px; text-decoration: none; flex: none; transition: background-color var(--d-2) var(--ease); }
.mesa-ticket .t-salon:hover { background: var(--surface-3); }
.mesa-scroll { flex: 1; overflow-y: auto; padding: 10px 12px; min-height: 0; }

.ronda-h { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--caramelo-600); margin: 4px 2px 8px; }
.ronda-send { width: 100%; min-height: 52px; margin: 10px 0 18px; white-space: normal; text-align: center; line-height: 1.25; font-size: 14px; padding: 6px 14px; }

.comanda-hh { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 2px 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.comanda-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 16px; line-height: 1.5; }

.citem { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; margin-bottom: 8px; background: var(--surface-2); border-left: 4px solid var(--line-2); animation: ag-in var(--d-2) var(--ease) both; }
.citem .ci-main { flex: 1; min-width: 0; }
.citem .ci-main b { font-size: 14px; font-weight: 700; color: var(--ink); display: block; }
.citem .ci-nota { font-size: 12px; color: var(--cafe); font-weight: 600; }
.citem .ci-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.citem .ci-amt { font-weight: 800; font-size: 14px; color: var(--espresso); font-variant-numeric: tabular-nums; }
.citem .ci-est { font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.citem.e-pend { border-left-color: var(--warn); } .citem.e-pend .ci-est { color: var(--warn-ink); }
.citem.e-prep { border-left-color: var(--caramelo); } .citem.e-prep .ci-est { color: var(--caramelo-600); }
.citem.e-listo { border-left-color: var(--ok); } .citem.e-listo .ci-est { color: var(--ok-ink); }
.citem.e-entre { border-left-color: var(--line-2); opacity: .75; } .citem.e-entre .ci-est { color: var(--muted); }
.btn-entregar { margin-top: 2px; border: 0; background: var(--ok); color: #fff; font-weight: 700; font-size: 13px; min-height: var(--tap-min); padding: 0 14px; border-radius: 11px; cursor: pointer; font-family: inherit; transition: background-color var(--d-2) var(--ease), transform var(--d-1) var(--ease); }
.btn-entregar:hover { background: var(--ok-ink); }
.btn-entregar:active { transform: scale(.97); }

/* ═══ Perfiles: usuario en el menú, aviso de acceso, inicio y usuarios ═══ */
.adm-user { display: flex; align-items: center; gap: 10px; padding: 12px 6px 4px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 8px; }
.adm-user .av { width: 34px; height: 34px; border-radius: 10px; background: var(--caramelo); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.adm-user div { flex: 1; min-width: 0; }
.adm-user b { display: block; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-user small { font-size: 11px; color: var(--on-dark-3); font-weight: 600; }
.adm-user form { margin: 0; }
.adm-user button { background: rgba(255,255,255,.08); border: 0; color: var(--on-dark-2); cursor: pointer; font-family: inherit; font-weight: 600; font-size: 12.5px; min-height: 38px; padding: 0 12px; border-radius: 10px; transition: background-color var(--d-2) var(--ease); }
.adm-user button:hover { background: rgba(255,255,255,.16); color: #fff; }

.aviso-acceso { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: var(--z-alert); max-width: min(520px, calc(100vw - 32px));
  background: var(--espresso); color: var(--on-dark); border: 1px solid rgba(255,255,255,.08); border-left: 4px solid #E5493C; border-radius: 14px; padding: 13px 14px 13px 18px; font: 600 14px/1.45 var(--font);
  box-shadow: 0 12px 30px rgba(0,0,0,.35); display: flex; gap: 10px; align-items: flex-start; animation: ag-toast-top var(--d-3) var(--ease); }
@keyframes ag-toast-top { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.aviso-acceso b { color: #fff; }
.aviso-acceso button { margin-left: 6px; background: transparent; border: 0; color: var(--on-dark-2); font-size: 16px; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; flex: none; }
.aviso-acceso button:hover { background: rgba(255,255,255,.1); }

.btn-salir { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); border: 0; color: var(--on-dark-2); cursor: pointer; font-family: inherit; font-weight: 600; font-size: 13px; min-height: 40px; padding: 0 12px; border-radius: 10px; text-decoration: none; white-space: nowrap; transition: background-color var(--d-2) var(--ease); }
.btn-salir:hover { background: rgba(255,255,255,.16); color: #fff; }
.form-salir { margin: 0; display: inline-flex; flex: none; }

.inicio-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.inicio-mod { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-decoration: none; color: var(--ink); box-shadow: var(--sh-1); transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease), border-color var(--d-2) var(--ease); }
.inicio-mod:hover { border-color: var(--caramelo-100); box-shadow: var(--sh-2); transform: translateY(-2px); }
.inicio-mod:active { transform: scale(.98); }
.inicio-mod .ic { font-size: 22px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--cafe-050); margin-bottom: 4px; }
.inicio-mod b { font-size: 15.5px; font-weight: 700; }
.inicio-mod span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.inicio-sec { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin: 28px 0 12px; }
table.data .badge, table.data .abtn { white-space: nowrap; }
@media (max-width: 560px) {
  .inicio-mods { grid-template-columns: 1fr 1fr; gap: 10px; }
  .inicio-mod { padding: 14px; }
  .inicio-mod span { display: none; }
}

/* ═══ Pantallas sueltas: ingreso, sin acceso, error ═══════════════════ */
body.solo { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; color: var(--on-dark);
  background: radial-gradient(1100px 620px at 50% -10%, #5A3A28 0%, var(--espresso) 58%, #1B110C 100%); }
.solo-box { width: 100%; max-width: 460px; text-align: center; animation: ag-pop var(--d-3) var(--ease); }
.solo-box .ic { font-size: 38px; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: rgba(255,255,255,.07); }
.solo-box h1 { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 700; margin: 0 0 10px; letter-spacing: -.01em; line-height: 1.2; }
.solo-box p { color: var(--on-dark-2); font-size: 15px; line-height: 1.6; margin: 0 0 24px; }
.solo-box .u { color: var(--caramelo-claro); font-weight: 700; }
.solo-box code { font-size: 12px; color: var(--on-dark-3); background: rgba(255,255,255,.06); padding: 3px 8px; border-radius: 6px; word-break: break-all; }
.solo-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.solo-btns form { margin: 0; }
.solo .abtn { min-height: 48px; padding: 0 20px; }
.solo .abtn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.14); }
.solo .abtn-ghost:hover { background: rgba(255,255,255,.14); }
.solo .brand { justify-content: center; margin-bottom: 26px; }
.solo .brand .gear { width: 46px; height: 46px; }
.solo .brand .word b { font-size: 30px; }
.solo .brand .word small { font-size: 10px; }

/* Ingreso por PIN */
.login-card { width: 100%; max-width: 360px; text-align: center; animation: ag-pop var(--d-3) var(--ease); }
.login-card .ttl { font-size: 15px; color: var(--on-dark-2); font-weight: 600; margin-bottom: 18px; }
.dots { display: flex; gap: 14px; justify-content: center; margin-bottom: 10px; min-height: 22px; }
.dot { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.14); transition: transform var(--d-1) var(--ease), background-color var(--d-1) var(--ease); }
.dot.on { background: var(--caramelo-claro); transform: scale(1.1); }
.login-err { color: #FFB4AC; font-weight: 700; font-size: 13.5px; min-height: 20px; margin-bottom: 12px; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.key { appearance: none; border: 0; cursor: pointer; background: rgba(255,255,255,.08); color: #fff; font-size: 26px; font-weight: 700; height: 72px; border-radius: 18px; font-family: inherit; font-variant-numeric: tabular-nums; transition: transform var(--d-1) var(--ease), background-color var(--d-1) var(--ease); }
.key:hover { background: rgba(255,255,255,.13); }
.key:active { background: rgba(255,255,255,.2); transform: scale(.96); }
.key.ok { background: var(--caramelo); box-shadow: 0 8px 22px rgba(168,87,31,.45); }
.key.ok:hover { background: var(--caramelo-600); }
.key.clear { color: #FFB4AC; font-size: 16px; font-weight: 650; }
.login-hint { margin-top: 22px; font-size: 12px; color: var(--on-dark-3); line-height: 1.8; }
.login-hint b { color: var(--on-dark-2); }
.login-hint kbd { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: var(--on-dark-2); }
.shake { animation: shk .35s; }
@keyframes shk { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* ═══ Tablero de gestión (/Tablero) ═══════════════════════════════════ */
.tb-filtros { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0; }
.tb-f { display: flex; flex-direction: column; gap: 3px; }
.tb-f span { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tb-f input, .tb-f select { height: 40px; border: 1.5px solid var(--line-2); border-radius: 11px; padding: 0 10px; font-family: inherit; font-size: 14px; color: var(--ink); background: #fff; max-width: 220px; transition: border-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease); }
.tb-f input:focus, .tb-f select:focus { outline: none; border-color: var(--caramelo); box-shadow: var(--ring); }
.tb-rapidos, .tb-seg { display: inline-flex; background: var(--surface-3); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.tb-rapidos button, .tb-seg button { border: 0; background: transparent; font-family: inherit; font-weight: 650; font-size: 13px; color: var(--ink-2); min-height: 34px; padding: 0 12px; border-radius: 9px; cursor: pointer; transition: background-color var(--d-2) var(--ease), color var(--d-2) var(--ease); }
.tb-rapidos button:hover:not(.on), .tb-seg button:hover:not(.on) { background: rgba(255,255,255,.8); }
.tb-rapidos button.on, .tb-seg button.on { background: var(--espresso); color: #fff; }
.tb-meta { font-size: 13.5px; color: var(--muted); margin: -8px 0 18px; min-height: 20px; }
.tb-meta b { color: var(--ink); }
.tb-meta.err { color: var(--danger); font-weight: 600; }
.tb-gen { font-size: 12px; }
.tb-kpis { margin-bottom: 18px; }
.tb-kpis .kpi { position: relative; }
.tb-kpis .kpi .val { font-size: 26px; }
.tb-kpis .kpi.tb-total { background: var(--espresso); border-color: var(--espresso); color: var(--on-dark); }
.tb-kpis .kpi.tb-total .lbl, .tb-kpis .kpi.tb-total .tb-sub, .tb-kpis .kpi.tb-total .val small { color: var(--on-dark-3); }
.tb-kpis .kpi.tb-total .val { color: #fff; }
.tb-kpis .kpi.tb-total .tb-linea { stroke: var(--caramelo-claro); }
.tb-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.tb-spark { height: 34px; margin-top: 8px; }
.tb-spark svg { width: 100%; height: 100%; display: block; }
.tb-linea { fill: none; stroke: var(--caramelo); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.tb-grid { display: grid; gap: 22px; align-items: start; margin-top: 8px; }
.tb-grid .panel { margin: 0; }
.tb-g2 { grid-template-columns: 1.5fr 1fr; }
.tb-g3 { grid-template-columns: repeat(3, 1fr); margin: 22px 0; }
.tb-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 0; }
.tb-chip { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.tb-chip b { color: var(--espresso); }
.tb-chart { padding: 12px 16px 10px; }
.tb-chart:empty { min-height: 220px; margin: 12px 16px 10px; padding: 0; border-radius: 10px; }
.tb-chart svg { display: block; max-width: 100%; animation: ag-fade var(--d-3) var(--ease); }
.tb-barra { fill: var(--caramelo); }
.tb-eje { stroke: var(--line-2); stroke-width: 1; }
.tb-x { font-size: 10px; fill: var(--muted); text-anchor: middle; font-family: var(--font); }
.tb-val { font-size: 11px; font-weight: 700; fill: var(--ink); text-anchor: middle; font-family: var(--font); }
.tb-hit { fill: transparent; cursor: default; }
.tb-hit:hover { fill: rgba(168,87,31,.08); }
.tb-vacio { text-align: center; color: var(--muted); padding: 36px 12px; font-size: 14px; }
.tb-list { padding: 6px 0; }
.tb-list:empty { min-height: 150px; margin: 12px 20px; padding: 0; border-radius: 10px; }
.tb-row { padding: 10px 20px; border-bottom: 1px solid var(--line); animation: ag-in var(--d-2) var(--ease) both; }
.tb-row:last-child { border-bottom: 0; }
.tb-row-h { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.tb-row-h .nm { font-weight: 700; color: var(--ink); }
.tb-row-h .n { color: var(--muted); font-size: 12.5px; }
.tb-row-h b { margin-left: auto; color: var(--espresso); white-space: nowrap; }
.tb-row-b { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.tb-row-b .bar { flex: 1; width: auto; }
.tb-row-b .bar > i { background: var(--caramelo); }
.tb-row-b span { font-size: 12.5px; color: var(--ink-2); font-weight: 700; min-width: 46px; text-align: right; }
.tb-stats { display: flex; flex-direction: column; }
.tb-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.tb-stats > div:last-child { border-bottom: 0; }
.tb-stats span { font-size: 12px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.tb-stats b { font-size: 22px; font-weight: 800; color: var(--espresso); font-variant-numeric: tabular-nums; }
.tb-stats small { font-size: 12px; color: var(--muted); }
.tb-nd { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 18px; }
.tb-nd span { background: var(--surface-3); color: var(--muted); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; }
.tb-tip { position: fixed; z-index: var(--z-tip); pointer-events: none; opacity: 0; background: var(--espresso); color: #fff; font-size: 12.5px; line-height: 1.45; padding: 8px 11px; border-radius: 10px; box-shadow: var(--shadow); transition: opacity var(--d-1) var(--ease); }
.tb-tip.on { opacity: 1; }
.tb-tip b { color: #fff; }
/* Mientras carga: valores atenuados (sin saltos de tamaño) */
.tb-cargando .tb-kpis .val, .tb-cargando .tb-list, .tb-cargando .tb-chart svg, .tb-cargando .tb-stats b { opacity: .45; transition: opacity var(--d-2) var(--ease); }
@media (max-width: 1100px) { .tb-g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .tb-g2, .tb-g3 { grid-template-columns: 1fr; }
  .adm-top:has(.tb-filtros) .sp { display: none; }
  .tb-filtros { width: 100%; }
}
@media (max-width: 560px) {
  .tb-f { flex: 1 1 40%; }
  .tb-f input, .tb-f select { max-width: none; width: 100%; }
  .tb-rapidos { width: 100%; }
  .tb-rapidos button { flex: 1; }
  .tb-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tb-kpis .kpi { padding: 14px; }
  .tb-kpis .kpi .val { font-size: 21px; }
}

/* Esqueletos de carga: contenedores que el JS llena (vacíos = cargando) */
.tb-chart:empty, .tb-list:empty { position: relative; overflow: hidden; background: var(--surface-3); }
.tb-chart:empty::after, .tb-list:empty::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: ag-shimmer 1.3s linear infinite; }
.kds-list:empty { position: relative; }
.kds-list:empty::before { box-shadow: 0 128px 0 #241A14; }
.kds-list:empty::after { position: absolute; inset: 0; height: auto; border-radius: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent); animation: ag-shimmer 1.4s linear infinite; }

/* ═══ Íconos de línea (sprite /img/iconos.svg · Services/Ico.cs) ═════════
   Trazo 1.75 px, sin relleno, color heredado del texto (currentColor).
   Dentro de un cuadro (.ic, .t-ico, .thumb, .big, riel) el tamaño lo da el font-size del contenedor. */
.icl { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ic > .icl, .t-ico > .icl, .thumb > .icl, .big > .icl, .rail .cat .ico > .icl, .t-salon > .icl, .pi > .icl, .seg .i > .icl { width: 1em; height: 1em; vertical-align: 0; display: block; }
.dot-estado { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; vertical-align: .1em; margin-right: 8px; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.dot-estado.ok { color: var(--ok); }
.caja-chip .dot-estado { margin-right: 0; width: 8px; height: 8px; }

/* Menú lateral: ícono en el color del texto del menú; el activo en blanco */
.adm-nav a .icl { width: 19px; height: 19px; color: var(--on-dark-3); transition: color var(--d-2) var(--ease); }
.adm-nav a:hover .icl { color: var(--on-dark); }
.adm-nav a.on .icl { color: #fff; }
.adm-user button { display: inline-flex; align-items: center; gap: 6px; }
.adm-user button .icl, .btn-salir .icl { width: 16px; height: 16px; }
.adm-burger .icl { width: 22px; height: 22px; vertical-align: middle; }

/* Inicio: cuadro crema tenue con el ícono en caramelo oscuro */
.inicio-mod .ic { font-size: 22px; color: var(--caramelo-600); background: var(--caramelo-050); border: 1px solid var(--caramelo-100); transition: background-color var(--d-2) var(--ease), color var(--d-2) var(--ease); }
.inicio-mod:hover .ic { background: var(--caramelo-100); color: var(--espresso); }

/* Estados vacíos, notas y pantallas sueltas */
.empty-state .ic { font-size: 26px; color: var(--cafe); }
.callout > .ic { font-size: 19px; color: var(--caramelo-600); line-height: 1; padding-top: 1px; }
.callout.info > .ic { color: var(--acento); }
.solo-box .ic { font-size: 36px; color: var(--caramelo-claro); }
.panel-h h2 { display: inline-flex; align-items: center; gap: 8px; }
.panel-h h2 > .icl { color: var(--caramelo-600); width: 18px; height: 18px; }
.kpi .lbl .icl { width: 14px; height: 14px; margin-right: 3px; vertical-align: -.15em; color: var(--caramelo-600); }
.tb-chip .icl { width: 14px; height: 14px; margin-right: 2px; color: var(--caramelo-600); }
.badge .icl { width: 13px; height: 13px; }
.abtn-sm .icl { width: 15px; height: 15px; }
table.data td > .icl { color: var(--muted); margin-right: 4px; width: 16px; height: 16px; }

/* POS: barra superior, riel, tarjetas y comanda */
.seg .i { display: grid; place-items: center; }
.top-link .icl { width: 18px; height: 18px; }
.top-icon .icl { width: 18px; height: 18px; }
.rail .cat .ico { color: var(--on-dark-2); }
.rail .cat .ico > .icl { width: .95em; height: .95em; }
.rail .cat:hover .ico, .rail .cat.on .ico { color: #fff; }
/* Ilustraciones de platos (platos.svg): trazo espresso + acentos de la paleta; los colores heredan al sprite */
.ilu {
  --il-t: var(--espresso); --il-l: #FFFCF8; --il-a: var(--caramelo-100); --il-d: #D9A577; --il-c: var(--caramelo);
  --il-huancaina: #F3D58A; --il-pesto: #C3CC92; --il-alfredo: #FBF3E4; /* salsas de pasta: solo cambia el acento */
  width: 1em; height: 1em; flex: none; display: block; overflow: visible;
  fill: none; stroke: var(--il-t); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.line .nm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ln-ilu { width: 36px; height: 36px; border-radius: 10px; background: var(--crema); display: grid; place-items: center; flex: none; }
.ln-ilu > .ilu { width: 32px; height: 32px; stroke-width: 1.8; }
.search .ic { top: 50%; transform: translateY(-50%); line-height: 0; font-size: 17px; }
.ticket-head .t-ico { font-size: 22px; }
.mesa-ticket .t-salon { font-size: 20px; color: var(--espresso); }
.icon-btn .icl { width: 19px; height: 19px; }
.stepper button .icl { width: 18px; height: 18px; stroke-width: 2.1; }
.empty .big { font-size: 34px; color: var(--cafe); }
.pay-methods button .pi { font-size: 22px; color: var(--caramelo-600); display: grid; }
.toast .ok-ic { color: #fff; font-size: 16px; }
.toast .ok-ic .icl { stroke-width: 2.4; width: 1em; height: 1em; }
.ronda-h, .comanda-hh { display: flex; align-items: center; gap: 6px; }
.ronda-h .icl, .comanda-hh .icl { width: 14px; height: 14px; }
.citem .ci-est .icl, .ci-nota .icl { width: 13px; height: 13px; }
.mesa-btn .cap .icl { width: 12px; height: 12px; }
.mesa-solo-caja .icl { width: 16px; height: 16px; }

/* Salón y cocina */
.mf-time .icl, .pill-pend .icl, .mf-cap .icl { width: 12px; height: 12px; vertical-align: -.12em; }
.kds-link .icl, .salon-top .nav-link .icl { width: 18px; height: 18px; }
.kds-col .col-h .icl { width: 17px; height: 17px; }
.kcard .kbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.kcard .kbtn .icl { width: 18px; height: 18px; stroke-width: 2.1; }
.kcard .waiting .icl, .kcard .nota .icl { width: 15px; height: 15px; }
.kds-estado { display: inline-flex; align-items: center; gap: 6px; }
.kds-estado .icl { width: 14px; height: 14px; }

/* Aviso de acceso */
.aviso-acceso .icl { width: 17px; height: 17px; color: var(--caramelo-claro); }

/* ═══ Accesibilidad: movimiento reducido ═════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
