/* =========================================================
   NOVA X — Design Tokens
   Tema claro por defecto, tema oscuro vía [data-theme="dark"]
   ========================================================= */

:root {
  /* ---------- Color: modo claro ---------- */
:root {
  --color-bg: #f4f6fb;
  --color-bg-elevated: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #e9edf5;
  --color-border: rgba(15, 23, 42, 0.14);

  --color-text: #111827;
  --color-text-muted: #475569;
  --color-text-soft: #64748b;

  --color-blue: #2455d6;
  --color-purple: #6d28d9;
  --color-cyan: #0891b2;

  --gradient-brand: linear-gradient(
    135deg,
    #2455d6 0%,
    #6d28d9 55%,
    #0891b2 100%
  );

  --gradient-brand-soft: linear-gradient(
    135deg,
    rgba(36, 85, 214, 0.12),
    rgba(109, 40, 217, 0.12) 55%,
    rgba(8, 145, 178, 0.12) 100%
  );

  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(15, 23, 42, 0.12);
  --glass-blur: 18px;

  --shadow-sm: 0 2px 10px rgba(11, 16, 32, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 16, 32, 0.12);
  --shadow-lg: 0 25px 60px rgba(11, 16, 32, 0.18);

  --shadow-glow-blue: 0 0 40px rgba(36, 85, 214, 0.25);
  --shadow-glow-purple: 0 0 40px rgba(109, 40, 217, 0.25);
  --shadow-glow-cyan: 0 0 40px rgba(8, 145, 178, 0.25);

  --success: #15803d;
  --danger: #dc2626;
  --warning: #d97706;
}

  /* ---------- Tipografía ---------- */
  --font-display: "Space Grotesk", "Outfit", sans-serif;
  --font-body: "Outfit", "Poppins", sans-serif;
  --font-accent: "Poppins", "Outfit", sans-serif;

  --fs-display-xl: clamp(2.6rem, 6vw, 5.2rem);
  --fs-display-lg: clamp(2rem, 4vw, 3.4rem);
  --fs-display-md: clamp(1.5rem, 2.6vw, 2.2rem);
  --fs-title: clamp(1.2rem, 1.8vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  /* ---------- Layout ---------- */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1280px;
  --header-h: 84px;
  --header-h-scrolled: 68px;
  --marquee-h: 38px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 160ms;
  --dur-med: 320ms;
  --dur-slow: 560ms;

  --z-header: 100;
  --z-drawer: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-nav-mobile: 500;
}

/* ---------- Color: modo oscuro ---------- */
[data-theme="dark"] {
  --color-bg: #0b1020;
  --color-bg-elevated: #141d30;
  --color-surface: #172238;
  --color-surface-2: #202d45;
  --color-border: rgba(255, 255, 255, 0.13);

  --color-text: #f8fafc;
  --color-text-muted: #c0cadb;
  --color-text-soft: #9aa8bf;

  --color-blue: #60a5fa;
  --color-purple: #a78bfa;
  --color-cyan: #67e8f9;

  --gradient-brand: linear-gradient(
    135deg,
    #2563eb 0%,
    #7c3aed 55%,
    #0891b2 100%
  );

  --gradient-brand-soft: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.15),
    rgba(167, 139, 250, 0.15) 55%,
    rgba(103, 232, 249, 0.15) 100%
  );

  --glass-bg: rgba(20, 29, 48, 0.94);
  --glass-border: rgba(255, 255, 255, 0.12);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.60);

  --success: #4ade80;
  --danger: #f87171;
  --warning: #fbbf24;
}
