@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@100..125,500..800&family=IBM+Plex+Mono:wght@500;600&display=swap');

/* Jardín y brasa: salvia, tinta verde carbón, hoja para acciones, ámbar de brasa para turno y promos. */
:root {
  --cream: #edf1ea;      /* fondo salvia */
  --paper: #ffffff;
  --ticket: #fffcf2;     /* papel de comanda */
  --ink: #1c2620;
  --muted: #64716a;
  --line: #d5ddd3;
  --green: #2f6b45;      /* hoja: acciones principales */
  --green-2: #234f33;
  --terra: #eaa23a;      /* brasa: turno, promos, «empezar» */
  --terra-d: #8f560f;
  --warn: #f3c25c;
  --ok: #2f8a55;
  --bad: #c2412d;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(28, 38, 32, 0.06), 0 6px 18px rgba(28, 38, 32, 0.07);
  --display: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-size: 16px; line-height: 1.4; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.015em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.money { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; background: var(--green); color: #fff; font-weight: 700; letter-spacing: 0.01em; }
.btn:active { transform: translateY(1px); }
.btn.terra { background: var(--terra); color: var(--ink); }
.btn.ink { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--bad); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.field { display: block; margin: 12px 0; }
.field > span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.field textarea { min-height: 70px; resize: vertical; }

.chip { display: inline-block; padding: 3px 9px; border-radius: 6px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.chip.new { background: #fbe7c4; color: var(--terra-d); }
.chip.preparing { background: #fbe7c4; color: var(--terra-d); }
.chip.ready { background: #d6efdf; color: #1d6b3f; }
.chip.delivered { background: #e4e8e3; color: #56625b; }
.chip.promo { background: var(--terra); color: var(--ink); }
.chip.off { background: #e4e8e3; color: #6b766f; }

/* Comanda: papel con borde dentado arriba y abajo (recorte con máscara, sirve en fondo claro y oscuro) */
.ticket { position: relative; background: var(--ticket); padding: 22px 16px; margin: 14px 0;
  --dientes: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 51% repeat-x,
             conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 14px 51% repeat-x;
  -webkit-mask: var(--dientes); mask: var(--dientes); }
.ticket .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ticket .line { display: flex; align-items: baseline; gap: 8px; font-family: var(--mono); font-size: 15px; padding: 7px 0; }
.ticket .line .dots { flex: 1; border-bottom: 1.5px dotted #b9c2b8; transform: translateY(-4px); }
.ticket .note { font-family: var(--mono); font-size: 13px; color: var(--terra-d); font-weight: 600; }
.ticket .rule { border: 0; border-top: 1.5px dashed #c9d1c7; margin: 10px 0; }

.sheet-bg { position: fixed; inset: 0; background: rgba(20, 28, 23, 0.55); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--cream); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 24px 24px 0 0; padding: 20px 16px 26px; }
.sheet h2 { font-size: 24px; font-stretch: 112%; margin-bottom: 4px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 60; max-width: 90vw; text-align: center; box-shadow: var(--shadow); }
.banner { padding: 10px 14px; text-align: center; font-size: 14px; font-weight: 600; }
.banner.warn { background: var(--warn); color: #4a3300; }
.banner.demo { background: var(--ink); color: #c9d6cd; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 7px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
