/* ========================================
   NetGoGo - Diseño Moderno 2025
   Tres Paletas de Colores
   ======================================== */

/* ========================================
   PALETA 1: ELEGANTE Y SOBRIA
   ======================================== */
:root[data-theme="elegant"] {
  /* Colores principales */
  --primary-50: #f8fafc;
  --primary-100: #f1f5f9;
  --primary-200: #e2e8f0;
  --primary-300: #cbd5e1;
  --primary-400: #94a3b8;
  --primary-500: #64748b;
  --primary-600: #475569;
  --primary-700: #334155;
  --primary-800: #1e293b;
  --primary-900: #0f172a;
  
  /* Acentos dorados */
  --accent-50: #fffbeb;
  --accent-100: #fef3c7;
  --accent-200: #fde68a;
  --accent-300: #fcd34d;
  --accent-400: #fbbf24;
  --accent-500: #f59e0b;
  --accent-600: #d97706;
  --accent-700: #b45309;
  --accent-800: #92400e;
  --accent-900: #78350f;
  
  /* Colores de estado */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Fondos */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  --bg-overlay: rgba(15, 23, 42, 0.8);
  
  /* Textos */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  
  /* Bordes */
  --border-primary: #334155;
  --border-secondary: #475569;
  --border-accent: #f59e0b;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* ========================================
   PALETA 2: BRILLANTE Y VIBRANTE
   ======================================== */
:root[data-theme="bright"] {
  /* Colores principales */
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;
  
  /* Acentos vibrantes */
  --accent-50: #fdf4ff;
  --accent-100: #fae8ff;
  --accent-200: #f5d0fe;
  --accent-300: #f0abfc;
  --accent-400: #e879f9;
  --accent-500: #d946ef;
  --accent-600: #c026d3;
  --accent-700: #a21caf;
  --accent-800: #86198f;
  --accent-900: #701a75;
  
  /* Colores de estado */
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #06b6d4;
  
  /* Fondos */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-overlay: rgba(255, 255, 255, 0.9);
  
  /* Textos */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  /* Bordes */
  --border-primary: #e2e8f0;
  --border-secondary: #cbd5e1;
  --border-accent: #d946ef;
  
  /* 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 rgba(217, 70, 239, 0.3);
}

/* ========================================
   PALETA 3: NEUTRA Y PROFESIONAL
   ======================================== */
:root[data-theme="neutral"] {
  /* Colores principales */
  --primary-50: #f9fafb;
  --primary-100: #f3f4f6;
  --primary-200: #e5e7eb;
  --primary-300: #d1d5db;
  --primary-400: #9ca3af;
  --primary-500: #6b7280;
  --primary-600: #4b5563;
  --primary-700: #374151;
  --primary-800: #1f2937;
  --primary-900: #111827;
  
  /* Acentos azules corporativos */
  --accent-50: #eff6ff;
  --accent-100: #dbeafe;
  --accent-200: #bfdbfe;
  --accent-300: #93c5fd;
  --accent-400: #60a5fa;
  --accent-500: #3b82f6;
  --accent-600: #2563eb;
  --accent-700: #1d4ed8;
  --accent-800: #1e40af;
  --accent-900: #1e3a8a;
  
  /* Colores de estado */
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;
  --info: #0891b2;
  
  /* Fondos */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-card: #ffffff;
  --bg-overlay: rgba(255, 255, 255, 0.95);
  
  /* Textos */
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-inverse: #ffffff;
  
  /* Bordes */
  --border-primary: #e5e7eb;
  --border-secondary: #d1d5db;
  --border-accent: #3b82f6;
  
  /* 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 rgba(59, 130, 246, 0.3);
}

/* ========================================
   CONFIGURACIÓN POR DEFECTO (NEUTRAL)
   ======================================== */
:root {
  /* Aplicar paleta neutral por defecto */
  --primary-50: #f9fafb;
  --primary-100: #f3f4f6;
  --primary-200: #e5e7eb;
  --primary-300: #d1d5db;
  --primary-400: #9ca3af;
  --primary-500: #6b7280;
  --primary-600: #4b5563;
  --primary-700: #374151;
  --primary-800: #1f2937;
  --primary-900: #111827;
  
  --accent-50: #eff6ff;
  --accent-100: #dbeafe;
  --accent-200: #bfdbfe;
  --accent-300: #93c5fd;
  --accent-400: #60a5fa;
  --accent-500: #3b82f6;
  --accent-600: #2563eb;
  --accent-700: #1d4ed8;
  --accent-800: #1e40af;
  --accent-900: #1e3a8a;
  
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;
  --info: #0891b2;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-card: #ffffff;
  --bg-overlay: rgba(255, 255, 255, 0.95);
  
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-inverse: #ffffff;
  
  --border-primary: #e5e7eb;
  --border-secondary: #d1d5db;
  --border-accent: #3b82f6;
  
  --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 rgba(59, 130, 246, 0.3);
}

/* ========================================
   ESTILOS BASE MODERNOS
   ======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

/* ========================================
   TIPOGRAFÍA MODERNA
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
}

a {
  color: var(--accent-600);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-700);
  text-decoration: underline;
}

/* ========================================
   BOTONES MODERNOS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover:before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-600), var(--accent-700));
  color: var(--text-inverse);
  border-color: var(--accent-600);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-700), var(--accent-800));
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: var(--text-inverse);
}

.btn-outline-primary {
  background: transparent;
  color: var(--accent-600);
  border-color: var(--accent-600);
}

.btn-outline-primary:hover {
  background: var(--accent-600);
  color: var(--text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--primary-100);
  color: var(--primary-700);
  border-color: var(--primary-200);
}

.btn-secondary:hover {
  background: var(--primary-200);
  color: var(--primary-800);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ========================================
   TARJETAS MODERNAS
   ======================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-accent);
}

.card-header {
  padding: 1.5rem 1.5rem 0 1.5rem;
  border-bottom: none;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  border-top: none;
  background: transparent;
}

/* ========================================
   NAVEGACIÓN MODERNA
   ======================================== */

.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-primary);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-600) !important;
  background: var(--accent-50);
}

/* ========================================
   SELECTOR DE TEMA
   ======================================== */

.theme-selector {
  position: fixed;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  z-index: 1001;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.theme-option {
  display: block;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--border-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
  position: relative;
}

.theme-option:hover {
  transform: scale(1.1);
  border-color: var(--accent-600);
}

.theme-option.active {
  border-color: var(--accent-600);
  box-shadow: var(--shadow-glow);
}

.theme-option[data-theme="elegant"] {
  background: linear-gradient(135deg, #0f172a, #f59e0b);
}

.theme-option[data-theme="bright"] {
  background: linear-gradient(135deg, #0ea5e9, #d946ef);
}

.theme-option[data-theme="neutral"] {
  background: linear-gradient(135deg, #6b7280, #3b82f6);
}

/* ========================================
   ANIMACIONES Y TRANSICIONES
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .theme-selector {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    top: auto;
    transform: none;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  .theme-option {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

/* ========================================
   UTILIDADES
   ======================================== */

.text-gradient {
  background: linear-gradient(135deg, var(--accent-600), var(--accent-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: linear-gradient(135deg, var(--accent-600), var(--accent-700));
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.rounded-xl {
  border-radius: 1rem;
}

.rounded-2xl {
  border-radius: 1.5rem;
}

.backdrop-blur {
  backdrop-filter: blur(10px);
}

/* ========================================
   ESTADOS DE CARGA
   ======================================== */

.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

