/* ============================================================================
   PROYECTO Z — base.css
   Variables globales, reset y estilos base.
   Conserva el tema oscuro dorado/naranja de tu diseño NAE original.
   ============================================================================ */

:root {
  /* ── Paleta principal (azul moderno, según referencia) ── */
  --gold:      #3B82F6;
  --gold-light:#60A5FA;
  --orange:    #F97316;
  --bg:        #0B0F19;
  --panel:     #111827;
  --card:      #111827;
  --card2:     #1F2937;
  --border:    #1E293B;
  --border2:   #374151;
  --text:      #E2E8F0;
  --muted:     #94A3B8;
  --muted2:    #64748B;
  --green:     #10B981;
  --red:       #EF4444;
  --blue:      #3B82F6;
  --purple:    #8B5CF6;

  /* ── Niveles NAE ── */
  --lvl1:      #6B7280;
  --lvl2:      #3B82F6;
  --lvl3:      #8B5CF6;
  --lvl4:      #F59E0B;
  --lvl5:      #10B981;

  /* ── Tipografías ── */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* ── Espaciado y radios ── */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* ── Sombras ── */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.18);
  --shadow:    0 4px 12px -4px rgba(59,130,246,0.1);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.4);

  /* ── Layout ── */
  --topbar-h: 56px;
  --maxw:     1200px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .page-title, .navbar-brand, .navbar-tab, .brand {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input, textarea, select {
  font-family: inherit;
  font-size: 14px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(242,169,0,0.5);
}
textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

/* ── Utilidades ── */
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap { gap: 16px; }

/* ── Scrollbar personalizado ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--card2);
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--border2); }

/* ── Animaciones globales ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ── Accesibilidad ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
