@import 'tokens.css';

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Glow de fondo — igual que agent-digital-pro */
.bg-glow { position: fixed; pointer-events: none; z-index: 0; }
.bg-glow-tl {
  top: -200px; left: -200px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.14) 0%, transparent 65%);
}
.bg-glow-br {
  bottom: -200px; right: -200px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(91,33,182,0.10) 0%, transparent 65%);
}

/* ── TIPOGRAFÍA BASE ── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

a { color: var(--purple-lt); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }

img { max-width: 100%; height: auto; display: block; }

code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: rgba(124,58,237,0.12);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--purple-lt);
}

pre {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
pre code { background: none; padding: 0; }

blockquote {
  border-left: 3px solid var(--purple);
  padding-left: 1rem;
  color: var(--text-muted);
  margin: 1.5rem 0;
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--border-sub);
  margin: 2.5rem 0;
}

/* ── PILL DE CATEGORÍA ── */
.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  line-height: 1.5;
}
.pill-ia  { background: var(--cat-ia-bg);  color: var(--cat-ia-text);  border-color: var(--cat-ia-bd); }
.pill-agentes { background: var(--cat-ag-bg);  color: var(--cat-ag-text);  border-color: var(--cat-ag-bd); }
.pill-web { background: var(--cat-web-bg); color: var(--cat-web-text); border-color: var(--cat-web-bd); }
.pill-css { background: var(--cat-css-bg); color: var(--cat-css-text); border-color: var(--cat-css-bd); }

/* ── UTILIDADES ── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
