/* ==========================================================================
   DISEÑO DE TOKENS - ZEPHY HOSTING (DARK MODE GAMING / HOSTING)
   Paleta: Púrpura neón (#7C3AED / #9333EA) sobre fondo azul profundo
   Bootstrap 5.3.3 es el framework base. Este archivo solo aporta tokens
   y overrides de variables de Bootstrap para la estética Apple/Proton.
   ========================================================================== */

/* 1. VARIABLES DE COLOR */
:root {
  /* Colores principales - Púrpura Neón */
  --color-primary: #7C3AED;        /* Púrpura vibrante - acento principal */
  --color-primary-dark: #6D28D9;   /* Púrpura más oscuro */
  --color-primary-light: #A78BFA;  /* Púrpura más claro */

  /* Fondos - Modo oscuro profundo */
  --color-bg-main: #0B0F19;        /* Fondo principal azul oscuro profundo */
  --color-bg-surface: #111827;     /* Superficies elevadas (Slate 900) */
  --color-bg-card: #111827;        /* Tarjetas y componentes (Slate 900) */
  --color-bg-hover: #1F2937;       /* Estado hover (Slate 800) */

  /* Texto */
  --color-text-primary: #ffffff;   /* Texto principal blanco puro */
  --color-text-secondary: #cbd5e1; /* Texto secundario slate claro */
  --color-text-muted: #cbd5e1;     /* Texto atenuado slate 400 */

  /* Estados */
  --color-success: #22c55e;
  --color-warning: #fbbf24;
  --color-error: #f87171;
  --color-info: #60a5fa;
  --color-success-dark: #15803d;
  --color-warning-dark: #b45309;
  --color-error-dark: #b91c1c;
  --color-info-dark: #2563eb;

  /* Bordes - Morado sutil transparente */
  --color-border: rgba(139, 92, 246, 0.15);
  --color-border-hover: rgba(139, 92, 246, 0.35);
}

/* 2. TIPOGRAFÍA - Variables (Apple aesthetic: Plus Jakarta Sans) */
:root {
  --font-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --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-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
}

/* 3. ESPACIADO (4px-based scale) */
:root {
  --space-0: 0rem;
  --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;
}

/* 4. RADIOS */
:root {
  --radius-none: 0;
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
}

/* 5. SOMBRAS */
:root {
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-outline: 0 0 0 3px rgba(124, 58, 237, 0.5);
}

/* 6. TRANSICIONES */
:root {
  --transition-fast: 100ms ease-in-out;
  --transition-normal: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
}

/* 7. Z-INDEX */
:root {
  --z-index-docked: 10;
  --z-index-modal: 1000;
  --z-index-popover: 1100;
  --z-index-tooltip: 1200;
}

/* 8. OVERRIDES DE VARIABLES DE BOOTSTRAP (estética Apple/Proton) */
:root {
  /* Colores de Bootstrap mapeados a nuestra paleta púrpura */
  --bs-primary: #7C3AED;
  --bs-primary-rgb: 124, 58, 237;
  --bs-primary-hover: #6D28D9;
  --bs-secondary: #64748b;
  --bs-success: #22c55e;
  --bs-warning: #fbbf24;
  --bs-danger: #f87171;
  --bs-info: #60a5fa;
  --bs-dark: #06090e;
  --bs-body-bg: #0B0F19;
  --bs-body-color: #ffffff;
  --bs-font-sans: var(--font-base);

  /* Bordes de Bootstrap */
  --bs-border-color: var(--color-border);
  --bs-border-color-translucent: rgba(255, 255, 255, 0.1);
}

/* 9. ESTILOS BASE */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-main);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 10. UTILIDADES PERSONALIZADAS (sin conflicto con Bootstrap) */
.tracking-tight {
  letter-spacing: -0.025em;
}

.cursor-pointer {
  cursor: pointer;
}

.min-w-0 {
  min-width: 0;
}

.shrink-0 {
  flex-shrink: 0;
}

/* 11. ESTILOS DE IMPRESIÓN */
@media print {
  body {
    background-color: white !important;
    color: black !important;
  }
  .no-print {
    display: none !important;
  }
}

/* 12. REDUCIR MOVIMIENTO (accesibilidad) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
