/* ============================================
   IMPROVEMIND DESIGN SYSTEM
   Colores, Tipografía y Tokens de Diseño
   ============================================ */

/* ============================================
   PALETA DE COLORES
   ============================================ */

:root {
    /* Colores Primarios */
    --color-primary-red: #E60000;
    --color-primary-black: #000000;
    --color-primary-white: #FFFFFF;

    /* Colores de Acento */
    --color-accent-green: #3FFF00;
    --color-accent-green-alt: #00FF00;

    /* Grises (complementarios) */
    --color-gray-900: #111111;
    --color-gray-800: #1a1a1a;
    --color-gray-700: #2a2a2a;
    --color-gray-600: #3a3a3a;
    --color-gray-500: #666666;
    --color-gray-400: #999999;
    --color-gray-300: #cccccc;
    --color-gray-200: #e5e5e5;
    --color-gray-100: #f5f5f5;

    /* Overlays y Sombras */
    --overlay-dark: rgba(0, 0, 0, 0.8);
    --overlay-medium: rgba(0, 0, 0, 0.5);
    --overlay-light: rgba(0, 0, 0, 0.3);

    /* Estados de UI */
    --color-success: var(--color-accent-green);
    --color-error: var(--color-primary-red);
    --color-warning: #FFA500;
    --color-info: var(--color-accent-green);
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */

:root {
    /* Font Families */
    --font-heading: 'Inter Tight', 'Bebas Neue', 'Montserrat', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-body: 'Inter', 'Work Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'Roboto Mono', 'Courier New', monospace;

    /* Font Sizes */
    --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 */
    --text-7xl: 4.5rem;
    /* 72px */
    --text-8xl: 6rem;
    /* 96px */
    --text-9xl: 8rem;
    /* 128px */

    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
}

/* ============================================
   ESPACIADO
   ============================================ */

:root {
    --spacing-1: 0.25rem;
    /* 4px */
    --spacing-2: 0.5rem;
    /* 8px */
    --spacing-3: 0.75rem;
    /* 12px */
    --spacing-4: 1rem;
    /* 16px */
    --spacing-5: 1.25rem;
    /* 20px */
    --spacing-6: 1.5rem;
    /* 24px */
    --spacing-8: 2rem;
    /* 32px */
    --spacing-10: 2.5rem;
    /* 40px */
    --spacing-12: 3rem;
    /* 48px */
    --spacing-16: 4rem;
    /* 64px */
    --spacing-20: 5rem;
    /* 80px */
    --spacing-24: 6rem;
    /* 96px */
    --spacing-32: 8rem;
    /* 128px */
    --spacing-40: 10rem;
    /* 160px */
    --spacing-48: 12rem;
    /* 192px */
    --spacing-56: 14rem;
    /* 224px */
    --spacing-64: 16rem;
    /* 256px */
}

/* ============================================
   BORDER RADIUS
   ============================================ */

:root {
    --radius-none: 0;
    --radius-sm: 0.125rem;
    /* 2px */
    --radius-base: 0.25rem;
    /* 4px */
    --radius-md: 0.375rem;
    /* 6px */
    --radius-lg: 0.5rem;
    /* 8px */
    --radius-xl: 0.75rem;
    /* 12px */
    --radius-2xl: 1rem;
    /* 16px */
    --radius-3xl: 1.5rem;
    /* 24px */
    --radius-full: 9999px;
}

/* ============================================
   SOMBRAS
   ============================================ */

:root {
    --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 0 rgba(0, 0, 0, 0.06);
    --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-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow-red: 0 0 20px rgba(230, 0, 0, 0.5);
    --shadow-glow-green: 0 0 20px rgba(63, 255, 0, 0.5);
}

/* ============================================
   TRANSICIONES
   ============================================ */

:root {
    --transition-fast: 150ms;
    --transition-base: 300ms;
    --transition-slow: 500ms;

    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   Z-INDEX
   ============================================ */

:root {
    --z-base: 1;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ============================================
   BREAKPOINTS (Media Queries)
   ============================================ */

/* 
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
*/

/* ============================================
   CLASES DE UTILIDAD
   ============================================ */

/* Backgrounds */
.bg-primary-red {
    background-color: var(--color-primary-red);
}

.bg-primary-black {
    background-color: var(--color-primary-black);
}

.bg-primary-white {
    background-color: var(--color-primary-white);
}

.bg-accent-green {
    background-color: var(--color-accent-green);
}

/* Text Colors */
.text-primary-red {
    color: var(--color-primary-red);
}

.text-primary-black {
    color: var(--color-primary-black);
}

.text-primary-white {
    color: var(--color-primary-white);
}

.text-accent-green {
    color: var(--color-accent-green);
}

/* Typography */
.font-heading {
    font-family: var(--font-heading);
}

.font-body {
    font-family: var(--font-body);
}

.font-extrabold {
    font-weight: var(--font-extrabold);
}

.font-bold {
    font-weight: var(--font-bold);
}

/* Text Sizes */
.text-hero {
    font-size: var(--text-8xl);
    line-height: var(--leading-none);
}

.text-headline {
    font-size: var(--text-6xl);
    line-height: var(--leading-tight);
}

.text-title {
    font-size: var(--text-4xl);
    line-height: var(--leading-tight);
}

.text-subtitle {
    font-size: var(--text-2xl);
    line-height: var(--leading-normal);
}

/* Effects */
.glow-red {
    box-shadow: var(--shadow-glow-red);
}

.glow-green {
    box-shadow: var(--shadow-glow-green);
}

.transition-base {
    transition: all var(--transition-base) var(--ease-in-out);
}