/* Comanda · base compartida. Sin fuentes remotas: pila de sistema. */
:root {
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --brand: #F2542D; --brand-600: #D9431E; --brand-50: #FFF1EC; --brand-100: #FFE0D5;
  --ink: #1C1917; --ink-2: #44403C; --muted: #78716C; --line: #E7E1DA;
  --bg: #FBF7F2; --card: #FFFFFF; --ok: #15965A; --ok-50: #E8F7EF; --warn: #D98A00; --warn-50: #FFF6E0; --bad: #DC2626; --bad-50: #FDECEC;
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --sh-1: 0 1px 2px rgba(28,25,23,.06), 0 1px 1px rgba(28,25,23,.04);
  --sh-2: 0 6px 20px rgba(28,25,23,.08), 0 2px 6px rgba(28,25,23,.05);
  --sh-3: 0 24px 60px rgba(28,25,23,.18), 0 8px 20px rgba(28,25,23,.08);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
img, svg { display: block; }
.emoji { font-family: var(--emoji); line-height: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 17px; transition: transform .08s ease, background .15s ease, box-shadow .15s ease; user-select: none; white-space: nowrap; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(242,84,45,.32); }
.btn-primary:hover { background: var(--brand-600); }
.btn-primary[disabled] { background: #D6CFC7; box-shadow: none; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #cfc6bc; }
.btn-lg { min-height: 64px; font-size: 20px; padding: 0 30px; }
.btn-xl { min-height: 76px; font-size: 23px; padding: 0 36px; }
.btn-sm { min-height: 40px; font-size: 14px; padding: 0 14px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.chip-brand { background: var(--brand-50); color: var(--brand-600); }
.chip-ok { background: var(--ok-50); color: var(--ok); }
.chip-warn { background: var(--warn-50); color: #9A6200; }
.chip-bad { background: var(--bad-50); color: var(--bad); }
.chip-ink { background: var(--ink); color: #fff; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #FF7A45, #F2542D 55%, #C93A16); display: grid; place-items: center; color: #fff; box-shadow: 0 4px 10px rgba(242,84,45,.35); }
.logo-mark svg { width: 20px; height: 20px; }

/* Barra fina «demo» que enlaza las pantallas */
.demo-bar { position: fixed; z-index: 90; right: 12px; bottom: 12px; display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(28,25,23,.86); backdrop-filter: blur(8px); box-shadow: var(--sh-2); opacity: .5; transition: opacity .2s; }
.demo-bar:hover, .demo-bar:focus-within { opacity: 1; }
.demo-bar a { color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; padding: 7px 11px; border-radius: 999px; }
.demo-bar a:hover, .demo-bar a.on { background: rgba(255,255,255,.16); }
.in-frame .demo-bar { display: none; }

.toast-wrap { position: fixed; z-index: 120; left: 50%; top: 18px; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: var(--sh-3); font-weight: 600; font-size: 15px; animation: toastIn .25s ease; }
@keyframes toastIn { from { transform: translateY(-10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-width: 699px) {
  .demo-bar { left: 12px; right: 12px; overflow-x: auto; scrollbar-width: none; }
  .demo-bar a { flex: none; }
  .kds .demo-bar, .pickup .demo-bar { display: none; }
}
