:root { color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #05060a;
  color: #e5e8f0;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Promo bar */
.promo-bar {
  position: sticky; top: 0; z-index: 21;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; text-align: center;
  background: linear-gradient(135deg, #7c6cf6, #a78bfa);
  color: #fff; font-size: 0.88rem; font-weight: 500;
}
.promo-bar strong { font-weight: 800; }
.promo-bar-icon { font-size: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 38px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; background: rgba(5,6,10,0.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid #14172200;
}
.brand { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand span { color: #a78bfa; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: #b7bcca; font-size: 0.9rem; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px; font-size: 0.9rem; font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, #7c6cf6, #a78bfa); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: #e5e8f0; border-color: #262b3d; }
.btn-ghost:hover { border-color: #5865f2; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 96px 24px 64px; max-width: 1120px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px;
  padding: 7px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
  color: #f5f3ff; background: rgba(124,108,246,0.16); border: 1px solid rgba(167,139,250,0.45);
}
.hero h1 { font-size: 2.75rem; line-height: 1.1; margin: 0 0 20px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, #a78bfa, #7c6cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #b7bcca; font-size: 1.1rem; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; }
.hero-subnote { color: #6b7280; font-size: 0.82rem; margin-top: 12px; max-width: 480px; }
.hero-stage { background: #0b0d12; border: 1px solid #1c2030; border-radius: 16px; padding: 16px; }
.hero-stage canvas { width: 100%; height: auto; border-radius: 10px; display: block; }

/* Sections */
section { padding: 72px 0; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-title h2 { font-size: 2rem; margin-bottom: 12px; letter-spacing: -0.01em; }
.section-title p { color: #8b93a7; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #0f1119; border: 1px solid #1c2030; border-radius: 14px; padding: 28px; }
.card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.card p { color: #8b93a7; font-size: 0.92rem; margin: 0; }
.card .tag { display: inline-block; font-size: 0.7rem; color: #a78bfa; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.card-icon { width: 48px; height: 48px; margin-bottom: 16px; display: block; }

/* Banner de llamada a la acción, entre Ejemplos y Catálogo */
.cta-banner { padding: 40px 0; }
.cta-banner-inner {
  background: linear-gradient(135deg, #241f47, #171a2e);
  border: 1px solid #322b5c; border-radius: 18px;
  padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-banner-inner h2 { margin: 0 0 6px; font-size: 1.5rem; }
.cta-banner-inner p { margin: 0; color: #b7bcca; font-size: 0.95rem; max-width: 480px; }

.pricing-card {
  max-width: 420px; margin: 0 auto; background: #0f1119; border: 1px solid #262b3d; border-radius: 18px;
  padding: 40px; text-align: center;
}
.pricing-price { font-size: 3rem; font-weight: 700; margin: 12px 0 4px; background: linear-gradient(135deg, #a78bfa, #7c6cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pricing-price span { font-size: 1rem; color: #8b93a7; font-weight: 400; -webkit-text-fill-color: #8b93a7; }
.pricing-then { margin: 0 0 12px; color: #b7bcca; font-size: 1rem; }
.pricing-then span { color: #8b93a7; }
.pricing-list { list-style: none; padding: 0; margin: 24px 0; text-align: left; display: flex; flex-direction: column; gap: 10px; color: #b7bcca; font-size: 0.92rem; }
.pricing-list li::before { content: "✓ "; color: #34d399; }

/* Ejemplos (gráficos de datos) */
.examples-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.example-card { background: #0f1119; border: 1px solid #1c2030; border-radius: 14px; padding: 20px; text-align: center; }
.example-card canvas { width: 100%; height: auto; border-radius: 10px; background: #05060a; display: block; margin-bottom: 16px; }
.example-card h3 { margin: 0 0 6px; font-size: 1rem; }
.example-card p { color: #8b93a7; font-size: 0.85rem; margin: 0; }

/* Comparativa */
.comparison-table-wrap { overflow-x: auto; border: 1px solid #1c2030; border-radius: 14px; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 620px; }
.comparison-table th, .comparison-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #1c2030; }
.comparison-table th { background: #0f1119; color: #fff; font-weight: 600; }
.comparison-table td:first-child { color: #8b93a7; font-weight: 500; }
.comparison-table th:nth-child(2) { color: #a78bfa; }
.comparison-table tbody tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq-item { background: #0f1119; border: 1px solid #1c2030; border-radius: 12px; padding: 18px 22px; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+ "; color: #a78bfa; }
.faq-item[open] summary::before { content: "– "; }
.faq-item p { color: #8b93a7; font-size: 0.92rem; margin: 12px 0 0; }

.site-footer {
  border-top: 1px solid #1c2030; padding: 40px 24px; color: #6b7280; font-size: 0.85rem;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 50;
  max-width: 640px; margin: 0 auto;
  background: #12151f; border: 1px solid #262b3d; border-radius: 12px;
  padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.cookie-banner p { margin: 0; font-size: 0.82rem; color: #b7bcca; flex: 1; min-width: 220px; }
.cookie-banner.hidden { display: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .grid-3 { grid-template-columns: 1fr; }
  .examples-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
