/* Comanda · cocina (KDS), tema oscuro de alto contraste */
html, body { height: 100%; }
body.kds { background: #0E1116; color: #E8EAED; display: flex; flex-direction: column; overflow: hidden; }
.kds-top { flex: none; display: flex; align-items: center; gap: 18px; height: 70px; padding: 0 18px; background: #161A21; border-bottom: 1px solid #262C36; }
.kds-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kds-brand b { display: block; font-size: 19px; letter-spacing: -.01em; }
.kds-brand small { display: block; color: #8B95A5; font-size: 13px; white-space: nowrap; }
.kds-stats { flex: 1; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.kds-stats span { background: #1F2530; border: 1px solid #2A313D; padding: 7px 12px; border-radius: 999px; font-size: 14px; color: #AEB6C2; white-space: nowrap; }
.kds-stats b { color: #fff; }
.kds-stats .bad { background: #3A1518; border-color: #6B2027; color: #FFB4B4; }
.kds-actions { display: flex; align-items: center; gap: 8px; }
.kds-clock { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; margin-right: 6px; }
.kbtn { width: 48px; height: 48px; border-radius: 14px; background: #1F2530; border: 1px solid #2A313D; font-size: 22px; display: grid; place-items: center; color: #fff; font-family: var(--emoji), var(--font); }
.kmenu { position: relative; }
.kmenu-pop { position: absolute; right: 0; top: 56px; z-index: 40; width: 300px; background: #1F2530; border: 1px solid #333B48; border-radius: 16px; padding: 6px; box-shadow: 0 20px 40px rgba(0,0,0,.5); display: grid; }
.kmenu-pop[hidden] { display: none; }
.kmenu-pop button, .kmenu-pop a { text-align: left; padding: 13px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: #E8EAED; text-decoration: none; }
.kmenu-pop button:hover, .kmenu-pop a:hover { background: #2A313D; }

.kds-tabs { display: none; }
.kds-board { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 14px; }
.col { display: flex; flex-direction: column; min-height: 0; background: #131720; border: 1px solid #1F2530; border-radius: 20px; }
.col h2 { margin: 0; display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; font-size: 18px; letter-spacing: .01em; }
.col h2 em { font-style: normal; margin-left: auto; min-width: 32px; height: 28px; padding: 0 9px; border-radius: 999px; background: #232A35; display: grid; place-items: center; font-size: 15px; }
.col .dot { width: 12px; height: 12px; border-radius: 50%; }
.col[data-col="new"] .dot { background: #60A5FA; box-shadow: 0 0 0 4px rgba(96,165,250,.18); }
.col[data-col="prep"] .dot { background: #FBBF24; box-shadow: 0 0 0 4px rgba(251,191,36,.18); }
.col[data-col="ready"] .dot { background: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.col-list { flex: 1; overflow-y: auto; padding: 4px 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.col-empty { margin: 30px 10px; text-align: center; color: #6B7585; font-size: 15px; line-height: 1.5; }
.col-empty small { color: #545D6B; }

.tk { --acc: #60A5FA; position: relative; background: #1C222C; border: 1px solid #2A313D; border-left: 6px solid var(--acc); border-radius: 16px; padding: 12px 14px 10px; cursor: pointer; transition: transform .08s, background .15s; outline: none; }
.tk:hover { background: #212834; }
.tk:active { transform: scale(.985); }
.tk:focus-visible { box-shadow: 0 0 0 3px #60A5FA; }
.tk.st-prep { --acc: #FBBF24; }
.tk.st-ready { --acc: #34D399; background: #15241E; border-color: #1F3A2F; }
.tk.late-2 { --acc: #F59E0B; }
.tk.late-3 { --acc: #EF4444; background: #261A1D; border-color: #4A2329; }
.tk.st-new.late-1 { --acc: #60A5FA; }
.tk.unpaid { background-image: repeating-linear-gradient(135deg, rgba(251,191,36,.05) 0 12px, transparent 12px 24px); }
.tk header { display: flex; align-items: center; gap: 10px; }
.tk-num { font-size: 30px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff; }
.tk-mode { font-size: 13px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: #2A313D; color: #D5DAE1; font-family: var(--font), var(--emoji); }
.tk-mode.llevar { background: #33264A; color: #D8C7FF; }
.tk-age { margin-left: auto; font-weight: 900; font-size: 16px; padding: 5px 11px; border-radius: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-age.late-1 { background: #133826; color: #6EE7B7; }
.tk-age.late-2 { background: #3D2D08; color: #FCD34D; }
.tk-age.late-3 { background: #4C1519; color: #FCA5A5; animation: blink 1.2s ease-in-out infinite; }
.tk-age.ready { background: #133826; color: #6EE7B7; font-size: 13px; }
@keyframes blink { 50% { opacity: .55; } }
.tk-meta { color: #8B95A5; font-size: 13px; margin: 4px 0 8px; }
.tk-meta b { color: #FFB199; }
.tk-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tk-items li { display: flex; gap: 10px; align-items: flex-start; }
.tk-items .q { min-width: 34px; height: 30px; border-radius: 8px; background: #2A313D; color: #fff; display: grid; place-items: center; font-size: 16px; }
.tk-items .n { font-size: 18px; font-weight: 800; color: #fff; line-height: 1.3; }
.mods { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; }
.mods span { font-size: 13.5px; font-weight: 700; color: #C3CAD4; background: #262D38; padding: 2px 8px; border-radius: 6px; }
.mods .m-rem { color: #FCA5A5; background: #3A1A1E; }
.mods .m-add { color: #86EFAC; background: #16301F; }
.tk-pay { margin-top: 10px; font-size: 13.5px; font-weight: 700; border-radius: 10px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.tk-pay.ok { color: #8B95A5; padding: 0; margin-top: 8px; }
.tk-pay.due { background: #3B2E0A; color: #FCD34D; border: 1px solid #5C470F; }
.tk-paid { background: #FBBF24; color: #1C1405; font-weight: 900; padding: 9px 14px; border-radius: 10px; font-size: 14px; }
.tk footer { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed #2E3542; }
.tk-undo { width: 40px; height: 36px; border-radius: 10px; background: #262D38; color: #C3CAD4; font-size: 18px; }
.tk-rebuzz { height: 36px; padding: 0 10px; border-radius: 10px; background: #1B3A2C; color: #A7F3D0; font-size: 13px; font-weight: 800; font-family: var(--font), var(--emoji); }
.tk-next { margin-left: auto; color: #8B95A5; font-weight: 700; font-size: 13.5px; text-align: right; }
.tk.arrive { animation: arrive .9s ease; }
@keyframes arrive { 0% { transform: translateY(-14px); box-shadow: 0 0 0 0 rgba(96,165,250,.8); } 40% { box-shadow: 0 0 0 10px rgba(96,165,250,0); } }
.tk.shake { animation: shake .4s ease; }
@keyframes shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }

.buzz-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(5,30,20,.55); backdrop-filter: blur(3px); pointer-events: none; }
.buzz-overlay[hidden] { display: none; }
.buzz-overlay.show .buzz-box { animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
.buzz-box { background: #10B981; color: #fff; border-radius: 30px; padding: 30px 46px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.5); display: grid; justify-items: center; gap: 6px; }
.buzz-box b { font-size: 32px; letter-spacing: -.02em; }
.buzz-box small { font-size: 17px; opacity: .92; font-weight: 600; }
.buzz-dev { position: relative; min-width: 150px; height: 100px; padding: 0 16px; border-radius: 22px; background: #0B0F0D; display: grid; place-items: center; margin-bottom: 10px; }
.buzz-dev span { color: #6EE7B7; font-size: 54px; font-variant-numeric: tabular-nums; font-weight: 900; text-shadow: 0 0 16px rgba(110,231,183,.8); font-family: var(--font), var(--emoji); }
.buzz-dev i { position: absolute; inset: -6px; border: 3px solid rgba(255,255,255,.7); border-radius: 28px; animation: ripple 1s ease-out infinite; }
.buzz-dev i:nth-child(3) { animation-delay: .33s; } .buzz-dev i:nth-child(4) { animation-delay: .66s; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@keyframes buzz { 25% { transform: translateX(-3px) rotate(-2deg); } 75% { transform: translateX(3px) rotate(2deg); } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }

.demo-bar { opacity: .35; }

@media (max-width: 1100px) {
  .kds-stats span:nth-child(2) { display: none; }
  .tk-num { font-size: 26px; }
  .tk-items .n { font-size: 16.5px; }
  .kds-board { gap: 10px; padding: 10px; }
  .col-list { padding: 4px 8px 12px; }
}
@media (max-width: 699px) {
  .kds-top { height: 60px; padding: 0 12px; gap: 10px; }
  .kds-stats { display: none; }
  .kds-brand { flex: 1; }
  .kds-clock { font-size: 18px; }
  .kbtn { width: 44px; height: 44px; }
  .kds-tabs { display: flex; flex: none; gap: 6px; padding: 10px 12px 0; background: #0E1116; }
  .kds-tabs button { flex: 1; height: 48px; border-radius: 14px; background: #1A1F28; color: #AEB6C2; font-weight: 800; font-size: 15px; border: 1px solid #262C36; }
  .kds-tabs button em { font-style: normal; display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 999px; background: #2A313D; color: #fff; font-size: 13px; margin-left: 4px; }
  .kds-tabs button.on { background: #fff; color: #0E1116; border-color: #fff; }
  .kds-tabs button.on em { background: #0E1116; }
  .kds-board { display: block; padding: 10px 12px; overflow: hidden; }
  .kds-board .col { display: none; height: 100%; background: transparent; border: 0; }
  .kds-board[data-tab="new"] .col[data-col="new"], .kds-board[data-tab="prep"] .col[data-col="prep"], .kds-board[data-tab="ready"] .col[data-col="ready"] { display: flex; }
  .col h2 { display: none; }
  .col-list { padding: 0 0 70px; }
  .kmenu-pop { width: min(300px, calc(100vw - 24px)); }
  .buzz-box { padding: 24px 28px; margin: 0 16px; }
  .buzz-box b { font-size: 26px; }
}

.kds .toast-wrap { top: auto; bottom: 24px; }
.kds .demo-bar { display: none; }

/* 19 nov b · modificadores estructurados y alérgenos */
.mods .m-rem { color: #fff; background: #B42318; font-weight: 900; letter-spacing: .02em; }
.mods .m-menu { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 2px; padding: 4px 6px; border-radius: 8px; background: #2A2140; }
.mods .m-menu b { font-size: 11.5px; letter-spacing: .06em; color: #fff; background: #6D3FC0; padding: 2px 6px; border-radius: 5px; }
.mods .m-menu span { background: transparent; color: #D8C8FF; padding: 0 4px 0 0; }
.tk-al { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-top: 5px; font-size: 12px; color: #9AA4B2; align-items: center; }
.tk-al > span { display: inline-flex; align-items: center; gap: 3px; }
.tk-al .alg { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #2A313D; }
.tk-al .alg .emoji { font-size: 11px; line-height: 1; }
.tk-al .alg svg { width: 12px; height: 12px; }
.tk-al > span.on { color: #fff; font-weight: 800; background: #B42318; border-radius: 6px; padding: 1px 6px 1px 2px; }
.tk-alert { margin: 8px 0 10px; padding: 8px 10px; border-radius: 10px; background: #3A1A1E; border: 1.5px solid #EF4444; color: #FECACA; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.tk-alert b { color: #fff; }
.tk-alert small { display: block; font-weight: 600; color: #FCA5A5; font-size: 12px; margin-top: 2px; }

.tk-mode.mesa { background: #FFF7ED; color: #9A3412; border: 1.5px solid #FDBA74; font-weight: 800; }
header .tk-mode.mesa { font-size: 13px; padding: 3px 8px; border-radius: 999px; }
