:root {
  --bg-main: #050811;
  --bg-surface: #0b1120;
  --bg-card: rgba(15, 23, 42, 0.72);
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-accent: rgba(59, 130, 246, 0.42);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --blue-primary: #3b82f6;
  --blue-hover: #2563eb;
  --cyan-accent: #06b6d4;
  --success: #10b981;
  --error: #ef4444;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, .brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.025em;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Luces ambientales de fondo */
.bg-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
}

.bg-glow-1 {
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, #1d4ed8, transparent 70%);
}

.bg-glow-2 {
  bottom: 5%;
  right: -140px;
  background: radial-gradient(circle, #0891b2, transparent 70%);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 17, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-content {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-primary), var(--cyan-accent));
  box-shadow: 0 0 12px var(--blue-primary);
}

.brand-accent {
  color: var(--blue-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--text-primary);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1px solid transparent;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.88rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary), #1d4ed8);
  color: #ffffff;
  box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(37, 99, 235, 0.75);
}

.btn-outline {
  border-color: var(--border-accent);
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.08);
}

.btn-outline:hover {
  background: rgba(59, 130, 246, 0.18);
}

.btn-ghost {
  color: var(--text-secondary);
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(148, 163, 184, 0.35);
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  padding: 88px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #93c5fd;
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 22px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-accent);
  box-shadow: 0 0 10px var(--cyan-accent);
}

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.45rem);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 22px;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-lead strong {
  color: var(--text-primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.metric-value {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* Tarjeta de código */
.code-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(9, 13, 26, 0.96));
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  box-shadow: 0 24px 60px -15px rgba(2, 6, 23, 0.9), 0 0 40px -15px rgba(59, 130, 246, 0.35);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: rgba(30, 41, 59, 0.5);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.window-dots span:nth-child(1) { background: #ef4444; opacity: 0.8; }
.window-dots span:nth-child(2) { background: #f59e0b; opacity: 0.8; }
.window-dots span:nth-child(3) { background: #10b981; opacity: 0.8; }

.code-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: monospace;
}

.code-body {
  padding: 22px;
  font-size: 0.86rem;
  line-height: 1.7;
  overflow-x: auto;
  color: #e2e8f0;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.c-key { color: #60a5fa; }
.c-str { color: #34d399; }
.c-bool { color: #22d3ee; font-weight: 600; }
.c-comment { color: #64748b; }

/* Secciones generales */
.section {
  padding: 84px 0;
}

.section-alt {
  background: rgba(11, 17, 32, 0.65);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 54px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan-accent);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-secondary);
}

/* Manifiesto */
.manifesto-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(12, 25, 56, 0.68));
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 48px;
}

.manifesto-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.manifesto-box h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.22;
  margin-bottom: 20px;
}

.manifesto-box p {
  color: #cbd5e1;
  font-size: 1.04rem;
  margin-bottom: 16px;
  max-width: 860px;
}

.manifesto-box p:last-child {
  margin-bottom: 0;
}

/* Tarjetas de pilares */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* Pasos */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: rgba(5, 8, 17, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 26px;
}

.step-num {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--cyan-accent);
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.trust-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.trust-list li {
  position: relative;
  padding-left: 24px;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan-accent);
  font-weight: 700;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 32px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(5, 8, 17, 0.85);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
}

.form-feedback {
  margin-top: 14px;
  font-size: 0.9rem;
  min-height: 20px;
}

.form-feedback.success { color: var(--success); }
.form-feedback.error { color: var(--error); }

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  .cards-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .manifesto-box {
    padding: 28px 22px;
  }

  .hero-metrics {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .metric-divider {
    display: none;
  }
}