/* 🔤 Tipografía - Import debe estar al inicio */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* 🎨 Design System - Variables de Tema Base y Colores */
:root {
    /* 🎨 Paleta de Colores Principal */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* 🎨 Colores de Estado */
    --success-50: #ecfdf5;
    --success-500: #10b981;
    --success-600: #059669;
    --success-700: #047857;

    --warning-50: #fffbeb;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --warning-700: #b45309;

    --error-50: #fef2f2;
    --error-500: #ef4444;
    --error-600: #dc2626;
    --error-700: #b91c1c;

    /* 🎨 Colores Neutros */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* 🎨 Colores de Tema Oscuro Mejorados - Consistencia Total */
    --bg-primary: #0a0a0f;      /* Fondo principal - muy oscuro para estrellas */
    --bg-secondary: #14141f;    /* Fondo de cards - sutil */
    --bg-tertiary: #1a1a24;     /* Elementos elevados */
    --bg-card: #1a1a24;         /* Cards principales */
    --bg-elevated: #23272f;     /* Elementos destacados */

    --text-primary: #ffffff;    /* Blanco puro para máxima legibilidad */
    --text-secondary: #e2e8f0;  /* Texto secundario claro */
    --text-muted: #94a3b8;      /* Texto muted sutil */
    --text-inverse: #000000;   /* Negro para elementos claros */

    --border-primary: #374151;  /* Bordes suaves */
    --border-secondary: #4b5563; /* Bordes secundarios */
    --border-focus: #6366f1;   /* Azul vibrante para focus */

    /* ✨ Glow Effects Mejorados (Más intensos) */
    --glow-primary: rgba(99, 102, 241, 0.6);    /* Azul más brillante */
    --glow-success: rgba(34, 197, 94, 0.6);     /* Verde esmeralda */
    --glow-warning: rgba(251, 191, 36, 0.6);    /* Amarillo dorado */
    --glow-error: rgba(239, 68, 68, 0.6);       /* Rojo coral */
    --glow-accent: rgba(168, 85, 247, 0.6);     /* Púrpura vibrante */
    --glow-subtle: rgba(255, 255, 255, 0.15);   /* Blanco sutil */

    /* 📐 Sistema de Espaciado Consistente */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */

    /* 📏 Bordes y Radios */
    --radius-sm: 0.25rem;  /* 4px */
    --radius-md: 0.375rem; /* 6px */
    --radius-lg: 0.5rem;   /* 8px */
    --radius-xl: 0.75rem;  /* 12px */
    --radius-2xl: 1rem;    /* 16px */

    /* 🎯 Sombras */
    --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-glow: 0 0 20px var(--glow-primary);

    /* ⌨️ Tipografía */
    --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-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* ⏱️ Transiciones */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* 🎨 Gradientes Consistentes para Feed */
    --gradient-hero-bg: linear-gradient(135deg, rgba(24,24,24,0.8) 0%, rgba(42,42,42,0.8) 100%);
    --gradient-text-white: linear-gradient(90deg, #fff 0%, #eaeaea 100%);
    --gradient-product-card: linear-gradient(135deg, rgba(255,0,150,0.1) 0%, rgba(0,204,255,0.1) 50%, rgba(255,255,0,0.1) 100%);
    --gradient-footer: linear-gradient(135deg, #23272f 0%, #1a1d23 50%, #0f1419 100%);
    --gradient-section-divider: linear-gradient(90deg, transparent, #fff, transparent);
    --gradient-btn-primary: linear-gradient(90deg, #f5f5f5 0%, #e0e0e0 100%);
    --gradient-btn-secondary: rgba(255,255,255,0.1);
}

/* 🎯 Elementos Destacados (Uso selectivo de glow) */
.glow-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    box-shadow: var(--shadow-glow);
    border: 1px solid var(--primary-500);
    font-weight: var(--font-weight-semibold);
}

.glow-success {
    background: linear-gradient(135deg, var(--success-500), var(--success-600));
    color: white;
    box-shadow: 0 0 20px var(--glow-success);
    border: 1px solid var(--success-500);
}

.glow-warning {
    background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
    color: white;
    box-shadow: 0 0 20px var(--glow-warning);
    border: 1px solid var(--warning-500);
}

/* 🏷️ Badges Modernos */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    line-height: 1;
}

.badge-primary {
    background-color: var(--primary-100);
    color: var(--primary-800);
    border: 1px solid var(--primary-200);
}

.badge-success {
    background-color: var(--success-50);
    color: var(--success-700);
    border: 1px solid var(--success-200);
}

.badge-warning {
    background-color: var(--warning-50);
    color: var(--warning-700);
    border: 1px solid var(--warning-200);
}

.badge-error {
    background-color: var(--error-50);
    color: var(--error-700);
    border: 1px solid var(--error-200);
}

/* 🚨 Alertas Modernas */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.alert-success {
    background-color: var(--success-50);
    color: var(--success-800);
    border-color: var(--success-200);
}

.alert-warning {
    background-color: var(--warning-50);
    color: var(--warning-800);
    border-color: var(--warning-200);
}

.alert-error {
    background-color: var(--error-50);
    color: var(--error-800);
    border-color: var(--error-200);
}

.alert-info {
    background-color: var(--primary-50);
    color: var(--primary-800);
    border-color: var(--primary-200);
}


/* 🔄 Reset y Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--bg-primary) !important;
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: transparent !important;
    min-height: 100vh;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    letter-spacing: -0.01em;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* 🎯 Elementos Base */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin: 0 0 var(--space-4) 0;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin: 0 0 var(--space-4) 0;
    color: var(--text-secondary);
}

a {
    color: var(--primary-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-600);
}

a:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* 🎯 Colores consistentes para emojis y spans en todas las vistas */
.section-title span,
.dashboard-title span,
h2 span,
h3 span,
h4 span,
h5 span,
h6 span,
.product-title span,
.product-price span,
.product-promo span,
.dashboard-action-card span,
.badge span {
    color: #fff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: 0 0 6px rgba(255,255,255,0.5) !important;
}

/* Colores para textos en cards y elementos */
.product-card .card-body,
.product-card .card-body p,
.product-card .card-body div,
.dashboard-container .actividad-lista li,
.alert p,
.alert li,
.product-detail-container .product-description,
.product-detail-container .spec-value,
.product-detail-container .info-card-content p {
    color: #ffffff !important;
}

/* Emojis específicos en product detail */
.product-favorite-btn span,
.feature-icon,
.spec-icon svg {
    color: #fff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: 0 0 4px rgba(255,255,255,0.3) !important;
}