/* =====================================================================
   D-SERVICE CLOUD — Sistema de diseño v2
   Tema claro. Papel + tinta + circuito. La misma idea de fondo —
   infraestructura como esquema técnico vivo — ejecutada en modo
   documento técnico: líneas azules sobre blanco, como un plano real.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  /* Color — papel claro, tinta oscura, acento del logo */
  --paper: #ffffff;
  --paper-alt: #f5f8fc;
  --surface: #ffffff;
  --ink: #0a1526;
  --body-text: #46536e;
  --muted: #646f8a;
  --circuit-deep: #0047ab;
  --circuit-bright: #08c0fe;
  --line: #e4e9f2;
  --line-strong: #ccd6e6;
  --grad-circuit: linear-gradient(135deg, var(--circuit-deep), var(--circuit-bright));
  --shadow-sm: 0 2px 10px -4px rgba(10, 21, 38, .08);
  --shadow-card: 0 24px 48px -24px rgba(10, 21, 38, .18);
  --shadow-lg: 0 32px 64px -20px rgba(10, 21, 38, .28);
  --shadow-glow: 0 18px 40px -14px rgba(8, 192, 254, .38);

  /* Estados semánticos — para el toast y futuros badges/estados */
  --success: #16a37a; --success-bg: #eafaf4;
  --warning: #b8790a; --warning-bg: #fef6e7;
  --danger: #d64545;  --danger-bg: #fdecec;

  /* Duraciones con nombre — todas las microinteracciones caen entre 150-350ms */
  --transition-fast: 150ms; --transition-base: 250ms; --transition-slow: 400ms;

  /* Tipografía — familia Plex completa: seria, técnica, de gran empresa */
  --font-display: 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --fs-h1: clamp(2.5rem, 4.2vw + 1rem, 4.9rem);
  --fs-h2: clamp(1.9rem, 2.2vw + 1.1rem, 3rem);
  --fs-h3: clamp(1.15rem, .5vw + 1rem, 1.4rem);
  --fs-lead: clamp(1.05rem, .3vw + .95rem, 1.2rem);

  --space-section: clamp(4.5rem, 7vw, 8rem);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 7px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

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

html, body { background: var(--paper); }
body {
  font-family: var(--font-body);
  color: var(--body-text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button { cursor: none; }
@media (hover: none), (pointer: coarse) {
  body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button { cursor: auto; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
  font-weight: 600;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

::selection { background: var(--circuit-bright); color: var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--circuit-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-alt); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid var(--paper-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--circuit-deep); }

/* Barra de progreso de scroll */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--grad-circuit); z-index: 1000; transition: width .1s linear; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--space-section) 0; position: relative; }
.head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

#inicio, #servicios, #cobertura, #testimonios, #contacto { scroll-margin-top: 88px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65em;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--circuit-deep); margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; background: var(--grad-circuit); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 71, 171, .1); flex-shrink: 0;
}
.eyebrow__note { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .75rem; }
.title { font-size: var(--fs-h2); max-width: 22ch; }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 46ch; margin-top: 1.1rem; }

/* ---------- Botones (con magnetismo via JS) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1rem 1.7rem; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  letter-spacing: -.01em; will-change: transform;
  transition: transform .25s var(--ease-out), box-shadow .35s var(--ease-out),
    background .35s var(--ease-out), border-color .35s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-circuit); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { box-shadow: 0 22px 46px -14px rgba(8, 192, 254, .5); }
.btn-outline { border: 1px solid var(--line-strong); color: var(--ink); background: var(--paper); }
.btn-outline:hover { border-color: var(--circuit-deep); background: var(--paper-alt); }
.btn-ghost { background: transparent; color: var(--body-text); }
.btn-ghost:hover { background: var(--paper-alt); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c23838; }
.btn-icon { padding: .75rem; border-radius: 50%; }
.btn-block { width: 100%; }
.btn:disabled, .btn.is-loading { opacity: .72; pointer-events: none; }
.btn.is-loading { color: transparent; position: relative; }
.btn.is-loading::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}
.btn-outline.is-loading::after, .btn-ghost.is-loading::after { border-color: rgba(10, 21, 38, .25); border-top-color: var(--ink); }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  transition: transform .8s var(--ease-out), opacity .5s ease .2s;
}
.preloader.is-hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.preloader__mark { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .06em; color: var(--ink); }
.preloader__mark span { color: var(--circuit-deep); }
.preloader__bar { width: 220px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader__fill { display: block; height: 100%; width: 0%; background: var(--grad-circuit); }

/* ---------- Cursor personalizado ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 998; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; background: var(--circuit-deep); }
.cursor-ring {
  width: 34px; height: 34px; border: 1px solid var(--line-strong);
  transition: width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s, background .25s;
}
.cursor-ring.is-active { width: 52px; height: 52px; border-color: var(--circuit-deep); background: rgba(0, 71, 171, .06); }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Nav (con ocultamiento al bajar) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500; padding: 1.3rem 0;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: padding .4s var(--ease-out), border-color .4s var(--ease-out), transform .45s var(--ease-out), box-shadow .4s;
}
.nav.is-scrolled { padding: .85rem 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.nav.nav-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 700; letter-spacing: .01em; font-size: 1.05rem; color: var(--ink); }
.nav__logo img { height: 28px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2.1rem; }
.nav__links a { display: flex; align-items: baseline; gap: .5em; font-size: .92rem; color: var(--muted); transition: color .3s; position: relative; padding: .2rem 0; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
  background: var(--grad-circuit); transition: right .35s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { right: 0; }
.nav__num { font-family: var(--font-mono); font-size: .68rem; color: var(--circuit-deep); opacity: .8; }

.nav__toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; }
.nav__toggle span { width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .3s; }

.overlay { position: fixed; inset: 0; background: rgba(10, 21, 38, .35); backdrop-filter: blur(3px); z-index: 600; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.overlay.is-active { opacity: 1; visibility: visible; }

.mobile-menu {
  position: fixed; top: 0; right: 0; height: 100%; width: min(360px, 86vw); z-index: 700;
  background: var(--paper); border-left: 1px solid var(--line); box-shadow: -20px 0 60px -20px rgba(10, 21, 38, .25);
  display: flex; flex-direction: column; justify-content: center; gap: .4rem; padding: 3rem;
  transform: translateX(100%); transition: transform .5s var(--ease-out);
}
.mobile-menu.is-active { transform: translateX(0); }
.mobile-menu a { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); font-weight: 600; padding: .6rem 0; }
.mobile-menu__close { position: absolute; top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.mobile-menu__close span { position: absolute; top: 50%; left: 50%; width: 22px; height: 1.5px; background: var(--ink); margin: -1px 0 0 -11px; }
.mobile-menu__close span:first-child { transform: rotate(45deg); }
.mobile-menu__close span:last-child { transform: rotate(-45deg); }
.mobile-menu__cta { margin-top: 1.6rem; width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 8rem; overflow: hidden; background: var(--ink); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__grid, .hero__glow { position: absolute; inset: 0; z-index: 0; }
.hero__grid svg { width: 100%; height: 100%; }
.hero__glow {
  background:
    linear-gradient(180deg, transparent 55%, rgba(5, 11, 24, .6) 100%),
    linear-gradient(100deg, rgba(5, 11, 24, .85) 0%, rgba(5, 11, 24, .55) 45%, rgba(5, 11, 24, .3) 75%, rgba(5, 11, 24, .5) 100%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; }
.hero h1 { font-size: var(--fs-h1); max-width: 15ch; }
.hero h1 em { font-style: normal; background: var(--grad-circuit); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 em .split-word span { background: var(--grad-circuit); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin-top: 1.6rem; font-size: var(--fs-lead); color: var(--muted); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.hero__stats { display: flex; margin-top: 4rem; border-top: 1px solid var(--line); padding-top: 1.6rem; max-width: 620px; }
.hero__stat { flex: 1; display: flex; align-items: flex-start; gap: .8rem; padding-right: 1.5rem; border-right: 1px solid var(--line); }
.hero__stat:last-child { border-right: none; }
.hero__stat > i { font-size: 1rem; margin-top: .3rem; color: var(--circuit-bright); flex-shrink: 0; }
.hero__stat .num { font-family: var(--font-mono); font-size: clamp(1.6rem, 2vw, 2.1rem); color: var(--ink); font-weight: 500; }
.hero__stat .label { font-size: .78rem; color: var(--muted); margin-top: .3rem; text-transform: uppercase; letter-spacing: .06em; }

/* Revelado del titular palabra por palabra */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; }
.split-word span { display: inline-block; transform: translateY(115%); animation: wordUp .9s var(--ease-out) forwards; }
@keyframes wordUp { to { transform: translateY(0); } }

.scroll-cue { position: absolute; left: 50%; bottom: 2.5rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .6rem; z-index: 2; }
.scroll-cue span:first-child { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; color: var(--muted); }
.scroll-cue__line { width: 1px; height: 34px; background: linear-gradient(var(--circuit-deep), transparent); animation: scrollcue 2s var(--ease-in-out) infinite; }
@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Esquema del hero: trazos + nodos, superpuestos al video como una capa técnica */
.schematic-trace { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1.3; opacity: .55; }
.schematic-trace.pulse {
  stroke: var(--circuit-bright); opacity: 1; stroke-dasharray: 5 240; stroke-width: 2;
  animation: flow 4.5s linear infinite; filter: drop-shadow(0 0 6px rgba(8, 192, 254, .85));
}
.schematic-trace.pulse.d2 { animation-duration: 5.4s; animation-delay: -1.5s; }
.schematic-trace.pulse.d3 { animation-duration: 6.2s; animation-delay: -3s; }
@keyframes flow { to { stroke-dashoffset: -600; } }
.schematic-node { fill: rgba(5, 11, 24, .5); stroke: rgba(255, 255, 255, .65); stroke-width: 1.4; opacity: .85; }
.schematic-node.is-live { fill: var(--circuit-bright); stroke: none; opacity: 1; }
.schematic-ping {
  fill: none; stroke: var(--circuit-bright); stroke-width: 1.4;
  transform-box: fill-box; transform-origin: center; animation: ping 2.6s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(.4); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }

/* Texto e interfaz del hero: claros, porque ahora estan sobre el video */
.hero h1, .hero__stat .num { color: #ffffff; }
.hero .eyebrow { color: var(--circuit-bright); }
.hero__sub, .hero__stat .label, .scroll-cue span:first-child { color: rgba(255, 255, 255, .8); }
.hero__stats { border-top-color: rgba(255, 255, 255, .22); }
.hero__stat { border-right-color: rgba(255, 255, 255, .22); }
.hero .btn-outline { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); color: #fff; }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.hero .scroll-cue__line { background: linear-gradient(var(--circuit-bright), transparent); }

/* ---------- Divisor ---------- */
.divider { display: block; line-height: 0; }
.divider svg { width: 100%; height: auto; display: block; }

/* ---------- Showcase de servicios ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 1rem; align-items: start; }
.showcase__sticky { position: sticky; top: 7rem; height: 560px; }
.showcase__media { position: relative; width: 100%; height: 100%; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.showcase__img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease-out), transform 1.2s var(--ease-out);
}
.showcase__img.is-active { opacity: 1; transform: scale(1); }
.showcase__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 21, 38, 0) 40%, rgba(10, 21, 38, .82) 100%); }
.showcase__tag {
  position: absolute; left: 1.4rem; bottom: 1.4rem; z-index: 2; font-family: var(--font-mono); font-size: .82rem; color: #fff;
  background: rgba(10, 21, 38, .5); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px);
  padding: .5rem .8rem; border-radius: var(--radius-sm); letter-spacing: .04em;
}
.showcase__tag b { color: var(--circuit-bright); font-weight: 600; }

.showcase__list { display: flex; flex-direction: column; }
.showcase__row { padding: 2.6rem 0; border-top: 1px solid var(--line); opacity: .4; transition: opacity .5s var(--ease-out); }
.showcase__row:last-child { border-bottom: 1px solid var(--line); }
.showcase__row.is-active { opacity: 1; }
.showcase__row-top { display: flex; margin-bottom: .8rem; }
.showcase__row-num { font-family: var(--font-mono); font-size: .78rem; color: var(--circuit-deep); }
.showcase__row h3 { font-size: var(--fs-h3); margin-bottom: .6rem; }
.showcase__row p { color: var(--muted); max-width: 42ch; }
.showcase__row-img { display: none; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-md); background-size: cover; background-position: center; margin-top: 1.2rem; border: 1px solid var(--line); }
.showcase__row-link {
  display: inline-flex; align-items: center; gap: .5em; margin-top: 1.2rem; font-family: var(--font-mono);
  font-size: .82rem; color: var(--ink); padding-bottom: 2px; border-bottom: 1px solid var(--line-strong);
  transition: color .3s, border-color .3s, gap .3s;
}
.showcase__row-link:hover { color: var(--circuit-deep); border-color: var(--circuit-deep); gap: .7em; }

/* ---------- Por que elegirnos (con reflector que sigue el cursor) ---------- */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 2.2rem; border-radius: var(--radius-lg); background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transform: perspective(800px); will-change: transform;
  transition: border-color .4s, box-shadow .4s;
}
.why-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(0, 71, 171, .1), transparent 70%);
}
.why-card:hover { border-color: rgba(0, 71, 171, .3); box-shadow: var(--shadow-card); }
.why-card:hover::before { opacity: 1; }
.why-card > * { position: relative; z-index: 1; }
.why-card i { font-size: 1.5rem; color: var(--circuit-deep); margin-bottom: 1.4rem; display: block; }
.why-card h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.why-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Cobertura ---------- */
.coverage__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background-color: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M0 70H35V25H105V115H140M35 25V0M105 115V140' fill='none' stroke='%23dbe3f0' stroke-width='2'/%3E%3Ccircle cx='35' cy='25' r='3' fill='%23c7d2e6'/%3E%3Ccircle cx='105' cy='115' r='3' fill='%23c7d2e6'/%3E%3C/svg%3E");
}
.node-tile { background: var(--paper); padding: 1.8rem 1.6rem; position: relative; transition: background var(--transition-base), transform var(--transition-base) var(--ease-out), box-shadow var(--transition-base); }
.node-tile:hover { background: var(--paper-alt); transform: translateY(-3px); box-shadow: var(--shadow-sm); z-index: 1; }
.node-tile__tag { display: flex; align-items: center; gap: .5em; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; color: var(--muted); margin-bottom: .9rem; }
.node-tile__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--circuit-bright); box-shadow: 0 0 0 3px rgba(8, 192, 254, .18); }
.node-tile__name { display: flex; flex-direction: column; }
.node-tile__name a { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); transition: color .3s; }
.node-tile__name a:hover { color: var(--circuit-deep); }

/* ---------- Testimonios (carrusel nativo con scroll-snap) ---------- */
.testi__carousel { position: relative; }
.testi__track { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: none; -ms-overflow-style: none; }
.testi__track::-webkit-scrollbar { display: none; }
.testi__slide {
  flex: 0 0 min(480px, 88vw); scroll-snap-align: start; padding: 2.6rem; background: var(--paper-alt);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.testi__index { font-family: var(--font-mono); font-size: .75rem; color: var(--circuit-deep); }
.testi__quote { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 1.4vw, 1.45rem); color: var(--ink); line-height: 1.42; margin: 1.6rem 0 2rem; }
.testi__who { display: flex; align-items: center; gap: 1rem; }
.testi__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-circuit); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 600; font-size: .85rem; flex-shrink: 0; }
.testi__name { display: block; font-size: .95rem; color: var(--ink); font-weight: 600; }
.testi__sector { display: block; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); margin-top: .15rem; }
.testi__nav { display: flex; gap: .8rem; margin-top: 2rem; justify-content: flex-end; }
.testi__arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: border-color .3s, background .3s, transform .2s; }
.testi__arrow:hover { border-color: var(--circuit-deep); background: var(--paper-alt); transform: translateY(-2px); }

/* ---------- Contacto ---------- */
.contact { background: var(--paper-alt); }
.contact__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.contact__direct { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; align-self: start; box-shadow: var(--shadow-sm); }
.wa-row { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 1.7rem; background: var(--paper); transition: background .3s; }
.wa-row:hover { background: var(--paper-alt); }
.wa-row i { color: var(--circuit-deep); }
.wa-label { display: block; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.wa-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); margin-top: .3rem; }
.contact__meta { padding: 1.5rem 1.7rem; background: var(--paper); }
.contact__meta a { color: var(--muted); transition: color .3s; }
.contact__meta a:hover { color: var(--circuit-deep); }
.social-row { display: flex; gap: .8rem; padding: 1.5rem 1.7rem; background: var(--paper); }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: border-color .3s, color .3s; }
.social-row a:hover { border-color: var(--circuit-deep); color: var(--circuit-deep); }

.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .55rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; background: var(--paper-alt); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); color: var(--ink); transition: border-color .3s, background .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--circuit-deep); background: var(--paper); outline: none; }
.field textarea { min-height: 110px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237c8aa3' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.form-note { margin-top: 1rem; font-size: .85rem; color: var(--circuit-deep); text-align: center; }
.form-note--static { color: var(--muted); font-size: .78rem; text-align: left; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--line-strong); }

/* ---------- Toast (notificaciones flotantes) ---------- */
.toast-region { position: fixed; top: 6.5rem; right: 1.4rem; z-index: 1200; display: flex; flex-direction: column; gap: .7rem; pointer-events: none; }
.toast {
  display: flex; align-items: flex-start; gap: .8rem; max-width: 360px; padding: 1rem 1.2rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  transform: translateX(120%); opacity: 0; transition: transform var(--transition-slow) var(--ease-out), opacity var(--transition-slow) var(--ease-out);
}
.toast.is-active { transform: translateX(0); opacity: 1; pointer-events: auto; }
.toast i { font-size: 1.05rem; margin-top: .15rem; flex-shrink: 0; }
.toast p { font-size: .9rem; color: var(--ink); line-height: 1.5; margin: 0; }
.toast--success i { color: var(--success); }
.toast--success { border-color: rgba(22, 163, 122, .3); background: var(--success-bg); }
.toast--error i { color: var(--danger); }
.toast--error { border-color: rgba(214, 69, 69, .3); background: var(--danger-bg); }
@media (max-width: 640px) {
  .toast-region { left: 1.2rem; right: 1.2rem; top: 6rem; }
  .toast { max-width: none; }
}

/* ---------- Footer ---------- */
.footer { padding: 5rem 0 2rem; border-top: 1px solid var(--line); background: var(--paper); }
.footer__top { display: grid; grid-template-columns: .9fr 2.5fr; gap: 4rem; margin-bottom: 3.5rem; }
.footer__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.footer__brand img { height: 26px; }
.footer__tagline { margin-top: 1.1rem; color: var(--muted); font-size: .9rem; max-width: 32ch; }
.footer__links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer__col { display: flex; flex-direction: column; }
.footer__col h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--circuit-deep); margin-bottom: 1.1rem; font-weight: 500; }
.footer__col a { color: var(--muted); font-size: .87rem; padding: .38rem 0; transition: color .3s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 2rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); font-family: var(--font-mono); }

/* ---------- Boton flotante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 400; width: 58px; height: 58px; border-radius: 50%;
  background: var(--grad-circuit); display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 1.4rem; box-shadow: 0 16px 36px -10px rgba(0, 71, 171, .45); transition: transform .3s var(--ease-out);
}
.wa-float::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(0, 71, 171, .3); animation: ping 2.2s var(--ease-out) infinite; }
.wa-float:hover { transform: scale(1.08) translateY(-3px); }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =====================================================================
   Paginas internas (servicios y ciudades): encabezado, articulo, aside
   ===================================================================== */
.page-header { padding: 9rem 0 3.5rem; background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4em; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); margin-bottom: 1.6rem; }
.breadcrumb a { color: var(--muted); transition: color .3s; }
.breadcrumb a:hover { color: var(--circuit-deep); }
.breadcrumb li[aria-current="page"] { color: var(--ink); }
.page-header h1 { font-size: clamp(2rem, 2.4vw + 1rem, 3.1rem); max-width: 26ch; }
.page-header .lead { margin-top: 1.2rem; }

.two-col { display: grid; grid-template-columns: 1fr 320px; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }

.article { max-width: 720px; color: var(--body-text); font-size: 1.02rem; line-height: 1.75; }
.article > * + * { margin-top: 1.6rem; }
.article h2 { font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem); margin-top: 3rem; }
.article h2:first-of-type { margin-top: 0; }
.article ul, .article ol { display: flex; flex-direction: column; }
.article li { position: relative; }
.article li + li { margin-top: .9rem; }
.article ul li { padding-left: 1.6rem; }
.article ul li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--grad-circuit); }
.article ol { counter-reset: step; gap: 0; }
.article ol li { counter-increment: step; padding-left: 2.6rem; min-height: 1.8rem; }
.article ol li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--paper-alt); border: 1px solid var(--line-strong); color: var(--circuit-deep);
  font-family: var(--font-mono); font-weight: 600; font-size: .82rem; display: flex; align-items: center; justify-content: center;
}
.article strong { color: var(--ink); font-weight: 600; }

.article table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .93rem; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.article thead th { text-align: left; font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--paper-alt); padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.article tbody td { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--body-text); vertical-align: top; }
.article tbody tr:last-child td { border-bottom: none; }
.article tbody tr:hover td { background: var(--paper-alt); }

.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.related-grid a {
  padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .92rem; color: var(--ink); background: var(--paper-alt);
  transition: border-color .3s, background .3s, color .3s;
}
.related-grid a:hover { border-color: var(--circuit-deep); background: var(--paper); color: var(--circuit-deep); }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.9rem 2.1rem; background: var(--ink); border-radius: var(--radius-lg);
}
.cta-band p { color: #fff; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; max-width: 34ch; }

.faq { display: flex; flex-direction: column; gap: .8rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.1rem 1.4rem; background: var(--paper-alt); transition: border-color .3s; }
.faq details[open] { border-color: rgba(0, 71, 171, .3); }
.faq summary {
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--ink); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--circuit-deep); flex-shrink: 0; transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .9rem; color: var(--muted); font-size: .95rem; line-height: 1.65; }

.aside { display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 7rem; }
.aside-card { padding: 1.6rem; background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: border-color var(--transition-base), box-shadow var(--transition-base); }
.aside-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.aside-card h3 { font-size: 1rem; margin-bottom: 1.1rem; }
.aside-card ul { display: flex; flex-direction: column; gap: .6rem; }
.aside-card a { font-size: .9rem; color: var(--muted); transition: color .3s; }
.aside-card a:hover { color: var(--circuit-deep); }

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; z-index: 900; max-width: 560px; margin: 0 auto;
  padding: 1.3rem 1.5rem; background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); border: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem;
  transform: translateY(160%); transition: transform .5s var(--ease-out);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { font-size: .85rem; line-height: 1.55; color: rgba(255, 255, 255, .82); flex: 1 1 260px; margin: 0; }
.cookie-banner a { color: var(--circuit-bright); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: .7rem; flex-shrink: 0; }
.cookie-banner__actions button { font-family: var(--font-display); font-weight: 600; font-size: .82rem; padding: .65rem 1.1rem; border-radius: var(--radius-sm); transition: opacity .25s, background .25s; }
.cookie-banner__accept { background: var(--grad-circuit); color: var(--ink); }
.cookie-banner__accept:hover { opacity: .9; }
.cookie-banner__decline { background: transparent; border: 1px solid rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .75); }
.cookie-banner__decline:hover { border-color: rgba(255, 255, 255, .5); }

/* ---------- Anuncio: software de gestion de activos ---------- */
.software-ad { background: var(--ink); overflow: hidden; }
.software-ad__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.software-ad .eyebrow { color: var(--circuit-bright); }
.software-ad .title { color: #fff; }
.software-ad .lead { color: rgba(255, 255, 255, .68); }
.software-ad__features { display: flex; flex-direction: column; gap: .9rem; margin: 2rem 0 2.2rem; }
.software-ad__features li { display: flex; align-items: flex-start; gap: .8rem; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.software-ad__features i { color: var(--circuit-bright); margin-top: .25rem; flex-shrink: 0; font-size: .8rem; }
.software-ad__badge { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: .78rem; color: rgba(255, 255, 255, .55); }

.app-mock { background: #101d33; border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow-glow); overflow: hidden; transform: perspective(1000px) rotateY(-4deg) rotateX(2deg); }
.app-mock__bar { display: flex; align-items: center; gap: .4rem; padding: .8rem 1rem; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.app-mock__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.app-mock__url { margin-left: .8rem; font-family: var(--font-mono); font-size: .72rem; color: rgba(255, 255, 255, .4); }
.app-mock__body { display: grid; grid-template-columns: 52px 1fr; min-height: 320px; }
.app-mock__side { background: rgba(255, 255, 255, .03); display: flex; flex-direction: column; align-items: center; gap: 1.1rem; padding: 1.4rem 0; border-right: 1px solid rgba(255, 255, 255, .08); }
.app-mock__side span { width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.app-mock__side span.is-active { background: var(--grad-circuit); }
.app-mock__main { padding: 1.4rem; display: flex; flex-direction: column; gap: 1.3rem; }
.app-mock__stats { display: flex; gap: 1.5rem; }
.app-mock__stats div { font-family: var(--font-mono); font-size: .68rem; color: rgba(255, 255, 255, .45); text-transform: uppercase; letter-spacing: .05em; }
.app-mock__stats b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: #fff; font-weight: 600; }
.app-mock__chart { display: flex; align-items: flex-end; gap: .4rem; height: 60px; }
.app-mock__chart span { flex: 1; background: linear-gradient(180deg, var(--circuit-bright), var(--circuit-deep)); border-radius: 3px 3px 0 0; opacity: .85; }
.app-mock__rows { display: flex; flex-direction: column; gap: .6rem; }
.app-mock__row { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; background: rgba(255, 255, 255, .03); border-radius: var(--radius-sm); font-size: .8rem; color: rgba(255, 255, 255, .7); }
.app-mock__row span { margin-left: auto; font-family: var(--font-mono); font-size: .68rem; padding: .2rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.app-mock .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.app-mock .dot.is-ok { background: #2dd4a7; box-shadow: 0 0 6px rgba(45, 212, 167, .7); }
.app-mock .dot.is-warn { background: #f5a623; box-shadow: 0 0 6px rgba(245, 166, 35, .7); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .software-ad__grid { grid-template-columns: 1fr; }
  .app-mock { transform: none; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
  .nav__toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav__toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .showcase { grid-template-columns: 1fr; }
  .showcase__sticky { display: none; }
  .showcase__row-img { display: block; }
  .showcase__row { opacity: 1; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .aside-card { flex: 1 1 240px; }
}
@media (max-width: 640px) {
  .hero__stats { flex-wrap: wrap; gap: 1.4rem 1rem; }
  .hero__stat { flex: 0 0 45%; border-right: none; padding-right: 0; }
  .why__grid { grid-template-columns: 1fr; }
  .coverage__grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: .5rem; }
  .testi__quote { font-size: 1.05rem; }
  .testi__slide { padding: 1.8rem; }
  .container { padding: 0 1.2rem; }
  .page-header { padding: 7.5rem 0 2.5rem; }
  .related-grid { grid-template-columns: 1fr; }
  .aside { flex-direction: column; }
  .article table { display: block; overflow-x: auto; white-space: nowrap; }
}
