/* ============================================================
   WS AgencIA — Dark Tech Premium Design System
   División tecnológica de WaltSuare Group
   Paleta: aproximada del logo (verde→turquesa→azul)
   PENDIENTE: afinar valores exactos con el logo oficial
   ============================================================ */

:root {
  /* Superficies */
  --bg-0: #04080e;
  --bg-1: #060d17;
  --bg-2: #081220;
  --surface: #0b1728;
  --surface-2: #0e1d33;
  --surface-3: #122540;
  --line: rgba(56, 189, 248, 0.10);
  --line-strong: rgba(56, 189, 248, 0.22);

  /* Texto */
  --ink: #eaf3fb;
  --ink-soft: #b8c9da;
  --muted: #7e93ab;
  --faint: #556b84;

  /* Marca (gradiente extraído del logo oficial: verde→turquesa→azul) */
  --green: #34d89e;
  --turq: #2bd0c3;
  --blue: #2fa8e0;
  --accent: var(--turq);
  --grad-brand: linear-gradient(100deg, var(--green) 0%, var(--turq) 45%, var(--blue) 100%);
  --grad-soft: linear-gradient(100deg, rgba(46,230,168,.16), rgba(34,211,238,.16), rgba(59,130,246,.16));

  /* WhatsApp */
  --wa: #25d366;
  --wa-deep: #128c7e;

  /* Tipografía */
  --font-display: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Ritmo */
  --radius: 14px;
  --radius-lg: 22px;
  --section-pad: clamp(4.5rem, 9vw, 8rem);
  --container: 1180px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.21,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: rgba(34,211,238,.28); color: #fff; }

/* Fondo global con profundidad */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(34,211,238,.07), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(46,230,168,.05), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(59,130,246,.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-display { font-size: clamp(2.5rem, 5.6vw, 4.35rem); }
.h-section { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.lead { color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--turq);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--grad-brand);
}
.eyebrow--plain::before { display: none; }

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
  min-height: 48px;
}
.btn svg { flex: none; }

.btn-primary {
  background: var(--grad-brand);
  color: #04222b;
  box-shadow: 0 8px 30px -8px rgba(34,211,238,.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 42px -8px rgba(34,211,238,.6);
}

.btn-whatsapp {
  background: linear-gradient(100deg, var(--wa), #1fbf8f);
  color: #03251a;
  box-shadow: 0 8px 30px -8px rgba(37,211,102,.45);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px -8px rgba(37,211,102,.62);
}

.btn-ghost {
  background: rgba(34,211,238,.06);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  background: rgba(34,211,238,.12);
  border-color: rgba(56,189,248,.4);
  transform: translateY(-2px);
}

.btn-sm { padding: .62rem 1.25rem; font-size: .92rem; min-height: 42px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(4,8,14,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -.01em;
}
.brand img, .brand svg { height: 40px; width: auto; }
.brand .brand-ia { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-nav { display: flex; align-items: center; gap: 1.9rem; }
.main-nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad-brand);
  transition: width .28s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: .8rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 46px; height: 46px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 4rem;
  overflow: hidden;
}
#net-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: .78;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg-0));
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-title { margin: 1.3rem 0 1.4rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.1rem;
}
.hero-proof {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.hero-proof::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse-dot 2.4s infinite;
}
@keyframes pulse-dot { 50% { opacity: .35; } }

/* Panel "sistema" del hero */
.hero-visual { position: relative; }
.sys-panel {
  position: relative;
  background: linear-gradient(160deg, rgba(14,29,51,.85), rgba(8,18,32,.9));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 60px -20px rgba(34,211,238,.15);
  overflow: hidden;
}
.sys-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(46,230,168,.5), transparent 30%, transparent 70%, rgba(59,130,246,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.sys-panel-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
}
.sys-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.sys-dot.g { background: var(--green); } .sys-dot.t { background: var(--turq); } .sys-dot.b { background: var(--blue); }
.sys-panel-body { padding: 1.2rem; display: grid; gap: .8rem; }
.flow-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: rgba(6,13,23,.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .85rem 1rem;
}
.flow-node {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--turq);
}
.flow-meta { flex: 1; min-width: 0; }
.flow-name { font-family: var(--font-display); font-weight: 600; font-size: .92rem; }
.flow-desc { font-family: var(--font-mono); font-size: .7rem; color: var(--faint); }
.flow-status {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--green);
  display: flex; align-items: center; gap: .35rem;
}
.flow-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.flow-line {
  height: 2px;
  margin-left: 1.9rem;
  width: 42%;
  background: linear-gradient(90deg, var(--turq), transparent);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.flow-line::after {
  content: "";
  position: absolute;
  top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: flow-beam 2.8s var(--ease) infinite;
}
@keyframes flow-beam { to { left: 110%; } }

.hero-chip {
  position: absolute;
  background: rgba(11,23,40,.92);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--ink-soft);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
}
.hero-chip strong { color: var(--turq); font-weight: 600; }
.chip-1 { top: -18px; right: 8%; animation: float-y 6s ease-in-out infinite; }
.chip-2 { bottom: -16px; left: -6%; animation: float-y 7s ease-in-out 1s infinite; }
@keyframes float-y { 50% { transform: translateY(-9px); } }

/* ---------- Franja de capacidades ---------- */
.cap-strip {
  border-block: 1px solid var(--line);
  background: rgba(8,18,32,.5);
  overflow: hidden;
  padding: 1.4rem 0;
}
.cap-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.cap-track span {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
}
.cap-track span::after { content: "◆"; color: var(--turq); font-size: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-pad); position: relative; }
.section--tint { background: linear-gradient(180deg, transparent, rgba(8,18,32,.55) 18%, rgba(8,18,32,.55) 82%, transparent); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin: 1.1rem 0 1rem; }
.section-head--wide { max-width: 880px; }

/* ---------- Bloques de problemas ---------- */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.problem {
  position: relative;
  background: linear-gradient(150deg, var(--surface), rgba(8,18,32,.4));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
}
.problem:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.problem-num {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--faint);
  letter-spacing: .15em;
}
.problem h3 { font-size: 1.35rem; margin: .9rem 0 .7rem; }
.problem p { color: var(--muted); font-size: .98rem; }
.problem .cost {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: .78rem;
  color: #f0a3a3;
}
.problem .cost strong { color: #ffb4b4; }

/* ---------- Soluciones (grid variado) ---------- */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2rem;
}
.sol-card {
  grid-column: span 2;
  position: relative;
  background: linear-gradient(160deg, var(--surface), rgba(8,18,32,.35));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.sol-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,.35);
  box-shadow: 0 24px 50px -20px rgba(34,211,238,.18);
}
.sol-card--hero { grid-column: span 3; background: linear-gradient(150deg, var(--surface-2), rgba(8,18,32,.5)); }
.sol-card--hero2 { grid-column: span 3; }
.sol-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line-strong);
  color: var(--turq);
  margin-bottom: 1.2rem;
}
.sol-card h3 { font-size: 1.18rem; margin-bottom: .6rem; }
.sol-card p { color: var(--muted); font-size: .95rem; }
.sol-tag {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--green);
  text-transform: uppercase;
}

/* ---------- Antes / Después ---------- */
.compare { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.compare-head, .compare-row {
  display: grid;
  grid-template-columns: 1fr 52px 1fr;
  align-items: stretch;
}
.compare-head {
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.compare-head > div { padding: 1rem 1.6rem; }
.compare-head .after-h { color: var(--turq); }
.compare-head .before-h { color: var(--muted); }
.compare-row { border-top: 1px solid var(--line); background: rgba(8,18,32,.3); transition: background .3s; }
.compare-row:hover { background: rgba(11,23,40,.6); }
.compare-row > div { padding: 1.25rem 1.6rem; display: flex; align-items: center; }
.compare-before { color: var(--muted); }
.compare-before span { text-decoration: line-through; text-decoration-color: rgba(255,150,150,.5); text-decoration-thickness: 1px; }
.compare-arrow {
  display: grid !important;
  place-items: center;
  color: var(--turq) !important;
  padding: 0 !important;
  background: rgba(34,211,238,.05);
}
.compare-after { color: var(--ink); font-weight: 500; }

/* ---------- Método ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(11,23,40,.7), rgba(6,13,23,.4));
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: .55rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- Segmentos / casos ---------- */
.seg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.seg-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: linear-gradient(155deg, var(--surface), rgba(8,18,32,.35));
  transition: transform .35s var(--ease), border-color .35s;
  overflow: hidden;
}
.seg-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.seg-card--wide { grid-column: span 2; }
.seg-card h3 { font-size: 1.3rem; margin-bottom: .7rem; }
.seg-card > p { color: var(--muted); }
.seg-list { margin-top: 1.3rem; display: grid; gap: .6rem; }
.seg-list li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: .95rem;
}
.seg-list li::before {
  content: "→";
  color: var(--turq);
  font-weight: 700;
  flex: none;
}
.seg-quote {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--turq);
  background: rgba(34,211,238,.05);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--ink-soft);
  font-size: .95rem;
}

/* ---------- CTA final ---------- */
.cta-final {
  position: relative;
  border-radius: calc(var(--radius-lg) + 6px);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(46,230,168,.1), transparent 60%),
    radial-gradient(600px 300px at 85% 100%, rgba(59,130,246,.12), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line-strong);
  overflow: hidden;
  text-align: left;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 2rem;
  align-items: center;
}
.cta-final h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 1rem; }
.cta-final p { color: var(--ink-soft); max-width: 48ch; }
.cta-final .cta-actions { display: flex; flex-direction: column; gap: .8rem; align-items: stretch; }
.cta-final .micro { font-family: var(--font-mono); font-size: .75rem; color: var(--faint); text-align: center; }

/* ---------- Páginas internas ---------- */
.page-hero {
  padding: calc(78px + clamp(3.5rem, 8vw, 6rem)) 0 clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin: 1.2rem 0 1.2rem; max-width: 18ch; }
.page-hero .lead { max-width: 60ch; }
.page-hero::before {
  content: "";
  position: absolute;
  top: -180px; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(34,211,238,.09), transparent 65%);
  pointer-events: none;
}

/* Servicios detallados */
.svc-block {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  padding: clamp(1.8rem, 4vw, 2.8rem) 0;
  border-top: 1px solid var(--line);
}
.svc-block:first-child { border-top: 0; }
.svc-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--faint);
  padding-top: .4rem;
}
.svc-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .9rem; }
.svc-body > p { color: var(--ink-soft); max-width: 68ch; }
.svc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.svc-note {
  background: rgba(11,23,40,.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.svc-note .k {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: .5rem;
}
.svc-note p { font-size: .93rem; color: var(--ink-soft); }

/* Soluciones: bloques estratégicos */
.strat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2.2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--line);
}
.strat:first-child { border-top: 0; }
.strat:nth-child(even) .strat-copy { order: 2; }
.strat-copy h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 1rem; }
.strat-copy p { color: var(--ink-soft); }
.strat-points { margin-top: 1.4rem; display: grid; gap: .7rem; }
.strat-points li { display: flex; gap: .7rem; color: var(--muted); font-size: .95rem; align-items: flex-start; }
.strat-points li::before { content: "→"; color: var(--turq); font-weight: 700; flex: none; }
.strat-visual {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  min-height: 240px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .9rem;
  position: relative;
  overflow: hidden;
}
.strat-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 80% 20%, rgba(34,211,238,.08), transparent 60%);
  pointer-events: none;
}
.mini-flow {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--ink);
  background: rgba(6,13,23,.65);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .75rem 1rem;
  position: relative;
  z-index: 1;
}
.mini-flow .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.g { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.t { background: var(--turq); box-shadow: 0 0 8px var(--turq); }
.dot.b { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.mini-flow .arr { color: var(--faint); margin-left: auto; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-copy p + p { margin-top: 1.2rem; }
.about-copy p { color: var(--ink-soft); }
.about-copy strong { color: var(--ink); }
.principles { display: grid; gap: 1rem; }
.principle {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  background: linear-gradient(150deg, var(--surface), rgba(8,18,32,.35));
}
.principle h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.principle p { color: var(--muted); font-size: .93rem; }
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.eco-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  background: rgba(8,18,32,.4);
}
.eco-card.is-self { border-color: rgba(56,189,248,.35); background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); }
.eco-card .k { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.eco-card h3 { margin: .6rem 0 .5rem; font-size: 1.15rem; }
.eco-card p { color: var(--muted); font-size: .9rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1.1rem; }
.contact-copy p { color: var(--ink-soft); }
.contact-steps { margin: 1.8rem 0; display: grid; gap: 1rem; }
.contact-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-steps .n {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--turq);
  border: 1px solid var(--line-strong);
  background: rgba(34,211,238,.06);
}
.contact-steps p { color: var(--muted); font-size: .95rem; padding-top: .25rem; }
.contact-steps strong { color: var(--ink); display: block; font-size: .98rem; }

.form-card {
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
}
.form-card h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.form-card > p { color: var(--muted); font-size: .92rem; margin-bottom: 1.6rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .45rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(6,13,23,.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .85rem 1rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .98rem;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--turq);
  box-shadow: 0 0 0 3px rgba(34,211,238,.15);
}
.form-note { font-size: .8rem; color: var(--faint); margin-top: .9rem; text-align: center; }
.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.form-success.is-visible { display: block; }
.form-success .ok {
  width: 58px; height: 58px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(46,230,168,.12);
  border: 1px solid var(--green);
  color: var(--green);
}

/* ---------- Marca ---------- */
.brand-plate {
  display: block;
  margin: 3.5rem auto 0;
  max-width: 230px;
  width: 100%;
  opacity: .92;
  filter: drop-shadow(0 12px 40px rgba(43,208,195,.15));
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(8,18,32,.7));
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: var(--muted); font-size: .93rem; margin-top: 1rem; max-width: 34ch; }
.footer-tag {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { color: var(--muted); font-size: .93rem; transition: color .2s; }
.footer-col a:hover { color: var(--turq); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--faint);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero { min-height: auto; }
  .hero-visual { max-width: 560px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .sol-card, .sol-card--hero, .sol-card--hero2 { grid-column: span 1; }
  .cta-final { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(4,8,14,.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem clamp(1.25rem, 4vw, 2rem) 1.6rem;
    gap: .2rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .main-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: .8rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-text { display: none; }
  .problems-grid, .seg-grid, .eco-grid { grid-template-columns: 1fr; }
  .seg-card--wide { grid-column: span 1; }
  .sol-grid { grid-template-columns: 1fr; }
  .svc-cols { grid-template-columns: 1fr; }
  .strat { grid-template-columns: 1fr; }
  .strat:nth-child(even) .strat-copy { order: 0; }
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: 0; }
  .compare-arrow { transform: rotate(90deg); padding: .4rem 0 !important; }
  .steps { grid-template-columns: 1fr; }
  .svc-block { grid-template-columns: 1fr; gap: .6rem; }
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  #net-canvas { opacity: .3; }
}
