:root {
  --navy-950: #031b32;
  --navy-900: #06345f;
  --navy-800: #074a7f;
  --blue-700: #0b68aa;
  --blue-500: #1f9bd7;
  --blue-300: #7fd1f2;
  --ice-100: #eaf8ff;
  --ice-50: #f6fcff;
  --steel: #6488a4;
  --text: #10263a;
  --muted: #5f7387;
  --line: #d9edf8;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(3, 27, 50, .12);
  --soft-shadow: 0 10px 30px rgba(3, 27, 50, .08);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

/* Compensa la cabecera fija/sticky al navegar con anclas internas.
   Evita que los títulos queden tapados debajo del menú superior. */
#inicio,
#productos,
#como-funciona,
#nosotros,
#contacto {
  scroll-margin-top: 32px;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(217,237,248,.9);
  backdrop-filter: blur(16px);
}
.nav-wrap {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand img, .footer-brand img {
  width: 154px;
  height: auto;
  border-radius: 4px;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-left: auto;
  font-weight: 600;
  color: var(--navy-900);
}
.main-nav a { position: relative; padding: 12px 0; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-900), var(--blue-700));
  box-shadow: 0 14px 30px rgba(6, 52, 95, .22);
}
.btn-secondary {
  color: var(--navy-900);
  background: rgba(255,255,255,.74);
  border-color: rgba(6,52,95,.45);
}

.section-blue {
  background:
    radial-gradient(circle at 84% 20%, rgba(31,155,215,.17), transparent 36%),
    radial-gradient(circle at 25% 100%, rgba(127,209,242,.22), transparent 30%),
    linear-gradient(180deg, var(--ice-50), #ffffff 78%);
}
.hero { padding: 88px 0 78px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(470px, 1.08fr);
  align-items: center;
  gap: 56px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-700);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
h1, h2, h3 { margin: 0; color: var(--navy-900); line-height: 1.12; letter-spacing: -.04em; }
h1 { font-size: clamp(2.65rem, 6vw, 5.15rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 850; }
h3 { font-size: 1.28rem; font-weight: 820; }
.hero-text { margin: 28px 0 32px; font-size: 1.12rem; color: #25435d; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-visual {
  position: relative;
  min-height: 560px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 25px -40px 0 10px;
  background-image: radial-gradient(rgba(31,155,215,.35) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 80%, transparent);
}
.source-list {
  position: absolute;
  top: 95px;
  left: 0;
  display: grid;
  gap: 18px;
  z-index: 3;
}
.source-card {
  width: 144px;
  padding: 14px 12px;
  border: 1px solid rgba(31,155,215,.28);
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--soft-shadow);
  font-size: .82rem;
  color: var(--navy-900);
  font-weight: 700;
}
.source-card span { display: inline-block; margin-right: 7px; color: var(--blue-700); }
.flow-lines {
  position: absolute;
  inset: 45px 0 auto 30px;
  width: 72%;
  height: 370px;
  z-index: 1;
}
.flow-lines path { fill: none; stroke: rgba(31,155,215,.58); stroke-width: 3; }
.dashboard-card {
  position: absolute;
  right: 8px;
  top: 48px;
  width: min(470px, 72%);
  min-height: 340px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff, #f3fbff);
  border: 1px solid rgba(31,155,215,.25);
  box-shadow: var(--shadow);
  padding: 24px;
  z-index: 2;
}
.window-bar { display: flex; gap: 7px; margin-bottom: 16px; }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-300); }
.dashboard-head { color: var(--navy-900); font-weight: 800; margin-bottom: 16px; }
.chart { background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.line-chart { height: 118px; margin-bottom: 18px; position: relative; overflow: hidden; }
.line-chart::before {
  content: "";
  position: absolute;
  inset: 18px;
  background: linear-gradient(135deg, transparent 12%, transparent 15%, var(--blue-500) 15%, var(--blue-500) 18%, transparent 18%),
              linear-gradient(25deg, transparent 18%, transparent 40%, var(--blue-700) 40%, var(--blue-700) 43%, transparent 43%);
  opacity: .7;
}
.bars { height: 118px; display: flex; align-items: end; gap: 12px; padding: 18px; width: 48%; float: left; }
.bars i { display: block; width: 18%; background: linear-gradient(var(--blue-500), var(--navy-800)); border-radius: 8px 8px 0 0; }
.bars i:nth-child(1){height:42%}.bars i:nth-child(2){height:68%}.bars i:nth-child(3){height:52%}.bars i:nth-child(4){height:82%}.bars i:nth-child(5){height:58%}
.metric-list { width: 46%; float: right; display: grid; gap: 13px; padding-top: 8px; }
.metric-list b { height: 12px; background: #cde9f7; border-radius: 99px; display: block; }
.metric-list b:nth-child(even){ width: 70%; }
.floating-card {
  position: absolute;
  z-index: 4;
  width: 190px;
  padding: 16px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(31,155,215,.24);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.floating-card strong { display: block; color: var(--navy-900); margin-bottom: 7px; }
.floating-card small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.floating-card a { display: inline-block; margin-top: 10px; color: var(--blue-700); font-weight: 800; font-size: .78rem; }
.alert-card { left: 190px; bottom: 70px; }
.report-card { right: 210px; bottom: 45px; }
.opp-card { right: 0; bottom: 82px; }

.products, .process, .contact { padding: 84px 0; }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-heading p:not(.eyebrow) { margin: 16px 0 0; color: var(--muted); font-size: 1.04rem; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  min-height: 305px;
  padding: 34px;
  border: 1px solid rgba(6,52,95,.12);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card p { color: var(--muted); margin: 18px 0 26px; }
.product-card a { color: var(--blue-700); font-weight: 850; }
.icon {
  width: 70px;
  height: 70px;
  margin-bottom: 22px;
  border-radius: 22px;
  border: 2px solid var(--blue-500);
  position: relative;
  background: linear-gradient(135deg, #fff, var(--ice-100));
}
.radar-icon::before, .radar-icon::after {
  content: ""; position: absolute; border: 2px solid var(--blue-700); border-radius: 50%;
}
.radar-icon::before { inset: 13px; }
.radar-icon::after { inset: 25px; background: var(--blue-700); }
.doc-icon::before { content:""; position:absolute; inset:14px 18px; border: 3px solid var(--blue-700); border-radius: 4px; box-shadow: inset 0 10px 0 rgba(31,155,215,.15); }
.bulb-icon::before { content:""; position:absolute; width:28px; height:34px; border:3px solid var(--blue-700); border-radius:50% 50% 45% 45%; left:18px; top:13px; }
.bulb-icon::after { content:""; position:absolute; width:24px; height:4px; background:var(--blue-700); left:22px; bottom:15px; border-radius: 99px; }

.process { background: linear-gradient(180deg, #fff, #fbfdff); }
.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  position: relative;
}
.process-line::before {
  content: "";
  position: absolute;
  left: 12%; right: 12%; top: 74px;
  border-top: 5px dotted rgba(31,155,215,.55);
}
.step { position: relative; text-align: center; z-index: 1; }
.step-number {
  display: inline-flex;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--white); background: var(--blue-700);
  font-weight: 850;
  position: relative; top: 18px;
}
.step-icon {
  width: 112px; height: 112px;
  display: grid; place-items: center;
  margin: 0 auto 22px;
  border: 2px solid rgba(31,155,215,.45);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-700);
  font-size: 2.3rem;
  box-shadow: 0 12px 25px rgba(6,52,95,.06);
}
.step h3 { font-size: 1.02rem; max-width: 180px; margin: 0 auto; letter-spacing: -.02em; }

.why { padding: 92px 0; overflow: hidden; }
.why-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 60px;
  align-items: center;
}
.why-copy > p:not(.eyebrow) { color: #294861; max-width: 650px; font-size: 1.06rem; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.trust-item span {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 2px solid var(--blue-500); border-radius: 14px;
  color: var(--blue-700); font-weight: 900; margin-bottom: 14px;
}
.trust-item strong { display: block; color: var(--navy-900); line-height: 1.25; margin-bottom: 8px; }
.trust-item small { color: var(--muted); line-height: 1.35; display: block; }
.data-visual {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.map-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(31,155,215,.45) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: .6;
  mask-image: radial-gradient(circle at 55% 45%, #000 0 35%, transparent 68%);
}
.data-visual svg { position: absolute; inset: 30px 0 0; width: 100%; height: 80%; }
.grid-path { fill:none; stroke:rgba(31,155,215,.45); stroke-width:4; }
.grid-path.strong { stroke:rgba(7,74,127,.6); }
.data-bars { position:absolute; bottom:18px; left:12%; right:12%; display:flex; align-items:end; gap:18px; height:180px; }
.data-bars i { flex:1; border-radius:12px 12px 0 0; background:linear-gradient(rgba(31,155,215,.35), rgba(31,155,215,.06)); }
.data-bars i:nth-child(1){height:35%}.data-bars i:nth-child(2){height:52%}.data-bars i:nth-child(3){height:75%}.data-bars i:nth-child(4){height:48%}.data-bars i:nth-child(5){height:92%}.data-bars i:nth-child(6){height:63%}

.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: start; }
.contact-copy p:not(.eyebrow) { font-size: 1.06rem; color: var(--muted); }
.privacy-note {
  display: flex; gap: 16px; margin-top: 38px; padding-top: 24px;
  border-top: 4px solid var(--blue-500);
  max-width: 390px;
}
.privacy-note span { font-size: 2rem; }
.privacy-note p { margin: 0; font-size: .95rem !important; }
.contact-form {
  padding: 30px;
  border: 1px solid rgba(6,52,95,.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  background: var(--white);
}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
label { display: block; margin-bottom: 16px; }
label span { display: block; margin-bottom: 7px; color: var(--navy-900); font-weight: 700; font-size: .9rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cfe3ee;
  border-radius: 12px;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  outline: none;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { resize: vertical; min-height: 122px; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(31,155,215,.14); }
.checkbox-label { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-label input { width: 18px; height: 18px; min-height: auto; margin-top: 4px; }
.checkbox-label span { margin: 0; color: var(--muted); font-weight: 600; }
.form-message { min-height: 24px; margin: 0 0 12px; font-weight: 700; color: var(--blue-700); }

.site-footer {
  padding: 42px 0;
  background:
    radial-gradient(circle at 100% 20%, rgba(127,209,242,.22), transparent 22%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--white);
}
.footer-grid { display: grid; grid-template-columns: .9fr 1fr 1fr; gap: 36px; align-items: center; }
.footer-contact p { margin: 8px 0; color: #d9edf8; }
.footer-links { display: flex; gap: 34px; justify-content: flex-end; font-weight: 700; }
.footer-links a:hover, .footer-contact a:hover { color: var(--blue-300); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .nav-wrap { min-height: 78px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
    background: #fff; margin-left: auto;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--navy-900); margin: 0 auto; }
  .main-nav {
    position: absolute; left: 20px; right: 20px; top: 78px;
    display: none; flex-direction: column; gap: 4px; align-items: stretch;
    padding: 18px; border: 1px solid var(--line); border-radius: 18px;
    background: #fff; box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; }
  .nav-cta { display: none; }
  .hero-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; }
  .cards-grid { grid-template-columns: 1fr; }
  .process-line { grid-template-columns: repeat(2, 1fr); }
  .process-line::before { display: none; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand img { margin: 0 auto; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)); }
  .brand img { width: 126px; }
  .hero { padding: 54px 0 42px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-visual { min-height: 460px; transform: scale(.86); transform-origin: top center; margin-bottom: -60px; }
  .source-list { left: -18px; }
  .dashboard-card { right: -30px; width: 420px; }
  .floating-card { width: 170px; }
  .alert-card { left: 80px; }
  .report-card { right: 120px; }
  .opp-card { right: -35px; }
  .products, .process, .contact, .why { padding: 58px 0; }
  .process-line { grid-template-columns: 1fr; gap: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px; }
}


@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }

  #inicio,
  #productos,
  #como-funciona,
  #nosotros,
  #contacto {
    scroll-margin-top: 18px;
  }
}
