/* Aureon — fondo negro principal + acentos vivos + separadores nodos */
:root {
  --page-bg: #050608;
  --bg-deep: #030406;
  --bg: #0a0c10;
  --surface: #12151c;
  --surface-elevated: #1a1f2a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f3f5;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --accent: #2dd4bf;
  --accent-soft: #5eead4;
  --accent-2: #818cf8;
  --accent-2-soft: #a5b4fc;
  --accent-3: #fbbf24;
  --accent-3-soft: #fcd34d;
  --accent-cyan: #22d3ee;
  --accent-violet: #a78bfa;
  --accent-muted: rgba(45, 212, 191, 0.45);
  --accent-dim: rgba(45, 212, 191, 0.12);
  --focus: #fbbf24;
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 72px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.45);
  --glow-teal: 0 0 40px -8px rgba(45, 212, 191, 0.35);
  --glow-indigo: 0 0 36px -8px rgba(129, 140, 248, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--page-bg);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 6, 8, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text);
  grid-column: 1;
  justify-self: start;
}

.logo:hover {
  color: var(--accent-soft);
}

.header-drawer {
  display: contents;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  grid-column: 2;
  justify-self: center;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text) !important;
}

.nav-cta:hover {
  border-color: var(--accent-muted);
  color: var(--accent-soft) !important;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  grid-column: 3;
  justify-self: end;
}

.lang-btn {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.5rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-btn[aria-pressed="true"] {
  background: var(--surface);
  color: var(--accent-soft);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-sep {
  color: var(--text-dim);
  font-size: 0.75rem;
  user-select: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
  overflow: hidden;
  background: var(--page-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 65% at 72% 12%, rgba(45, 212, 191, 0.16), transparent 58%),
    radial-gradient(ellipse 55% 50% at 12% 88%, rgba(129, 140, 248, 0.12), transparent 52%),
    radial-gradient(ellipse 45% 40% at 48% 55%, rgba(251, 191, 36, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--page-bg) 40%, var(--page-bg) 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 75% at 45% 38%, black 18%, transparent 72%);
  opacity: 0.85;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.35rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 34ch;
  margin: 0 0 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 55%, #0d9488 100%);
  color: #030406;
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.35), var(--glow-teal);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.5), 0 0 48px -8px rgba(45, 212, 191, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent-muted);
  color: var(--accent-soft);
}

.btn-large {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flow-diagram {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.flow-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw 2.2s ease forwards;
}

.flow-path.p1 { animation-delay: 0.1s; }
.flow-path.p2 { animation-delay: 0.2s; }
.flow-path.p3 { animation-delay: 0.35s; }
.flow-path.p4 { animation-delay: 0.45s; }
.flow-path.p5 { animation-delay: 0.55s; }
.flow-path.p6 { animation-delay: 0.65s; }
.flow-path.p7 { animation-delay: 0.75s; }
.flow-path.p8 { animation-delay: 0.85s; }

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.node {
  opacity: 0;
  animation: fadeNode 0.5s ease forwards;
}

.n1 { animation-delay: 0.5s; }
.n2 { animation-delay: 0.6s; }
.n3 { animation-delay: 0.65s; }
.n4 { animation-delay: 0.75s; }
.n5 { animation-delay: 0.85s; }
.n6 { animation-delay: 0.9s; }
.n7 { animation-delay: 1s; }

@keyframes fadeNode {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .node {
    animation: none;
    opacity: 1;
  }
}

.hero-caption {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-caption .muted {
  color: var(--text-dim);
  opacity: 0.75;
}

/* Separadores nodos / agentes entre secciones */
.node-divider {
  position: relative;
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
  height: clamp(44px, 8vw, 64px);
  color: var(--accent);
  opacity: 0.92;
}

.node-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.node-divider--teal {
  color: var(--accent);
}

.node-divider--indigo {
  color: var(--accent-2-soft);
}

.node-divider--amber {
  color: var(--accent-3);
}

.node-divider--cyan {
  color: var(--accent-cyan);
}

.node-divider--violet {
  color: var(--accent-violet);
}

.node-divider--mix {
  color: var(--accent);
}

.node-divider .nd-line {
  animation: nd-pulse 4s ease-in-out infinite;
}

@keyframes nd-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .node-divider .nd-line {
    animation: none;
  }
}

/* Anchor offset under fixed header */
section[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* Sections — mismo fondo global + capas tipo hero (gradiente + rejilla) */
.section {
  position: relative;
  padding: 5rem 0;
  background: var(--page-bg);
}

.section:not(.hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.section:not(.hero)::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, black 22%, transparent 78%);
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}

.section.problem::before {
  background: radial-gradient(ellipse 72% 55% at 92% 8%, rgba(45, 212, 191, 0.12), transparent 58%),
    radial-gradient(ellipse 48% 42% at 0% 100%, rgba(129, 140, 248, 0.1), transparent 52%);
}

.section.services::before {
  background: radial-gradient(ellipse 65% 52% at 15% 85%, rgba(129, 140, 248, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 45% at 95% 5%, rgba(251, 191, 36, 0.08), transparent 50%);
}

.section.process::before {
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(251, 191, 36, 0.09), transparent 55%),
    radial-gradient(ellipse 55% 48% at 0% 50%, rgba(45, 212, 191, 0.08), transparent 52%);
}

.section.cases::before {
  background: radial-gradient(ellipse 70% 55% at 100% 50%, rgba(45, 212, 191, 0.1), transparent 58%),
    radial-gradient(ellipse 45% 40% at 10% 90%, rgba(167, 139, 250, 0.1), transparent 50%);
}

.section.sales-cta::before {
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(129, 140, 248, 0.12), transparent 58%),
    radial-gradient(ellipse 40% 35% at 20% 20%, rgba(45, 212, 191, 0.07), transparent 50%);
}

.section.contact::before {
  background: radial-gradient(ellipse 55% 48% at 80% 20%, rgba(251, 191, 36, 0.07), transparent 52%),
    radial-gradient(ellipse 50% 45% at 0% 80%, rgba(34, 211, 238, 0.08), transparent 55%);
}

.section .container {
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Problem */
.pain-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
}

.pain-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-soft);
}

.pain-grid li:nth-child(4n + 1) .pain-icon {
  color: var(--accent);
}
.pain-grid li:nth-child(4n + 2) .pain-icon {
  color: var(--accent-2);
}
.pain-grid li:nth-child(4n + 3) .pain-icon {
  color: var(--accent-3-soft);
}
.pain-grid li:nth-child(4n + 4) .pain-icon {
  color: var(--accent-cyan);
}

.pain-icon {
  font-size: 0.75rem;
  line-height: 1.8;
  flex-shrink: 0;
}

/* Services */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-soft);
}

.card:hover {
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: var(--shadow-soft), var(--glow-teal);
}

.card-featured {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, rgba(18, 21, 28, 0.98) 0%, rgba(26, 31, 42, 0.95) 50%, rgba(30, 27, 45, 0.35) 100%);
  border: 1px solid rgba(45, 212, 191, 0.25);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(129, 140, 248, 0.12), var(--glow-indigo);
}

.card:nth-child(2) {
  border-top: 3px solid var(--accent);
}
.card:nth-child(3) {
  border-top: 3px solid var(--accent-2);
}
.card:nth-child(4) {
  border-top: 3px solid var(--accent-3-soft);
}

.card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

/* Process */
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-steps li {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow-soft);
}

.process-steps li:nth-child(1) {
  border-top: 3px solid var(--accent);
}
.process-steps li:nth-child(2) {
  border-top: 3px solid var(--accent-2);
}
.process-steps li:nth-child(3) {
  border-top: 3px solid var(--accent-3-soft);
}
.process-steps li:nth-child(4) {
  border-top: 3px solid var(--accent-violet);
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}

.process-steps li:nth-child(1) .step-num {
  color: var(--accent);
}
.process-steps li:nth-child(2) .step-num {
  color: var(--accent-2);
}
.process-steps li:nth-child(3) .step-num {
  color: var(--accent-3-soft);
}
.process-steps li:nth-child(4) .step-num {
  color: var(--accent-violet);
}

.process-steps h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.process-steps p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Cases */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.case-item {
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-soft);
}

.case-item:nth-child(2) {
  border-left-color: var(--accent-2);
}
.case-item:nth-child(3) {
  border-left-color: var(--accent-3-soft);
}
.case-item:nth-child(4) {
  border-left-color: var(--accent-cyan);
}

.case-item h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.case-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Sales CTA */
.sales-cta {
  padding: 4.5rem 0;
  background: var(--page-bg);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.sales-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.25rem;
  background: linear-gradient(135deg, rgba(18, 21, 28, 0.95) 0%, rgba(26, 31, 42, 0.9) 45%, rgba(30, 27, 50, 0.5) 100%);
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft), 0 0 60px -20px rgba(45, 212, 191, 0.15);
}

.sales-copy {
  max-width: 560px;
}

.sales-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.sales-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Contact */
.contact {
  padding-bottom: 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.contact-intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.1rem);
  margin: 0 0 0.75rem;
}

.contact-intro p {
  margin: 0;
  color: var(--text-muted);
}

.lead-form {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.lead-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.lead-form .optional {
  font-weight: 400;
  color: var(--text-dim);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent-muted);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.lead-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.form-success {
  margin: 1rem 0 0;
  color: var(--accent-soft);
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.footer-tag {
  margin: 0.5rem auto 0;
  max-width: 420px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.footer-copy {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 0;
  }

  .hero-lead {
    max-width: none;
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

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

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row.two {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    grid-column: unset;
  }

  .header-drawer {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(10, 12, 16, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav {
    grid-column: unset;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .lang-switch {
    grid-column: unset;
    justify-self: stretch;
    justify-content: center;
  }

  body.nav-open .header-drawer {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header-drawer .lang-switch {
    justify-content: center;
    padding-top: 1rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--border);
  }
}
