/* Zona Gamer · tema claro tipo backoffice (barra blanca, tarjetas redondeadas, botón rojo, chips negros).
   Todos los colores viven aquí: edita las variables para ajustar la marca. */
:root {
  --bg: #f4f4f6; --panel: #ffffff; --panel-b: #e8e8ec;
  --ink: #17171b; --muted: #6b6b76;
  --neon: #e5251b;      /* acento principal (rojo) */
  --pink: #e5251b;
  --coin: #b45309;      /* ámbar oscuro: legible sobre blanco */
  --mario: #e5251b; --ok: #15803d; --warn: #b45309;
  --shadow: 0 1px 2px rgba(20,20,30,.04), 0 6px 20px rgba(20,20,30,.05);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.topbar { background: #fff; border-bottom: 1px solid var(--panel-b); position: sticky; top: 0; z-index: 20; }
.glass { background: var(--panel); border: 1px solid var(--panel-b); border-radius: 20px; box-shadow: var(--shadow); }
.glow-text { text-shadow: none; letter-spacing: -.02em; }
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #eeeef1; color: #3b3b44; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-bad { background: #fee2e2; color: #991b1b; }
.badge-info { background: #e0e7ff; color: #3730a3; }
.badge-mute { background: #eeeef1; color: #3b3b44; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: 999px; font-weight: 700; border: 0; cursor: pointer; transition: transform .15s, background .2s, opacity .2s; color: #fff; background: var(--neon); text-decoration: none; font-size: .95rem; }
.btn:hover:not(:disabled) { transform: translateY(-1px); background: #c91e15; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-pink { background: var(--neon); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--panel-b); }
.btn-ghost:hover:not(:disabled) { background: #f4f4f6; }
.btn-sm { padding: .4rem .9rem; font-size: .8rem; }
.card-prod { transition: transform .2s, box-shadow .2s; }
.card-prod:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(20,20,30,.10); }
.sold { opacity: .55; pointer-events: none; }
.field { width: 100%; padding: .7rem .9rem; border-radius: 14px; background: #fff; border: 1px solid var(--panel-b); color: var(--ink); font: inherit; outline: none; transition: border-color .2s, box-shadow .2s; }
.field:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,23,27,.08); }
label.lbl { display: block; font-size: .78rem; color: var(--muted); margin: .8rem 0 .3rem; font-weight: 600; }
.chip { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--panel-b); background: #fff; cursor: pointer; font-weight: 600; font-size: .85rem; transition: all .15s; color: var(--ink); box-shadow: var(--shadow); }
.chip:hover { border-color: #c9c9d0; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on div { color: #d7d7de !important; }
.chip[disabled] { opacity: .35; cursor: not-allowed; }
.overlay { position: fixed; inset: 0; background: rgba(20,20,30,.45); backdrop-filter: blur(3px); display: none; align-items: flex-end; justify-content: center; z-index: 50; }
.overlay.open { display: flex; }
.sheet { width: 100%; max-width: 640px; max-height: 94vh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 1.4rem; background: #fff; border: 1px solid var(--panel-b); animation: up .25s ease; }
@media (min-width: 700px) { .overlay { align-items: center; padding: 1rem; } .sheet { border-radius: 24px; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.fade-in { animation: up .4s ease both; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; display: inline-block; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
.steps { display: flex; gap: .4rem; margin-bottom: 1rem; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--panel-b); }
.steps i.on { background: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: .8rem 1.2rem; border-radius: 14px; background: var(--ink); color: #fff; z-index: 99; max-width: 92vw; box-shadow: var(--shadow); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.tbl th { text-align: left; color: var(--muted); font-weight: 600; padding: .6rem; border-bottom: 1px solid var(--panel-b); white-space: nowrap; }
table.tbl td { padding: .6rem; border-bottom: 1px solid #f0f0f3; vertical-align: top; }
table.tbl tr.clickable:hover { background: #f7f7f9; cursor: pointer; }
.kpi { padding: 1rem 1.2rem; }
.kpi b { display: block; font-size: 1.7rem; margin-top: .2rem; }
.bar { height: 8px; border-radius: 8px; background: #eeeef1; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--ink); border-radius: 8px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
a { color: var(--neon); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
