/* ==========================================================================
   IT Servicios Industriales y Tecnológicos — Hoja de estilos principal
   Índice:
   1. Tokens          6. Nosotros          11. CTA
   2. Base            7. Servicios         12. Contacto
   3. Utilidades      8. Infraestructura   13. Pie de página
   4. Encabezado      9. Modalidades       14. WhatsApp flotante
   5. Hero           10. Proceso           15. Animaciones / Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Identidad de marca */
  --navy: #0D1B2A;
  --navy-2: #13263A;
  --navy-3: #0A1521;
  --blue: #1F6FD6;
  --blue-hover: #1859B2;
  --blue-soft: rgba(31, 111, 214, .08);
  --graphite: #2B3440;
  --silver: #A7B1BC;

  /* Neutros */
  --ink: #1A222C;
  --muted: #5E6670;
  --line: #E3E6EA;
  --line-strong: #D3D9DF;
  --tint: #F5F6F7;
  --white: #FFFFFF;

  --ok: #1E9E6A;
  --error: #C4423A;

  /* Tipografía */
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Espaciado y forma */
  --container: 1200px;
  --gutter: 24px;
  --section-y: clamp(80px, 11vw, 136px);
  --radius: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(13, 27, 42, .05), 0 2px 8px rgba(13, 27, 42, .04);
  --shadow-md: 0 2px 4px rgba(13, 27, 42, .04), 0 14px 34px -12px rgba(13, 27, 42, .14);
  --shadow-lg: 0 30px 60px -24px rgba(13, 27, 42, .22);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
strong { font-weight: 600; color: var(--navy); }

::selection { background: rgba(31, 111, 214, .18); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* 3. Utilidades ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico-fill { stroke: none; }

.section-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--graphite);
  margin-bottom: 22px;
}
.section-label span {
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 12px;
}
.section-label span::after {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6;
}

.section-head { margin-bottom: clamp(44px, 6vw, 72px); }
.section-head-row {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: end;
}
.section-head h2 { max-width: 640px; }
.section-lead { color: var(--muted); font-size: 1.02rem; max-width: 440px; justify-self: end; }
.section-head-center { text-align: center; }
.section-head-center h2 { margin-inline: auto; max-width: 720px; }

.label-mono {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}

.icon-tile {
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line);
  color: var(--navy);
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.icon-tile .ico { width: 22px; height: 22px; }

.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .96rem; color: var(--ink); line-height: 1.5;
}
.check-list li + li { margin-top: 12px; }
.check-list .ico {
  width: 20px; height: 20px; padding: 4px; margin-top: 1px;
  border-radius: 50%; background: var(--navy); color: #fff; stroke-width: 2.4;
}
.check-list.sm li { font-size: .9rem; }
.check-list.sm li + li { margin-top: 9px; }

.dash-list li {
  position: relative; padding-left: 20px; font-size: .94rem; color: var(--ink); line-height: 1.5;
}
.dash-list li + li { margin-top: 10px; }
.dash-list li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 10px; height: 1px; background: var(--blue);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .92rem; font-weight: 500; color: var(--blue);
}
.link-arrow .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* Botones */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px;
  border-radius: var(--radius);
  font-size: .95rem; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), box-shadow .3s var(--ease), transform .25s var(--ease);
}
.btn .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: .88rem; }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -12px rgba(31, 111, 214, .7); }
.btn-primary:hover { background: var(--blue-hover); box-shadow: 0 14px 28px -12px rgba(31, 111, 214, .75); }

.btn-ghost { border-color: var(--line-strong); color: var(--navy); background: rgba(255, 255, 255, .7); }
.btn-ghost:hover { border-color: var(--navy); background: #fff; }
.btn-call { background: var(--navy); color: #fff; box-shadow: 0 10px 22px -12px rgba(13, 27, 42, .6); }
.btn-call:hover { background: var(--graphite); }
.btn-call .ico { color: #5FA2F0; stroke-width: 1.9; }
.btn-call:hover .ico { transform: rotate(-12deg); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #EEF3FA; }

.btn-outline-light { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline-light .ico { width: 20px; height: 20px; }
.btn-outline-light:hover .ico { transform: none; }

/* 4. Encabezado ------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 44px; }

.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--navy); flex: none; }
.brand-logo { width: 46px; height: 46px; color: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 600; font-size: 1.22rem; letter-spacing: -.015em; white-space: nowrap; }
.brand-tag {
  font-size: .56rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--graphite); margin-top: 5px; white-space: nowrap;
}
.brand-light, .brand-light .brand-logo { color: #fff; }
.brand-light .brand-tag { color: var(--silver); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 24px; }
.main-nav ul a {
  position: relative; font-size: .9rem; font-weight: 400; color: var(--graphite);
  padding: 6px 0; transition: color .25s;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--blue); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.main-nav ul a:hover, .main-nav ul a.is-active { color: var(--navy); }
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; border-radius: 10px; }
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--navy);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* 5. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  padding: calc(var(--header-h) + clamp(48px, 7vw, 90px)) 0 clamp(72px, 8vw, 110px);
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--tint) 100%);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(13, 27, 42, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 27, 42, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 4vw, 56px); align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--graphite);
  padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 111, 214, .14);
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.07; letter-spacing: -.035em; font-weight: 600;
  margin-bottom: 26px; max-width: 640px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-lead { font-size: clamp(1.02rem, 1.3vw, 1.14rem); color: var(--muted); max-width: 540px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-actions .btn { padding: 0 22px; }

.hero-points {
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line);
  max-width: 600px;
}
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--graphite); }
.hero-points .ico { width: 18px; height: 18px; color: var(--blue); }

.hero-visual { position: relative; }
.topology { position: relative; width: 100%; max-width: 560px; margin-left: auto; will-change: transform; }
.topology-svg { width: 100%; height: auto; overflow: visible; }

.topology .orbit { fill: none; stroke: #D3DAE2; stroke-width: 1; stroke-dasharray: 2 7; }
.topology .orbit-2 {
  stroke: #C2CBD5; stroke-dasharray: 1 5;
  transform-box: view-box; transform-origin: 280px 260px;
  animation: spin 80s linear infinite;
}
.topology .links path { fill: none; stroke: #C9D1DA; stroke-width: 1.4; }
.topology .links-flow path {
  fill: none; stroke: var(--blue); stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: 4 14; opacity: .7;
  animation: flow 1.6s linear infinite;
}
.topology .packets circle { fill: var(--blue); }

.topology .core rect:first-child { fill: var(--navy); filter: drop-shadow(0 16px 24px rgba(13, 27, 42, .28)); }
.topology .ports rect { fill: rgba(255, 255, 255, .16); }
.topology .led { fill: #3DD598; animation: blink 2.4s ease-in-out infinite; }
.topology .led-2 { fill: var(--blue); animation-delay: 1.2s; }
.topology .core-label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; fill: #fff; }
.topology .core-label-r { fill: var(--silver); }

.topology .node circle {
  fill: #fff; stroke: var(--line-strong); stroke-width: 1;
  filter: drop-shadow(0 10px 18px rgba(13, 27, 42, .08));
  transition: stroke .3s;
}
.topology .node use { fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.topology .node text {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; fill: var(--muted); text-anchor: middle;
}

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: float 7s ease-in-out infinite;
}
.chip .ico { width: 15px; height: 15px; color: var(--ok); stroke-width: 2.2; }
.chip-a { top: 9%; left: 0; }
.chip-b { bottom: 13%; right: -2%; animation-delay: -3.5s; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3DD598; position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid #3DD598; animation: ping 2.2s ease-out infinite;
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1.5px solid var(--line-strong); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--graphite); animation: scrollcue 2s var(--ease) infinite;
}

/* 6. Nosotros -------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.about-copy h2 { margin-bottom: 28px; max-width: 600px; }
.about-copy > p:not(.section-label) { color: var(--muted); font-size: 1.04rem; max-width: 580px; }
.about-copy > p + p { margin-top: 16px; }

.about-aside {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 3.4vw, 40px);
}
.aside-block h3 { font-size: 1.04rem; margin-bottom: 10px; }
.aside-block p { color: var(--muted); font-size: .94rem; line-height: 1.65; }
.aside-block + .aside-block { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line-strong); }

.outcomes {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(60px, 8vw, 96px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.outcomes li {
  display: flex; align-items: center; gap: 16px;
  padding: 30px 28px; font-size: .96rem; font-weight: 500; color: var(--navy); line-height: 1.35;
}
.outcomes li + li { border-left: 1px solid var(--line); }
.outcomes .ico { width: 30px; height: 30px; color: var(--blue); stroke-width: 1.4; }

/* 7. Servicios ------------------------------------------------------------- */
.services { background: var(--tint); }

.svc-explorer {
  display: grid;
  grid-template-columns: minmax(300px, 410px) 1fr;
  grid-template-rows: repeat(10, auto);
  column-gap: clamp(32px, 5vw, 72px);
}
.svc-item { display: contents; }

.svc-tab {
  grid-column: 1;
  position: relative;
  display: flex; align-items: center; gap: 18px; width: 100%;
  padding: 19px 4px; text-align: left;
  border-bottom: 1px solid var(--line-strong);
  transition: color .3s var(--ease);
}
.svc-item:first-child .svc-tab { border-top: 1px solid var(--line-strong); }
.svc-tab::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1.5px; width: 100%;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.svc-num { font-family: var(--mono); font-size: .76rem; color: var(--silver); letter-spacing: .06em; transition: color .3s; }
.svc-name { flex: 1; font-size: 1.02rem; font-weight: 400; color: var(--graphite); transition: color .3s, transform .35s var(--ease); }
.svc-chev {
  width: 18px; height: 18px; color: var(--blue);
  opacity: 0; transform: translateX(-8px);
  transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.svc-tab:hover .svc-name { color: var(--navy); transform: translateX(4px); }
.svc-tab:hover .svc-num { color: var(--graphite); }
.svc-item.is-active .svc-tab::after { transform: scaleX(1); }
.svc-item.is-active .svc-num { color: var(--blue); }
.svc-item.is-active .svc-name { color: var(--navy); font-weight: 500; }
.svc-item.is-active .svc-chev { opacity: 1; transform: none; }

.svc-panel {
  grid-column: 2; grid-row: 1 / span 10;
  align-self: start; position: sticky; top: calc(var(--header-h) + 24px);
  display: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 3.6vw, 48px);
  box-shadow: var(--shadow-md);
}
.svc-item.is-active .svc-panel { display: block; animation: panelIn .55s var(--ease) both; }

.svc-panel-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.svc-panel-head .icon-tile { background: var(--navy); border-color: var(--navy); color: #fff; width: 56px; height: 56px; border-radius: 14px; }
.svc-panel-head .icon-tile .ico { width: 26px; height: 26px; }
.svc-panel h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); letter-spacing: -.02em; }
.svc-desc { color: var(--muted); font-size: 1.02rem; line-height: 1.7; max-width: 620px; }

.svc-cols {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px;
  margin: 32px 0; padding-top: 30px; border-top: 1px solid var(--line);
}
.svc-cols h4 {
  font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.benefit {
  background: var(--tint); border-radius: 12px; padding: 22px 22px 24px;
  border-left: 2px solid var(--blue);
}
.benefit p { color: var(--navy); font-weight: 500; font-size: 1rem; line-height: 1.5; }

/* 8. Infraestructura ------------------------------------------------------- */
.infra { background: var(--navy); color: #fff; overflow: hidden; }
.infra h2, .infra h3 { color: #fff; }
.infra .section-label { color: var(--silver); }
.infra .section-label span { color: #5FA2F0; }
.infra .section-lead { color: rgba(255, 255, 255, .62); }

.infra-bg { position: absolute; inset: -10% 0; pointer-events: none; will-change: transform; }
.infra-bg svg { width: 100%; height: 100%; }
.infra-bg .traces path {
  fill: none; stroke: rgba(95, 162, 240, .22); stroke-width: 1.2;
  stroke-dasharray: 900; stroke-dashoffset: 900;
  transition: stroke-dashoffset 2.6s var(--ease);
}
.infra-bg .trace-pads circle { fill: none; stroke: rgba(95, 162, 240, .35); stroke-width: 1.2; opacity: 0; transition: opacity .8s 1.8s; }
.infra.is-visible .infra-bg .traces path { stroke-dashoffset: 0; }
.infra.is-visible .infra-bg .trace-pads circle { opacity: 1; }

.infra .container { position: relative; }

.infra-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.infra-item {
  position: relative; padding: 40px 30px 44px 0;
  transition: background-color .4s var(--ease);
}
.infra-item + .infra-item { padding-left: 30px; border-left: 1px solid rgba(255, 255, 255, .08); }
.infra-item::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: #5FA2F0; transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.infra-item:hover::before { transform: scaleX(1); }
.infra-ico { width: 34px; height: 34px; color: #5FA2F0; stroke-width: 1.3; margin-bottom: 26px; transition: transform .5s var(--ease); }
.infra-item:hover .infra-ico { transform: translateY(-3px); }
.infra-item h3 { font-size: 1.28rem; margin-bottom: 12px; }
.infra-item p { color: rgba(255, 255, 255, .64); font-size: .94rem; line-height: 1.65; min-height: 4.95em; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .78);
  transition: border-color .3s, color .3s;
}
.infra-item:hover .tags li { border-color: rgba(95, 162, 240, .45); color: #fff; }

/* 9. Modalidades ----------------------------------------------------------- */
.modes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mode {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.mode:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.mode:hover .icon-tile { background: var(--navy); border-color: var(--navy); color: #fff; }
.mode-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.mode-index { font-family: var(--mono); font-size: .8rem; color: var(--silver); letter-spacing: .1em; }
.mode h3 { font-size: 1.32rem; margin-bottom: 12px; }
.mode > p { color: var(--muted); font-size: .95rem; line-height: 1.65; margin-bottom: 26px; }
.mode .check-list { padding-top: 24px; border-top: 1px solid var(--line); margin-bottom: 32px; }
.mode .link-arrow { margin-top: auto; }

.mode-featured { background: var(--navy); border-color: var(--navy); }
.mode-featured h3 { color: #fff; }
.mode-featured > p { color: rgba(255, 255, 255, .66); }
.mode-featured .icon-tile { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; }
.mode-featured:hover .icon-tile { background: var(--blue); border-color: var(--blue); }
.mode-featured .check-list { border-top-color: rgba(255, 255, 255, .12); }
.mode-featured .check-list li { color: rgba(255, 255, 255, .86); }
.mode-featured .check-list .ico { background: var(--blue); }
.mode-featured .link-arrow { color: #7DB4F5; }
.mode-badge {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22);
}

/* 10. Proceso -------------------------------------------------------------- */
.process { background: var(--tint); }
.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
}
.steps::before, .steps::after {
  content: ""; position: absolute; top: 31px; left: 10%; right: 10%; height: 1px;
}
.steps::before { background: var(--line-strong); }
.steps::after {
  background: var(--blue); height: 1.5px;
  transform: scaleX(var(--progress)); transform-origin: left;
  transition: transform .2s linear;
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step-dot {
  position: relative; z-index: 1;
  width: 62px; height: 62px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line-strong); color: var(--graphite);
  box-shadow: 0 0 0 8px var(--tint);
  transition: border-color .5s var(--ease), color .5s var(--ease), background .5s var(--ease);
}
.step-dot .ico { width: 24px; height: 24px; }
.step.is-reached .step-dot { border-color: var(--blue); color: var(--blue); }
.step:hover .step-dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.step-num { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.step h3 { font-size: 1.14rem; margin-bottom: 10px; }
.step p { font-size: .9rem; color: var(--muted); line-height: 1.6; max-width: 220px; margin-inline: auto; }

.process-note {
  margin: 56px auto 0; max-width: max-content;
  padding: 12px 24px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: .92rem; color: var(--graphite); text-align: center;
}

/* 11. CTA ------------------------------------------------------------------ */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--navy-2); color: #fff;
  padding-block: clamp(56px, 7vw, 84px);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 640px; }
.cta-band p { color: rgba(255, 255, 255, .64); margin-top: 10px; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; flex: none; }

/* 12. Contacto ------------------------------------------------------------- */
.contact { background: var(--tint); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-lead { color: var(--muted); font-size: 1.04rem; max-width: 420px; }

.contact-person { margin-top: 40px; padding-bottom: 22px; border-bottom: 1px solid var(--line-strong); }
.contact-person strong { display: block; font-size: 1.2rem; margin-top: 6px; letter-spacing: -.01em; }

.contact-list li { border-bottom: 1px solid var(--line-strong); }
.contact-list a { display: flex; align-items: center; gap: 16px; padding: 18px 0; transition: color .25s; }
.contact-list small {
  display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2px;
}
.contact-list a > span:last-child { font-weight: 500; color: var(--navy); font-size: 1rem; word-break: break-word; }
.contact-ico {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--navy);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.contact-ico .ico { width: 20px; height: 20px; }
.contact-list a:hover .contact-ico { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.contact-foot { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: .9rem; color: var(--muted); }
.contact-foot .ico { width: 18px; height: 18px; color: var(--blue); }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.6vw, 48px); box-shadow: var(--shadow-md);
}
.form-title { font-size: 1.3rem; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: .84rem; font-weight: 500; color: var(--graphite); margin-bottom: 8px; }
.field label span { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #FAFBFC; border: 1px solid #D9DEE4; border-radius: var(--radius);
  font-size: .95rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #9AA3AD; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C3CBD3; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 111, 214, .12);
}
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field-error { font-size: .78rem; color: var(--error); margin-top: 6px; min-height: 0; }
.field-error:empty { display: none; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--graphite); border-bottom: 1.5px solid var(--graphite);
  transform: rotate(45deg); pointer-events: none;
}
.select-wrap select { padding-right: 40px; cursor: pointer; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form-privacy { font-size: .8rem; color: var(--muted); }
.contact-form button[disabled] { opacity: .7; pointer-events: none; }
.contact-form.is-sending .btn-label::after { content: "…"; }

.form-status {
  margin-top: 22px; padding: 16px 18px; border-radius: var(--radius);
  font-size: .92rem; line-height: 1.55;
}
.form-status.ok { background: rgba(30, 158, 106, .08); border: 1px solid rgba(30, 158, 106, .3); color: #146B48; }
.form-status.err { background: rgba(196, 66, 58, .06); border: 1px solid rgba(196, 66, 58, .28); color: #8E2C26; }
.form-status a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* 13. Pie de página -------------------------------------------------------- */
.site-footer { background: var(--navy-3); color: rgba(255, 255, 255, .62); padding-top: 72px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-brand p { margin-top: 20px; max-width: 320px; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px;
}
.footer-col li + li { margin-top: 10px; }
.footer-col a { transition: color .2s; word-break: break-word; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8rem;
}
.to-top { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .8); }
.to-top .ico { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform .3s var(--ease); }
.to-top:hover { color: #fff; }
.to-top:hover .ico { transform: rotate(-90deg) translateX(3px); }

/* 14. WhatsApp flotante ---------------------------------------------------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 12px 28px -8px rgba(13, 27, 42, .35);
  transform: translateY(16px) scale(.9); opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease), box-shadow .3s;
}
.wa-float.is-shown { transform: none; opacity: 1; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -10px rgba(13, 27, 42, .45); }
.wa-float svg { width: 30px; height: 30px; }
.wa-tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translate(8px, -50%); opacity: 0; pointer-events: none;
  white-space: nowrap; background: var(--navy); color: #fff; font-size: .82rem;
  padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow-md);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: translate(0, -50%); }

/* Botón flotante de llamada (encima del de WhatsApp) */
.call-float { bottom: 94px; background: var(--blue); transition-delay: .06s; }
.call-float:hover { background: var(--blue-hover); }
.call-float svg.ico { width: 24px; height: 24px; stroke-width: 1.8; }

/* 15. Animaciones ---------------------------------------------------------- */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal[data-delay="1"] { --d: 1; }
.js .reveal[data-delay="2"] { --d: 2; }
.js .reveal[data-delay="3"] { --d: 3; }
.js .reveal[data-delay="4"] { --d: 4; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes flow { to { stroke-dashoffset: -36; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .topology .packets { display: none; }
}

/* Responsive --------------------------------------------------------------- */
/* Menú desplegable antes de que el logotipo y los enlaces se encimen */
@media (max-width: 1320px) {
  .nav-toggle { display: block; z-index: 2; }
  .main-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
    background: #fff;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li { border-bottom: 1px solid var(--line); }
  .main-nav ul a { display: block; padding: 18px 0; font-size: 1.2rem; font-weight: 500; color: var(--navy); }
  .main-nav ul a::after { display: none; }
  .nav-cta { margin-top: 28px; --h: 54px; font-size: 1rem; }
  .brand { position: relative; z-index: 2; }
  .nav-open .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 1100px) {
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .infra-item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .infra-item:nth-child(3)::before, .infra-item:nth-child(4)::before { top: -1px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .svc-cols { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 8px auto 0; width: 100%; }
  .topology { margin: 0 auto; }
  .scroll-cue { display: none; }

  .section-head-row { grid-template-columns: 1fr; gap: 18px; }
  .section-lead { justify-self: start; }

  .about-grid { grid-template-columns: 1fr; }
  .outcomes { grid-template-columns: repeat(2, 1fr); }
  .outcomes li:nth-child(3) { border-left: 0; }
  .outcomes li:nth-child(n+3) { border-top: 1px solid var(--line); }

  /* Servicios como acordeón */
  .svc-explorer { display: block; border-top: 1px solid var(--line-strong); }
  .svc-item { display: block; border-bottom: 1px solid var(--line-strong); }
  .svc-item:first-child .svc-tab { border-top: 0; }
  .svc-tab { border-bottom: 0; padding: 20px 2px; }
  .svc-tab::after { display: none; }
  .svc-chev { opacity: 1; transform: rotate(90deg); color: var(--silver); }
  .svc-item.is-active .svc-chev { transform: rotate(-90deg); color: var(--blue); }
  .svc-tab:hover .svc-name { transform: none; }
  .svc-panel { position: static; box-shadow: none; margin-bottom: 20px; }
  .svc-panel-head .icon-tile { width: 48px; height: 48px; }

  .modes-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }

  .steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
  .steps::before, .steps::after { top: 31px; bottom: 31px; left: 31px; right: auto; width: 1px; height: auto; }
  .steps::after { width: 1.5px; transform: scaleY(var(--progress)); transform-origin: top; }
  .step { display: grid; grid-template-columns: 62px 1fr; column-gap: 22px; text-align: left; padding: 0 0 34px; }
  .step:last-child { padding-bottom: 0; }
  .step-dot { grid-row: 1 / span 3; margin: 0; }
  .step-num { margin-top: 6px; }
  .step p { margin-inline: 0; max-width: none; }
  .process-note { border-radius: var(--radius); max-width: 560px; }

  .cta-inner { flex-direction: column; align-items: flex-start; }

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

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .brand { gap: 10px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-name { font-size: 1.02rem; }
  .brand-tag { font-size: .44rem; letter-spacing: .1em; margin-top: 4px; }

  .hero { padding-top: calc(var(--header-h) + 36px); }
  .eyebrow { font-size: .64rem; letter-spacing: .08em; }
  .hero-actions .btn { width: 100%; }
  .hero-points { flex-direction: column; gap: 12px; }
  .chip { font-size: .6rem; padding: 7px 11px; }
  .chip-a { left: 0; top: 2%; }
  .chip-b { right: 0; bottom: 6%; }

  .outcomes li { padding: 22px 14px; gap: 12px; font-size: .88rem; flex-direction: column; align-items: flex-start; }
  .outcomes .ico { width: 26px; height: 26px; }

  .svc-cols { grid-template-columns: 1fr; gap: 22px; margin: 24px 0; padding-top: 22px; }
  .svc-panel { padding: 22px; }
  .svc-panel-head { gap: 14px; }

  .infra-grid { grid-template-columns: 1fr; }
  .infra-item, .infra-item + .infra-item { padding: 32px 0 34px; border-left: 0; }
  .infra-item + .infra-item { border-top: 1px solid rgba(255, 255, 255, .12); }
  .infra-item p { min-height: 0; }

  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .call-float { bottom: 82px; }
  .wa-tip { display: none; }
}
