/* =======================================================
   MARSAN LOGÍSTICA - STYLESHEET
   =======================================================

   ÍNDICE
   01 - Variables globales
   02 - Reset y base
   03 - Tipografía
   04 - Header / navegación
   05 - Layout general y botones
   06 - Hero / paquete 3D
   07 - Estadísticas
   08 - Servicios / cards
   09 - Tecnología / slider
   10 - Cobertura / mapa
   11 - Formularios, contacto y footer
   12 - Tracking de envío
   13 - Animaciones
   14 - Responsive
   15 - Ajustes Marsan finales
*/

/* =======================================================
   01 - VARIABLES GLOBALES
   ======================================================= */

:root {
  --bg: #03050b;
  --bg2: #080d1b;
  --blue: #3045ff;
  --cyan: #00d9ff;
  --white: #fff;
  --muted: #aeb6d8;
  --glass: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.14);
}
/* =======================================================
   02 - RESET Y BASE
   ======================================================= */

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% 5%, rgba(48, 69, 255, 0.26), transparent 30%),
    radial-gradient(
      circle at 85% 25%,
      rgba(0, 217, 255, 0.14),
      transparent 24%
    ),
    linear-gradient(180deg, var(--bg), #050711 60%, #020309);
  color: var(--white);
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
/* =======================================================
   03 - TIPOGRAFÍA
   ======================================================= */

p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 17px;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}
h1 {
  font-size: clamp(44px, 7vw, 92px);
  letter-spacing: -0.07em;
}
h2 {
  font-size: clamp(34px, 4.5vw, 62px);
  letter-spacing: -0.055em;
}
h3 {
  font-size: 24px;
}
#particles {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.62;
}
/* =======================================================
   04 - HEADER / NAVEGACIÓN
   ======================================================= */

.header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, 92%);
  height: 72px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: rgba(4, 7, 16, 0.62);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
  transition: 0.25s;
}
.header.scrolled {
  height: 64px;
  background: rgba(4, 7, 16, 0.86);
}
.brand {
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 120px;
}
.brand img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 750;
  color: #dbe5ff;
}
.nav a {
  opacity: 0.86;
  transition: 0.2s;
}
.nav a:hover {
  opacity: 1;
  color: var(--cyan);
}
.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white !important;
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.25);
}
.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  color: white;
  font-size: 28px;
}
/* =======================================================
   05 - LAYOUT GENERAL
   ======================================================= */

.section {
  padding: 112px 7%;
  position: relative;
}
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 44px;
  padding-top: 145px;
}
.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 217, 255, 0.07);
  color: #aef6ff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero p {
  max-width: 710px;
  font-size: 20px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.portal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 16px;
    border-radius: 999px;

    border: 1px solid rgba(255,255,255,.12);

    background: rgba(255,255,255,.05);

    color: #e8f1ff;

    font-weight: 800;

    transition: .25s ease;
}

.portal-link:hover {
    border-color: rgba(0,217,255,.35);

    background: rgba(0,217,255,.08);

    color: white;

    transform: translateY(-1px);

    box-shadow: 0 0 20px rgba(0,217,255,.12);
}
/* =======================================================
   06 - BOTONES
   ======================================================= */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 15px 24px;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  transition: 0.22s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  box-shadow: 0 18px 45px rgba(0, 217, 255, 0.24);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: white;
}
.btn:hover {
  transform: translateY(-3px);
}
/* =======================================================
   07 - HERO / PAQUETE 3D
   ======================================================= */

.hero-visual {
  height: 570px;
  position: relative;
  display: grid;
  place-items: center;
  perspective: 950px;
}
.cube-scene {
  width: 185px;
  height: 185px;
  transform-style: preserve-3d;
  animation: float 4s ease-in-out infinite;
}
.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: spinCube 14s linear infinite;
}
.face {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(0, 217, 255, 0.48);
  background: linear-gradient(
    135deg,
    rgba(48, 69, 255, 0.7),
    rgba(0, 217, 255, 0.16)
  );
  box-shadow: 0 0 45px rgba(0, 217, 255, 0.28);
}
.front {
  transform: translateZ(92px);
}
.back {
  transform: rotateY(180deg) translateZ(92px);
}
.right {
  transform: rotateY(90deg) translateZ(92px);
}
.left {
  transform: rotateY(-90deg) translateZ(92px);
}
.top {
  transform: rotateX(90deg) translateZ(92px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(92px);
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 217, 255, 0.35);
  width: 430px;
  height: 430px;
  animation: rotate 12s linear infinite;
}
.orbit-two {
  width: 560px;
  height: 260px;
  transform: rotateX(65deg);
  border-color: rgba(48, 69, 255, 0.45);
  animation-duration: 8s;
}
.data-card {
  position: absolute;
  padding: 14px 18px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(15px);
  font-weight: 900;
}
.card-one {
  top: 90px;
  left: 20px;
}
.card-two {
  right: 0;
  top: 260px;
}
.card-three {
  bottom: 90px;
  left: 80px;
}
/* =======================================================
   08 - ESTADÍSTICAS
   ======================================================= */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 20px;
}
.stats div,
.glass-card,
.form-card,
.tech-showcase,
.coverage-map,
.contact {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 28px;
  backdrop-filter: blur(14px);
}
.stats div {
  padding: 30px;
}
.stats strong {
  display: block;
  font-size: 44px;
}
.stats span {
  color: var(--muted);
  font-weight: 800;
}
/* =======================================================
   09 - SERVICIOS / CARDS
   ======================================================= */

.section-title {
  max-width: 870px;
  margin-bottom: 44px;
}
.grid {
  display: grid;
  gap: 20px;
}
.services-grid {
  grid-template-columns: repeat(4, 1fr);
}
.glass-card {
  padding: 32px;
  min-height: 240px;
  transition: 0.25s;
}
.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 217, 255, 0.55);
}
.glass-card h3 {
  margin-bottom: 16px;
}
.technology,
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
ul {
  margin: 24px 0 0 18px;
  color: var(--muted);
  line-height: 2;
  font-weight: 750;
}
/* =======================================================
   10 - TECNOLOGÍA / SLIDER
   ======================================================= */

.tech-showcase {
  height: 500px;
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(0, 217, 255, 0.18),
      transparent 42%
    ),
    rgba(255, 255, 255, 0.06);
}
.tech-slider {
  height: 100%;
  position: relative;
}
.tech-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 22px;
  opacity: 0;
  transform: translateX(35px) scale(0.98);
  transition: 0.75s ease;
}
.tech-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.tech-slide h3 {
  font-size: 30px;
  margin-bottom: 8px;
}
.tech-illustration {
  position: relative;
  min-height: 310px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(48, 69, 255, 0.22),
    rgba(0, 217, 255, 0.08)
  );
  border: 1px solid rgba(0, 217, 255, 0.18);
}
.tech-illustration:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle, black, transparent 82%);
}
.server {
  position: absolute;
  bottom: 45px;
  width: 78px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    rgba(48, 69, 255, 0.28)
  );
  border: 1px solid rgba(0, 217, 255, 0.45);
  box-shadow: 0 0 36px rgba(0, 217, 255, 0.25);
}
.s1 {
  height: 170px;
  left: 70px;
}
.s2 {
  height: 220px;
  left: 168px;
}
.s3 {
  height: 135px;
  left: 266px;
}
.server:after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 24px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow:
    0 35px 0 rgba(0, 217, 255, 0.65),
    0 70px 0 rgba(0, 217, 255, 0.4);
}
.node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px var(--cyan);
  animation: pulse 1.8s infinite;
}
.n1 {
  left: 70px;
  top: 70px;
}
.n2 {
  left: 215px;
  top: 45px;
}
.n3 {
  right: 62px;
  top: 104px;
}
.n4 {
  right: 130px;
  bottom: 70px;
}
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
  animation: scan 2.3s linear infinite;
}
.earth {
  position: absolute;
  left: 90px;
  top: 58px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 28%,
    rgba(255, 255, 255, 0.5),
    rgba(0, 217, 255, 0.16) 34%,
    rgba(48, 69, 255, 0.42) 62%,
    rgba(0, 0, 0, 0.28)
  );
  border: 1px solid rgba(0, 217, 255, 0.35);
  box-shadow: 0 0 48px rgba(0, 217, 255, 0.26);
}
.satellite {
  position: absolute;
  right: 105px;
  top: 65px;
  width: 58px;
  height: 26px;
  border-radius: 8px;
  background: #fff;
  box-shadow:
    -42px 0 0 rgba(48, 69, 255, 0.8),
    42px 0 0 rgba(48, 69, 255, 0.8);
  animation: sat 4s ease-in-out infinite;
}
.signal {
  position: absolute;
  border: 2px solid var(--cyan);
  border-left: 0;
  border-bottom: 0;
  border-radius: 50%;
  opacity: 0.75;
  animation: ping 2.2s linear infinite;
}
.signal-a {
  right: 150px;
  top: 90px;
  width: 120px;
  height: 120px;
}
.signal-b {
  right: 112px;
  top: 52px;
  width: 200px;
  height: 200px;
  animation-delay: 0.6s;
}
.truck-dot {
  position: absolute;
  left: 164px;
  top: 205px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 22px var(--cyan);
}
.code-window {
  position: absolute;
  left: 48px;
  top: 45px;
  width: 230px;
  height: 190px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 217, 255, 0.3);
  padding: 28px;
}
.code-window span {
  display: block;
  height: 12px;
  margin: 13px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  animation: code 2.4s infinite;
}
.code-window span:nth-child(2) {
  width: 70%;
  animation-delay: 0.2s;
}
.code-window span:nth-child(3) {
  width: 85%;
  animation-delay: 0.4s;
}
.code-window span:nth-child(4) {
  width: 55%;
  animation-delay: 0.6s;
}
.code-window span:nth-child(5) {
  width: 75%;
  animation-delay: 0.8s;
}
.holo-panel {
  position: absolute;
  right: 45px;
  top: 80px;
  width: 135px;
  height: 135px;
  border-radius: 28px;
  border: 1px solid rgba(0, 217, 255, 0.35);
  transform: rotate(12deg);
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.18);
}
.holo-panel i {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(0, 217, 255, 0.55);
  inset: 16px;
  animation: rotate 8s linear infinite;
}
.holo-panel i:nth-child(2) {
  inset: 38px;
  animation-direction: reverse;
}
.holo-panel i:nth-child(3) {
  inset: 61px;
}
.fleet-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fleet-road {
  fill: none;
  stroke: rgba(0, 217, 255, 0.7);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 15 14;
  animation: dash 6s linear infinite;
}
.fleet-road.secondary {
  stroke: rgba(255, 255, 255, 0.35);
  animation-duration: 9s;
}
.vehicle {
  fill: white;
  filter: drop-shadow(0 0 15px var(--cyan));
}
.v1 {
  animation: drive1 5.5s linear infinite;
}
.v2 {
  animation: drive2 7s linear infinite;
}
.slider-dots {
  position: absolute;
  left: 28px;
  bottom: 22px;
  display: flex;
  gap: 10px;
}
.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}
.slider-dots button.active {
  width: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
/* =======================================================
   11 - COBERTURA / MAPA
   ======================================================= */

.coverage-map {
  height: min(72vh, 690px);
  min-height: 540px;
  position: relative;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 58% 35%, rgba(0, 217, 255, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(48, 69, 255, 0.12), rgba(0, 217, 255, 0.05));
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.5),
    0 35px 90px rgba(0, 0, 0, 0.25);
}
.coverage-map:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
}
.coverage-map:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 46%,
    rgba(3, 5, 11, 0.38) 72%,
    var(--bg) 100%
  );
}
.amba-map {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  filter: drop-shadow(0 28px 55px rgba(0, 0, 0, 0.45)) blur(0.15px);
}
.water-bg {
  fill: rgba(0, 217, 255, 0.08);
}
.land {
  fill: rgba(255, 255, 255, 0.045);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.5;
}
.river {
  fill: rgba(0, 217, 255, 0.17);
}
.coverage-shape {
  fill: url(#coverageGradient);
  stroke: rgba(0, 217, 255, 0.88);
  stroke-width: 3;
  opacity: 0.9;
  animation: coveragePulse 3.4s ease-in-out infinite;
}
.partido-lines path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.17);
  stroke-width: 1.8;
  stroke-dasharray: 8 8;
}
.main-roads path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.58);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.28));
}
.road-labels text {
  fill: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.03em;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.55);
  stroke-width: 4px;
}
.route path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
}
.route circle {
  fill: white;
  stroke: var(--cyan);
  stroke-width: 4;
  filter: drop-shadow(0 0 12px var(--cyan));
}
.map-pin path {
  fill: white;
  stroke: var(--blue);
  stroke-width: 5;
  filter: drop-shadow(0 0 18px rgba(0, 217, 255, 0.75));
}
.map-pin circle {
  fill: var(--blue);
}
.main-pin {
  animation: pinFloat 2.4s ease-in-out infinite;
}
.partido-labels text {
  fill: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.02em;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.65);
  stroke-width: 4px;
}
.partido-labels .label-big {
  font-size: 26px;
  font-weight: 950;
  fill: white;
}
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.chips span {
  padding: 12px 15px;
  border-radius: 999px;
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.18);
  font-weight: 850;
  color: #dffbff;
}
/* =======================================================
   12 - FORMULARIOS, CONTACTO Y FOOTER
   ======================================================= */

.form-card {
  padding: 28px;
  display: grid;
  gap: 14px;
}
input,
select,
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  color: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px 16px;
  outline: 0;
  font-family: inherit;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
.contact {
  text-align: center;
  padding: 70px 25px;
}
.contact .btn {
  margin-top: 25px;
}
.footer {
  padding: 40px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.footer img {
  height: 54px;
  width: auto;
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* =======================================================
   14 - ANIMACIONES
   ======================================================= */

@keyframes spinCube {
  to {
    transform: rotateX(360deg) rotateY(360deg);
  }
}
@keyframes float {
  50% {
    transform: translateY(-22px);
  }
}
@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    transform: scale(1.8);
    opacity: 0.35;
  }
}
@keyframes coveragePulse {
  50% {
    opacity: 1;
    filter: brightness(1.22);
  }
}
@keyframes pinFloat {
  50% {
    transform: translate(620px, 242px);
  }
}
@keyframes scan {
  from {
    top: 0;
  }
  to {
    top: 100%;
  }
}
@keyframes sat {
  50% {
    transform: translate(-20px, 18px) rotate(8deg);
  }
}
@keyframes ping {
  to {
    transform: scale(1.2);
    opacity: 0;
  }
}
@keyframes code {
  50% {
    filter: brightness(1.8);
    transform: translateX(8px);
  }
}
@keyframes dash {
  to {
    stroke-dashoffset: -160;
  }
}
@keyframes drive1 {
  0% {
    transform: translate(30px, 155px);
  }
  50% {
    transform: translate(210px, 115px);
  }
  100% {
    transform: translate(370px, 70px);
  }
}
@keyframes drive2 {
  0% {
    transform: translate(42px, 70px);
  }
  50% {
    transform: translate(205px, 85px);
  }
  100% {
    transform: translate(345px, 155px);
  }
}
/* =======================================================
   15 - RESPONSIVE
   ======================================================= */

@media (max-width: 980px) {
  .menu-btn {
    display: block;
  }
  .nav {
    position: fixed;
    top: 78px;
    right: 0;
    left: 0;
    margin: auto;
    width: 100%;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(5, 7, 13, 0.96);
    border: 1px solid var(--border);
    border-radius: 24px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .hero,
  .technology,
  .split {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    height: 430px;
  }
  .services-grid,
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .tech-showcase {
    height: 470px;
  }
}
@media (max-width: 620px) {
  .section {
    padding: 80px 5%;
  }
  .header {
    width: 94%;
    height: 66px;
    padding: 0 16px;
  }
  .brand img {
    height: 42px;
    max-width: 150px;
  }
  .services-grid,
  .stats {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .coverage-map {
    min-height: 430px;
    height: 54vh;
  }
  .amba-map {
    inset: -18%;
    width: 136%;
    height: 136%;
  }
  .orbit {
    width: 300px;
    height: 300px;
  }
  .orbit-two {
    width: 340px;
    height: 180px;
  }
  .data-card {
    font-size: 12px;
  }
  .footer {
    flex-direction: column;
    gap: 16px;
  }
  .tech-slide h3 {
    font-size: 24px;
  }
  .tech-illustration {
    min-height: 270px;
  }
  .server {
    transform: scale(0.8);
    transform-origin: bottom;
  }
  .s1 {
    left: 40px;
  }
  .s2 {
    left: 125px;
  }
  .s3 {
    left: 210px;
  }
  .earth {
    left: 45px;
  }
  .satellite {
    right: 65px;
  }
  .code-window {
    left: 26px;
    width: 200px;
  }
  .holo-panel {
    right: 25px;
    width: 110px;
    height: 110px;
  }
}

/* =======================================================
   16 - AJUSTES SOLICITADOS
   ======================================================= */
.track-nav-btn {
  border: 1px solid rgba(0, 217, 255, 0.35);
  background: rgba(0, 217, 255, 0.08);
  color: #eafcff;
  border-radius: 999px;
  padding: 12px 15px;
  font-weight: 850;
  cursor: pointer;
  font-family: inherit;
  transition: 0.25s ease;
}
.track-nav-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(48, 69, 255, 0.32),
    rgba(0, 217, 255, 0.18)
  );
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.18);
  transform: translateY(-1px);
}
/* .stats mantiene 4 columnas en desktop */
.stats strong::after {
  content: "";
}
.cube .face {
  border: 1px solid rgba(0, 217, 255, 0.32);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96),
    rgba(0, 217, 255, 0.38)
  );
  box-shadow:
    inset 0 0 25px rgba(48, 69, 255, 0.22),
    0 0 28px rgba(0, 217, 255, 0.16);
}
.cube:before,
.cube:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 172px;
  height: 18px;
  background: linear-gradient(
    90deg,
    rgba(48, 69, 255, 0.85),
    rgba(0, 217, 255, 0.7)
  );
  transform-style: preserve-3d;
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.35);
}
.cube:before {
  transform: translate(-50%, -50%) rotateY(0deg) translateZ(93px);
}
.cube:after {
  transform: translate(-50%, -50%) rotateY(90deg) translateZ(93px);
}
.service-card {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  padding-top: 84px !important;
}
.service-icon {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  background: linear-gradient(
    135deg,
    rgba(48, 69, 255, 0.22),
    rgba(0, 217, 255, 0.08)
  );
  box-shadow: 0 0 26px rgba(0, 217, 255, 0.12);
}
.service-icon:before,
.service-icon:after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 9px;
  opacity: 0.9;
}
.icon-last-mile:after {
  inset: 18px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}
.icon-ml span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 950;
  color: #fff;
  letter-spacing: -0.08em;
}
.icon-ml:before {
  border-radius: 50%;
  inset: 10px;
}
.icon-ml:after {
  content: "";
  inset: 22px 13px;
  border-width: 0 0 2px 0;
  border-radius: 0;
  transform: rotate(-8deg);
}
.icon-storage:before {
  transform: rotate(45deg);
  border-radius: 4px;
}
.icon-storage:after {
  inset: 21px 14px 13px 14px;
  border-radius: 2px;
  border-top: 0;
}
.icon-corporate:before {
  inset: 10px 17px;
  border-radius: 3px;
}
.icon-corporate:after {
  inset: 30px 10px 10px;
  border-radius: 2px;
}
.code-sheet {
  position: absolute;
  left: 28px;
  top: 34px;
  width: 245px;
  min-height: 175px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.32);
  padding: 22px;
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(0, 217, 255, 0.12);
  transform: rotate(-6deg);
  z-index: 3;
}
.code-sheet b {
  display: block;
  color: #fff;
  font-size: 30px;
  margin-bottom: 14px;
  text-shadow: 0 0 15px var(--cyan);
}
.code-sheet span {
  display: block;
  color: #dffbff;
  font-family: Consolas, monospace;
  font-size: 12px;
  margin: 8px 0;
  white-space: nowrap;
}
.code-sheet span:before {
  content: "> ";
  color: var(--cyan);
}
.tech-dev .code-window {
  left: 155px;
  top: 76px;
  opacity: 0.72;
}
.tech-dev .holo-panel {
  right: 35px;
  top: 65px;
}
.smart-van {
  fill: url(#vehGrad);
  filter: drop-shadow(0 0 18px rgba(0, 217, 255, 0.95));
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.2;
}
.smart-van .window {
  fill: rgba(3, 5, 11, 0.72);
  stroke: rgba(0, 217, 255, 0.9);
}
.smart-van circle {
  fill: #05070d;
  stroke: #fff;
  stroke-width: 2;
}
.smart-van .hub {
  fill: var(--cyan);
  stroke: 0;
}
.v1 {
  animation: smartDrive1 6.4s linear infinite;
}
.v2 {
  animation: smartDrive2 8s linear infinite;
}
.vehicle {
  display: none;
}
.security-nodes path {
  fill: none;
  stroke: rgba(0, 217, 255, 0.55);
  stroke-width: 2;
  stroke-dasharray: 7 8;
  animation: dash 5s linear infinite;
}
.security-nodes circle {
  fill: #05070d;
  stroke: var(--cyan);
  stroke-width: 3;
  filter: drop-shadow(0 0 14px var(--cyan));
  animation: pulseNode 2.2s infinite;
}
.security-nodes circle:nth-child(2) {
  animation-delay: 0.4s;
}
.security-nodes circle:nth-child(3) {
  animation-delay: 0.8s;
}
/* =======================================================
   13 - TRACKING DE ENVÍO
   ======================================================= */
.tracking-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}

.tracking-detail div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(0, 217, 255, .06);
    border: 1px solid rgba(0, 217, 255, .14);
}

.tracking-detail span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 5px;
}

.tracking-detail b {
    color: white;
    font-size: 15px;
}

@media (max-width: 620px) {
    .tracking-detail {
        grid-template-columns: 1fr;
    }
}
.tracking-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;

    background: rgba(0,0,0,.72);
    backdrop-filter: blur(12px);

    display: flex;
    justify-content: center;
    align-items: flex-start;

    overflow-y: auto;

    padding: 30px 20px;

    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
}

.tracking-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.tracking-card {
  width: min(620px, 100%);
  
  margin: auto 0;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  
  position: relative;
  border-radius: 32px;
  background: linear-gradient(
    145deg,
    rgba(12, 16, 30, 0.98),
    rgba(3, 5, 11, 0.96)
  );
  border: 1px solid rgba(0, 217, 255, 0.24);
  padding: 34px;
  box-shadow:
    0 35px 110px rgba(0, 0, 0, 0.65),
    0 0 70px rgba(0, 217, 255, 0.14);
}
.tracking-card h2 {
  font-size: clamp(32px, 5vw, 52px);
  margin: 8px 0 10px;
}
.tracking-card p {
  color: var(--muted);
  line-height: 1.7;
}
.tracking-close {
  position: absolute;
  right: 20px;
  top: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 28px;
  cursor: pointer;
}
.tracking-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 22px;
}
.tracking-result {
  display: none;
  margin-top: 20px;
  border: 1px solid rgba(0, 217, 255, 0.16);
  border-radius: 20px;
  padding: 18px;
  background: rgba(0, 217, 255, 0.06);
}
.tracking-result.show {
  display: block;
}
@keyframes smartDrive1 {
  0% {
    transform: translate(30px, 150px) scale(0.78) rotate(-24deg);
  }
  45% {
    transform: translate(195px, 118px) scale(0.84) rotate(12deg);
  }
  100% {
    transform: translate(354px, 70px) scale(0.78) rotate(-23deg);
  }
}
@keyframes smartDrive2 {
  0% {
    transform: translate(42px, 72px) scale(0.7) rotate(19deg);
  }
  50% {
    transform: translate(205px, 86px) scale(0.8) rotate(-12deg);
  }
  100% {
    transform: translate(330px, 158px) scale(0.7) rotate(17deg);
  }
}
@keyframes pulseNode {
  50% {
    transform: scale(1.25);
    opacity: 0.85;
  }
}
@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 980px) {
  .track-nav-btn {
    width: 100%;
    text-align: left;
  }
}
@media (max-width: 620px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .tracking-form {
    grid-template-columns: 1fr;
  }
  .tracking-card {
    padding: 26px;
  }
}

/* =======================================================
   17 - AJUSTES MARSAN FINALES
   ======================================================= */
.header {
  width: min(1500px, 97%);
  padding: 0 18px 0 24px;
  gap: 22px;
}
.brand {
  min-width: 280px;
  flex: 0 0 auto;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.brand img {
  height: 54px;
  max-width: 300px;
  object-fit: contain;
}
.nav {
  flex: 1;
  justify-content: flex-end;
  gap: 18px;
  white-space: nowrap;
}

.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 34px 30px 30px;
}
.service-card h3 {
  min-height: 58px;
  display: flex;
  align-items: flex-start;
  margin: 0 0 14px !important;
  position: relative;
  z-index: 2;
}
.service-card p {
  position: relative;
  z-index: 2;
  margin-top: 0;
}
.service-icon {
  position: absolute !important;
  right: 18px;
  bottom: 10px;
  width: 132px;
  height: 132px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 28px rgba(0, 217, 255, 0.45));
}
.service-icon span {
  display: block;
  width: 100%;
  height: 100%;
}
.icon-ml {
  background: url("assets/ml-watermark.png") center/contain no-repeat;
  opacity: 0.14;
}
.icon-ml span {
  font-size: 0 !important;
  color: transparent !important;
}
.icon-last-mile span {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  clip-path: polygon(50% 0%, 78% 88%, 52% 72%, 22% 100%);
  transform: rotate(-22deg);
  border-radius: 16px;
}
.icon-storage {
  background: url("assets/racks-watermark.svg") center/contain no-repeat;
}
.icon-corporate {
  background: url("assets/brain-watermark.svg") center/contain no-repeat;
}

.face:before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 24%;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.42),
    rgba(255, 255, 255, 0.08)
  );
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}
.face:after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.gps-arrow path:first-child {
  fill: url(#vehGrad);
  stroke: #fff;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 14px var(--cyan));
}
.gps-arrow-inner {
  fill: rgba(3, 5, 11, 0.42) !important;
  stroke: rgba(255, 255, 255, 0.55) !important;
  stroke-width: 1.2 !important;
}
.v1 {
  animation: driveGps1 5.5s linear infinite !important;
  transform-origin: center;
}
.v2 {
  animation: driveGps2 7s linear infinite !important;
  transform-origin: center;
}
@keyframes driveGps1 {
  0% {
    transform: translate(30px, 165px) rotate(60deg);
  }
  50% {
    transform: translate(210px, 125px) rotate(96deg);
  }
  100% {
    transform: translate(370px, 80px) rotate(62deg);
  }
}
@keyframes driveGps2 {
  0% {
    transform: translate(42px, 80px) rotate(96deg);
  }
  50% {
    transform: translate(205px, 95px) rotate(75deg);
  }
  100% {
    transform: translate(345px, 165px) rotate(118deg);
  }
}
.security-nodes circle {
  fill: var(--cyan);
  filter: drop-shadow(0 0 12px var(--cyan));
}
.security-nodes path {
  fill: none;
  stroke: rgba(0, 217, 255, 0.45);
  stroke-width: 2;
  stroke-dasharray: 7 8;
  animation: dash 5s linear infinite;
}

.coverage-title {
  text-align: left !important;
  margin-left: 0 !important;
  max-width: 880px;
}
.coverage-title p {
  max-width: 760px;
  margin-bottom: 0;
}

@media (max-width: 1180px) {
  .brand {
    min-width: 220px;
  }
  .brand img {
    height: 48px;
    max-width: 240px;
  }
  .nav {
    gap: 12px;
    font-size: 14px;
  }
  .nav-cta,
  .track-nav-btn {
    padding: 11px 14px;
  }
}
@media (max-width: 980px) {
  .brand {
    min-width: 0;
  }
  .brand img {
    height: 44px;
    max-width: 235px;
  }
  .nav {
    white-space: normal;
    justify-content: flex-start;
  }
  #choferes .form-card {
    order: 2;
  }
  #choferes > div {
    order: 1;
  }
}
@media (max-width: 620px) {
  .brand img {
    height: 37px;
    max-width: 210px;
  }
  .header {
    padding: 0 12px;
  }
  .service-card h3 {
    min-height: auto;
  }
  .service-icon {
    width: 112px;
    height: 112px;
    right: 10px;
    bottom: 0;
  }
}

/* =========================================================
   DROPDOWN ACCESOS
   ========================================================= */

.nav-dropdown {
    position: relative;
}

.dropdown-btn {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    min-width: 240px;
    padding: 12px;

    background: rgba(10,15,35,.98);
    backdrop-filter: blur(18px);

    border: 1px solid rgba(0,217,255,.15);
    border-radius: 18px;

    display: flex;
    flex-direction: column;
    gap: 8px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: .2s ease;

    box-shadow:
        0 10px 40px rgba(0,0,0,.35),
        0 0 30px rgba(0,217,255,.08);

    z-index: 999;
}

.dropdown-menu a {
    padding: 15px 16px;
    border-radius: 13px;
    font-size: 14px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width:980px) {
    .nav.open .nav-dropdown {
        width: 100%;
    }

    .nav.open .dropdown-menu {
        position: static;
        transform: none;
        margin-top: 10px;
        width: 100%;
        padding: 12px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}