/**
 * Design Tokens
 * 
 * Variables CSS centralizadas para consistencia visual.
 * Basado en escala de 8px y ratio tipográfico 1.25 (major third)
 */

:root {
  /* ==========================================================================
     Brand Colors
     ========================================================================== */
  /* Brand Colors defined in manual */
  --brand-navy: #000046;
  --brand-navy-dark: #00003c;
  --brand-navy-ink: #000028;

  --brand-blue: #0050c8;
  --brand-blue-hover: #0a46aa;
  --brand-blue-soft: #d2dcf0;

  --brand-slate: #3c3c64;
  --brand-muted: #8c8caa;
  --brand-white: #fafafa;

  /* Mapeo de colores principales */
  --color-primary-50: #f4f6fa;
  --color-primary-100: var(--brand-blue-soft);
  --color-primary-200: #aabedc;
  --color-primary-300: #809fc8;
  --color-primary-400: #557fb4;
  --color-primary-500: var(--brand-blue);
  --color-primary-600: var(--brand-blue-hover);
  --color-primary-700: var(--brand-navy-dark);
  --color-primary-800: var(--brand-navy-dark);
  --color-primary-900: var(--brand-navy);
  
  --color-secondary-50: #f8f8fa;
  --color-secondary-100: #e8e8f0;
  --color-secondary-200: #d8d8e5;
  --color-secondary-300: var(--brand-muted);
  --color-secondary-400: var(--brand-slate);
  --color-secondary-500: var(--brand-slate);
  --color-secondary-600: var(--brand-navy-dark);
  --color-secondary-700: var(--brand-navy-ink);
  --color-secondary-800: var(--brand-navy-ink);
  --color-secondary-900: var(--brand-navy-ink);
  
  --color-accent-500: var(--brand-blue); /* Reemplaza amarillo con Azul Ruta */
  --color-accent-600: var(--brand-blue-hover); /* Reemplaza naranja con Azul Ruta Profundo */
  
  /* ==========================================================================
     Neutral Colors
     ========================================================================== */
  --color-white: #ffffff;
  --color-black: #000000;
  
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* ==========================================================================
     Semantic Colors
     ========================================================================== */
  --color-text-primary: var(--brand-navy);
  --color-text-secondary: var(--brand-slate);
  --color-text-muted: var(--brand-muted);
  --color-text-inverse: var(--color-white);
  
  --color-bg-primary: var(--brand-white);
  --color-bg-secondary: #ffffff;
  --color-bg-dark: var(--brand-navy-ink);
  
  --color-border: var(--brand-blue-soft);
  
  /* ==========================================================================
     Typography Scale (Major Third - 1.25)
     ========================================================================== */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */
  
  --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: Georgia, Cambria, 'Times New Roman', Times, serif;
  --font-mono: Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  
  /* ==========================================================================
     Spacing Scale (8px base)
     ========================================================================== */
  --space-0: 0;
  --space-1: 0.25rem;     /* 4px */
  --space-2: 0.5rem;      /* 8px */
  --space-3: 0.75rem;     /* 12px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.25rem;     /* 20px */
  --space-6: 1.5rem;      /* 24px */
  --space-8: 2rem;        /* 32px */
  --space-10: 2.5rem;     /* 40px */
  --space-12: 3rem;       /* 48px */
  --space-16: 4rem;       /* 64px */
  --space-20: 5rem;       /* 80px */
  --space-24: 6rem;       /* 96px */
  --space-32: 8rem;       /* 128px */
  --space-40: 10rem;      /* 160px */
  --space-48: 12rem;      /* 192px */
  
  /* ==========================================================================
     Layout
     ========================================================================== */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* ==========================================================================
     Border Radius
     ========================================================================== */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --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 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  
  /* ==========================================================================
     Transitions
     ========================================================================== */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* ==========================================================================
     Z-Index Scale
     ========================================================================== */
  --z-behind: -1;
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}
