/* ============================================================
   GCG DESIGN SYSTEM V1 — Base (reset + tipografía global)
   Requiere gcg-tokens.css cargado antes.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

html { -webkit-text-size-adjust: 100%; }

body.gcg {
  margin: 0;
  background: radial-gradient(circle at 70% 10%, rgba(255, 255, 255, 0.025), transparent 35%), var(--gcg-bg);
  color: var(--gcg-text);
  font-family: var(--gcg-font-body);
  font-size: var(--gcg-text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.gcg h1, .gcg h2, .gcg h3, .gcg h4 {
  font-family: var(--gcg-font-display);
  color: var(--gcg-text);
  margin: 0;
  line-height: 1.2;
}
.gcg h1 { font-size: var(--gcg-text-3xl); font-weight: 700; }
.gcg h2 { font-size: var(--gcg-text-2xl); font-weight: 600; }
.gcg h3 { font-size: var(--gcg-text-xl); font-weight: 600; }

.gcg p { margin: 0; color: var(--gcg-text-secondary); }

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

.gcg ::selection { background: var(--gcg-accent-soft); color: var(--gcg-text); }

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

.gcg .gcg-mono { font-family: var(--gcg-font-mono); }

/* ---- Layout de página ---- */
.gcg-container {
  max-width: var(--gcg-max-width);
  margin: 0 auto;
  padding: 0 var(--gcg-gutter-desktop);
}
@media (max-width: 1279px) {
  .gcg-container { padding: 0 var(--gcg-gutter-laptop); }
}
@media (max-width: 767px) {
  .gcg-container { padding: 0 var(--gcg-gutter-mobile); }
}

/* ---- Utilidades mínimas (no reemplazan un sistema de utilidades completo) ---- */
.gcg-text-muted { color: var(--gcg-text-muted); }
.gcg-text-secondary { color: var(--gcg-text-secondary); }
.gcg-text-accent { color: var(--gcg-accent); }
.gcg-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- Accesibilidad: reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .gcg *, .gcg *::before, .gcg *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
