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

:root {
  --bg-primary: #0F1117;
  --bg-surface: #1C1F26;
  --bg-surface2: #22262F;
  --border: #2D3139;
  --border-accent: #3D4250;
  --accent: #2D9CDB;
  --accent-hover: #1E8BC3;
  --success: #27AE60;
  --warning: #F2994A;
  --error: #EB5757;
  --text-primary: #E8EAED;
  --text-secondary: #9AA0AC;
  --text-muted: #6B7280;
  --font-main: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 6px;
  --radius-lg: 10px;
  --transition: 0.2s ease;
  --shadow: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.3);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* NAVBAR */
.navbar {
  background: rgba(15,17,23,0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; color: #fff !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.mobile-menu { display: none; background: var(--bg-surface); border-top: 1px solid var(--border); padding: 16px 20px; }
.mobile-menu a { display: block; color: var(--text-secondary); padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.mobile-menu.open { display: block; }

/* HERO */
.hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-primary) 0%, #121620 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45,156,219,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-left { grid-column: 1; grid-row: 1; }
.hero-right { grid-column: 2; grid-row: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(45,156,219,0.12);
  border: 1px solid rgba(45,156,219,0.3);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 40px;
  margin-bottom: 20px;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--success); border-radius: 50%; animation: pulse-dot 2s infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-intro {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.stat-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.stat-block__value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-block__label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
}
.hero-cta:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.hero-cta::after { content: '→'; font-size: 18px; }

.hero-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}
.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.widget-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
}
.badge--live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(39,174,96,0.15);
  border: 1px solid rgba(39,174,96,0.3);
  color: var(--success);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 40px;
}
.badge--live::before { content: ''; width: 5px; height: 5px; background: var(--success); border-radius: 50%; animation: pulse-dot 1.5s infinite; }

.multiplier-display {
  text-align: center;
  margin: 20px 0;
}
.mult-value {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 600;
  color: var(--warning);
  line-height: 1;
  animation: counter-pulse 3s ease-in-out infinite;
}
@keyframes counter-pulse {
  0%, 100% { color: var(--warning); }
  50% { color: #FF8C00; }
}
.mult-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-top: 4px;
}

.road-visual {
  display: flex;
  gap: 6px;
  margin: 16px 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.road-step {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all var(--transition);
  position: relative;
}
.road-step.passed {
  background: rgba(39,174,96,0.2);
  border-color: var(--success);
}
.road-step.active {
  background: rgba(242,153,74,0.2);
  border-color: var(--warning);
  animation: step-glow 1s ease-in-out infinite;
}
.road-step.danger {
  background: rgba(235,87,87,0.15);
  border-color: var(--error);
}
@keyframes step-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242,153,74,0); }
  50% { box-shadow: 0 0 10px rgba(242,153,74,0.4); }
}

.progress-section { margin-top: 16px; }
.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.progress-label {
  font-size: 11px;
  color: var(--text-muted);
  width: 90px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar--fill {
  height: 100%;
  border-radius: 2px;
  animation: fill-bar 2s ease forwards;
}
@keyframes fill-bar {
  from { width: 0; }
}
.progress-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  width: 36px;
  text-align: right;
}

/* MAIN LAYOUT */
.db-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: calc(100vh - 60px);
}
.db-main { grid-column: 2; grid-row: 1; }
.db-sidebar { grid-column: 1; grid-row: 1;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 24px 0;
}
.sidebar-section {
  padding: 0 16px;
  margin-bottom: 24px;
}
.sidebar-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 0 4px;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 8px 8px;
  border-radius: var(--radius);
  transition: all var(--transition);
  border-left: 2px solid transparent;
}
.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  color: var(--text-primary);
  background: rgba(45,156,219,0.08);
  border-left-color: var(--accent);
}
.sidebar-metric {
  background: var(--bg-surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 8px;
}
.sidebar-metric__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.sidebar-metric__val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}
.sidebar-cta {
  margin: 16px;
  display: block;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition);
}
.sidebar-cta:hover { background: var(--accent-hover); color: #fff; }

.db-main { padding: 32px 36px; }

/* PANELS / CONTENT */
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.panel--primary { border-left: 3px solid var(--accent); }

.panel h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.panel h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 20px 0 10px;
}
.panel p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

/* DATA ROWS (tabla-estilo) */
.data-table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.data-table th {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table .mono { font-family: var(--font-mono); color: var(--accent); }
.data-table .badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 40px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-green { background: rgba(39,174,96,0.15); color: var(--success); border: 1px solid rgba(39,174,96,0.25); }
.badge-blue { background: rgba(45,156,219,0.15); color: var(--accent); border: 1px solid rgba(45,156,219,0.25); }
.badge-orange { background: rgba(242,153,74,0.15); color: var(--warning); border: 1px solid rgba(242,153,74,0.25); }

/* METRIC GRID */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.metric-card {
  background: var(--bg-surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.metric-card__value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.metric-card__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* FEATURE LIST */
.feature-list { list-style: none; margin: 14px 0; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* PROS / CONS */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.pros-block, .cons-block {
  background: var(--bg-surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.pros-block { border-top: 3px solid var(--success); }
.cons-block { border-top: 3px solid var(--error); }
.pc-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}
.pros-block .pc-title { color: var(--success); }
.cons-block .pc-title { color: var(--error); }
.pc-list { list-style: none; }
.pc-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.pc-list li:last-child { border-bottom: none; }
.pros-block .pc-list li::before { content: '+'; color: var(--success); font-weight: 700; }
.cons-block .pc-list li::before { content: '−'; color: var(--error); font-weight: 700; }

/* FAQ */
.faq-list { list-style: none; }
.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  gap: 12px;
  user-select: none;
}
.faq-icon {
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 16px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* POPUP */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.popup-overlay.visible { display: flex; }
.popup-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 440px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow);
  animation: popup-in 0.25s ease;
}
@keyframes popup-in {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.popup-emoji { font-size: 40px; text-align: center; margin-bottom: 12px; }
.popup-title { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.popup-text { font-size: 13px; color: var(--text-secondary); text-align: center; margin-bottom: 20px; line-height: 1.6; }
.popup-cta {
  display: block;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition);
}
.popup-cta:hover { background: var(--accent-hover); color: #fff; }

/* STICKY CTA */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(28,31,38,0.97);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  backdrop-filter: blur(10px);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-text { font-size: 14px; color: var(--text-secondary); }
.sticky-cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--transition);
}
.sticky-cta:hover { background: var(--accent-hover); color: #fff; }

/* FOOTER */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  margin-bottom: 32px;
}
.footer-brand { font-size: 16px; font-weight: 800; color: var(--text-primary); margin-bottom: 10px; }
.footer-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 320px; }
.footer-heading {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); transition: color var(--transition); }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.footer-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}
.footer-copy { font-size: 11px; color: var(--text-muted); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .db-layout { grid-template-columns: 1fr; }
  .db-sidebar { display: none; position: static; height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-widget { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .db-main { padding: 24px 16px; }
  .panel { padding: 20px 16px; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sticky-bar { flex-direction: column; gap: 8px; padding: 10px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
}

/* NUMBER COUNTER ANIMATION */
.counter { display: inline-block; }

/* SKELETON */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-surface2) 25%, var(--border) 37%, var(--bg-surface2) 63%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
  height: 12px;
  margin-bottom: 8px;
}
