/* ============================================================
   SISTEMTRACK® — Rastreo Empresarial
   ============================================================ */

:root {
  --negro: #06090d;
  --panel: #0c131b;
  --panel-2: #101a24;
  --borde: rgba(255, 255, 255, 0.08);
  --azul: #1778f2;
  --azul-hover: #3b8df5;
  --azul-claro: #6ab2ff;
  --blanco: #ffffff;
  --gris: #a7b6c4;
  --gris-claro: #cdd8e2;
  --whatsapp: #25d366;
  --radio: 16px;
  --sombra: 0 18px 50px rgba(0, 0, 0, 0.45);
  --fuente: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* Display para titulares: grotesca pesada (Archivo variable) */
  --fuente-display: "Archivo", "Archivo Black", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--fuente);
  background: var(--negro);
  color: var(--gris-claro);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* Mismo eje izquierdo que el hero y el logo en todo el sitio */
.contenedor {
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 6.4vw, 150px);
}

/* En pantallas muy anchas, las rejillas no se estiran de más */
.grid-servicios,
.grid-caracteristicas,
.grid-pasos,
.cobertura-grid,
.franja-lista { max-width: 1500px; }

/* ============================================================
   HEADER
   ============================================================ */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 26px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.header.compacto {
  background: rgba(6, 9, 13, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

/* El logo se alinea con la columna de texto del hero (mismo padding lateral),
   y el nav se extiende hasta el borde derecho: sin contenedor centrado. */
.header-linea {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 0 clamp(20px, 4.2vw, 80px) 0 clamp(20px, 6.4vw, 150px);
}

.header-logo img {
  height: 74px;
  width: auto;
  transition: height 0.35s ease;
}

.header.compacto .header-logo img { height: 46px; }

.nav-principal {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-principal a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gris-claro);
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav-principal a:hover { color: var(--blanco); }

.nav-principal a.nav-actual { color: var(--blanco); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--azul);
  color: var(--blanco) !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700 !important;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover { background: var(--azul-hover); transform: translateY(-1px); }

.nav-cta svg { width: 16px; height: 16px; }

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 60;
}

.menu-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--blanco);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0.1, 0.3, 1), opacity 0.25s ease;
}

/* Abierto: las tres líneas se convierten en una X */
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(118deg, #05080c 0%, #0b141d 45%, #10202e 130%);
}

.hero-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
}

.hero-velo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(4, 10, 16, 0.78) 0%, rgba(4, 10, 16, 0.55) 26%,
      rgba(4, 10, 16, 0.16) 48%, rgba(4, 10, 16, 0) 62%),
    linear-gradient(180deg, rgba(3, 8, 12, 0.55) 0%, rgba(3, 8, 12, 0) 22%),
    linear-gradient(0deg, rgba(6, 9, 13, 0.85) 0%, rgba(6, 9, 13, 0) 14%);
}

.hero-contenido {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  padding: clamp(140px, 25.5vh, 265px) 44px clamp(60px, 7.5vh, 92px) clamp(20px, 6.4vw, 150px);
  animation: entrada 0.8s cubic-bezier(0.25, 0.6, 0.3, 1) 0.1s both;
}

@keyframes entrada {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.hero-eyebrow {
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--azul-claro);
  margin-bottom: 18px;
}

.hero-titulo {
  font-family: var(--fuente-display);
  font-size: clamp(38px, 3.57vw, 80px);
  font-weight: 900;
  font-stretch: 100%;
  line-height: 1.02;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--blanco);
  max-width: 1150px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}

.hero-bajada {
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 500;
  color: var(--gris-claro);
  max-width: 400px;
  margin-top: clamp(20px, 4.7vh, 46px);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(26px, 5.7vh, 56px);
  padding: 12px 26px;
  border: 1.6px solid rgba(90, 160, 255, 0.85);
  border-radius: 999px;
  background: rgba(8, 22, 38, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--blanco);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.hero-badge:hover {
  border-color: var(--azul-claro);
  background: rgba(12, 34, 58, 0.6);
}

.hero-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

.hero-acciones { margin-top: clamp(22px, 4.2vh, 42px); }

.btn-principal {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--azul);
  color: var(--blanco);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 18px 44px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(23, 120, 242, 0.38);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-principal:hover {
  background: var(--azul-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(23, 120, 242, 0.5);
}

.btn-principal svg { width: 18px; height: 18px; }

/* ============================================================
   HERO INTERIOR (páginas Nosotros y Plataforma)
   Foto de fondo + velo azul + texto centrado.
   ============================================================ */

.hero-interior {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 78vh;
  min-height: 78dvh;
  background: linear-gradient(150deg, #071322 0%, #0a1c30 55%, #0d2440 130%);
}

.hero-interior-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 52%;
  /* El parallax lo alimenta el JS */
  transform: translate3d(0, var(--parallax, 0px), 0) scale(1.06);
  will-change: transform;
}

.hero-interior-velo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 14, 24, 0.94) 0%, rgba(9, 26, 46, 0.78) 40%, rgba(8, 20, 36, 0.9) 100%),
    linear-gradient(0deg, rgba(12, 40, 74, 0.55), rgba(12, 40, 74, 0.55));
}

.hero-interior-contenido {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 150px clamp(20px, 6.4vw, 150px) 96px;
}

.hero-interior-eyebrow {
  font-size: clamp(12px, 1.05vw, 14px);
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(215, 232, 250, 0.82);
  margin-bottom: 26px;
  opacity: 0;
  transform: translateY(14px);
  animation: subir 0.85s cubic-bezier(0.16, 0.84, 0.36, 1) 0.15s both;
}

.hero-interior-titulo {
  font-family: var(--fuente-display);
  font-size: clamp(34px, 4.4vw, 76px);
  font-weight: 900;
  font-stretch: 100%;
  line-height: 1.03;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--blanco);
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: subir 0.95s cubic-bezier(0.16, 0.84, 0.36, 1) 0.3s both;
}

/* El "15" se cuenta solo al cargar */
.hero-interior-titulo .cuenta { font-variant-numeric: tabular-nums; }

.hero-interior-bajada {
  max-width: 620px;
  margin: 26px auto 0;
  font-size: clamp(16px, 1.32vw, 19px);
  line-height: 1.62;
  color: var(--gris-claro);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px);
  animation: subir 0.95s cubic-bezier(0.16, 0.84, 0.36, 1) 0.48s both;
}

@keyframes subir {
  to { opacity: 1; transform: none; }
}


/* ============================================================
   FRANJA DE CONFIANZA
   ============================================================ */

.franja {
  background: var(--panel);
  border-top: 1px solid var(--borde);
  border-bottom: 1px solid var(--borde);
  padding: 26px 0;
}

.franja-lista {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 54px;
  list-style: none;
}

.franja-lista li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gris);
}

.franja-lista svg { width: 17px; height: 17px; color: var(--azul-claro); flex-shrink: 0; }

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */

.seccion { padding: 96px 0; }

.seccion-oscura { background: var(--negro); }

.seccion-panel { background: var(--panel); }

.seccion-encabezado {
  max-width: 720px;
  margin-bottom: 56px;
}

.seccion-encabezado.centrado {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.seccion-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--azul-claro);
  margin-bottom: 14px;
}

.seccion-titulo {
  font-family: var(--fuente-display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  font-stretch: 92%;
  line-height: 1.15;
  color: var(--blanco);
  letter-spacing: -0.4px;
}

.seccion-bajada {
  margin-top: 16px;
  font-size: 17px;
  color: var(--gris);
}

/* ============================================================
   SERVICIOS
   ============================================================ */

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(262px, 1fr));
  gap: 22px;
}

.tarjeta-servicio {
  position: relative;
  background: var(--panel-2);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 0 28px 34px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.3, 1),
              border-color 0.45s ease,
              box-shadow 0.45s ease;
}

/* Halo azul que respira detrás de la tarjeta al pasar el cursor */
.tarjeta-servicio::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(150deg, rgba(23, 120, 242, 0.55), rgba(106, 178, 255, 0.12) 45%, transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.tarjeta-servicio:hover {
  transform: translateY(-10px);
  border-color: rgba(106, 178, 255, 0.55);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(106, 178, 255, 0.12);
}

.tarjeta-servicio:hover::before { opacity: 1; }

/* ---- Foto del equipo ---- */

.tarjeta-foto {
  position: relative;
  margin: 0 -28px 24px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #080e14;
  /* Revelado tipo cortina: se descubre de abajo hacia arriba */
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(0.16, 0.84, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 130ms + 80ms);
}

.revelar.visible .tarjeta-foto { clip-path: inset(0 0 0 0); }

.tarjeta-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Entra con un empuje de cámara y se asienta */
  transform: scale(1.22);
  transition: transform 1.25s cubic-bezier(0.16, 0.84, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 130ms + 80ms);
}

.revelar.visible .tarjeta-foto img { transform: scale(1); }

.tarjeta-servicio:hover .tarjeta-foto img {
  transform: scale(1.07);
  transition: transform 0.9s cubic-bezier(0.22, 0.9, 0.3, 1);
  transition-delay: 0s;
}

/* Velo de marca sobre la foto: se aclara al pasar el cursor */
.tarjeta-foto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 9, 13, 0.06) 0%, rgba(6, 9, 13, 0) 45%, rgba(16, 26, 36, 0.86) 100%),
    linear-gradient(0deg, rgba(23, 120, 242, 0.09), rgba(23, 120, 242, 0.09));
  transition: opacity 0.55s ease;
}

.tarjeta-servicio:hover .tarjeta-foto::before { opacity: 0.45; }

/* Barrido de luz diagonal */
.tarjeta-foto::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(112deg,
    transparent 34%, rgba(255, 255, 255, 0.16) 46%,
    rgba(190, 224, 255, 0.3) 50%, rgba(255, 255, 255, 0.16) 54%, transparent 66%);
  transform: translateX(-125%);
  opacity: 0;
}

.tarjeta-servicio:hover .tarjeta-foto::after {
  animation: barrido 1.05s cubic-bezier(0.3, 0.7, 0.4, 1) forwards;
}

@keyframes barrido {
  from { transform: translateX(-125%); opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  to   { transform: translateX(125%); opacity: 0; }
}

/* Icono flotando sobre la foto */
.tarjeta-icono {
  position: absolute;
  left: 28px;
  bottom: 18px;
  z-index: 3;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: rgba(9, 20, 32, 0.72);
  border: 1px solid rgba(106, 178, 255, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s cubic-bezier(0.22, 0.9, 0.3, 1),
              background 0.45s ease, border-color 0.45s ease;
}

.tarjeta-servicio:hover .tarjeta-icono {
  transform: translateY(-5px) scale(1.06);
  background: rgba(23, 120, 242, 0.9);
  border-color: rgba(160, 205, 255, 0.85);
}

.tarjeta-icono svg {
  width: 27px;
  height: 27px;
  color: var(--azul-claro);
  transition: color 0.45s ease;
}

.tarjeta-servicio:hover .tarjeta-icono svg { color: #fff; }

.tarjeta-servicio h3 {
  font-family: var(--fuente-display);
  font-size: 19.5px;
  font-weight: 800;
  color: var(--blanco);
  line-height: 1.25;
  letter-spacing: -0.2px;
  margin-bottom: 12px;
  transition: color 0.35s ease;
}

.tarjeta-servicio:hover h3 { color: #dcebff; }

.tarjeta-servicio p { font-size: 15px; color: var(--gris); flex-grow: 1; }

.tarjeta-etiqueta {
  margin-top: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--azul-claro);
}

/* ============================================================
   VISUAL DE LA PLATAFORMA (laptop + celular)
   ============================================================ */

.plataforma-visual {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 60px;
  border-radius: 18px;
  /* El revelado propio: entra con empuje de cámara */
  opacity: 0;
  transform: translateY(34px) scale(0.965);
  transition: opacity 1.05s cubic-bezier(0.16, 0.84, 0.36, 1),
              transform 1.15s cubic-bezier(0.16, 0.84, 0.36, 1);
}

.plataforma-visual.visible { opacity: 1; transform: none; }

/* Resplandor azul: la pantalla "ilumina" la sección */
.plataforma-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 78%;
  height: 62%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(23, 120, 242, 0.5) 0%, rgba(23, 120, 242, 0.16) 42%, transparent 70%);
  filter: blur(58px);
  opacity: 0;
  z-index: -1;
  transition: opacity 1.4s ease 0.35s;
  pointer-events: none;
}

.plataforma-visual.visible::before { opacity: 1; }

.plataforma-visual img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  /* Parallax suave al hacer scroll (lo alimenta el JS) */
  transform: translate3d(0, var(--parallax, 0px), 0);
  will-change: transform;
}

/* Barrido de escaneo que cruza la pantalla una vez al aparecer.
   Se anima el fondo (no un transform desplazado) para que nunca
   sobresalga del contenedor ni genere scroll horizontal. */
.plataforma-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background-image: linear-gradient(108deg,
    transparent 38%, rgba(150, 200, 255, 0.1) 46%,
    rgba(210, 233, 255, 0.24) 50%, rgba(150, 200, 255, 0.1) 54%, transparent 62%);
  background-size: 260% 100%;
  background-repeat: no-repeat;
  background-position: 180% 0;
  opacity: 0;
}

.plataforma-visual.visible::after {
  animation: escaneo 1.7s cubic-bezier(0.3, 0.7, 0.35, 1) 0.55s forwards;
}

@keyframes escaneo {
  from { background-position: -80% 0; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  to   { background-position: 180% 0; opacity: 0; }
}

/* ============================================================
   PLATAFORMA / CARACTERÍSTICAS
   ============================================================ */

/* ============================================================
   FUNCIONES INCLUIDAS
   ============================================================ */

.seccion-funciones {
  position: relative;
  background:
    radial-gradient(ellipse 70% 55% at 55% -5%, rgba(23, 120, 242, 0.14), transparent 62%),
    linear-gradient(180deg, #0a1626 0%, #081120 62%, #060d18 100%);
  border-top: 1px solid var(--borde);
  border-bottom: 1px solid var(--borde);
}

.funciones-encabezado { max-width: 760px; margin-bottom: 52px; }

.funciones-encabezado .seccion-titulo { text-transform: none; }

/* --- Grupo (01 Monitoreo, 02 Seguridad, 03 Gestión) --- */

.funciones-grupo {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 34px;
  padding: 46px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.funciones-grupo:first-of-type { border-top: 0; }

.funciones-marca { padding-top: 4px; }

.funciones-num {
  display: block;
  font-family: var(--fuente-display);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  color: rgba(255, 255, 255, 0.16);
  transition: color 0.6s ease;
  transition-delay: calc(var(--i, 0) * 120ms + 150ms);
}

.funciones-grupo.visible .funciones-num { color: rgba(146, 190, 245, 0.34); }

.funciones-etiqueta {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 3.4px;
  text-transform: uppercase;
  color: var(--gris);
}

/* --- Lista de funciones dentro del grupo --- */

.funciones-lista {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.funcion {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 0 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  /* Entrada escalonada dentro del grupo */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 0.84, 0.36, 1);
}

.funcion:first-child { border-left: 0; padding-left: 0; }

.funciones-grupo.visible .funcion { opacity: 1; transform: none; }

.funciones-lista .funcion:nth-child(1) { transition-delay: 0.15s; }
.funciones-lista .funcion:nth-child(2) { transition-delay: 0.29s; }
.funciones-lista .funcion:nth-child(3) { transition-delay: 0.43s; }

.funcion-icono {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  color: var(--azul-claro);
  transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.3, 1), color 0.35s ease;
}

.funcion-icono svg { width: 100%; height: 100%; display: block; }

.funcion:hover .funcion-icono { transform: translateY(-3px) scale(1.06); color: #9ecbff; }

.funcion-cuerpo h3 {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.3;
  margin-bottom: 8px;
  padding-left: 17px;
}

/* Punto azul antes del título */
.funcion-cuerpo h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--azul);
  box-shadow: 0 0 10px rgba(23, 120, 242, 0.8);
}

.funcion-cuerpo p {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--gris);
  padding-left: 17px;
}

/* Insignias de formato (Word / PDF) */
.funcion-formatos {
  display: inline-flex;
  gap: 5px;
  vertical-align: middle;
}

.funcion-formatos .formato {
  width: 19px;
  height: 19px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.funcion-formatos svg { width: 100%; height: 100%; display: block; }

.funcion:hover .funcion-formatos .formato { transform: translateY(-2px); }
.funcion:hover .funcion-formatos .formato-pdf { transition-delay: 0.06s; }

/* ============================================================
   CÓMO FUNCIONA
   ============================================================ */

.grid-pasos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  counter-reset: paso;
}

.paso {
  position: relative;
  background: var(--panel-2);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 62px 26px 30px;
  transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.3, 1),
              border-color 0.45s ease, box-shadow 0.45s ease;
}

.paso:hover {
  transform: translateY(-7px);
  border-color: rgba(106, 178, 255, 0.42);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
}

/* Riel de la ruta: guía tenue de fondo. Se extiende sobre el hueco
   entre tarjetas para que la línea se lea como una sola ruta continua. */
.paso::before {
  content: "";
  position: absolute;
  top: 33px;
  left: 34px;
  right: -22px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.09);
}

.paso:last-child::before { right: 26px; }

/* La ruta que se traza al entrar en pantalla */
.paso::after {
  content: "";
  position: absolute;
  top: 33px;
  left: 34px;
  right: -22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--azul) 0%, var(--azul-claro) 100%);
  box-shadow: 0 0 14px rgba(23, 120, 242, 0.75);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.35, 0.62, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 340ms + 260ms);
}

.paso:last-child::after { right: 26px; }

.paso.visible::after { transform: scaleX(1); }

/* Nodo de la ruta: se enciende cuando la línea llega */
.paso-nodo {
  position: absolute;
  top: 26px;
  left: 26px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
  transition-delay: calc(var(--i, 0) * 340ms + 180ms);
}

.paso.visible .paso-nodo {
  background: var(--azul);
  border-color: rgba(160, 205, 255, 0.95);
  box-shadow: 0 0 0 5px rgba(23, 120, 242, 0.16), 0 0 20px rgba(23, 120, 242, 0.85);
}

/* Pulso de radar sobre el nodo, al momento de encenderse */
.paso-nodo::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--azul-claro);
  opacity: 0;
}

.paso.visible .paso-nodo::after {
  animation: pulso-gps 1.5s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
  animation-delay: calc(var(--i, 0) * 340ms + 300ms);
}

@keyframes pulso-gps {
  0%   { transform: scale(1);   opacity: 0.9; }
  70%  { transform: scale(3.1); opacity: 0; }
  100% { transform: scale(3.1); opacity: 0; }
}

.paso-numero {
  font-family: var(--fuente-display);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, #8fc4ff 0%, rgba(106, 178, 255, 0.22) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
  transition: opacity 0.4s ease;
}

.paso:hover .paso-numero { opacity: 0.85; }

.paso h3 {
  font-family: var(--fuente-display);
  font-size: 18.5px;
  font-weight: 800;
  color: var(--blanco);
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}

.paso p { font-size: 14.5px; color: var(--gris); }

/* ============================================================
   POR QUÉ SISTEMTRACK
   ============================================================ */

.grid-razones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.razon {
  border-left: 3px solid var(--azul);
  padding: 6px 0 6px 22px;
}

.razon h3 { font-size: 17px; font-weight: 800; color: var(--blanco); margin-bottom: 8px; }

.razon p { font-size: 14.5px; color: var(--gris); }

/* ============================================================
   COBERTURA / MAPA
   ============================================================ */

.cobertura-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.cobertura-texto .seccion-encabezado { margin-bottom: 28px; }

.cobertura-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 34px;
}

.cobertura-lista li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: var(--gris-claro);
}

.cobertura-lista svg { width: 19px; height: 19px; color: var(--azul-claro); flex-shrink: 0; margin-top: 3px; }

.mapa-marco {
  border-radius: var(--radio);
  overflow: hidden;
  border: 1px solid var(--borde);
  box-shadow: var(--sombra);
  aspect-ratio: 4 / 3;
  background: var(--panel-2);
}

.mapa-marco iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.9);
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-lista { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--panel-2);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item[open] { border-color: rgba(106, 178, 255, 0.4); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--blanco);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-flecha {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--azul-claro);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-flecha { transform: rotate(180deg); }

.faq-item p { padding: 0 26px 24px; font-size: 15px; color: var(--gris); }

/* ============================================================
   CTA FINAL
   ============================================================ */

.cta-final {
  position: relative;
  overflow: hidden;
  background: linear-gradient(118deg, #0a1622 0%, #0d2236 60%, #103049 130%);
  border-top: 1px solid var(--borde);
  padding: 110px 0;
  text-align: center;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 120%, rgba(23, 120, 242, 0.28) 0%, transparent 55%);
  pointer-events: none;
}

.cta-final .contenedor { position: relative; z-index: 1; }

.cta-final h2 {
  font-family: var(--fuente-display);
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 900;
  font-stretch: 90%;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--blanco);
  line-height: 1.1;
}

.cta-final p {
  font-size: 17.5px;
  color: var(--gris-claro);
  max-width: 620px;
  margin: 20px auto 38px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: #04070a;
  border-top: 1px solid var(--borde);
  padding: 54px 0 34px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.footer-logo img { height: 52px; width: auto; }

.footer-info { text-align: right; }

.footer-info a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gris-claro);
  transition: color 0.25s ease;
}

.footer-info a:hover { color: var(--whatsapp); }

.footer-info svg { width: 18px; height: 18px; }

.footer-info p { font-size: 13.5px; color: var(--gris); margin-top: 8px; }

.footer-legal {
  border-top: 1px solid var(--borde);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #6d7d8c;
}

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */

.whatsapp-flotante {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-flotante:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 38px rgba(37, 211, 102, 0.6);
}

.whatsapp-flotante svg { width: 32px; height: 32px; color: #fff; }

/* ============================================================
   ANIMACIONES DE ENTRADA (scroll)
   ============================================================ */

.revelar {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.6, 0.3, 1), transform 0.7s cubic-bezier(0.25, 0.6, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 130ms);
}

.revelar.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-contenido { animation: none; }
  .revelar { opacity: 1; transform: none; transition: none; }
  .tarjeta-foto { clip-path: none; transition: none; }
  .tarjeta-foto img,
  .tarjeta-servicio:hover .tarjeta-foto img { transform: none; transition: none; }
  .tarjeta-servicio:hover .tarjeta-foto::after { animation: none; }
  .tarjeta-servicio, .tarjeta-icono { transition: none; }
  .tarjeta-servicio:hover { transform: none; }
  .plataforma-visual { opacity: 1; transform: none; transition: none; }
  .plataforma-visual img { transform: none; }
  .plataforma-visual.visible::after { animation: none; }
  .paso, .paso-nodo { transition: none; }
  .paso:hover { transform: none; }
  .paso::after { transform: scaleX(1); transition: none; }
  .paso.visible .paso-nodo::after { animation: none; }
  .funcion { opacity: 1; transform: none; transition: none; }
  .funcion-icono, .funcion-formatos .formato { transition: none; }
  .funcion:hover .funcion-icono { transform: none; }
  .funcion:hover .funcion-formatos .formato { transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Cuando los pasos dejan de ir en una sola fila, cada ruta se cierra
   dentro de su tarjeta para no apuntar al vacío. */
@media (max-width: 1010px) {
  .paso::before,
  .paso::after { right: 26px; }
}

/* Funciones: de 3 columnas a 2, y luego a lista vertical */
@media (max-width: 1180px) {
  .funciones-grupo { grid-template-columns: 150px 1fr; gap: 26px; }
  .funciones-num { font-size: 46px; }
  .funciones-lista { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .funciones-lista .funcion:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 820px) {
  .funciones-grupo {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 38px 0;
  }
  .funciones-marca { display: flex; align-items: baseline; gap: 14px; }
  .funciones-num { font-size: 38px; }
  .funciones-etiqueta { margin-top: 0; }
  .funciones-lista { grid-template-columns: 1fr; row-gap: 28px; }
  .funciones-lista .funcion { border-left: 0; padding: 0; }
}

/* ============================================================
   MENÚ MÓVIL
   Bajo 1024px los enlaces pasan a un panel desplegable
   que abre el botón de hamburguesa.
   ============================================================ */

@media (max-width: 1024px) {
  .menu-btn { display: block; }

  .nav-principal {
    position: fixed;
    top: 0;
    right: 0;
    width: min(84vw, 360px);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    padding: 90px 30px 40px;
    background: rgba(6, 12, 20, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid var(--borde);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
    /* Cerrado: fuera de pantalla y sin recibir toques */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.3, 1), visibility 0.45s;
    overflow-y: auto;
  }

  .nav-principal.abierto { transform: none; visibility: visible; }

  .nav-principal a {
    font-size: 16px;
    letter-spacing: 1px;
    padding: 15px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    /* Entran en cascada al abrirse */
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1), color 0.25s ease;
  }

  .nav-principal.abierto a { opacity: 1; transform: none; }
  .nav-principal.abierto a:nth-child(1) { transition-delay: 0.1s; }
  .nav-principal.abierto a:nth-child(2) { transition-delay: 0.15s; }
  .nav-principal.abierto a:nth-child(3) { transition-delay: 0.2s; }
  .nav-principal.abierto a:nth-child(4) { transition-delay: 0.25s; }
  .nav-principal.abierto a:nth-child(5) { transition-delay: 0.3s; }
  .nav-principal.abierto a:nth-child(6) { transition-delay: 0.35s; }
  .nav-principal.abierto a:nth-child(7) { transition-delay: 0.4s; }
  .nav-principal.abierto a:nth-child(8) { transition-delay: 0.45s; }

  .nav-principal .nav-cta {
    justify-content: center;
    margin-top: 22px;
    padding: 16px 22px;
    border-bottom: 0;
  }

  .nav-principal .nav-cta span { display: inline; }

  /* Velo que cubre la página con el menú abierto */
  .velo-menu {
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(3, 7, 12, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
  }

  .velo-menu.visible { opacity: 1; visibility: visible; }

  body.menu-abierto { overflow: hidden; }
}

@media (max-width: 1024px) {
  .header-logo img { height: 58px; }
  .cobertura-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-info { text-align: left; }
}

@media (max-width: 900px) {
  .hero-foto { opacity: 0.55; }
  .hero-velo {
    background: linear-gradient(180deg,
      rgba(3, 8, 12, 0.78) 0%, rgba(4, 10, 16, 0.55) 45%, rgba(6, 9, 13, 0.88) 100%);
  }
  .hero-contenido {
    padding: 130px clamp(20px, 6.4vw, 150px) 70px clamp(20px, 6.4vw, 150px);
  }
  .seccion { padding: 72px 0; }
}

@media (max-width: 700px) {
  .header-logo img { height: 46px; }
  .header.compacto .header-logo img { height: 38px; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 10px 14px; }
  .hero-titulo { font-size: clamp(30px, 9.8vw, 56px); letter-spacing: -0.5px; }
  .hero-bajada { font-size: 17px; }
  .btn-principal { width: 100%; justify-content: center; padding: 17px 20px; }
  .hero-badge { letter-spacing: 1.6px; }
  .franja-lista { gap: 14px 28px; }
  .franja-lista li { font-size: 12px; }
  .whatsapp-flotante { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .whatsapp-flotante svg { width: 28px; height: 28px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
