/* Estética de bozu.es: negro, grafito, verde lima con brillo y DM Sans */
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans.woff2") format("woff2-variations"), url("fonts/DMSans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --black: #000000;
  --graphite: #141417;
  --graphite-2: #1c1c20;
  --card: #16180f;
  --card-2: #23261e;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f4f2;
  --muted: #96969c;
  --dim: #5f5f66;
  --lime: #d4ff3a;
  --lime-rim: #deff80;
  --lime-ink: #0a0e04;
  --danger: #ff5c6c;
  --r-lg: 32px;
  --r-md: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 6px; }
.hidden { display: none !important; }

/* ---------- cortinas de luz (fondo) ---------- */
.curtains { position: fixed; inset: 0 0 auto 0; height: 70vh; overflow: hidden; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 50% at 50% -10%, rgba(212, 255, 58, 0.10), transparent 70%),
    repeating-linear-gradient(90deg, rgba(120, 128, 138, 0) 0 38px, rgba(120, 128, 138, 0.10) 52px, rgba(120, 128, 138, 0) 70px, rgba(120, 128, 138, 0.05) 96px, rgba(120, 128, 138, 0) 120px);
  -webkit-mask-image: linear-gradient(#000 20%, transparent 92%); mask-image: linear-gradient(#000 20%, transparent 92%);
  animation: drift 18s linear infinite; }
@keyframes drift { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 240px 0; } }

/* ---------- logo ---------- */
.logo { font-weight: 700; font-size: 28px; letter-spacing: -0.04em; display: inline-flex; align-items: flex-end; gap: 3px; line-height: 1; text-decoration: none; color: var(--text); }
.logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); margin-bottom: 4px; }

/* ---------- tipografía ---------- */
.kicker { color: var(--muted); font-size: 15px; letter-spacing: 0.02em; }
.h-title { font-weight: 500; font-size: clamp(34px, 9vw, 52px); line-height: 1.04; letter-spacing: -0.035em; }
.h-title span { display: block; }
.w { color: var(--text); } .g { color: var(--muted); }
.lead { color: var(--muted); font-size: 17px; line-height: 1.6; }
.lime { color: var(--lime); }

/* ---------- botones ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 500; font-size: 17px; text-decoration: none; transition: transform .3s var(--ease), background .3s, border-color .3s, opacity .2s; }
.pill:active { transform: scale(.97); }
.pill:disabled { opacity: .4; cursor: not-allowed; }
.pill-light { background: var(--text); color: #08080a; }
.pill-ghost { border: 1px solid rgba(255, 255, 255, 0.22); color: var(--text); background: rgba(12, 12, 14, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pill-lime { background: var(--lime); color: var(--lime-ink); font-weight: 700; box-shadow: 0 0 30px rgba(212, 255, 58, 0.35); }
.pill-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.pill-block { width: 100%; }

.ui-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; padding: 6px 12px; border-radius: 999px; background: var(--card-2); color: var(--text); white-space: nowrap; }
.ui-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.ui-chip.live i { background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: pulse 1.4s infinite; }
.ui-chip.bad i { background: var(--danger); }
.paid { font-size: 12px; font-weight: 700; background: var(--lime); color: var(--lime-ink); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- campos ---------- */
.field { width: 100%; font: inherit; color: var(--text); background: var(--graphite); border: 1px solid var(--line); border-radius: 999px; padding: 15px 22px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field::placeholder { color: var(--dim); }
.field:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(212, 255, 58, 0.12); }

/* ---------- elementos de carta (como el móvil de la web) ---------- */
.ui-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; background: var(--card); margin-bottom: 10px; border: 1.5px solid transparent; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.ui-item.on { border-color: var(--lime); box-shadow: 0 0 30px rgba(212, 255, 58, 0.12); }
.ui-ic { width: 48px; height: 48px; border-radius: 13px; background: var(--card-2); display: grid; place-items: center; flex: none; }
.ui-ic svg { width: 30px; }
.ui-t { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.ui-t b { font-weight: 600; font-size: 16px; } .ui-t small { color: var(--muted); font-size: 13px; }
.ui-q { width: 32px; height: 32px; border-radius: 50%; background: #2a2d24; color: var(--lime); font-weight: 700; display: grid; place-items: center; font-size: 14px; flex: none; }

/* ---------- ticket (tarjeta de pedido) ---------- */
.ticket { border-radius: var(--r-md); padding: 18px; background: var(--card); border: 1.5px solid #2c2e28; margin-bottom: 12px; animation: rise .6s var(--ease) both; }
.ticket.hot { border-color: var(--lime); box-shadow: 0 0 30px rgba(212, 255, 58, 0.15); }
.t-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.t-head b { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ticket p { font-weight: 600; margin: 6px 0; } .ticket em { color: var(--lime); font-style: normal; margin-right: 6px; }
.t-bar { height: 6px; border-radius: 3px; background: #2a2c26; margin-top: 14px; overflow: hidden; }
.t-bar i { display: block; height: 100%; width: 40%; background: var(--lime); animation: prep 3s var(--ease) infinite; }
@keyframes prep { from { width: 10%; } to { width: 95%; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- aviso ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(calc(100% + 40px)); opacity: 0;
  background: var(--graphite-2); color: var(--text); border: 1px solid var(--line); padding: 13px 20px; border-radius: 999px; font-weight: 500; font-size: 15px;
  transition: transform .4s var(--ease), opacity .3s; z-index: 80; max-width: calc(100% - 32px); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.ok { border-color: rgba(212, 255, 58, .5); }
.toast.error { border-color: var(--danger); color: #ffd9dd; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
