/* ==========================================================================
   Pain Panel 
   
   ========================================================================== */

:root {
  --bg: #0b0c0f;
  --bg-soft: #101217;
  --surface: #14161c;
  --surface-2: #191c23;
  --surface-3: #1e222a;
  --line: #242833;
  --line-soft: #1c1f27;
  --text: #e6e8ed;
  --text-2: #b3b8c4;
  --muted: #8a909d;
  --muted-2: #6b7180;

  --accent: #e8453c;
  --accent-hover: #f2564c;
  --accent-soft: rgba(232, 69, 60, 0.12);
  --accent-line: rgba(232, 69, 60, 0.34);
  --accent-2: #ff8a3d;

  --success: #34c48b;
  --success-soft: rgba(52, 196, 139, 0.12);
  --info: #4aa6f0;
  --info-soft: rgba(74, 166, 240, 0.12);
  --warn: #e3ae3c;
  --warn-soft: rgba(227, 174, 60, 0.12);
  --danger: #ef4d4d;
  --danger-soft: rgba(239, 77, 77, 0.12);

  --radius: 12px;
  --radius-sm: 9px;
  --radius-lg: 16px;

  --sidebar-w: 254px;
  --sidebar-w-collapsed: 74px;
  --topbar-h: 62px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Apple Color Emoji", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--text);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

svg {
  width: 18px;
  height: 18px;
  flex: none;
}

::selection {
  background: var(--accent-soft);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Utilidades ─────────────────────────────────────────────────────────── */
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

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

.small {
  font-size: 12.5px;
}

.tiny {
  font-size: 11.5px;
}

.nowrap {
  white-space: nowrap;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.grow {
  flex: 1;
  min-width: 0;
}

.hidden {
  display: none !important;
}

.mobile-only {
  display: none !important;
}

.right {
  text-align: right;
}

.text-success {
  color: var(--success);
}

.text-warn {
  color: var(--warn);
}

.text-danger {
  color: var(--danger);
}

.text-accent {
  color: var(--accent);
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Boot ───────────────────────────────────────────────────────────────── */
.boot {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--muted);
}

.boot-mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.boot-mark svg {
  width: 100%;
  height: 100%;
}

.boot-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
  flex: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Marca ──────────────────────────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  overflow: hidden;
  flex: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  min-width: 0;
}

.brand-name {
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Botones ────────────────────────────────────────────────────────────── */
