/* ─────────────────────────────────────────────────────────────────
   SEO INTELLIGENCE PORTAL — MAIN STYLESHEET
   Paleta: Dark theme + lime accent
   Tipografía: Manrope (sans) + JetBrains Mono (mono)
   ───────────────────────────────────────────────────────────────── */

:root {
  /* Backgrounds */
  --bg: #0b0f0b;
  --bg-1: #0f1410;
  --bg-2: #141a15;
  --bg-3: #1c241e;
  --bg-4: #283229;

  /* Text */
  --txt: #e9eded;
  --txt-2: #a0a8a2;
  --txt-3: #626b64;
  --txt-4: #3f4842;

  /* Borders */
  --bd: #1c241e;
  --bd-2: #283229;

  /* Accent (lime) */
  --lime: #a3e635;
  --lime-soft: rgba(163, 230, 53, 0.15);
  --lime-glow: rgba(163, 230, 53, 0.08);
  --lime-d: #84cc16;

  /* Status colors */
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.14);
  --orange: #f59e0b;
  --orange-soft: rgba(245, 158, 11, 0.14);
  --yellow: #eab308;
  --yellow-soft: rgba(234, 179, 8, 0.14);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --gray: #6b7280;
  --gray-soft: rgba(107, 114, 128, 0.14);
  --blue: #60a5fa;
  --blue-soft: rgba(96, 165, 250, 0.14);
  --purple: #a78bfa;
  --purple-soft: rgba(167, 139, 250, 0.14);

  /* Fonts */
  --font-sans: 'Manrope', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing & radius */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;

  /* Transitions */
  --t: 0.18s ease;
}

/* ───── RESET ───── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--lime); text-decoration: none; transition: opacity var(--t); }
a:hover { opacity: 0.75; }
::selection { background: var(--lime-soft); color: var(--lime); }

/* Scrollbar */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 7px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-4); }

/* ───── TOP BAR ───── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 11, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bd);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 32px;
}
.topbar-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px; height: 36px;
  background: var(--lime);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
  color: #0a0f0a;
  letter-spacing: -0.5px;
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.15));
  pointer-events: none;
}
.brand-info h1 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.2;
  color: var(--txt);
}
.brand-info p {
  font-size: 10.5px;
  color: var(--txt-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  margin-top: 1px;
}
.topbar-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
}
.topbar-nav a {
  color: var(--txt-2);
  font-size: 13.5px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all var(--t);
  position: relative;
}
.topbar-nav a:hover { color: var(--txt); opacity: 1; }
.topbar-nav a.active {
  color: var(--lime);
  border-bottom-color: var(--lime);
}
.topbar-right {
  display: flex; align-items: center; gap: 10px;
  color: var(--txt-2);
  font-family: var(--font-mono);
  font-size: 12px;
}
.topbar-right::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ───── PAGE CONTAINER ───── */
.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}
.page-narrow { max-width: 1100px; }

/* ───── BADGES ───── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  border: 1px solid;
}
.badge.lime {
  background: var(--lime-soft);
  color: var(--lime);
  border-color: rgba(163, 230, 53, 0.25);
}
.badge.lime::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--lime);
}
.badge.orange {
  background: var(--orange-soft);
  color: var(--orange);
  border-color: rgba(245, 158, 11, 0.25);
}
.badge.orange::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--orange);
}
.badge.purple {
  background: var(--purple-soft);
  color: var(--purple);
  border-color: rgba(167, 139, 250, 0.25);
}
.badge.purple::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--purple);
}
.badge.gray {
  background: var(--gray-soft);
  color: var(--txt-2);
  border-color: var(--bd-2);
}

.tag-chip {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-2);
  border: 1px solid var(--bd);
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--txt-2);
  margin-right: 8px;
  margin-top: 6px;
}

/* ───── HERO (Client Home) ───── */
.hero {
  padding: 48px 0 32px;
}
.hero-badge { margin-bottom: 28px; }
.hero-title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--txt);
  max-width: 900px;
}
.hero-title .accent {
  color: var(--lime);
  display: block;
}
.hero-desc {
  margin-top: 24px;
  max-width: 640px;
  color: var(--txt-2);
  font-size: 16px;
  line-height: 1.7;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--txt-2);
  align-items: center;
}
.hero-meta svg { width: 14px; height: 14px; stroke: currentColor; vertical-align: -3px; margin-right: 5px; }

/* ───── STATS STRIP ───── */
.stats-strip {
  margin-top: 60px;
  padding: 28px 0;
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
}
.stats-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
}
.stats-label span { color: var(--txt-4); margin-left: 12px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.stat {
  padding: 4px 20px;
  border-right: 1px solid var(--bd);
}
.stat:last-child { border-right: none; }
.stat:first-child { padding-left: 0; }
.stat-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--txt);
  font-family: var(--font-mono);
}
.stat-label {
  font-size: 11px;
  color: var(--txt-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
  font-weight: 500;
}

/* ───── SECTION HEADING ───── */
.section {
  margin-top: 72px;
}
.section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.section-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--txt-3);
}

/* ───── REPORT CARDS ───── */
.reports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.report-card {
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-left: 2px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.report-card:hover {
  border-color: var(--bd-2);
  transform: translateY(-1px);
}
.report-card.live {
  border-left-color: var(--lime);
}
.report-card.nuevo {
  border-left-color: var(--purple);
}
.report-card.progreso {
  border-left-color: var(--orange);
  opacity: 0.82;
}
.report-card .badge { align-self: flex-start; position: absolute; top: 24px; right: 24px; }
.report-card-ico {
  width: 40px; height: 40px;
  background: var(--bg-3);
  border: 1px solid var(--bd-2);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--lime);
}
.report-card.progreso .report-card-ico { color: var(--orange); }
.report-card.nuevo .report-card-ico { color: var(--purple); }
.report-card-ico svg { width: 18px; height: 18px; stroke-width: 1.6; }
.report-card-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--txt-3);
  text-transform: none;
  letter-spacing: 0;
}
.report-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--txt);
  line-height: 1.25;
}
.report-card p {
  color: var(--txt-2);
  font-size: 13.5px;
  line-height: 1.6;
  flex: 1;
}
.report-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--bd);
  margin-top: auto;
}
.report-card-foot .date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--txt-3);
}
.report-card-foot .open {
  color: var(--lime);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.report-card.progreso .report-card-foot .open { color: var(--txt-3); pointer-events: none; }

/* ───── SPRINT / TODO ───── */
.sprint-card {
  background: var(--bg-1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 32px;
}
.sprint-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.sprint-num {
  background: var(--lime-soft);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  letter-spacing: 0.05em;
}
.sprint-weeks {
  font-family: var(--font-mono);
  color: var(--txt-3);
  font-size: 12px;
}
.sprint-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--txt);
}
.sprint-progress {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
}
.sprint-pct {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--lime);
  min-width: 70px;
}
.sprint-bar {
  flex: 1;
  height: 2px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}
.sprint-bar-fill {
  height: 100%;
  background: var(--lime);
  border-radius: 2px;
  transition: width 0.8s ease;
}
.sprint-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--txt-3);
}
.sprint-tasks {
  margin-top: 12px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sprint-tasks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bd);
  color: var(--txt);
  font-size: 14px;
  font-weight: 500;
}
.sprint-tasks li:last-child { border-bottom: none; }
.sprint-tasks li .check {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--bd-2);
  flex-shrink: 0;
  position: relative;
}
.sprint-tasks li.done .check {
  background: var(--lime);
  border-color: var(--lime);
}
.sprint-tasks li.done .check::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid #0a0f0a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.sprint-tasks li.done {
  color: var(--txt-3);
  text-decoration: line-through;
  text-decoration-color: var(--txt-4);
}

/* ───── FOOTER ───── */
.site-foot {
  margin-top: 120px;
  padding: 32px;
  border-top: 1px solid var(--bd);
}
.site-foot-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--txt-3);
}
.site-foot-left { display: flex; align-items: center; gap: 14px; }
.site-foot-mark {
  width: 22px; height: 22px;
  background: var(--lime);
  border-radius: 5px;
  color: #0a0f0a;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 9px;
}

/* ───── RESPONSIVE ───── */
@media (max-width: 900px) {
  .reports-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat { border-bottom: 1px solid var(--bd); padding: 14px 20px; }
  .stat:nth-child(3n) { border-right: none; }
  .topbar-nav { display: none; }
}
@media (max-width: 640px) {
  .page { padding: 36px 18px 60px; }
  .topbar { padding: 0 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3n) { border-right: 1px solid var(--bd); }
  .stat:nth-child(2n) { border-right: none; }
}
