/* ═══════════════════════════════════════════════════════
   base.css — Variables, Reset, Tipografía, Animaciones
   TallerPro Enterprise v2.0
═══════════════════════════════════════════════════════ */

/* ─── VARIABLES ─────────────────────────────────────── */
:root {
  /* Paleta */
  --bg:         #080C10;
  --surface:    #0D1219;
  --surface2:   #111923;
  --surface3:   #162030;
  --border:     #1E2D3D;
  --border2:    #243444;

  /* Colores de acento */
  --amber:      #F59E0B;
  --amber-dim:  rgba(245,158,11,0.12);
  --amber-border: rgba(245,158,11,0.25);
  --cyan:       #06B6D4;
  --cyan-dim:   rgba(6,182,212,0.12);
  --cyan-border: rgba(6,182,212,0.25);
  --green:      #10B981;
  --green-dim:  rgba(16,185,129,0.12);
  --green-border: rgba(16,185,129,0.25);
  --red:        #EF4444;
  --red-dim:    rgba(239,68,68,0.12);
  --red-border: rgba(239,68,68,0.25);
  --purple:     #8B5CF6;
  --purple-dim: rgba(139,92,246,0.12);
  --purple-border: rgba(139,92,246,0.25);

  /* Texto */
  --text:       #E8EDF2;
  --text2:      #7A9BB5;
  --text3:      #3D5570;

  /* Layout */
  --sidebar-w:  240px;
  --radius:     6px;
  --radius-lg:  10px;
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ─── FONDO GRID ─────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,45,61,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,45,61,0.4) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ─── SCROLLBAR ──────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ─── TIPOGRAFÍA ──────────────────────────────────────── */
h1, h2, h3 { line-height: 1.1; }

.font-display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.04em; }
.font-mono    { font-family: 'DM Mono', monospace; }

.text-primary  { color: var(--text); }
.text-secondary{ color: var(--text2); }
.text-muted    { color: var(--text3); }
.text-amber    { color: var(--amber); }
.text-cyan     { color: var(--cyan); }
.text-green    { color: var(--green); }
.text-red      { color: var(--red); }
.text-right    { text-align: right; }
.text-center   { text-align: center; }

/* ─── UTILIDADES ─────────────────────────────────────── */
.hidden   { display: none !important; }
.flex     { display: flex; }
.grid     { display: grid; }
.pointer  { cursor: pointer; }
.w-full   { width: 100%; }
.gap-2    { gap: 8px; }
.gap-3    { gap: 12px; }
.gap-4    { gap: 16px; }
.mt-3     { margin-top: 12px; }
.mt-4     { margin-top: 16px; }
.mt-5     { margin-top: 20px; }
.mb-3     { margin-bottom: 12px; }
.mb-4     { margin-bottom: 16px; }
.mb-5     { margin-bottom: 20px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* ─── GRILLAS ────────────────────────────────────────── */
.grid-2    { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* ─── ANIMACIONES ────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.anim-fadeup   { animation: fadeUp  0.25s ease both; }
.anim-fadein   { animation: fadeIn  0.2s  ease both; }
.anim-scalein  { animation: scaleIn 0.2s  ease both; }

/* ─── DIVISORES ──────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}
