/* ═══════════════════════════════════════════
   LORASTREO — Rediseño 2026 · "Centro de Control"
   Tema claro (blanco/#f4f8fc) + panel de consola navy (#0b1c30)
   Space Grotesk (display/UI) + JetBrains Mono (instrumento/telemetría)
   El mono es la voz de "lectura de instrumento": IDs, coordenadas, datos.
   Radios: botones/inputs 10px · cards 14px · consola 18px · pills 999px
   Escala z-index: header 100 · scroll-top 200 · chat 300
═══════════════════════════════════════════ */
:root {
  /* Superficies (tema claro, tinte hacia el azul de marca) */
  --bg:        #ffffff;
  --bg-2:      #f4f8fc;
  --surface:   #ffffff;
  --surface-2: #eef3fa;
  --line:        rgba(13, 30, 51, 0.10);
  --line-strong: rgba(13, 30, 51, 0.17);

  /* Marca */
  --blue:        #1a66b3;
  --blue-deep:   #124a82;
  --blue-bright: #3b8fe0;   /* variante clara, solo sobre superficies oscuras */
  --blue-soft:   rgba(26, 102, 179, 0.08);
  --green:       #178a5e;   /* éxito / estados "en vivo" (sobre claro) */
  --green-bright:#2ecc8f;   /* estados "en vivo" sobre consola */

  /* Texto (sobre fondo claro) */
  --ink:    #0c1a2e;
  --body:   #3f4f63;
  --muted:  #59697e;

  /* Consola / superficies oscuras (hero, panel, banda de imagen) */
  --console:    #0b1c30;
  --console-2:  #0c2137;
  --console-3:  #112a45;
  --con-ink:    #ffffff;
  --con-body:   rgba(233, 243, 255, 0.84);
  --con-muted:  #d5e4f6;
  --con-line:   rgba(255, 255, 255, 0.11);
  --con-line-2: rgba(255, 255, 255, 0.20);

  /* Sombras — crisp, sin "ghost card" (borde + sombra ancha en reposo) */
  --shadow-sm: 0 1px 2px rgba(13, 30, 51, 0.05);
  --shadow-md: 0 10px 30px rgba(13, 30, 51, 0.10), 0 2px 6px rgba(13, 30, 51, 0.05);
  --shadow-console: 0 30px 80px rgba(6, 16, 30, 0.5);

  /* Tipografía */
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Radios */
  --r-btn:   10px;
  --r-card:  14px;
  --r-panel: 18px;
  --r-pill:  999px;

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);       /* out-expo */
  --ease-io:   cubic-bezier(0.77, 0, 0.175, 1);
  --t-fast:    150ms;
  --t-med:     240ms;

  /* Capas */
  --z-header: 100;
  --z-scrolltop: 200;
  --z-chat: 300;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
section[id] { scroll-margin-top: 88px; }


body {
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
h1, h2, h3, h4 { line-height: 1.12; font-weight: 700; color: var(--ink); text-wrap: balance; letter-spacing: -0.02em; }
p   { text-wrap: pretty; }
::selection { background: rgba(26, 102, 179, 0.20); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

#topSentinel { position: absolute; top: 0; height: 48px; width: 1px; pointer-events: none; }

/* Honeypot: fuera de la vista sin sacarlo del flujo con un left negativo. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Etiqueta mono "canal" reutilizable (voz de consola) */
.mono-label {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-med) var(--ease-out),
              background var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out);
}
#header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(13, 30, 51, 0.06);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon { height: 36px; width: auto; flex-shrink: 0; display: block; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.nav-logo-name { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: 0.06em; }
.nav-logo-sub  { font-family: var(--font-mono); font-size: 8.5px; font-weight: 400; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links li a {
  position: relative;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: var(--r-btn);
  transition: color var(--t-fast) var(--ease-out);
}
.nav-links li a::after {
  content: '';
  position: absolute;
  left: 11px; right: 11px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms var(--ease-out);
}
.nav-links li a:hover { color: var(--ink); }
.nav-links li a.active { color: var(--ink); }
.nav-links li a.active::after { transform: scaleX(1); }
.nav-links li a.btn-nav::after,
.nav-links li a.btn-nav-platform::after { display: none; }

.btn-nav {
  background: var(--blue);
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: var(--r-btn);
  font-weight: 600;
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.btn-nav:hover  { background: var(--blue-deep); box-shadow: 0 4px 14px rgba(26, 102, 179, 0.30); }
.btn-nav:active { transform: scale(0.97); }

.btn-nav-platform {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong) !important;
  color: var(--ink) !important;
  padding: 7px 16px !important;
  border-radius: var(--r-pill) !important;
  font-weight: 600;
  font-size: 13px !important;
  transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.btn-nav-platform:hover  { background: var(--surface-2); border-color: var(--blue) !important; }
.btn-nav-platform:active { transform: scale(0.97); }

.platform-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: livePulse 2.4s ease-in-out infinite;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   SECCIONES BASE
═══════════════════════════════════════════ */
.section { padding: clamp(72px, 10vw, 116px) 0; }
.section-raised { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-header { max-width: 640px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-header h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.08;
  margin-bottom: 16px;
}
.section-header p { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════════
   BOTONES
═══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--r-btn);
  font-weight: 600;
  font-size: 15px;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  box-shadow: 0 3px 14px rgba(26, 102, 179, 0.28);
  transition: background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.btn-primary:hover  { background: var(--blue-deep); border-color: var(--blue-deep); box-shadow: 0 6px 22px rgba(26, 102, 179, 0.38); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

/* .btn-outline vive sobre la consola oscura del hero: claro-sobre-oscuro */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--r-btn);
  font-weight: 600;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid var(--con-line-2);
  transition: border-color var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.btn-outline:hover  { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.10); }
.btn-outline:active { transform: scale(0.98); }

/* ═══════════════════════════════════════════
   HERO — CONSOLA DE OPERACIÓN
   Fotografía tratada (el campo monitoreado) + consola de control encima
═══════════════════════════════════════════ */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 130px 24px 84px;
  position: relative;
  overflow: hidden;
  background: var(--console);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(155deg, rgba(8, 18, 32, 0.94) 0%, rgba(9, 22, 38, 0.90) 48%, rgba(11, 30, 50, 0.86) 100%),
    url('../images/TransporteFondo.webp') center 30%/cover no-repeat;
  filter: saturate(0.72);
}
/* Retícula de consola sutil sobre el hero (superficie de instrumento, no adorno de página) */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 180, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 240, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 75% at 65% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 65% 40%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 52% 46% at 74% 42%, rgba(59, 143, 224, 0.20) 0%, transparent 70%),
    radial-gradient(ellipse 34% 34% at 14% 84%, rgba(46, 204, 143, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
/* Línea de barrido tenue que recorre el hero */
.hero-scan {
  position: absolute; left: 0; right: 0; top: 0;
  height: 32%;
  background: linear-gradient(to bottom, rgba(120, 190, 245, 0.06), transparent);
  pointer-events: none;
  animation: heroScan 8s var(--ease-io) 1.2s infinite;
}
@keyframes heroScan {
  0%   { transform: translateY(-40%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(320%); opacity: 0; }
}

/* Barra de estado tipo consola, arriba del hero */
.hero-statusbar {
  position: absolute;
  top: 84px; left: 0; right: 0;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--con-line);
  border-bottom: 1px solid var(--con-line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: #d5e4f6;
  flex-wrap: wrap;
  row-gap: 8px;
  min-width: 0;
}
.hsb-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.hsb-item .live-dot { width: 7px; height: 7px; }
.hsb-sep { width: 1px; height: 12px; background: var(--con-line-2); }
.hsb-coord { color: var(--con-body); }
.hsb-right { margin-left: auto; color: var(--con-body); }

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Entrada breve del hero. El texto queda visible sin esperar a JS. */
.anim-hero {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .anim-hero {
    animation: heroIn 420ms var(--ease-out) both;
    animation-delay: calc(var(--d, 0) * 36ms);
  }
}
@keyframes heroIn {
  from { transform: translateY(6px); }
  to { transform: none; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--con-body);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--con-line-2);
  padding: 7px 15px;
  border-radius: var(--r-pill);
  margin-bottom: 26px;
}

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(46, 204, 143, 0.5);
  animation: livePulse 2.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 143, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(46, 204, 143, 0); }
}
/* live-dot sobre superficies claras usa verse verde oscuro */
.section .live-dot,
.bento-ch--live .live-dot,
.nosotros-img-tag .live-dot,
.platform-dot { background: var(--green); box-shadow: 0 0 0 0 rgba(23, 138, 94, 0.45); }
.section .live-dot { animation: livePulseLight 2.4s ease-in-out infinite; }
@keyframes livePulseLight {
  0%, 100% { box-shadow: 0 0 0 0 rgba(23, 138, 94, 0.4); }
  50%      { box-shadow: 0 0 0 5px rgba(23, 138, 94, 0); }
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 22px;
}
.h1-line { display: block; }
.hero-copy h1 em { font-style: normal; color: var(--blue-bright); }

.hero-sub {
  font-size: 1.14rem;
  color: var(--con-body);
  line-height: 1.6;
  margin-bottom: 34px;
  max-width: 486px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; align-items: center; gap: 26px; }
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.55rem;
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.hero-stats .stat span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #d5e4f6;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-stats .stat-sep { width: 1px; height: 36px; background: var(--con-line-2); }

/* ─── Panel de consola en vivo ─── */
.hero-visual { display: flex; justify-content: center; align-items: center; }

.hero-console {
  position: relative;
  width: 100%;
  max-width: 470px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0) 40%),
    linear-gradient(160deg, var(--console-3) 0%, var(--console) 100%);
  border: 1px solid var(--con-line-2);
  border-radius: var(--r-panel);
  padding: 6px;
  box-shadow: var(--shadow-console);
}
.console-tick {
  position: absolute;
  width: 12px; height: 12px;
  border: 1.5px solid rgba(59, 143, 224, 0.7);
  pointer-events: none;
}
.tick-tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: var(--r-panel); }
.tick-tr { top: -1px; right: -1px; border-left: none; border-bottom: none; border-top-right-radius: var(--r-panel); }
.tick-bl { bottom: -1px; left: -1px; border-right: none; border-top: none; border-bottom-left-radius: var(--r-panel); }
.tick-br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: var(--r-panel); }

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 12px;
}
.console-readouts { display: flex; align-items: center; gap: 8px; }
.console-signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.console-signal i {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.28);
}
.console-signal i:last-child { background: var(--blue-bright); animation: barPulse 2.2s ease-in-out infinite; }
@keyframes barPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.map-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.map-chip--battery { color: var(--green-bright); }
.map-chip--battery svg { color: var(--green-bright); }

.console-screen {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.map-svg { width: 100%; display: block; }

/* La ruta se dibuja al cargar */
.route-line {
  stroke-dasharray: 470;
  stroke-dashoffset: 470;
  animation: drawRoute 2.6s var(--ease-io) 500ms forwards;
}
@keyframes drawRoute { to { stroke-dashoffset: 0; } }

/* Vehículo recorriendo la misma ruta en bucle */
.vehicle {
  offset-path: path('M40 250 Q130 235 180 188 Q235 138 300 132 Q360 126 400 92');
  offset-distance: 0%;
  animation: driveRoute 9s var(--ease-io) 900ms infinite;
}
@keyframes driveRoute {
  0%   { offset-distance: 0%; }
  46%  { offset-distance: 100%; }
  54%  { offset-distance: 100%; }
  100% { offset-distance: 0%; }
}

.dest-ring {
  transform-origin: 400px 92px;
  animation: destPing 2.8s ease-out infinite;
}
@keyframes destPing {
  0%   { transform: scale(0.55); opacity: 0.75; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Mismo pulso del mapa del hero, en el ícono GPS de la tarjeta de servicio */
.bento-ping {
  transform-origin: 104px 62px;
  animation: destPing 2.8s ease-out infinite;
}

/* Barrido tipo radar sobre la pantalla */
.console-sweep {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(120, 190, 245, 0.08) 46%, rgba(120, 190, 245, 0.16) 50%, transparent 54%);
  pointer-events: none;
  transform: translateX(-100%);
  animation: sweep 5.5s var(--ease-io) 1.4s infinite;
}
@keyframes sweep {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.console-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.cb-live { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.86); font-weight: 500; }
.cb-speed { margin-left: auto; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.cb-eta { color: var(--con-muted); }

/* ═══════════════════════════════════════════
   VARIANTES DE HERO (v2, elegidas desde admin)
   Solo se muestra la que coincide con [data-theme]
   en <html>; console es el default.
═══════════════════════════════════════════ */
.hero-manifiesto,
.hero-bitacora { display: none; }
html[data-theme="manifiesto"] .hero-console  { display: none; }
html[data-theme="manifiesto"] .hero-manifiesto { display: flex; }
html[data-theme="bitacora"] .hero-console    { display: none; }
html[data-theme="bitacora"] .hero-bitacora   { display: flex; }

/* --- Manifiesto de carga digital --- */
.hero-manifiesto {
  flex-direction: column;
  width: 100%;
  max-width: 470px;
  background: #f3f5f2;
  color: var(--ink);
  border: 1px solid rgba(12, 26, 46, 0.14);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-console);
  overflow: hidden;
}
.mf-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 14px;
  border-bottom: 1px dashed rgba(12, 26, 46, 0.18);
}
.mf-head-label { display: flex; flex-direction: column; gap: 5px; }
.mf-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.mf-folio { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--ink); }
.mf-qr { color: var(--ink); opacity: 0.82; flex-shrink: 0; }
.mf-qr svg { width: 34px; height: 34px; }

.mf-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.mf-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-right: 1px solid rgba(12, 26, 46, 0.1);
  border-bottom: 1px solid rgba(12, 26, 46, 0.1);
}
.mf-field:nth-child(2n) { border-right: none; }
.mf-field-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mf-field strong { font-size: 20px; letter-spacing: -0.01em; }

.mf-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 18px;
}
.mf-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mf-seal svg { width: 22px; height: 22px; animation: sealSpin 14s linear infinite; }
@keyframes sealSpin { to { transform: rotate(360deg); } }
.mf-sign { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }

/* --- Bitácora de despacho --- */
.hero-bitacora {
  flex-direction: column;
  width: 100%;
  max-width: 470px;
  background:
    repeating-linear-gradient(180deg, rgba(12, 26, 46, 0.06) 0, rgba(12, 26, 46, 0.06) 1px, transparent 1px, transparent 34px),
    #e7e3f2;
  color: var(--ink);
  border: 1px solid rgba(12, 26, 46, 0.14);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-console);
  padding: 18px 20px;
  position: relative;
}
.hero-bitacora::before {
  content: '';
  position: absolute; top: 14px; bottom: 14px; left: 0;
  width: 2px;
  background: repeating-linear-gradient(180deg, rgba(12, 26, 46, 0.28) 0 3px, transparent 3px 16px);
}
.bt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
}
.bt-title { font-weight: 600; letter-spacing: -0.01em; }
.bt-stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-deep);
  border: 1.5px solid var(--blue-deep);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  transform: rotate(-3deg);
}
.bt-rows { display: flex; flex-direction: column; }
.bt-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
  padding: 9px 2px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  border-bottom: 1px solid rgba(12, 26, 46, 0.1);
}
.bt-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.bt-row-head {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid rgba(12, 26, 46, 0.18);
}
.bt-row-head span:last-child { color: var(--muted); }
.bt-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.hero-bitacora .cb-live  { color: var(--body); }
.hero-bitacora .live-dot { background: var(--green); box-shadow: 0 0 0 0 rgba(23, 138, 94, 0.4); }
.hero-bitacora .cb-speed { color: var(--ink); }
.hero-bitacora .cb-eta   { color: var(--muted); }

@media (max-width: 720px) {
  .hero-manifiesto, .hero-bitacora { max-width: 100%; }
}

/* ═══════════════════════════════════════════
   SERVICIOS (bento → módulos de sistema)
═══════════════════════════════════════════ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out);
}
.bento-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.bento-ch {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bento-ch--live { color: var(--green); }
.bento-ch--live .live-dot { width: 6px; height: 6px; }
.bento-card h3 { font-size: 1.06rem; margin-bottom: 8px; letter-spacing: -0.015em; }
.bento-card p  { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }

.bento-card--wide {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(ellipse 85% 90% at 88% 4%, rgba(26, 102, 179, 0.09) 0%, transparent 58%),
    var(--surface);
  min-height: 252px;
}
.bento-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bento-tag .live-dot { width: 6px; height: 6px; }
.bento-visual { width: 100%; max-width: 280px; }
.bento-visual svg { width: 100%; height: auto; display: block; }
.bento-route { stroke-dasharray: 6 7; animation: dashFlow 1.6s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -26; } }

.bento-card--accent { grid-column: span 2; }

.bento-icon {
  width: 42px; height: 42px;
  background: var(--blue-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.bento-icon svg { width: 21px; height: 21px; }

@media (hover: hover) and (pointer: fine) {
  .bento-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
  }
  .bento-card--wide:hover {
    background:
      radial-gradient(ellipse 85% 90% at 88% 4%, rgba(26, 102, 179, 0.14) 0%, transparent 58%),
      var(--surface);
  }
}

/* ═══════════════════════════════════════════
   SOFTWARE PROPIO — suite de módulos (consola)
═══════════════════════════════════════════ */
.section-software {
  position: relative;
  overflow: hidden;
  background: var(--console);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.software-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(59, 143, 224, 0.14) 0%, transparent 62%),
    radial-gradient(ellipse 45% 40% at 88% 78%, rgba(46, 204, 143, 0.08) 0%, transparent 58%),
    linear-gradient(180deg, #081220 0%, var(--console) 42%, #0a1828 100%);
  pointer-events: none;
}
.software-gridlines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 180, 240, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 240, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 0%, transparent 78%);
  pointer-events: none;
}
.software-container {
  position: relative;
  z-index: 1;
}
/* Encabezado a dos columnas: la derecha carga lo que comparten los tres productos,
   que antes no se decía en ningún lado y dejaba media sección vacía. */
.software-intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-bottom: clamp(40px, 5vw, 56px);
}
.software-intro h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.08;
  margin-bottom: 16px;
}
.software-intro p {
  font-size: 1.06rem;
  color: var(--con-body);
  max-width: 46ch;
}
/* 2x2 para que el bloque quede a la altura del copy de la izquierda
   en lugar de colgar 200px por debajo. */
.software-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 30px;
}
.software-fact {
  padding-top: 13px;
  border-top: 1px solid var(--con-line-2);
}
.software-fact dt {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.software-fact dd {
  margin: 0;
  color: var(--con-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.software-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: stretch;
}

.soft-module {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0) 38%),
    linear-gradient(160deg, var(--console-3) 0%, var(--console) 100%);
  border: 1px solid var(--con-line-2);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-console);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out);
}
.soft-module--hero {
  grid-column: span 12;
  padding: 6px;
}
.soft-module--split {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
}
.soft-module-inner {
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}
/* Las dos tarjetas de abajo son rejillas independientes: las filas se alinean entre
   sí gracias a los min-height, no a alturas fijas, para que aguanten cambios de copy. */
.soft-module-inner--split {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  padding: 22px 22px 20px;
}
.soft-split-copy .soft-module-ch { margin-bottom: 10px; }
.soft-split-copy h3 { margin-bottom: 8px; }
.soft-split-copy p {
  margin-bottom: 0;
  min-height: 3.2em;   /* dos líneas de pitch */
  max-width: 44ch;
}
.soft-split-specs {
  margin-bottom: 0;
  align-content: flex-start;
  min-height: 30px;
}
.soft-split-actions {
  margin: 0;
  min-height: 38px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}
/* La captura se ancla al pie de la tarjeta; el aire sobrante queda arriba,
   que es donde el copy puede variar de alto entre una tarjeta y otra. */
.soft-split-preview {
  margin: 0;
  align-self: end;
}
.soft-module--split .soft-preview {
  margin-top: 0;
  margin-bottom: 0;
}
.soft-module--split p {
  flex: 0 0 auto;
}
.soft-module-body {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: center;
  padding: 26px 24px 24px;
}
.soft-module--hero .soft-actions {
  gap: 10px 14px;
}
.soft-module-copy { min-width: 0; }
.soft-module-ch {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 12px;
}
.soft-module h3 {
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.soft-module p {
  font-size: 0.94rem;
  color: var(--con-body);
  line-height: 1.6;
  margin-bottom: 16px;
}
.soft-module:not(.soft-module--hero) p { flex: 1; }

.soft-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.soft-spec {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(233, 243, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 5px 10px;
  border-radius: var(--r-pill);
}
.soft-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
}
.soft-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--con-body);
  transition: color var(--t-fast) var(--ease-out);
}
.soft-link:hover { color: #fff; }
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: var(--r-btn);
  font-weight: 600;
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--con-line-2);
  transition: background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.btn-soft:hover  { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.28); }
.btn-soft:active { transform: scale(0.97); }

.soft-preview {
  border-radius: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  position: relative;
}
.soft-preview--compact {
  border-radius: 0;
}
/* Sin aspect-ratio ni cover: la captura se muestra completa, con la relación que
   trae el archivo (los atributos width/height del <img> reservan el espacio).
   Forzar una relación fija recortaba la última columna de las tablas. */
.soft-preview-shot {
  width: 100%;
  height: auto;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .soft-module:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 143, 224, 0.45);
    box-shadow: var(--shadow-console), 0 0 0 1px rgba(59, 143, 224, 0.12);
  }
}

/* ═══════════════════════════════════════════
   BANDA IMAGEN — COBERTURA (foto con overlay oscuro)
═══════════════════════════════════════════ */
.img-band {
  background: url('../images/Camino.webp') center/cover no-repeat;
  min-height: 400px;
  position: relative;
}
.img-band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(8, 18, 32, 0.92) 0%, rgba(11, 30, 50, 0.66) 100%);
  display: flex;
  align-items: center;
  padding: 60px 24px;
}
.img-band-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.img-band-coord {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--green-bright);
  margin-bottom: 16px;
}
.img-band-content h3 {
  color: #fff;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.08;
  margin-bottom: 14px;
  max-width: 580px;
}
.img-band-content p {
  font-size: 1.06rem;
  color: var(--con-body);
  margin-bottom: 30px;
  max-width: 520px;
}

/* ═══════════════════════════════════════════
   PRODUCTOS — fichas de hardware
═══════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px;
  display: flex;
  gap: 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
  }
  .product-card:hover .product-img img,
  .product-card:hover .product-img svg { transform: scale(1.05); }
}
.product-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(23, 138, 94, 0.10);
  border: 1px solid rgba(23, 138, 94, 0.28);
  color: var(--green);
  padding: 4px 11px;
  border-radius: var(--r-pill);
}
.product-img {
  width: 84px; height: 84px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
}
.product-img img,
.product-img svg {
  width: 84px; height: 84px;
  transition: transform 350ms var(--ease-out);
}
.product-info { flex: 1; min-width: 0; }
.product-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--blue);
  display: block;
  margin-bottom: 7px;
}
.product-info h3 { font-size: 1.12rem; margin-bottom: 8px; letter-spacing: -0.015em; }
.product-info p  { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.product-features { margin-bottom: 18px; display: grid; gap: 5px; }
.product-features li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--body);
  padding-left: 18px;
  position: relative;
}
.product-features li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 2px;
  border-radius: 2px;
  background: var(--blue);
}
.btn-product {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 8px 18px;
  border-radius: var(--r-btn);
  transition: background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.btn-product:hover  { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-product:active { transform: scale(0.97); }

/* ═══════════════════════════════════════════
   GALERÍA / CARRUSEL
═══════════════════════════════════════════ */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}
.carousel-track-container {
  flex: 1;
  overflow: hidden;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.carousel-track {
  display: flex;
  transition: transform 550ms var(--ease-io);
}
.carousel-slide {
  min-width: 100%;
  height: 440px;
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(8, 18, 32, 0.92));
  color: #fff;
  padding: 44px 26px 22px;
  font-size: 15px;
  font-weight: 600;
}
.carousel-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--muted);
  gap: 12px;
}
.carousel-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.carousel-placeholder p { font-size: 14px; }

.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
  color: var(--ink);
  flex-shrink: 0;
}
.carousel-btn:hover  { background: var(--surface-2); border-color: var(--blue); }
.carousel-btn:active { transform: scale(0.94); }

.carousel-dots { display: flex; justify-content: center; gap: 7px; margin-top: 22px; }
.carousel-dot {
  width: 36px; height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
  cursor: pointer;
  transform: scaleX(0.611);
  transform-origin: left center;
  transition: background var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
  border: none;
  padding: 0;
}
.carousel-dot.active { background: var(--blue); transform: scaleX(1); }

/* ═══════════════════════════════════════════
   VIDEOS
═══════════════════════════════════════════ */
.videos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.video-card {
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out),
              transform var(--t-med) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .video-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
}
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-info { padding: 16px 20px; }
.video-info h3 { font-size: 0.98rem; margin-bottom: 4px; font-weight: 600; }
.video-info p  { font-size: 0.85rem; color: var(--muted); }
.videos-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: var(--muted);
  font-size: 15px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-card);
}

/* ═══════════════════════════════════════════
   NOSOTROS
═══════════════════════════════════════════ */
.nosotros-container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: start;
}
.nosotros-text h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  line-height: 1.08;
  margin-bottom: 20px;
}
.nosotros-text > p { font-size: 1rem; color: var(--body); margin-bottom: 16px; max-width: 62ch; }

.nosotros-valores { margin-top: 34px; border-top: 1px solid var(--line); }
.valor {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.valor-key {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--blue);
}
.valor p { font-size: 0.94rem; color: var(--muted); margin: 0; }

.nosotros-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 100px;
}
.nosotros-img-wrap {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.nosotros-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.nosotros-img-tag {
  position: absolute;
  left: 12px; bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(8, 18, 32, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--con-line-2);
  padding: 5px 11px;
  border-radius: var(--r-pill);
}
.nosotros-img-tag .live-dot { width: 6px; height: 6px; background: var(--green-bright); }
.nosotros-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
}
.stat-card strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.stat-card span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════
   CONTACTO
═══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 38px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.contact-form-wrap form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.contact-form-wrap .form-group--grow {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.contact-form-wrap .form-group--grow textarea {
  flex: 1;
  min-height: 120px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--ink); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg-2);
  outline: none;
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group select {
  color-scheme: light;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2359697e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(26, 102, 179, 0.14);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-privacy-note {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.form-privacy-note a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-group.form-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.form-group.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--blue);
  box-shadow: none;
  background: var(--surface);
  border-radius: 4px;
  cursor: pointer;
}
.form-group.form-consent label {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--body);
  cursor: pointer;
}
.form-group.form-consent label a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-group.form-consent label a:hover { color: var(--blue-deep); }

.btn-submit {
  width: 100%;
  padding: 14px;
  margin-top: auto;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--r-btn);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  box-shadow: 0 3px 14px rgba(26, 102, 179, 0.28);
  transition: background var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.btn-submit:hover  { background: var(--blue-deep); box-shadow: 0 6px 22px rgba(26, 102, 179, 0.38); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 500;
}
.form-msg.success { background: #eafaf2; color: #0f6b48; border: 1px solid #bde9d4; }
.form-msg.error   { background: #fdeff1; color: #a52532; border: 1px solid #f5c2c9; }

.contact-info-wrap {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  min-height: 100%;
}
.contact-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  height: 100%;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .contact-item:hover { border-color: var(--line-strong); }
}
.contact-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--blue-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 4px;
}
.contact-item span,
.contact-item a { font-size: 14.5px; color: var(--ink); text-decoration: none; }
.contact-item a:hover { color: var(--blue); text-decoration: underline; }

.map-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map-container iframe {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 180px;
  border: 0;
}
.map-container iframe[hidden] { display: none; }
.map-consent {
  flex: 1;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 22px;
  background: linear-gradient(160deg, var(--console-3) 0%, var(--console) 100%);
  color: var(--con-body);
}
.map-consent[hidden] { display: none; }
.map-consent p {
  font-size: 14px;
  line-height: 1.5;
  max-width: 38ch;
  color: var(--con-body);
}
.map-consent-btn {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: var(--r-btn);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.map-consent-btn:hover { background: var(--blue-deep); }
.map-consent a {
  color: var(--blue-bright);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 72px 0 0; }
.footer-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.3fr;
  gap: 48px;
}
@media (min-width: 1025px) {
  .footer-container--wide {
    grid-template-columns: 1.4fr 0.85fr 1.05fr 1.05fr 0.85fr;
    gap: 28px 32px;
  }
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-name { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: 0.06em; line-height: 1; }
.footer-logo-sub {
  font-family: var(--font-mono);
  font-size: 8.5px; font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px;
}
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 260px; }
.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links li a { font-size: 14px; color: var(--body); transition: color var(--t-fast) var(--ease-out); }
.footer-links li a:hover { color: var(--blue); }
.footer-contact p { font-size: 14px; color: var(--body); margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 24px; text-align: center; }
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-legal {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 0 8px;
}
.footer-legal:hover { color: var(--blue-deep); }
.footer-version { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; }

/* ═══════════════════════════════════════════
   REVEALS POR SCROLL (main.js añade las clases)
═══════════════════════════════════════════ */
/* El contenido es visible sin JS. El desplazamiento es opcional y no baja la opacidad. */
.reveal,
.reveal-clip,
.reveal-pending {
  opacity: 1;
  transform: none;
  clip-path: none;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation-name: revealSoft;
      animation-timing-function: var(--ease-out);
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: entry 0% entry 28%;
    }
  }
}
@keyframes revealSoft {
  from { transform: translateY(8px); }
  to { transform: none; }
}
.reveal.visible,
.reveal-clip.visible { opacity: 1; transform: none; clip-path: none; }

/* ═══════════════════════════════════════════
   VOLVER ARRIBA (creado en main.js)
═══════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: var(--z-scrolltop);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease-out),
              transform var(--t-med) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
}
.scroll-top.show { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top:hover { background: var(--surface-2); border-color: var(--blue); }
.scroll-top:active { transform: scale(0.94); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  .hero-content       { grid-template-columns: 1fr; gap: 44px; }
  .hero               { padding: 132px 24px 60px; }
  .hero-visual        { justify-content: flex-start; }
  .hero-console       { max-width: 440px; }
  .bento              { grid-template-columns: repeat(2, 1fr); }
  .bento-card--wide,
  .bento-card--accent { grid-column: span 2; }
  .nosotros-container { grid-template-columns: 1fr; gap: 44px; }
  .nosotros-right     { position: static; }
  .nosotros-stats     { grid-template-columns: repeat(4, 1fr); }
  .contact-grid       { grid-template-columns: 1fr; }
  .contact-details    { grid-template-columns: repeat(2, 1fr); }
  .footer-container   { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ── Móvil (≤ 768px) ── */
@media (max-width: 768px) {
  .section-header     { margin-bottom: 34px; }

  /* La statusbar pasa a static y entra al flujo flex del hero:
     sin columna, queda EN FILA junto a .hero-content y aplasta el contenido */
  .hero               { padding: 120px 20px 52px; min-height: 0; flex-direction: column; justify-content: center; align-items: stretch; }
  .hero-statusbar     { position: static; margin-top: -8px; margin-bottom: 26px; flex-wrap: wrap; gap: 8px 12px; padding: 10px 0; }
  .hero-statusbar .hsb-right { margin-left: 0; }
  .hero-content       { gap: 36px; }
  .hero-sub           { font-size: 1.02rem; }
  .hero-console       { max-width: 100%; }
  .hero-stats         { gap: 16px; }

  .bento              { grid-template-columns: 1fr; }
  .bento-card--wide,
  .bento-card--accent { grid-column: span 1; }
  .bento-card--wide   { min-height: 0; }
  .software-intro     { grid-template-columns: 1fr; gap: 30px; }
  .software-facts     { gap: 18px 26px; }
  .soft-module--split { grid-column: span 12; }
  .soft-module-body { grid-template-columns: 1fr; }
  /* En una sola columna las tarjetas ya no tienen que alinearse entre sí. */
  .soft-module-inner--split { grid-template-rows: auto auto auto; }
  .soft-split-copy p    { min-height: 0; }
  .soft-split-specs     { min-height: 0; }
  .soft-split-actions   { min-height: 0; }
  .products-grid      { grid-template-columns: 1fr; }
  .videos-grid        { grid-template-columns: 1fr; }
  .form-row           { grid-template-columns: 1fr; }
  .nosotros-stats     { grid-template-columns: repeat(2, 1fr); }
  .nosotros-img       { height: 210px; }
  .img-band           { min-height: 320px; }
  .footer-container   { grid-template-columns: 1fr; gap: 28px; }
  .carousel-slide     { height: 260px; }
  .carousel-btn       { display: none; }

  /* NAV móvil */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 16px 20px 28px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li   { width: 100%; }
  .nav-links li a { display: block; padding: 12px 14px; }
  .nav-links li a::after { display: none; }
  .btn-nav { display: block; text-align: center; margin-top: 4px; }
  .btn-nav-platform { display: flex !important; justify-content: center; margin-top: 4px; }
}

/* ── Teléfonos pequeños (≤ 480px) ── */
@media (max-width: 480px) {
  .hero               { padding: 110px 16px 44px; }
  .hero-copy h1       { font-size: 2.1rem; }
  .hero-btns          { flex-direction: column; gap: 10px; }
  .hero-btns a        { width: 100%; }
  .hero-stats         { flex-wrap: wrap; gap: 12px 22px; }
  .hero-stats .stat-sep { display: none; }

  .container          { padding: 0 16px; }
  /* A dos columnas aquí el texto queda en columnas de ~3 palabras. */
  .software-facts     { grid-template-columns: 1fr; gap: 16px; }
  .contact-form-wrap  { padding: 24px 18px; }
  .contact-details    { grid-template-columns: 1fr; }
  .nosotros-stats     { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card          { padding: 20px 14px; }
  .stat-card strong   { font-size: 1.45rem; }
  .product-card       { flex-direction: column; gap: 16px; }
  .valor              { grid-template-columns: 1fr; gap: 6px; }
  .img-band-content p { font-size: 0.95rem; }
  .footer-container   { padding: 0 16px 40px; }

  #chatWidget { bottom: 84px; left: 14px; right: 14px; align-items: stretch; }
  .chat-box   { width: auto; max-width: none; max-height: 70vh; }
  .chat-toggle { align-self: flex-end; }
}

/* ═══════════════════════════════════════════
   CHATBOT WIDGET
═══════════════════════════════════════════ */
#chatWidget {
  position: fixed;
  bottom: 84px;
  right: 28px;
  z-index: var(--z-chat);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-toggle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(26, 102, 179, 0.38);
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
  position: relative;
  flex-shrink: 0;
}
.chat-toggle:hover  { background: var(--blue-deep); }
.chat-toggle:active { transform: scale(0.94); }
.chat-toggle[aria-expanded="true"] .chat-icon-msg { display: none; }
.chat-toggle[aria-expanded="true"] .chat-icon-x   { display: flex !important; }
.chat-toggle--offline { background: #7c8ba0 !important; box-shadow: 0 4px 16px rgba(13,30,51,0.18) !important; }
.chat-toggle--offline:hover { background: #64748b !important; transform: none !important; }

.chat-badge {
  position: absolute;
  top: -3px; right: -3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.chat-badge--pulse { animation: badgePulse 1.5s ease-in-out 3; }
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.35); }
}

.chat-box {
  width: 330px;
  max-height: 460px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md), 0 20px 50px rgba(13, 30, 51, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.chat-box.open { opacity: 1; transform: none; pointer-events: all; }

.chat-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.chat-header-info { flex: 1; line-height: 1.3; }
.chat-header-info strong { display: block; color: var(--ink); font-size: 0.88rem; }
.chat-status { font-size: 0.72rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.chat-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: dotPulse 2s infinite;
}
@keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.chat-close {
  background: none; border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  transition: color var(--t-fast) var(--ease-out);
}
.chat-close:hover { color: var(--ink); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.chat-msg { display: flex; }
.chat-msg--user { justify-content: flex-end; }
.chat-msg--bot  { justify-content: flex-start; }
.chat-bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.83rem;
  line-height: 1.5;
}
.chat-msg--bot .chat-bubble {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--body);
  border-bottom-left-radius: 4px;
}
.chat-msg--user .chat-bubble {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg--bot .chat-bubble a  { color: var(--blue); }
.chat-msg--user .chat-bubble a { color: #d6e9fb; }

.chat-typing { display: flex; align-items: center; gap: 4px; padding: 11px 14px; }
.chat-typing span {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--muted);
  border-radius: 50%;
  animation: typingBounce 1.1s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

.chat-quick {
  padding: 6px 14px 10px;
  display: flex; flex-wrap: wrap; gap: 6px;
  flex-shrink: 0;
  border-top: 1px solid var(--line);
}
.chat-chip {
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
  white-space: nowrap;
}
.chat-chip:hover { background: var(--blue); color: #fff; }

.chat-input-area {
  display: flex; align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  gap: 8px;
  flex-shrink: 0;
}
.chat-input-area input {
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: 0.82rem;
  outline: none;
  background: var(--bg-2);
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease-out);
  font-family: inherit;
}
.chat-input-area input::placeholder { color: var(--muted); }
.chat-input-area input:focus { border-color: var(--blue); }
.chat-send {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.chat-send:hover  { background: var(--blue-deep); }
.chat-send:active { transform: scale(0.92); }

/* ═══════════════════════════════════════════
   MOVIMIENTO REDUCIDO
═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .anim-hero { animation: none; transform: none; opacity: 1; }
  .route-line { animation: none; stroke-dashoffset: 0; }
  .soft-chart-line { animation: none; stroke-dashoffset: 0; }
  .vehicle    { animation: none; offset-distance: 100%; }
  .dest-ring,
  .bento-ping,
  .bento-route,
  .live-dot,
  .platform-dot,
  .chat-dot,
  .hero-scan,
  .console-sweep,
  .console-signal i:last-child { animation: none; }
  .hero-scan, .console-sweep { opacity: 0; }

  .reveal,
  .reveal-clip,
  .reveal-pending { animation: none; transform: none; opacity: 1; clip-path: none; }
  .carousel-track { transition: none; }
}
/* ═══════════════════════════════════════════
   PÁGINAS DE PRODUCTO (software/*)
═══════════════════════════════════════════ */
.product-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 14vw, 148px) 0 clamp(56px, 7vw, 80px);
  background: var(--console);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 12% 30%, rgba(59,143,224,0.16) 0%, transparent 62%),
    radial-gradient(ellipse 40% 35% at 90% 70%, rgba(46,204,143,0.08) 0%, transparent 58%);
  pointer-events: none;
}
.product-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.product-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--con-muted);
  margin-bottom: 14px;
}
.product-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  margin-bottom: 16px;
}
.product-hero-lead {
  font-size: 1.08rem;
  color: var(--con-body);
  max-width: 52ch;
  margin-bottom: 24px;
}
.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.product-hero-actions .btn-outline {
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.product-hero-actions .btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
}
.product-shot-wrap {
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
}
.product-shot-wrap img {
  display: block;
  width: 100%;
  height: auto;
}
.product-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
  row-gap: 40px;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}
.product-gallery figure {
  margin: 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-shot {
  width: 100%;
  aspect-ratio: 1352 / 844;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}
.product-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.product-gallery figcaption {
  box-sizing: border-box;
  margin: 0;
  padding-top: 16px;
  min-height: 4.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.011em;
  color: var(--ink);
}
.product-section {
  padding: clamp(56px, 7vw, 84px) 0;
}
.product-section--alt { background: var(--bg-2); }
.product-section-header {
  max-width: 640px;
  margin-bottom: clamp(32px, 4vw, 44px);
}
.product-section-header h2 {
  color: var(--ink);
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  line-height: 1.12;
  margin-bottom: 12px;
}
.product-section-header p {
  font-size: 1.02rem;
  color: var(--body);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.product-feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.product-feature h3 {
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.product-feature p {
  font-size: 0.94rem;
  color: var(--body);
}
/* Tres columnas: ocupan el ancho completo de la sección en vez de dejar
   media página vacía a la derecha, y se leen como bloques hermanos. */
.product-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  list-style: none;
}
.product-list li {
  padding-top: 16px;
  border-top: 2px solid var(--line-strong);
  color: var(--body);
  font-size: 0.96rem;
  line-height: 1.6;
}
.product-list li strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}
.product-note {
  margin-top: clamp(28px, 3.5vw, 40px);
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 62ch;
}
.product-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.product-related a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--surface);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.product-related a:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.product-cta-band {
  padding: clamp(48px, 6vw, 64px) 0;
  background:
    linear-gradient(135deg, var(--console) 0%, var(--console-2) 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.product-cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.product-cta-band h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 8px;
}
.product-cta-band p {
  color: var(--con-body);
  max-width: 48ch;
}
.nav-logo-subpage .nav-links a[aria-current="page"] {
  color: var(--blue);
  font-weight: 600;
}
@media (max-width: 960px) {
  .product-hero-inner { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-gallery { grid-template-columns: 1fr; }
  .product-list { grid-template-columns: 1fr; gap: 22px; }
  .product-cta-band .container { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════
   MODO PREVIEW (editor de página)
═══════════════════════════════════════════ */
.page-preview-mode #header {
  position: static;
}
.page-preview-mode #page-main > section {
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color var(--t-fast);
}
.page-preview-mode #page-main > section:hover {
  outline-color: rgba(59, 143, 224, 0.45);
}
.page-preview-mode #page-main > section.page-preview-active {
  outline-color: var(--blue);
  outline-width: 3px;
}
.page-preview-mode #chatbot-widget,
.page-preview-mode .back-to-top { display: none !important; }

/* ═══════════════════════════════════════════
   MÓDULOS DE PÁGINA (editor)
═══════════════════════════════════════════ */
.page-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.page-stats-row .stat-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.page-module-stats .stat-card strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-family: var(--font-mono);
  color: var(--blue);
  margin-bottom: 6px;
}
.page-module-stats .stat-card span {
  font-size: 13px;
  color: var(--muted);
}

.page-faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--surface);
  overflow: hidden;
}
.page-faq-item summary {
  padding: 16px 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-faq-item summary::-webkit-details-marker { display: none; }
.page-faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--blue);
  font-size: 1.1rem;
}
.page-faq-item[open] summary::after { content: '−'; }
.page-faq-item p {
  padding: 0 18px 16px;
  color: var(--body);
  line-height: 1.65;
  font-size: 0.95rem;
}

.page-module-spacer { width: 100%; }
.page-module-spacer--sm { height: 32px; }
.page-module-spacer--md { height: 64px; }
.page-module-spacer--lg { height: 120px; }

.page-anim-none .reveal-pending { opacity: 1 !important; transform: none !important; }

@media (max-width: 768px) {
  .page-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════
   AVISO DE PRIVACIDAD Y COOKIES
═══════════════════════════════════════════ */
.privacy-page { padding: 116px 0 72px; }
.privacy-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.privacy-pending {
  background: #fff8eb;
  border: 1px solid #f0d7a2;
  color: #6a4b12;
  border-radius: var(--r-card);
  padding: 14px 16px;
  margin-bottom: 28px;
  font-size: 14.5px;
  line-height: 1.55;
}
.privacy-doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 8px; }
.privacy-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}
.privacy-doc h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.privacy-doc p,
.privacy-doc li { font-size: 15.5px; color: var(--body); }
.privacy-doc p + p { margin-top: 10px; }
.privacy-doc ul {
  list-style: disc;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 12px;
}
.privacy-doc a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.privacy-doc a:hover { color: var(--blue-deep); }
.privacy-ph {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  padding: 0 6px;
  color: var(--ink);
}

.cookie-bar {
  position: fixed;
  z-index: 250;
  left: 16px;
  bottom: 16px;
  width: min(560px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "kicker actions"
    "text actions";
  gap: 6px 16px;
  align-items: center;
  padding: 14px 16px;
  background: var(--console);
  color: var(--con-body);
  border: 1px solid var(--con-line-2);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-console);
  animation: cookieIn var(--t-med) var(--ease-out);
}
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.cookie-bar-kicker {
  grid-area: kicker;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-bright);
}
.cookie-bar-text {
  grid-area: text;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--con-body);
}
.cookie-bar-text a {
  color: var(--blue-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-bar-actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cookie-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-btn);
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-btn--primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
}
.cookie-btn--primary:hover { background: var(--blue-deep); }
.cookie-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--con-line-2);
}
.cookie-btn--ghost:hover { border-color: #fff; }
.page-preview-mode .cookie-bar { display: none !important; }

@media (max-width: 768px) {
  .privacy-page { padding: 100px 0 56px; }
  .cookie-bar {
    width: auto;
    left: 12px;
    right: 12px;
    grid-template-columns: 1fr;
    grid-template-areas: "kicker" "text" "actions";
  }
  .cookie-bar-actions { flex-direction: row; }
  .cookie-btn { flex: 1; }
  body.has-cookie-bar #chatWidget,
  body.has-cookie-bar .scroll-top {
    bottom: calc(var(--cookie-h, 168px) + 16px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-bar { animation: none; }
}

/* ═══════════════════════════════════════════
   PLATAFORMA — flujo e índice de módulos
═══════════════════════════════════════════ */
.nav-drop { position: relative; }
.nav-drop summary {
  list-style: none;
  cursor: pointer;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: var(--r-btn);
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav-drop-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: 360px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
}
.nav-drop-panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13.5px;
  text-decoration: none;
}
.nav-drop-panel a:hover { background: var(--bg-2); }
.nav-drop-panel a[aria-current="page"] {
  background: var(--bg-2);
  color: var(--blue);
  font-weight: 600;
}

.flow-rail {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
}
.flow-step {
  margin: 0;
  padding: 16px 16px 18px;
  border: 1px solid var(--con-line-2);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.03);
  min-width: 0;
}
.flow-step span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--blue-bright);
}
.flow-step strong {
  display: block;
  margin: 8px 0 6px;
  color: #fff;
  font-size: 1.05rem;
}
.flow-step p {
  margin: 0;
  color: var(--con-body);
  font-size: 0.9rem;
  line-height: 1.45;
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.mod-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--con-line-2);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.mod-card-shot {
  aspect-ratio: 1352 / 844;
  background: #071422;
  display: grid;
  place-items: center;
}
.mod-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
.mod-card-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 16px;
  flex: 1;
}
.mod-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}
.mod-card p {
  margin: 0;
  color: var(--con-body);
  font-size: 0.86rem;
  line-height: 1.45;
}
@media (hover: hover) and (pointer: fine) {
  .mod-card:hover {
    border-color: rgba(59, 143, 224, 0.45);
    transform: translateY(-2px);
  }
}

.product-crumb {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--con-muted);
}
.product-crumb a { color: var(--blue-bright); text-decoration: none; }
.product-crumb a:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  .mod-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-rail { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-drop { width: 100%; }
  .nav-drop summary {
    display: block;
    padding: 12px 14px;
  }
  .nav-drop-panel {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 8px;
  }
  .nav-drop-panel a { padding: 10px 14px 10px 28px; }
}
@media (max-width: 420px) {
  .flow-rail,
  .mod-grid { grid-template-columns: 1fr; }
  .product-hero-actions { flex-direction: column; align-items: stretch; }
  .product-hero-actions a { width: 100%; text-align: center; justify-content: center; }
  .product-cta-band .btn-primary { width: 100%; text-align: center; }
  .mod-card-copy { padding: 16px; }
  .flow-step { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .mod-card { transition: none; }
  .mod-card:hover { transform: none; }
}
