/* ============================================
   SIGNAGE - Sistema de diseño v1
   Minimalista · Confianza · Profesional
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --ink: #16283C;        /* texto principal */
  --muted: #5D6B7C;      /* texto secundario */
  --bg: #F4F6F8;         /* fondo general */
  --card: #FFFFFF;
  --line: #E3E8EE;
  --brand: #1F4E79;      /* azul confianza */
  --brand-hover: #173D60;
  --brand-soft: #EAF1F8;
  --ok: #2E7D6E;         /* online / activo */
  --ok-soft: #E7F3F0;
  --warn: #B7791F;
  --warn-soft: #FBF3E4;
  --danger: #B0392E;
  --danger-soft: #F9ECEA;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(22,40,60,.05), 0 4px 16px rgba(22,40,60,.05);
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 16px;
  display: flex; align-items: center; gap: 10px;
}
.brand-dot {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-family: var(--font-mono);
}
.topbar-user { color: var(--muted); font-size: 13px; display: flex; gap: 16px; align-items: center; }

/* ---------- Layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 30px 28px 60px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.page-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }

/* ---------- Tarjetas ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }

/* ---------- Tabla ---------- */
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: #FAFBFC; }

/* ---------- Estados (píldoras) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  padding: 3px 10px; border-radius: 99px;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-off { background: #EEF1F4; color: var(--muted); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }

.mono { font-family: var(--font-mono); font-size: 13px; }

/* ---------- Formularios ---------- */
label { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 5px; }
input, select {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus {
  outline: 2px solid var(--brand-soft);
  border-color: var(--brand);
}
.field { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-weight: 500; font-size: 13.5px;
  padding: 9px 16px; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger-ghost { background: transparent; border-color: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-sm { padding: 5px 11px; font-size: 12.5px; }

/* ---------- Avisos ---------- */
.alert { padding: 11px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 18px; }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- Login ---------- */
.login-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(600px 300px at 50% -80px, var(--brand-soft), transparent),
    var(--bg);
}
.login-card { width: 100%; max-width: 380px; padding: 34px 32px 30px; }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.login-sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }

.empty { text-align: center; color: var(--muted); padding: 40px 20px; font-size: 13.5px; }
