@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Fondos */
  --bg-primary:    #000000;
  --bg-secondary:  #050505;
  --bg-card:       rgba(18, 18, 30, 0.7);
  --bg-card-hover: rgba(24, 24, 40, 0.85);
  --bg-glass:      rgba(255, 255, 255, 0.03);
  --bg-input:      rgba(255, 255, 255, 0.05);

  /* Texto */
  --text-primary:   #e8e8f0;
  --text-secondary: #8888a0;
  --text-muted:     #555570;

  /* Acentos */
  --accent-cyan:   #00d4ff;
  --accent-violet: #8b5cf6;
  --accent-pink:   #ec4899;
  --accent-green:  #10b981;
  --accent-red:    #ef4444;
  --accent-orange: #f59e0b;

  /* Bordes */
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow:  rgba(0, 212, 255, 0.15);

  /* Espaciado */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Sombras */
  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md:   0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg:   0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.1);

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  --gradient-danger:  linear-gradient(135deg, var(--accent-red), var(--accent-pink));
  --gradient-success: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container { max-width: 95%; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; position: relative; z-index: 1; }
.main-content { flex: 1; padding: 40px 0; }

.navbar {
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  position: sticky; top: 0; z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar-brand span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.2rem;
}
.navbar-links {
  display: flex;
  gap: 10px;
}
.navbar-links a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}
.navbar-links a:hover { color: var(--text-primary); background: var(--bg-glass); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none; line-height: 1.4;
}
.btn-primary {
  background: var(--gradient-primary); color: #fff;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(0, 212, 255, 0.35); }
.btn-secondary {
  background: var(--bg-input); color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--border-glow); }
.btn-danger {
  background: var(--gradient-danger); color: #fff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(239, 68, 68, 0.3); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.card-title { font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }

.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-input {
  width: 100%; padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans); font-size: 0.95rem;
  transition: all 0.3s ease; outline: none;
}
.form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}
.form-input::placeholder { color: var(--text-muted); }
.form-inline { display: flex; gap: 10px; align-items: flex-end; }
.form-inline .form-group { flex: 1; margin-bottom: 0; }

.alert {
  padding: 14px 20px; border-radius: var(--radius-sm);
  font-size: 0.9rem; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  animation: slideIn 0.3s ease;
}
.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}
.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
}

.badge {
  display: inline-flex; align-items: center;
  padding: 8px 18px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3px;
}
.badge-active { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.badge-inactive { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade  { animation: fadeIn 0.5s ease; }
.animate-slide { animation: slideIn 0.4s ease; }
