/* =========================================================
   ORDIX — base.css
   Tokens + reset mínimo + topbar (app)
   ========================================================= */

:root{
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #fbfbfe;

  --text: #0f172a;
  --muted: rgba(15,23,42,0.62);
  --line: rgba(15,23,42,0.12);

  --primary: #2563eb;
  --primary-2: #1d4ed8;

  --radius: 16px;
  --shadow: 0 12px 34px rgba(15,23,42,0.08);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Topbar app */
.topbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 60px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner--app{
  height: 60px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: inherit;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.brand__dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #3b82f6);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.14);
}
.brand__text{
  font-size: 13px;
  text-transform: uppercase;
  opacity: .95;
}

.topbar__right{
  display:flex;
  align-items:center;
  gap: 10px;
}

.nav__user{
  font-size: 13px;
  color: var(--muted);
}

/* Botón salir como link */
.nav__link--button{
  border: 1px solid rgba(15,23,42,0.16);
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}
.nav__link--button:hover{
  background: #f3f4f6;
}

.muted{ color: var(--muted); }

.app-badge {
  background: #e53935;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  margin-left: 8px;
  font-weight: 600;
}