/* ==========================================================================
   EBSS - Design Tokens
   Fuente única de verdad para el sistema de diseño
   ========================================================================== */

:root {
  /* ========================================
     COLORES
     ======================================== */
  
  /* Primario - Naranja EBSS */
  --color-primary: #e65718;
  --color-primary-dark: #c44a14;
  --color-primary-light: #ff6a2a;
  --color-primary-rgb: 230, 87, 24; /* Para usar con rgba() */
  
  /* Texto */
  --color-heading: #333743;
  --color-text: #656b6f;
  --color-text-muted: #9ca3af;
  --color-text-inverse: #ffffff;
  
  /* Fondos */
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-bg-dark: #333743;
  
  /* UI */
  --color-border: #e5e7eb;
  --color-border-input: var(--color-primary);
  
  /* Estados */
  --color-success: #22c55e;
  --color-error: #ef4444;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;
  
  /* ========================================
     TIPOGRAFÍA
     ======================================== */
  
  /* Familias */
  --font-heading: 'Gobold', 'Arial Black', 'Arial Bold', sans-serif;
  --font-body: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Tamaños - Mobile First */
  --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.75rem;    /* 28px */
  --text-4xl: 2rem;       /* 32px */
  --text-5xl: 2.5rem;     /* 40px */
  --text-6xl: 3rem;       /* 48px */
  
  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  
  /* Font Weights */
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* ========================================
     ESPACIADO
     ======================================== */
  
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
  --space-4xl: 6rem;      /* 96px */
  
  /* ========================================
     BORDES
     ======================================== */
  
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;  /* Pill / Circular */
  
  --border-width: 1px;
  --border-width-thick: 2px;
  
  /* ========================================
     SOMBRAS
     ======================================== */
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Sombra con color primario (para focus) */
  --shadow-primary: 0 0 0 3px rgba(var(--color-primary-rgb), 0.2);
  
  /* ========================================
     TRANSICIONES
     ======================================== */
  
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* ========================================
     LAYOUT
     ======================================== */
  
  /* Header */
  --header-height: 72px;
  
  --container-max: 1200px;
  --container-padding: var(--space-md);
  
  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
}

/* ========================================
   RESPONSIVE TOKENS
   ======================================== */

@media (min-width: 768px) {
  :root {
    --container-padding: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: var(--space-xl);
  }
}
