/* ==========================================================================
   Design 17 - Parallax: CSS Variables
   Based on TurnosMedicos Design Tokens
   ========================================================================== */

:root {
  /* ========================================================================
     Brand Colors - TurnosMedicos Tokens
     ======================================================================== */
  --color-primary: #0ea5e9;
  --color-primary-light: #38bdf8;
  --color-primary-dark: #0284c7;
  --color-primary-darker: #0369a1;

  --color-secondary: #14b8a6;
  --color-secondary-light: #2dd4bf;
  --color-secondary-dark: #0d9488;

  /* ========================================================================
     Neutral Colors
     ======================================================================== */
  --color-white: #ffffff;
  --color-black: #000000;

  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;

  /* ========================================================================
     Semantic Colors
     ======================================================================== */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* ========================================================================
     Background Colors
     ======================================================================== */
  --bg-body: var(--color-gray-900);
  --bg-surface: var(--color-gray-800);
  --bg-overlay: rgba(15, 23, 42, 0.85);
  --bg-overlay-light: rgba(15, 23, 42, 0.6);
  --bg-overlay-dark: rgba(0, 0, 0, 0.7);

  /* ========================================================================
     Text Colors
     ======================================================================== */
  --text-primary: var(--color-white);
  --text-secondary: var(--color-gray-300);
  --text-muted: var(--color-gray-400);
  --text-accent: var(--color-primary-light);

  /* ========================================================================
     Gradients
     ======================================================================== */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-primary-vertical: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-dark: linear-gradient(180deg, var(--color-gray-900) 0%, var(--color-gray-800) 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(20, 184, 166, 0.2) 100%);
  --gradient-text: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-secondary-light) 100%);

  /* ========================================================================
     Typography - Inter Font
     ======================================================================== */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Font Sizes - Mobile First */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  --font-size-7xl: 4.5rem;

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

  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /* Letter Spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  --letter-spacing-widest: 0.1em;

  /* ========================================================================
     Spacing Scale
     ======================================================================== */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;
  --space-48: 12rem;
  --space-64: 16rem;

  /* ========================================================================
     Layout
     ======================================================================== */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;

  --section-padding-y: var(--space-16);
  --section-padding-x: var(--space-4);

  /* ========================================================================
     Border Radius
     ======================================================================== */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-base: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* ========================================================================
     Shadows
     ======================================================================== */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.3);
  --shadow-glow-lg: 0 0 40px rgba(14, 165, 233, 0.4);

  /* ========================================================================
     Transitions
     ======================================================================== */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-slower: 500ms ease;

  /* ========================================================================
     Z-Index Scale
     ======================================================================== */
  --z-behind: -1;
  --z-base: 0;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-popover: 500;
  --z-tooltip: 600;
  --z-max: 9999;

  /* ========================================================================
     Parallax Specific Variables
     ======================================================================== */
  --parallax-perspective: 1px;
  --parallax-scale-back: 2;
  --parallax-scale-deep: 3;
  --layer-depth-1: translateZ(-1px) scale(2);
  --layer-depth-2: translateZ(-2px) scale(3);
  --layer-depth-3: translateZ(-3px) scale(4);
}

/* ==========================================================================
   Responsive Variable Overrides
   ========================================================================== */

@media (min-width: 768px) {
  :root {
    --section-padding-y: var(--space-24);
    --section-padding-x: var(--space-8);
  }
}

@media (min-width: 1024px) {
  :root {
    --section-padding-y: var(--space-32);
    --section-padding-x: var(--space-12);
  }
}
