/* ============================================================
   thankium® — tokens de marca sobre Metronic 9 (KTUI / Tailwind 4)
   Único punto de cambio de color y tipografía del dashboard.
   Brandbook aplicado en claro: fondo #f5f5f5, texto #040404, secundario #6c6c6c. Monocromo.
   ============================================================ */
:root {
  --background: #f5f5f5;
  --foreground: #040404;
  --card: #fafafa;
  --card-foreground: #040404;
  --popover: #fafafa;
  --popover-foreground: #040404;
  --primary: #040404;               /* acción principal = negro sobre claro */
  --primary-foreground: #f5f5f5;
  --secondary: #ebebeb;
  --secondary-foreground: #040404;
  --muted: #ededed;
  --muted-foreground: #6c6c6c;
  --accent: #ebebeb;
  --accent-foreground: #040404;
  --destructive: #b91c1c;           /* único color cromático: acciones destructivas */
  --destructive-foreground: #f5f5f5;
  --mono: #040404;
  --mono-foreground: #f5f5f5;
  --border: #e1e1e1;                /* separadores muy finos */
  --input: #d9d9d9;
  --ring: #a3a3a3;
  --radius: 0.5rem;
}

html, body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01", "tnum";
}

/* Fondo con degradado muy sutil (profundidad sin salir del #f5f5f5) */
body.tk {
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(4,4,4,0.035), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(4,4,4,0.025), transparent 60%),
    var(--background);
}

/* Wordmark */
.tk-wordmark { font-weight: 500; letter-spacing: -0.02em; font-size: 1.25rem; color: var(--foreground); }
.tk-wordmark sup { font-size: 0.55em; margin-left: 1px; color: var(--muted-foreground); }

/* Etiquetas pequeñas en mayúsculas + prefijos numéricos (brandbook §3) */
.tk-label { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); font-weight: 500; }
.tk-num { font-variant-numeric: tabular-nums; color: var(--muted-foreground); font-size: 0.75rem; }

/* Big type para KPIs */
.tk-kpi { font-size: 2.5rem; font-weight: 400; letter-spacing: -0.03em; line-height: 1; color: var(--foreground); }

/* Estados en escala de grises (sin color cromático) */
.tk-status { display:inline-flex; align-items:center; gap:.4rem; font-size:.75rem; color: var(--foreground); white-space:nowrap; }
.tk-status::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }
.tk-status-borrador  { color: #a3a3a3; }
.tk-status-enviada   { color: #6c6c6c; }
.tk-status-vista     { color: #040404; }
.tk-status-ganada    { color: #040404; }
.tk-status-perdida   { color: #a3a3a3; }
.tk-status-archivada { color: #a3a3a3; }

/* Cards: borde fino, sin sombra */
.kt-card { box-shadow: none; }

/* Tabla: cabeceras en etiqueta pequeña, hover sutil */
.kt-table th { color: var(--muted-foreground) !important; font-weight: 500; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; }
.kt-table tbody tr:hover { background: rgba(4,4,4,0.025); }

/* Sidebar y header sobre el mismo fondo claro */
.kt-sidebar, .kt-header { background: var(--background) !important; }

/* Menú lateral activo: sin azul */
.kt-menu-item-active .kt-menu-title, .kt-menu-link:hover .kt-menu-title { color: var(--foreground) !important; }

/* Snippet de código */
pre#tk-snippet { background: #ededed; }
