/* Maraca Data Maturity — Global Styles (Benchmark Theme) */

:root {
  --bg-dark:    #1a1a1a;
  --bg-mid:     #2d2d2d;
  --bg-card:    rgba(255,255,255,0.05);
  --bg-card2:   rgba(255,255,255,0.03);
  --red-deep:   #8b0000;
  --red-mid:    #c41e3a;
  --red-bright: #ff6b6b;
  --white:      #ffffff;
  --off-white:  #f0f0f0;
  --muted:      #aaaaaa;
  --muted2:     #888888;
  --border:     rgba(196,30,58,0.3);
  --border-faint: rgba(255,255,255,0.08);
  --shadow:     0 10px 40px rgba(0,0,0,0.3);

  --lider:       #27ae60;
  --proficiente: #2980b9;
  --emergente:   #e67e22;
  --inicial:     #e74c3c;

  --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 100%);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-logo-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-mid) 0%, var(--red-deep) 100%);
  color: var(--white);
  box-shadow: 0 5px 20px rgba(196,30,58,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196,30,58,0.6);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--red-mid);
  background: rgba(196,30,58,0.1);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.82rem; }

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-red {
  background: rgba(196,30,58,0.2);
  color: var(--red-bright);
  border: 1px solid rgba(196,30,58,0.35);
}

/* ===== PROGRESS ===== */
.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-deep), var(--red-mid));
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--red-mid); border-radius: 3px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fadeUp { animation: fadeUp 0.5s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.4s ease forwards; }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border-faint); margin: 2rem 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .nav { padding: 0.85rem 1rem; }
}

/* ===== PDF SAFE STYLES ===== */
/* Ensures html2canvas captures colors correctly */
.pdf-capture * {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}
