/* ============================================================
   Agencia Impulsa — Landing Page
   Fonts: Montserrat (display/headings) + Inter (body)
   Brand: #1F8EEA (impulsa-blue)
   ============================================================ */

:root {
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* brand */
  --impulsa-blue: #1F8EEA;
  --blue-50:  #ECF6FE; --blue-100: #D2E9FD; --blue-200: #A6D2FA;
  --blue-300: #74B7F4; --blue-400: #459FEF; --blue-500: #1F8EEA;
  --blue-600: #1372C4; --blue-700: #0F5A9C;

  /* ink neutrals */
  --ink-950: #0B1117; --ink-900: #11161D; --ink-800: #1C2530;
  --ink-600: #475363; --ink-500: #66748A; --ink-400: #8C98AB;
  --ink-200: #D8DEE7; --ink-150: #E6EAF0; --ink-100: #F0F3F7; --ink-50: #F7F9FB;

  /* semantic */
  --accent: var(--impulsa-blue);
  --accent-hover: var(--blue-600);
  --accent-press: var(--blue-700);
  --fg1: #11161D; --fg2: #66748A; --fg3: #8C98AB;
  --bg: #fff; --bg-alt: #F7F9FB;
  --border-soft: #E6EAF0; --border: #D8DEE7;
  --success: #1B9E5A;

  /* dark surfaces */
  --d-bg: #080C12; --d-1: #0B1117; --d-2: #11161D;
  --glass: rgba(255,255,255,.05);
  --glass-bd: rgba(255,255,255,.10);
  --glass-bd-2: rgba(255,255,255,.18);

  /* radius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 28px; --r-pill: 999px;

  /* shadows */
  --shadow-sm: 0 2px 8px rgba(17,22,29,.06), 0 1px 2px rgba(17,22,29,.04);
  --shadow-md: 0 8px 24px rgba(17,22,29,.08), 0 2px 6px rgba(17,22,29,.05);
  --shadow-blue: 0 8px 28px rgba(31,142,234,.38);

  /* motion */
  --dur: 220ms; --dur-fast: 140ms;
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-inout: cubic-bezier(.65,0,.35,1);

  --maxw: 1200px;
}

/* ---- reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--fg1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

/* ---- layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { scroll-margin-top: 90px; position: relative; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.h-display {
  font: 700 clamp(38px, 5.6vw, 70px)/1.06 var(--font-display);
  letter-spacing: -0.015em;
}
.h-xl {
  font: 700 clamp(28px, 3.8vw, 48px)/1.1 var(--font-display);
  letter-spacing: -0.012em;
}
.h-lg {
  font: 700 clamp(24px, 2.8vw, 36px)/1.14 var(--font-display);
  letter-spacing: -0.008em;
}
.accent-text {
  color: var(--accent);
  background: linear-gradient(180deg, #74B7F4 0%, #1F8EEA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font: 500 clamp(16px, 1.4vw, 20px)/1.6 var(--font-body);
  color: var(--fg2);
}
.lead-dark { color: rgba(255,255,255,.6); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 700 15px/1 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  transition: all var(--dur) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn svg { width: 17px; height: 17px; transition: transform var(--dur) var(--ease-out); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 22px rgba(31,142,234,.3), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 36px rgba(31,142,234,.46), inset 0 1px 0 rgba(255,255,255,.22);
  transform: translateY(-2px);
}
.btn-primary:hover svg { transform: translate(2px,-2px); }
.btn-primary:active { transform: translateY(0) scale(.985); background: var(--accent-press); }
.btn-primary:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 3px; }

.btn-lg { padding: 17px 32px; font-size: 15.5px; }
.btn-xl { padding: 20px 38px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  padding: 8px 16px 8px 12px;
  border-radius: var(--r-pill);
  font: 700 11.5px/1 var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(31,142,234,.2);
  flex-shrink: 0;
}
.badge-dark {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--glass-bd);
  color: rgba(255,255,255,.8);
}

/* ============================================================
   HEADER
   ============================================================ */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              backdrop-filter var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.hdr.scrolled {
  background: rgba(8,12,18,.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--glass-bd);
}
.hdr-inner { height: 76px; display: flex; align-items: center; gap: 36px; }
.hdr-logo { flex-shrink: 0; }
.hdr-logo img { height: 28px; width: auto; }

.hdr-nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.hdr-nav a {
  font: 600 13.5px/1 var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.64);
  padding: 8px 12px;
  border-radius: var(--r-md);
  transition: all var(--dur-fast) var(--ease-out);
}
.hdr-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.hdr-nav a:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 2px; }

.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.hdr-right .btn { padding: 11px 22px; font-size: 13.5px; }

/* hamburger */
.burger {
  display: none; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-md); color: rgba(255,255,255,.8);
  transition: background var(--dur-fast) var(--ease-out);
}
.burger:hover { background: rgba(255,255,255,.08); }
.burger:focus-visible { outline: 2px solid var(--blue-300); }
.burger span {
  width: 22px; height: 2px; background: currentColor;
  border-radius: 2px; transition: all var(--dur) var(--ease-out);
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column;
  background: rgba(8,12,18,.96);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--glass-bd);
  padding: 16px 24px 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font: 700 16px/1 var(--font-display);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  padding: 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color var(--dur-fast) var(--ease-out);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* ============================================================
   SECTION BASE
   ============================================================ */
.sec { padding: clamp(80px, 11vw, 144px) 0; position: relative; }
.sec-white { background: var(--bg); }
.sec-tint  { background: var(--bg-alt); }
.sec-dark  { background: var(--d-1); color: #fff; }

.sec-head { max-width: 760px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head h2 { color: var(--fg1); }
.sec-head.on-dark h2 { color: #fff; }
.sec-head > p { max-width: 580px; margin-top: 18px; }
.sec-head.center > p { margin-left: auto; margin-right: auto; }

/* aurora glow */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora::before {
  content: "";
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,142,234,.28), transparent 62%);
  top: -380px; right: -180px;
  filter: blur(24px);
}
.aurora.center::before {
  left: 50%; top: -460px; right: auto;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(31,142,234,.24), transparent 60%);
}
.sec-dark > .wrap,
.cta-mid > .wrap,
.cta-final > .wrap { position: relative; z-index: 1; }

/* grid texture */
.grid-tex::after {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 72%);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--d-1); color: #fff;
  position: relative; overflow: hidden;
  padding: 168px 0 100px;
  text-align: center;
}
.hero-aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-aurora::before {
  content: "";
  position: absolute;
  width: 1200px; height: 800px;
  left: 50%; top: -340px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(31,142,234,.32), rgba(31,142,234,.05) 46%, transparent 70%);
  filter: blur(12px);
}
.hero-aurora::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 58% at 50% 16%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 58% at 50% 16%, #000, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { margin: 26px auto 0; max-width: 16ch; color: #fff; }
.hero .lead { margin: 24px auto 0; max-width: 580px; }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-micro {
  margin-top: 18px;
  font: 500 13px/1.4 var(--font-body);
  color: rgba(255,255,255,.4);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-micro svg { width: 14px; height: 14px; color: var(--blue-300); }

/* pipeline card */
.hero-dash { position: relative; z-index: 1; margin: 68px auto 0; max-width: 1020px; }
.hero-dash-glow {
  position: absolute; left: 50%; top: 30px;
  transform: translateX(-50%);
  width: 85%; height: 90%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(31,142,234,.42), transparent 65%);
  filter: blur(54px);
}
.dash {
  background: linear-gradient(180deg, rgba(28,37,48,.88), rgba(8,12,18,.96));
  border: 1px solid var(--glass-bd);
  border-radius: 22px; padding: 14px;
  box-shadow: 0 40px 90px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.09);
}
.dash-inner {
  background: rgba(8,12,18,.56);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 14px; overflow: hidden;
}
.dash-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dash-bar .tl { display: flex; gap: 7px; }
.dash-bar .tl i {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,.14);
}
.dash-bar .tt {
  margin-left: 10px;
  font: 600 12px/1 var(--font-display);
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.38);
}
.live-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font: 700 11px/1 var(--font-display);
  letter-spacing: .08em; text-transform: uppercase;
  color: #7EE0AC;
}
.live-pd {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2.2s ease-in-out infinite;
}

.pipeline-body { padding: 28px; }
.pipeline-stages {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
}
.pipe-stage {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  padding: 38px 24px 34px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 16px;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.pipe-stage:hover {
  background: rgba(255,255,255,.065);
  border-color: rgba(31,142,234,.45);
}
.pipe-stage .ps-icon {
  width: 78px; height: 78px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(31,142,234,.3), rgba(31,142,234,.08) 70%);
  border: 1.5px solid rgba(31,142,234,.38);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-300);
  box-shadow: 0 0 30px rgba(31,142,234,.24);
  margin-bottom: 4px;
}
.pipe-stage .ps-icon svg { width: 34px; height: 34px; stroke-width: 1.6; }
.pipe-stage .ps-label {
  font: 700 14px/1.2 var(--font-display);
  letter-spacing: .07em; text-transform: uppercase; color: #fff;
}
.pipe-stage .ps-sub {
  font: 400 13px/1.5 var(--font-body);
  color: rgba(255,255,255,.44); max-width: 140px;
}

.pipe-connector { display: flex; align-items: center; padding: 0 16px; }
.pipe-conn-line {
  position: relative; width: 48px; height: 2px;
  display: flex; align-items: center;
}
.pipe-conn-line::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255,255,255,.12); border-radius: 2px;
}
.pipe-conn-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  position: absolute;
  animation: flowdot 2.4s var(--ease-inout) infinite;
}
.pipe-conn-dot:nth-child(2) { animation-delay: 0.8s; }
.pipe-conn-dot:nth-child(3) { animation-delay: 1.6s; }
.pipe-arr { color: rgba(31,142,234,.7); margin-left: 6px; }
.pipe-arr svg { width: 14px; height: 14px; }

@keyframes flowdot {
  0%   { left: -4px; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: calc(100% - 4px); opacity: 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.35); }
}

.pillars {
  margin-top: 56px;
  display: flex; align-items: center; justify-content: center;
  gap: 12px 32px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.pillars .pl {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 13.5px/1.3 var(--font-body);
  color: rgba(255,255,255,.58);
}
.pillars .pl svg { width: 17px; height: 17px; color: var(--blue-300); }
.pillars .sep {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,.22);
}

/* ============================================================
   PROBLEMA
   ============================================================ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.pcard {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  padding: 34px 28px;
  transition: all var(--dur) var(--ease-out);
}
.pcard:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--blue-200); }
.pcard .pc-ic {
  width: 52px; height: 52px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  background: #FBE8E7; color: #E0413B;
}
.pcard .pc-ic svg { width: 25px; height: 25px; }
.pcard h3 {
  font: 700 20px/1.25 var(--font-display);
  letter-spacing: -0.015em; color: var(--fg1); margin-bottom: 11px;
}
.pcard p { font: 400 15px/1.6 var(--font-body); color: var(--fg2); }

/* ============================================================
   SOLUCIÓN
   ============================================================ */
.sol-statement { max-width: 860px; }
.sol-eyebrow {
  font: 700 11.5px/1 var(--font-display);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 28px;
}
.sol-big {
  font: 800 clamp(26px, 3.2vw, 44px)/1.18 var(--font-display);
  letter-spacing: -0.02em; color: #fff;
}
.sol-big .mut { color: rgba(255,255,255,.38); }
.sol-big .accent-text {
  background: linear-gradient(180deg, #74B7F4 0%, #1F8EEA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sol-result {
  margin-top: 40px;
  display: inline-flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--glass-bd);
  border-radius: var(--r-lg);
  padding: 22px 28px;
}
.sol-result svg { width: 26px; height: 26px; color: var(--blue-300); flex-shrink: 0; }
.sol-result p { font: 600 17px/1.45 var(--font-body); color: #fff; }

/* ============================================================
   PASOS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.step {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  padding: 36px 30px;
  transition: all var(--dur) var(--ease-out);
}
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.step .s-num {
  font: 800 14px/1 var(--font-display);
  letter-spacing: .08em;
  color: var(--accent);
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.step h3 {
  font: 700 21px/1.25 var(--font-display);
  letter-spacing: -0.015em; color: var(--fg1); margin-bottom: 12px;
}
.step p { font: 400 15px/1.6 var(--font-body); color: var(--fg2); }
.steps-result {
  margin-top: 42px; text-align: center;
  font: 700 clamp(18px, 2vw, 26px)/1.4 var(--font-display);
  letter-spacing: -0.015em; color: var(--fg1);
}
.steps-result strong { color: var(--accent); }

/* ============================================================
   MID CTA
   ============================================================ */
.cta-mid {
  background: var(--d-1); position: relative; overflow: hidden;
  padding: clamp(72px, 10vw, 120px) 0;
}
.cta-mid-inner {
  text-align: center; position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}
.cta-mid h2 { color: #fff; margin: 22px auto 20px; max-width: 14ch; }
.cta-mid p {
  font: 500 18px/1.55 var(--font-body);
  color: rgba(255,255,255,.6); max-width: 540px;
  margin: 0 auto 38px;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.svc {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  padding: 34px 30px;
  transition: all var(--dur) var(--ease-out);
}
.svc:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--blue-200); }
.svc .sv-ic {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--blue-50); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  border: 1px solid var(--blue-100);
  transition: all var(--dur) var(--ease-out);
}
.svc:hover .sv-ic { background: var(--accent); color: #fff; transform: scale(1.05); }
.svc .sv-ic svg { width: 26px; height: 26px; }
.svc h3 {
  font: 700 21px/1.25 var(--font-display);
  letter-spacing: -0.015em; color: var(--fg1); margin-bottom: 11px;
}
.svc p { font: 400 15px/1.6 var(--font-body); color: var(--fg2); }

/* ============================================================
   PARA QUIÉN
   ============================================================ */
.fw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 52px; }
.fw-col { border-radius: var(--r-xl); padding: 38px; }
.fw-col.yes {
  background: var(--d-1); color: #fff;
  border: 1px solid var(--glass-bd);
  position: relative; overflow: hidden;
}
.fw-col.yes .fw-glow {
  position: absolute; top: -40%; right: -20%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(31,142,234,.26), transparent 65%);
  pointer-events: none;
}
.fw-col.no { background: var(--bg-alt); border: 1px solid var(--border-soft); }
.fw-col h3 {
  font: 700 17px/1.2 var(--font-display);
  letter-spacing: .02em; text-transform: uppercase;
  margin-bottom: 26px;
  display: flex; align-items: center; gap: 11px;
  position: relative; z-index: 1;
}
.fw-col.yes h3 { color: #fff; }
.fw-col.no h3 { color: var(--fg2); }
.hic {
  width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.fw-col.yes .hic { background: rgba(31,142,234,.2); color: var(--blue-300); }
.fw-col.no .hic { background: var(--ink-100); color: var(--fg3); }
.hic svg { width: 16px; height: 16px; }
.fw-list { display: flex; flex-direction: column; gap: 15px; position: relative; z-index: 1; }
.fw-it { display: flex; align-items: flex-start; gap: 12px; }
.fw-it svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.fw-it.yes svg { color: #7EE0AC; }
.fw-it.no svg { color: var(--fg3); }
.fw-it span { font: 500 15.5px/1.5 var(--font-body); }
.fw-it.yes span { color: rgba(255,255,255,.86); }
.fw-it.no span { color: var(--fg2); }

/* ============================================================
   POR QUÉ
   ============================================================ */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.diff {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  padding: 36px 30px;
  transition: all var(--dur) var(--ease-out);
}
.diff:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.diff .d-ic {
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--blue-50); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--blue-100);
}
.diff .d-ic svg { width: 26px; height: 26px; }
.diff h3 {
  font: 700 21px/1.25 var(--font-display);
  letter-spacing: -0.015em; color: var(--fg1); margin-bottom: 11px;
}
.diff p { font: 400 15px/1.6 var(--font-body); color: var(--fg2); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 52px auto 0; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-item:first-child { border-top: 1px solid var(--border-soft); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 6px; cursor: pointer; width: 100%; text-align: left;
  font: 700 17.5px/1.4 var(--font-display);
  letter-spacing: -0.01em; color: var(--fg1);
  transition: color var(--dur) var(--ease-out);
}
.faq-q:hover { color: var(--accent); }
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.faq-q .qic {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--blue-50); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--dur) var(--ease-out);
}
.faq-q .qic svg { width: 17px; height: 17px; transition: transform var(--dur) var(--ease-out); }
.faq-item.open .faq-q { color: var(--accent); }
.faq-item.open .qic { background: var(--accent); color: #fff; }
.faq-item.open .qic svg { transform: rotate(45deg); }
.faq-a {
  display: none; padding: 0 6px 26px;
  font: 400 16px/1.7 var(--font-body); color: var(--fg2); max-width: 88%;
}
.faq-item.open .faq-a { display: block; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  background: var(--d-bg); color: #fff;
  position: relative; overflow: hidden;
  padding: clamp(80px, 11vw, 140px) 0;
}

/* ============================================================
   FORM
   ============================================================ */
.form-card {
  background: linear-gradient(160deg, var(--d-2) 0%, var(--d-1) 100%);
  border: 1px solid var(--glass-bd);
  border-radius: 28px; padding: 56px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px;
  position: relative; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.45);
  /* contiene el glow absoluto sin overflow */
  contain: layout;
}
.form-card .fc-glow {
  position: absolute; bottom: -20%; left: -8%;
  width: 60%; height: 60%;          /* relativo al card, no 520px fijo */
  min-width: 280px;
  background: radial-gradient(circle, rgba(31,142,234,.28), transparent 65%);
  filter: blur(32px); pointer-events: none;
}
.form-info { position: relative; z-index: 1; min-width: 0; overflow: hidden; }
.form-info .badge { margin-bottom: 20px; }
.form-info h2 { color: #fff; margin-bottom: 18px; }
.form-info > p { font: 400 16px/1.65 var(--font-body); color: rgba(255,255,255,.58); word-break: break-word; }
.form-trust { margin-top: 28px; display: flex; flex-direction: column; gap: 13px; }
.form-trust .ft { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.form-trust .ft svg { width: 18px; height: 18px; color: var(--blue-300); flex-shrink: 0; margin-top: 1px; }
.form-trust .ft span { font: 500 14px/1.45 var(--font-body); color: rgba(255,255,255,.72); min-width: 0; }

.form-fields { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 13px; min-width: 0; overflow: hidden; }
.form-fields .field { display: flex; flex-direction: column; gap: 6px; }
.form-fields label {
  font: 600 12px/1 var(--font-display);
  letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.52);
}
.form-fields label span { color: rgba(255,255,255,.3); }
.form-fields input,
.form-fields textarea,
.form-fields select {
  font: 400 15px/1.4 var(--font-body); color: #fff;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.11);
  border-radius: 11px; padding: 13px 15px;
  transition: all var(--dur) var(--ease-out);
  width: 100%; -webkit-appearance: none; appearance: none;
}
.form-fields input::placeholder,
.form-fields textarea::placeholder { color: #4A5E72; }
.form-fields select option { background: var(--d-2); color: #fff; }
.form-fields input:focus,
.form-fields textarea:focus,
.form-fields select:focus {
  outline: none;
  border-color: var(--blue-400);
  background: rgba(31,142,234,.1);
  box-shadow: 0 0 0 3px rgba(31,142,234,.14);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute; right: 14px; top: 50%;
  border: 5px solid transparent;
  border-top-color: rgba(255,255,255,.38); border-bottom: none;
  transform: translateY(-30%);
  pointer-events: none;
}
.form-sent {
  background: rgba(27,158,90,.12);
  border: 1.5px solid rgba(27,158,90,.45);
  border-radius: 16px; padding: 26px;
  color: #8BE6B5;
  font: 600 16px/1.6 var(--font-body);
  display: flex; align-items: flex-start; gap: 13px;
}
.form-sent svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px; }
.form-mini {
  font: 500 12px/1.5 var(--font-body);
  color: rgba(255,255,255,.32);
  text-align: center;
}
.form-error {
  font: 500 13px/1.5 var(--font-body);
  color: #F87171;
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.25);
  border-radius: 8px;
  padding: 12px 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
button:disabled { opacity: .7; cursor: not-allowed; }

/* ============================================================
   FOOTER
   ============================================================ */
.ftr {
  background: var(--d-bg); color: #fff;
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.ftr-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ftr-brand { display: flex; flex-direction: column; gap: 16px; }
.ftr-tagline {
  font: 400 14px/1.6 var(--font-body);
  color: rgba(255,255,255,.38);
  max-width: 280px;
}
.ftr-nav { display: flex; flex-direction: column; gap: 10px; }
.ftr-nav-title {
  font: 700 11px/1 var(--font-display);
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.32);
  margin-bottom: 6px;
}
.ftr-nav a {
  font: 500 14px/1.4 var(--font-body);
  color: rgba(255,255,255,.56);
  transition: color var(--dur-fast) var(--ease-out);
}
.ftr-nav a:hover { color: #fff; }
.ftr-cta-col { display: flex; flex-direction: column; gap: 14px; }
.ftr-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; gap: 20px; flex-wrap: wrap;
}
.ftr-copy { font: 500 13px/1.5 var(--font-body); color: rgba(255,255,255,.28); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal.pre { opacity: 0; transform: translateY(22px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hdr-nav { display: none; }
  .burger { display: flex; }

  /* Pipeline: vertical con conectores animados */
  .pipeline-stages {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pipe-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    height: 52px;
  }
  .pipe-conn-line {
    width: 2px;
    height: 52px;
    flex-direction: column;
    position: relative;
  }
  .pipe-conn-line::before {
    background: rgba(255,255,255,.12);
    border-radius: 2px;
    position: absolute;
    inset: 0;
    content: "";
  }
  .pipe-conn-dot {
    left: 50% !important;
    transform: translateX(-50%);
    animation: flowdot-v 2.4s var(--ease-inout) infinite !important;
  }
  .pipe-arr { display: none; }

  .cards-3, .steps, .svc-grid, .diff-grid { grid-template-columns: 1fr 1fr; }
  .fw-grid { grid-template-columns: 1fr; }

  /* Form: colapsa a 1 columna y form-row también */
  .form-card { grid-template-columns: 1fr; padding: 36px 32px; gap: 32px; }
  .form-row  { grid-template-columns: 1fr; }
}

/* animación vertical de los dots */
@keyframes flowdot-v {
  0%   { top: -4px; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: calc(100% - 4px); opacity: 0; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .hdr-inner { height: 68px; }
  .hero { padding: 130px 0 80px; }

  /* Botón hero — ancho completo, bien proporcionado */
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn-xl {
    width: 100%;
    max-width: 340px;
    padding: 18px 24px;
    font-size: 15px;
    justify-content: center;
  }

  /* Botón mid-CTA — mismo tratamiento */
  .cta-mid-inner .btn-xl {
    width: 100%;
    max-width: 340px;
    padding: 18px 24px;
    font-size: 15px;
  }

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

  /* Formulario mobile */
  .form-card { padding: 24px 18px; gap: 26px; border-radius: 20px; }
  .form-fields { gap: 10px; }
  .form-fields input,
  .form-fields textarea,
  .form-fields select {
    font-size: 16px;  /* evita zoom en iOS */
    padding: 12px 13px;
  }
  .form-fields label { font-size: 11px; }
  .form-info h2 { font-size: clamp(20px, 5.5vw, 36px); }
  /* Badge — permite wrap en pantallas muy angostas */
  .form-card .badge { white-space: normal; line-height: 1.4; }
  /* Botón submit — permite que el texto corte en 2 líneas en vez de desbordar */
  .form-fields .btn-block {
    white-space: normal;
    line-height: 1.35;
    padding: 16px 18px;
    font-size: 14px;
  }
  .form-fields .btn-block svg { flex-shrink: 0; }

  .pillars .sep { display: none; }
  .pillars { gap: 12px 16px; }
  .ftr-top { grid-template-columns: 1fr; gap: 32px; }
  .ftr-brand { grid-column: auto; }
  .sol-result { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 14px; }
  .hero { padding: 110px 0 64px; }
  .hero-cta .btn-xl,
  .cta-mid-inner .btn-xl { font-size: 14px; padding: 16px 20px; }
  .form-card { padding: 20px 14px; border-radius: 16px; }
  .form-fields input,
  .form-fields textarea,
  .form-fields select { padding: 11px 12px; }
}
