/* AutoP2P Design Tokens - CSS Variables and Design System */
/* COLORES AUDITADOS Y SINCRONIZADOS: Solo se usan colores que existen en el dashboard */

/*
MAPA DE COLORES DOCUMENTADO - NOMBRES SEMÁNTICOS
===============================================

COLORES PRINCIPALES:
- primary-color: #3b82f6 (Azul principal - botones primarios, enlaces)
- primary-dark: #2563eb (Azul oscuro - estados hover)
- primary-light: #60a5fa (Azul claro - variaciones)
- secondary-color: #6366f1 (Púrpura - botones secundarios)
- secondary-dark: #5b21b6 (Púrpura oscuro - hover states)

COLORES DE ESTADO:
- success-color: #10b981 (Verde - éxito, confirmaciones)
- success-dark: #059669 (Verde oscuro - hover states)
- warning-color: #f59e0b (Amarillo - advertencias)
- danger-color: #ef4444 (Rojo - errores, peligro)
- info-color: #06b6d4 (Cian - información)

COLORES DE FONDO:
- bg-primary: #0f172a (Fondo principal oscuro)
- bg-secondary: #1e293b (Fondo secundario)
- bg-tertiary: #334155 (Fondo terciario)
- bg-card: #1e293b (Fondo de tarjetas)
- bg-hover: #334155 (Fondo hover)

COLORES DE TEXTO:
- text-primary: #f8fafc (Texto principal - alta legibilidad)
- text-secondary: #cbd5e1 (Texto secundario - media legibilidad)
- text-muted: #94a3b8 (Texto atenuado - baja legibilidad)
- text-inverse: #0f172a (Texto inverso para fondos claros)

COLORES DE BORDE:
- border-color: #334155 (Bordes principales)
- border-light: #475569 (Bordes claros)
*/

:root {
    /* COLORES PRINCIPALES - Copiados exactamente del dashboard */
    --primary-color: #3b82f6;      /* Azul principal - botones primarios */
    --primary-dark: #2563eb;       /* Azul oscuro - hover states */
    --primary-light: #60a5fa;      /* Azul claro - variaciones */
    --secondary-color: #6366f1;    /* Púrpura - botones secundarios */
    --secondary-dark: #5b21b6;     /* Púrpura oscuro - hover states */
    --success-color: #10b981;      /* Verde - éxito, confirmaciones */
    --success-dark: #059669;       /* Verde oscuro - hover states */
    --warning-color: #f59e0b;      /* Amarillo - advertencias */
    --danger-color: #ef4444;       /* Rojo - errores, peligro */
    --info-color: #06b6d4;         /* Cian - información */
    
    /* ALIASES para compatibilidad con código existente */
    --color-primary: #3b82f6;
    --color-secondary: #6366f1;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-secondary-dark: #5b21b6;
    --color-success-dark: #059669;
    --color-accent: #10b981;       /* Cambiado a success-color del dashboard */
    --color-dark: #0F172A;
    --color-dark-light: #1E293B;
    --color-gray-light: #E2E8F0;
    --color-gray-medium: #94A3B8;
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Backgrounds - COPIADOS EXACTAMENTE del dashboard */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    
    /* Text Colors - EXACTOS del dashboard */
    --text-primary: #f8fafc;         /* Era #FFFFFF */
    --text-secondary: #cbd5e1;       /* Era #D1D5DB */
    --text-muted: #94a3b8;           /* Era #9CA3AF */
    --text-inverse: #0f172a;         /* NUEVO del dashboard */
    
    /* Borders - NUEVOS del dashboard */
    --border-color: #334155;
    --border-light: #475569;
    
    /* Gradient Colors */
    --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
    --gradient-text: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-pricing: linear-gradient(to right, var(--color-primary), var(--color-success));
    
    /* Typography */
    --font-family-primary: 'Inter', system-ui, sans-serif;
    --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-size-hero: clamp(2.5rem, 8vw, 5rem);
    
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    --line-height-tight: 1.1;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    --spacing-24: 6rem;
    --spacing-32: 8rem;
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius-base: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows - NUEVOS del dashboard */
    --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-neon: 0 0 20px rgba(59, 130, 246, 0.5);
    --shadow-neon-hover: 0 0 30px rgba(59, 130, 246, 0.8);
    --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.3);
    
    /* Transitions - NUEVOS del dashboard */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* Breakpoints (for reference in media queries) */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    
    /* Container Max Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    
    /* Performance Budget Limits */
    --max-css-size: 200kb;
    --max-js-size: 500kb;
    --max-image-size: 1mb;
    --max-total-size: 2mb;
    --max-requests: 50;
    
    /* Core Web Vitals Targets */
    --target-lcp: 2.5s;
    --target-fid: 100ms;
    --target-cls: 0.1;
    --target-load-time: 3s;
}

/* Dark Theme Overrides (default) */
[data-theme="dark"], :root {
    --text-primary: var(--color-white);
    --text-secondary: var(--color-gray-light);
    --text-muted: var(--color-gray-medium);
    --bg-primary: var(--color-dark);
    --bg-secondary: var(--color-dark-light);
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Light Theme Overrides (if needed) */
[data-theme="light"] {
    --text-primary: var(--color-dark);
    --text-secondary: var(--color-dark-light);
    --text-muted: var(--color-gray-medium);
    --bg-primary: var(--color-white);
    --bg-secondary: var(--color-gray-light);
    --border-color: rgba(0, 0, 0, 0.1);
}

/* Regional Customizations */
[data-region="ar"] {
    /* Argentina specific overrides */
    --currency-symbol: "$";
    --number-format: "1.234,56";
}

[data-region="uy"] {
    /* Uruguay specific overrides */
    --currency-symbol: "$U";
    --number-format: "1.234,56";
}

[data-region="br"] {
    /* Brazil specific overrides */
    --currency-symbol: "R$";
    --number-format: "1.234,56";
}

[data-region="co"] {
    /* Colombia specific overrides */
    --currency-symbol: "$";
    --number-format: "1.234,56";
}

[data-region="pe"] {
    /* Peru specific overrides */
    --currency-symbol: "S/";
    --number-format: "1,234.56";
}

[data-region="us"] {
    /* US specific overrides */
    --currency-symbol: "$";
    --number-format: "1,234.56";
}