/* Reset y base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.5; }
body { background-color: #f9fafb; min-height: 100vh; color: #1f2937; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }

/* Utilidades */
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.min-w-0 { min-width: 0; }
.flex-shrink-0 { flex-shrink: 0; }
.overflow-x-auto { overflow-x: auto; }
.divide-y > * + * { border-top: 1px solid #e5e7eb; }

/* Espaciado */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pb-4 { padding-bottom: 1rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-6 { padding-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.ml-64 { margin-left: 16rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Tamaños */
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.min-h-screen { min-height: 100vh; }
.max-w-md { max-width: 28rem; }

/* Tipografía */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.italic { font-style: italic; }

/* Colores de texto */
.text-white { color: #ffffff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-red-700 { color: #b91c1c; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-purple-600 { color: #9333ea; }
.text-purple-700 { color: #7e22ce; }
.text-indigo-600 { color: #4f46e5; }
.text-indigo-700 { color: #4338ca; }

/* Fondos */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-red-100 { background-color: #fee2e2; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-amber-200 { background-color: #fde68a; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-emerald-200 { background-color: #a7f3d0; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-200 { background-color: #bfdbfe; }
.bg-purple-50 { background-color: #faf5ff; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-purple-200 { background-color: #e9d5ff; }
.bg-indigo-50 { background-color: #eef2ff; }

/* Gradientes */
.gradient-bg { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gradient-sidebar { background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%); }
.gradient-avatar { background: linear-gradient(135deg, #818cf8 0%, #a855f7 100%); }
.gradient-blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.gradient-emerald { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.gradient-amber { background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); }
.gradient-purple { background: linear-gradient(135deg, #a855f7 0%, #4f46e5 100%); }

/* Bordes */
.border { border: 1px solid #e5e7eb; }
.border-t { border-top: 1px solid #e5e7eb; }
.border-l-4 { border-left: 4px solid; }
.border-gray-300 { border-color: #d1d5db; }
.border-red-400 { border-color: #f87171; }
.border-amber-100 { border-color: #fef3c7; }
.border-amber-500 { border-color: #f59e0b; }
.border-purple-100 { border-color: #f3e8ff; }
.border-purple-500 { border-color: #a855f7; }
.border-indigo-200 { border-color: #c7d2fe; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Sombras */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.shadow-blue { box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3); }
.shadow-emerald { box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3); }
.shadow-amber { box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.3); }
.shadow-purple { box-shadow: 0 10px 25px -5px rgba(168, 85, 247, 0.3); }

/* Posicionamiento */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.top-0 { top: 0; }
.bottom-6 { bottom: 1.5rem; }
.left-6 { left: 1.5rem; }
.right-6 { right: 1.5rem; }

/* Efectos */
.transition { transition: all 0.15s ease-in-out; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }
.hover\:text-indigo-700:hover { color: #4338ca; }
.hover\:border-indigo-200:hover { border-color: #c7d2fe; }
.opacity-70 { opacity: 0.7; }
.backdrop-blur { backdrop-filter: blur(10px); }

/* Glass effect */
.glass { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); }
.bg-white-10 { background: rgba(255, 255, 255, 0.1); }
.bg-white-20 { background: rgba(255, 255, 255, 0.2); }

/* Formularios */
input[type="password"], input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  outline: none;
  transition: all 0.15s;
}
input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #a855f7 0%, #4f46e5 100%);
  color: white;
}
.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.15s;
}
.sidebar a:hover, .sidebar a.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.sidebar a.active {
  background: rgba(255, 255, 255, 0.1);
}

/* Tablas */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding-bottom: 1rem; font-weight: 500; color: #6b7280; font-size: 0.875rem; border-bottom: 1px solid #e5e7eb; }
td { padding: 1rem 0; }
tbody tr:hover { background-color: #f9fafb; }

/* Cards stat */
.stat-card {
  border-radius: 1rem;
  padding: 1.5rem;
  color: white;
}

/* Responsive */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Iconos inline */
.icon { width: 1.25rem; height: 1.25rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.75rem; height: 1.75rem; }
