/**
 * CSS Variables
 * 
 * Sistema de design tokens controlado por JS
 * Estas variables se modifican dinámicamente desde core.js
 * 
 * @package Orvit-Cosmos
 */

:root {
   /* ============================================
       COLORES
    ============================================ */

   /* Primary */
   --color-primary: #6366f1;
   --color-primary-light: #818cf8;
   --color-primary-dark: #4f46e5;

   /* Secondary */
   --color-secondary: #8b5cf6;
   --color-secondary-light: #a78bfa;
   --color-secondary-dark: #7c3aed;

   /* Neutrales */
   --color-dark: #0f172a;
   --color-dark-800: #1e293b;
   --color-dark-700: #334155;
   --color-dark-600: #475569;

   --color-light: #f8fafc;
   --color-light-200: #e2e8f0;
   --color-light-300: #cbd5e1;
   --color-light-400: #94a3b8;

   --color-white: #ffffff;
   --color-black: #000000;

   /* Accent */
   --color-accent: #f59e0b;
   --color-accent-light: #fbbf24;

   /* ============================================
       TIPOGRAFÍA
    ============================================ */

   /* Font Families */
   --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
   --font-secondary: Georgia, "Times New Roman", serif;
   --font-mono: "Courier New", Courier, monospace;

   /* Font Sizes */
   --font-size-xs: 0.75rem;
   /* 12px */
   --font-size-sm: 0.875rem;
   /* 14px */
   --font-size-base: 1rem;
   /* 16px */
   --font-size-lg: 1.125rem;
   /* 18px */
   --font-size-xl: 1.25rem;
   /* 20px */
   --font-size-2xl: 1.5rem;
   /* 24px */
   --font-size-3xl: 1.875rem;
   /* 30px */
   --font-size-4xl: 2.25rem;
   /* 36px */
   --font-size-5xl: 3rem;
   /* 48px */
   --font-size-6xl: 3.75rem;
   /* 60px */
   --font-size-7xl: 4.5rem;
   /* 72px */

   /* Line Heights */
   --line-height-tight: 1.2;
   --line-height-normal: 1.5;
   --line-height-relaxed: 1.75;

   /* Font Weights */
   --font-weight-light: 300;
   --font-weight-normal: 400;
   --font-weight-medium: 500;
   --font-weight-semibold: 600;
   --font-weight-bold: 700;
   --font-weight-black: 900;

   /* ============================================
       SPACING
    ============================================ */

   --space-xs: 0.5rem;
   /* 8px */
   --space-sm: 1rem;
   /* 16px */
   --space-md: 1.5rem;
   /* 24px */
   --space-lg: 2rem;
   /* 32px */
   --space-xl: 3rem;
   /* 48px */
   --space-2xl: 4rem;
   /* 64px */
   --space-3xl: 6rem;
   /* 96px */
   --space-4xl: 8rem;
   /* 128px */
   --space-5xl: 12rem;
   /* 192px */

   /* ============================================
       LAYOUT
    ============================================ */

   --container-max-width: 1400px;
   --container-padding: 2rem;
   --section-padding: 6rem;

   --header-height: 80px;
   --header-height-scroll: 60px;

   /* ============================================
       Z-INDEX
    ============================================ */

   --z-base: 1;
   --z-dropdown: 100;
   --z-sticky: 200;
   --z-fixed: 300;
   --z-modal-backdrop: 400;
   --z-modal: 500;
   --z-popover: 600;
   --z-tooltip: 700;
   --z-cursor: 9999;

   /* ============================================
       ANIMACIÓN
    ============================================ */

   --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
   --ease-out: cubic-bezier(0.215, 0.610, 0.355, 1);
   --ease-in: cubic-bezier(0.755, 0.050, 0.855, 0.060);
   --ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
   --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);

   --duration-fast: 0.2s;
   --duration-base: 0.3s;
   --duration-slow: 0.5s;
   --duration-slower: 0.8s;

   /* ============================================
       BORDER RADIUS
    ============================================ */

   --radius-sm: 0.25rem;
   /* 4px */
   --radius-md: 0.5rem;
   /* 8px */
   --radius-lg: 1rem;
   /* 16px */
   --radius-xl: 1.5rem;
   /* 24px */
   --radius-full: 9999px;

   /* ============================================
       SHADOWS
    ============================================ */

   --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
   --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
   --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
   --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
   --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

   /* ============================================
       ESTADOS DINÁMICOS (controlados por JS)
    ============================================ */

   --scroll-progress: 0;
   --mouse-x: 0;
   --mouse-y: 0;
   --is-scrolling: 0;
   --header-state: 0;
   /* 0 = normal, 1 = scrolled */

   /* ============================================
       STARGAZE DESIGN TOKENS
    ============================================ */

   /* Stargaze Gradients */
   --gradient-cosmic: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 100%);
   --gradient-cosmic-reverse: linear-gradient(135deg, #7b2ff7 0%, #00d4ff 100%);
   --gradient-sunset: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
   --gradient-aurora: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);

   /* Stargaze Colors */
   --stargaze-cyan: #00d4ff;
   --stargaze-purple: #7b2ff7;
   --stargaze-orange: #f59e0b;
   --stargaze-dark: #0a0a1a;
   --stargaze-darker: #050510;
   --stargaze-glass: rgba(255, 255, 255, 0.05);
   --stargaze-glass-border: rgba(255, 255, 255, 0.1);

   /* Glassmorphism */
   --glass-bg: rgba(255, 255, 255, 0.03);
   --glass-bg-hover: rgba(255, 255, 255, 0.08);
   --glass-border: rgba(255, 255, 255, 0.08);
   --glass-border-hover: rgba(255, 255, 255, 0.15);
   --glass-blur: 20px;

   /* Glow Effects */
   --glow-cyan: 0 0 30px rgba(0, 212, 255, 0.3);
   --glow-purple: 0 0 30px rgba(123, 47, 247, 0.3);
   --glow-orange: 0 0 30px rgba(245, 158, 11, 0.3);
   --glow-card: 0 20px 50px -10px rgba(0, 0, 0, 0.5);

   /* Section Spacing */
   --section-gap: 8rem;
   --card-gap: 2rem;
}

/* ============================================
   RESPONSIVE VARIABLES
============================================ */

@media (max-width: 1024px) {
   :root {
      --container-padding: 1.5rem;
      --section-padding: 4rem;
      --header-height: 70px;
      --header-height-scroll: 60px;
   }
}

@media (max-width: 768px) {
   :root {
      --container-padding: 1rem;
      --section-padding: 3rem;
      --header-height: 60px;
      --header-height-scroll: 60px;

      --font-size-5xl: 2.5rem;
      --font-size-6xl: 3rem;
      --font-size-7xl: 3.5rem;
   }
}