/* ============================================================
   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-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: 8px;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blanco);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================================
   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; }

/* ============================================================
   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 {
  background: var(--panel-2);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-servicio:hover {
  transform: translateY(-6px);
  border-color: rgba(106, 178, 255, 0.4);
  box-shadow: var(--sombra);
}

.tarjeta-icono {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(23, 120, 242, 0.14);
  border: 1px solid rgba(23, 120, 242, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.tarjeta-icono svg { width: 28px; height: 28px; color: var(--azul-claro); }

.tarjeta-servicio h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--blanco);
  line-height: 1.3;
  margin-bottom: 12px;
}

.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);
}

/* ============================================================
   MARCADORES DE IMAGEN (pendientes de foto del cliente)
   ============================================================ */

.marcador-imagen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px dashed rgba(106, 178, 255, 0.35);
  border-radius: 12px;
  background: rgba(23, 120, 242, 0.05);
  color: #5f7d94;
  text-align: center;
  padding: 18px 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.marcador-imagen svg { width: 26px; height: 26px; opacity: 0.6; }

.tarjeta-servicio .marcador-imagen {
  aspect-ratio: 16 / 10;
  margin-bottom: 22px;
}

.marcador-imagen.marcador-ancho {
  aspect-ratio: 21 / 9;
  max-width: 980px;
  margin: 0 auto 56px;
  font-size: 14px;
}

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

.grid-caracteristicas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.caracteristica {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 26px 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.caracteristica:hover { border-color: rgba(106, 178, 255, 0.35); transform: translateY(-3px); }

.caracteristica-icono {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(23, 120, 242, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.caracteristica-icono svg { width: 23px; height: 23px; color: var(--azul-claro); }

.caracteristica h3 { font-size: 16.5px; font-weight: 700; color: var(--blanco); margin-bottom: 6px; }

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

/* ============================================================
   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: 34px 26px 30px;
}

.paso-numero {
  font-size: 15px;
  font-weight: 800;
  color: var(--azul-claro);
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.paso h3 { font-size: 18px; font-weight: 800; color: var(--blanco); 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);
}

.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; }
}

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

@media (max-width: 1024px) {
  .header-logo img { height: 58px; }
  .nav-principal a:not(.nav-cta) { display: none; }
  .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; }
}
