/* 
  ========================================
  SOFCOM - CSS Variables & Design System
  ========================================
  Este archivo contiene las variables CSS
  y tokens de diseño para mantener 
  consistencia en todo el sitio.
*/

/* ===== COLORES PRINCIPALES ===== */
:root {
  /* Colores primarios */
  --color-primary: #162290;
  --color-primary-light: #1e34a8;
  --color-primary-dark: #0f1a6b;
  --color-primary-rgb: 22, 34, 144;
  
  /* Colores secundarios */
  --color-secondary: #0066cc;
  --color-secondary-light: #007bff;
  --color-secondary-dark: #0056b3;
  
  /* Colores de acento */
  --color-accent: #00bfff;
  --color-accent-warm: #ff6b35;
  
  /* Colores neutros */
  --color-white: #ffffff;
  --color-light-gray: #f5f5f5;
  --color-gray: #e0e0e0;
  --color-dark-gray: #666666;
  --color-black: #000000;
  
  /* Colores de estado */
  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-danger: #dc3545;
  --color-info: #17a2b8;
  
  /* Colores de texto */
  --color-text-primary: #333333;
  --color-text-secondary: #666666;
  --color-text-light: #999999;
  --color-text-inverse: #ffffff;
  
  /* Fondos */
  --bg-primary: rgba(22, 34, 144, 0.882);
  --bg-secondary: rgba(0, 123, 255, 0.7);
  --bg-light: rgba(255, 255, 255, 0.9);
  --bg-overlay: rgba(0, 0, 0, 0.8);
}

/* ===== TIPOGRAFÍA ===== */
:root {
  /* Familia de fuentes */
  --font-primary: 'Arial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  
  /* Tamaños de fuente */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  
  /* Pesos de fuente */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Alturas de línea */
  --line-height-tight: 1.25;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
}

/* ===== ESPACIADO ===== */
:root {
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 3rem;      /* 48px */
  --spacing-3xl: 4rem;      /* 64px */
}

/* ===== BORDES ===== */
:root {
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;
  
  --border-width: 1px;
  --border-width-thick: 2px;
  
  --border-color: #e0e0e0;
  --border-color-light: rgba(255, 255, 255, 0.3);
}

/* ===== SOMBRAS ===== */
:root {
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  
  --shadow-primary: 0 4px 6px rgba(22, 34, 144, 0.3);
  --shadow-accent: 0 4px 6px rgba(0, 123, 255, 0.4);
}

/* ===== TRANSICIONES ===== */
:root {
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-slower: 800ms ease;
}

/* ===== Z-INDEX ===== */
:root {
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-preloader: 9999;
}

/* ===== BREAKPOINTS ===== */
:root {
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-2xl: 1400px;
}

/* ===== CONTAINER WIDTHS ===== */
:root {
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  --container-2xl: 1320px;
}

/* ===== ANIMATIONS ===== */
:root {
  --animation-duration-fast: 0.15s;
  --animation-duration-base: 0.3s;
  --animation-duration-slow: 0.5s;
  
  --animation-timing-ease: ease;
  --animation-timing-ease-in: ease-in;
  --animation-timing-ease-out: ease-out;
  --animation-timing-ease-in-out: ease-in-out;
  --animation-timing-linear: linear;
}
