/* 
===================================================================
DESIGN SYSTEM VARIABLES - INGRUVO S.A.S.
Estética: "Dark Tech Premium"
Optimización: Mobile-First, Fluid Typography, CSS Container Queries
=================================================================== 
*/

:root {
  /* ========================================================
     1. COLOR SYSTEM (Dark Mode Default)
     ======================================================== */
  /* Neutrals & Surfaces */
  --c-bg-base: #0A0A0C;
  --c-bg-surface-1: #121217;
  --c-bg-surface-2: #1B1B22;
  --c-bg-overlay: rgba(10, 10, 12, 0.8);
  
  /* Text Accents */
  --c-text-main: #F3F4F6;
  --c-text-muted: #E2E8F0;
  --c-text-subtle: #4B5563;
  
  /* Brand Accents (Neon/Tech feeling) */
  --c-brand-primary: #3B82F6;
  --c-brand-secondary: #06B6D4;
  --c-brand-accent: #8B5CF6;
  --c-brand-glow: rgba(59, 130, 246, 0.4);
  
  /* Semantic Colors */
  --c-success-bg: rgba(16, 185, 129, 0.1);
  --c-success-text: #34D399;
  --c-error-bg: rgba(239, 68, 68, 0.1);
  --c-error-text: #F87171;
  --c-warning-text: #FBBF24;
  
  /* Borders & Dividers */
  --c-border-subtle: rgba(255, 255, 255, 0.05); /* Minimal separator */
  --c-border-strong: rgba(255, 255, 255, 0.15);

  /* ========================================================
     2. FLUID TYPOGRAPHY (Clamp System)
     Scale based on min/max viewport (320px - 1440px)
     ======================================================== */
  /* Base scale factor (optional utility) */
  --fluid-min-width: 320;
  --fluid-max-width: 1440;

  /* Font Families */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Fluid Size Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem); /* 12px - 14px */
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem); /* 14px - 16px */
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem); /* 16px - 18px */
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem); /* 18px - 20px */
  --text-xl: clamp(1.25rem, 1rem + 1.25vw, 1.5rem); /* 20px - 24px */
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem); /* 24px - 32px */
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem); /* 30px - 40px */
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem); /* 36px - 56px */
  --text-5xl: clamp(2.75rem, 2rem + 3.75vw, 5rem); /* 44px - 80px */
  --text-hero: clamp(3rem, 2.5rem + 5vw, 7rem); /* 48px - 112px */

  /* Font Weights */
  --font-fw-regular: 400;
  --font-fw-medium: 500;
  --font-fw-semibold: 600;
  --font-fw-bold: 700;

  /* ========================================================
     3. FLUID SPACING SYSTEM (8pt Rhythm / Clamp)
     Matches the standard 4pt/8dp rhythm naturally
     ======================================================== */
  --space-2xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem); /* 4px - 8px */
  --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem); /* 8px - 12px */
  --space-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1rem); /* 12px - 16px */
  --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem); /* 16px - 24px */
  --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); /* 24px - 40px */
  --space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem); /* 32px - 64px */
  --space-2xl: clamp(3rem, 2rem + 5vw, 6rem); /* 48px - 96px */
  --space-3xl: clamp(4rem, 3rem + 5vw, 8rem); /* 64px - 128px */
  
  /* Section specific padding */
  --section-py: var(--space-3xl);
  --section-px: var(--space-lg);

  /* Layout Boundaries */
  --container-max-w: 1280px;
  --container-narrow: 800px;
  --header-height: clamp(60px, 8vh, 80px);

  /* ========================================================
     4. EFFECTS & ANIMATIONS 
     Matches UI-UX-Pro-Max & Animate Skills
     ======================================================== */
  /* Shadows / Glows (Glassmorphism / Glow) */
  --shadow-sm: 0 4px 10px rgba(0,0,0,0.2);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 20px var(--c-brand-glow);
  --shadow-glow-active: 0 0 40px rgba(59, 130, 246, 0.7);

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Standard Beziers */
  --ease-standard: cubic-bezier(0.25, 1, 0.5, 1);     /* Smooth move, slides, general UI */
  --ease-snappy: cubic-bezier(0.22, 1, 0.36, 1);      /* Entrances, poppers, buttons */
  
  /* Interaction timing */
  --t-fast: 150ms;   /* Button press feedback */
  --t-med: 300ms;    /* Hovers, general morphing */
  --t-slow: 500ms;   /* Major layout slides */
}

/* Base HTML Setups */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100dvh; /* Mobile compatible dynamic viewport */
  background-color: var(--c-bg-base);
  color: var(--c-text-main);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden; /* Remove potential horizontal scroll */
}

/* Reduced Motion fallback to prevent jarring animations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
