/* ============================================================
   MALTEF-PRO Design System — Variables y componentes compartidos
   ============================================================ */

:root {
  --bg:           #0f172a;
  --bg-2:         #1a1f3a;
  --bg-3:         #1e293b;
  --panel:        rgba(30, 41, 59, 0.72);
  --border:       #334155;
  --border-soft:  #475569;

  --text:         #f1f5f9;
  --text-2:       #cbd5e1;
  --text-muted:   #94a3b8;

  --primary:      #6366f1;
  --primary-l:    #818cf8;
  --primary-d:    #4f46e5;
  --accent:       #ec4899;
  --accent-l:     #f472b6;

  --success:      #10b981;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --info:         #38bdf8;

  --font-sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  --font-mono:    'Roboto Mono', 'Courier New', monospace;

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

  --shadow-sm:    0 2px 8px rgba(0,0,0,0.25);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.3);
  --shadow-lg:    0 20px 48px rgba(0,0,0,0.35);
}

/* Accesibilidad: deshabilitar animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Keyframes compartidos */
@keyframes ds-fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ds-fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ds-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes ds-pulse-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(99,102,241,0.4); }
  50%       { box-shadow: 0 0 28px rgba(99,102,241,0.7); }
}

/* Alert banner */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid;
}
.alert-banner a {
  margin-left: auto;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}
.alert-banner.alert-warning {
  background: rgba(245,158,11,0.12);
  color: #fcd34d;
  border-color: rgba(245,158,11,0.3);
}
.alert-banner.alert-danger {
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
  border-color: rgba(239,68,68,0.3);
}

/* Badge button (usado en welcome bar) */
.badge-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--primary-l);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all 0.2s;
}
.badge-btn:hover {
  background: rgba(99,102,241,0.22);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Welcome bar */
.welcome-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding: 0 4px;
  animation: ds-fadeInDown 0.5s ease-out;
}
.welcome-bar h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
}
.welcome-bar h2 .welcome-name {
  background: linear-gradient(135deg, var(--primary-l), var(--accent-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.welcome-bar .welcome-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}
