@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color Palette - HSL Dark Theme */
  --bg-primary: hsl(222, 47%, 7%);
  --bg-secondary: hsl(222, 40%, 11%);
  --bg-card: hsla(222, 38%, 14%, 0.7);
  --bg-card-hover: hsla(222, 38%, 18%, 0.85);
  --bg-glass: hsla(222, 40%, 12%, 0.75);
  --bg-glass-heavy: hsla(222, 45%, 9%, 0.92);
  --border-subtle: hsla(217, 33%, 25%, 0.5);
  /* Brand Accents - ARESOFTWARE Institutional Palette (www.aresoftware.com.co) */
  --accent-cyan: hsl(24, 95%, 53%);
  --accent-cyan-glow: hsla(24, 95%, 53%, 0.28);
  --accent-orange: hsl(24, 95%, 53%);
  --accent-blue: hsl(199, 95%, 48%);
  --accent-purple: hsl(201, 96%, 45%);
  --accent-gradient: linear-gradient(135deg, hsl(24, 95%, 53%) 0%, hsl(21, 90%, 48%) 50%, hsl(199, 95%, 48%) 100%);
  --accent-gradient-subtle: linear-gradient(135deg, hsla(24, 95%, 53%, 0.14) 0%, hsla(199, 95%, 48%, 0.12) 100%);
  --border-focus: hsl(24, 95%, 53%);
  --border-highlight: hsla(24, 95%, 53%, 0.45);

  /* Institutional Aliases */
  --color-primary: hsl(24, 95%, 53%);
  --color-primary-hover: hsl(21, 90%, 48%);
  --color-secondary: hsl(199, 95%, 48%);
  --color-secondary-hover: hsl(201, 96%, 40%);

  /* Status Tokens */
  --success: hsl(142, 71%, 45%);
  --success-bg: hsla(142, 71%, 45%, 0.15);
  --success-border: hsla(142, 71%, 45%, 0.4);
  --warning: hsl(38, 92%, 50%);
  --warning-bg: hsla(38, 92%, 50%, 0.15);
  --warning-border: hsla(38, 92%, 50%, 0.4);
  --danger: hsl(0, 84%, 60%);
  --danger-bg: hsla(0, 84%, 60%, 0.15);
  --danger-border: hsla(0, 84%, 60%, 0.4);
  --info: hsl(199, 89%, 48%);
  --info-bg: hsla(199, 89%, 48%, 0.15);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 75%);
  --text-muted: hsl(215, 16%, 52%);
  --text-accent: hsl(24, 95%, 53%);

  /* Spacers & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Shadows & Elevations */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 25px var(--accent-cyan-glow);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  /* Canvas Backgrounds */
  --canvas-grid-dot: hsla(217, 33%, 35%, 0.4);
  --canvas-bg: hsl(222, 47%, 7%);
}

[data-theme="light"] {
  /* Color Palette - Refined Light Theme */
  --bg-primary: hsl(215, 28%, 97%);
  --bg-secondary: hsl(214, 30%, 93%);
  --bg-card: hsla(0, 0%, 100%, 0.92);
  --bg-card-hover: hsl(0, 0%, 100%);
  --bg-glass: hsla(210, 20%, 96%, 0.9);
  --bg-glass-heavy: hsla(0, 0%, 100%, 0.97);
  --border-subtle: hsla(215, 20%, 80%, 0.75);
  --border-focus: hsl(24, 95%, 50%);
  --border-highlight: hsla(24, 95%, 50%, 0.5);

  /* Brand Accents adapted for light contrast - ARESOFTWARE Institutional Palette */
  --accent-cyan: hsl(24, 95%, 48%);
  --accent-cyan-glow: hsla(24, 95%, 48%, 0.2);
  --accent-orange: hsl(24, 95%, 48%);
  --accent-blue: hsl(199, 95%, 42%);
  --accent-purple: hsl(201, 96%, 42%);
  --accent-gradient: linear-gradient(135deg, hsl(24, 95%, 50%) 0%, hsl(21, 90%, 46%) 50%, hsl(199, 95%, 42%) 100%);
  --accent-gradient-subtle: linear-gradient(135deg, hsla(24, 95%, 50%, 0.12) 0%, hsla(199, 95%, 42%, 0.10) 100%);

  /* Institutional Aliases */
  --color-primary: hsl(24, 95%, 48%);
  --color-primary-hover: hsl(21, 90%, 44%);
  --color-secondary: hsl(199, 95%, 42%);
  --color-secondary-hover: hsl(201, 96%, 36%);

  /* Status Tokens */
  --success: hsl(142, 76%, 32%);
  --success-bg: hsla(142, 71%, 45%, 0.12);
  --success-border: hsla(142, 71%, 38%, 0.4);
  --warning: hsl(36, 95%, 40%);
  --warning-bg: hsla(38, 92%, 50%, 0.12);
  --warning-border: hsla(38, 92%, 40%, 0.4);
  --danger: hsl(0, 78%, 52%);
  --danger-bg: hsla(0, 84%, 60%, 0.12);
  --danger-border: hsla(0, 84%, 50%, 0.4);
  --info: hsl(199, 89%, 40%);
  --info-bg: hsla(199, 89%, 48%, 0.12);

  /* Typography */
  --text-primary: hsl(222, 47%, 12%);
  --text-secondary: hsl(215, 25%, 30%);
  --text-muted: hsl(215, 16%, 46%);
  --text-accent: hsl(24, 95%, 48%);

  /* Shadows & Elevations for Light Mode */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.15);
  --shadow-glow: 0 0 20px hsla(24, 95%, 48%, 0.2);

  /* Canvas Backgrounds */
  --canvas-grid-dot: hsla(215, 25%, 35%, 0.22);
  --canvas-bg: hsl(215, 28%, 95%);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, hsla(212, 100%, 55%, 0.10), transparent),
    radial-gradient(ellipse 60% 40% at 85% 60%, hsla(265, 89%, 66%, 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 10% 40%, hsla(174, 90%, 45%, 0.06), transparent);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: hsl(174, 100%, 60%);
  text-decoration: underline;
}

code, pre, .mono {
  font-family: var(--font-mono);
}
