/* =============================================
   ENCOLOMBIA — Mensajería y Paquetería
   Hoja de estilos principal
   ============================================= */

:root {
  --verde-claro: #8dc63f;
  --verde: #79b62f;
  --verde-oscuro: #4e7a1c;
  --verde-degradado: linear-gradient(135deg, #a3d24d 0%, #5c8c1f 100%);
  --negro: #161616;
  --negro-suave: #262626;
  --blanco: #ffffff;
  --gris-100: #f7f8f5;
  --gris-200: #eef0ea;
  --gris-400: #9aa093;
  --gris-600: #5c6259;
  --gris-800: #33362f;
  --sombra: 0 10px 30px rgba(22, 22, 22, 0.08);
  --sombra-fuerte: 0 20px 45px rgba(22, 22, 22, 0.16);
  --radio: 14px;
  --radio-sm: 8px;
  --fuente-titulo: "Poppins", "Segoe UI", sans-serif;
  --fuente-texto: "Inter", "Segoe UI", sans-serif;
  --transicion: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fuente-texto);
  color: var(--negro-suave);
  background: var(--blanco);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

h1, h2, h3, h4 {
  font-family: var(--fuente-titulo);
  line-height: 1.25;
  color: var(--negro);
}

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

.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gris-100);
  color: var(--verde-oscuro);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.section-tag i {
  color: var(--verde);
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 14px;
  position: relative;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--verde-degradado);
  border-radius: 50px;
  margin: 16px auto 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.15s;
}

.section-header.visible h2::after {
  transform: scaleX(1);
}

.section-header.left h2::after {
  margin: 16px 0 0;
}

.section-header p {
  color: var(--gris-600);
  font-size: 1.05rem;
}

.section-header.left {
  margin: 0 0 48px;
  text-align: left;
}

.bg-alt {
  background: var(--gris-100);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transicion);
  white-space: nowrap;
}

.btn-primary {
  background: var(--verde-degradado);
  color: var(--negro);
  box-shadow: 0 10px 25px rgba(141, 198, 63, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(141, 198, 63, 0.5);
}

.btn-dark {
  background: var(--negro);
  color: var(--blanco);
}

.btn-dark:hover {
  background: var(--verde-oscuro);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--negro);
  border: 2px solid var(--negro);
}

.btn-outline:hover {
  background: var(--negro);
  color: var(--blanco);
}

.btn-outline.light {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--blanco);
}

.btn-outline.light:hover {
  background: var(--blanco);
  color: var(--negro);
}

.btn-block {
  width: 100%;
}

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--negro);
  color: var(--gris-200);
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.topbar-info {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.topbar-info a {
  color: var(--gris-200);
  transition: var(--transicion);
}

.topbar-info a:hover {
  color: var(--verde-claro);
}

.topbar-info i {
  color: var(--verde-claro);
  margin-right: 6px;
}

.topbar-social a {
  color: var(--gris-200);
  margin-left: 14px;
  transition: var(--transicion);
}

.topbar-social a:hover {
  color: var(--verde-claro);
}

/* ---------- Header / Navegación ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blanco);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
  transition: var(--transicion);
}

.header.scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu li a {
  display: block;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--negro-suave);
  border-radius: 50px;
  transition: var(--transicion);
  position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--verde-oscuro);
  background: var(--gris-100);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-actions .btn-track {
  padding: 13px 22px;
}

.nav-toggle {
  display: none;
  background: transparent;
  font-size: 1.5rem;
  color: var(--negro);
  z-index: 1200;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-color: var(--negro);
  background-image: url("../imagenes/encolombia-movemostunegocio.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  color: var(--blanco);
  overflow: hidden;
  padding: 110px 0 90px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(10, 11, 8, 0.5) 78%, var(--negro) 88%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.hero-visual {
  width: 100%;
  aspect-ratio: 8 / 3;
  margin-bottom: 40px;
}

.hero-text {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 50px;
  align-items: center;
}

.hero-stats-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radio);
  padding: 34px 30px;
  display: grid;
  gap: 22px;
}

.hero-stats-card .stat-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-stats-card .stat-row i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--verde-degradado);
  color: var(--negro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero-stats-card .stat-row strong {
  display: block;
  font-family: var(--fuente-titulo);
  font-size: 1.5rem;
  color: var(--verde-claro);
  line-height: 1.1;
}

.hero-stats-card .stat-row span {
  color: var(--gris-400);
  font-size: 0.82rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(141, 198, 63, 0.15);
  border: 1px solid rgba(141, 198, 63, 0.4);
  color: var(--verde-claro);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-badge i {
  animation: latidoIcono 1.8s ease-in-out infinite;
}

@keyframes latidoIcono {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* Partículas flotantes decorativas */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  bottom: -20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--verde-claro);
  box-shadow: 0 0 10px 2px rgba(141, 198, 63, 0.7);
  opacity: 0;
  animation: flotarParticula linear infinite;
}

@keyframes flotarParticula {
  0% { transform: translateY(0) translateX(0) scale(0.7); opacity: 0; }
  15% { opacity: 0.9; }
  50% { transform: translateY(-260px) translateX(25px) scale(1); }
  85% { opacity: 0.7; }
  100% { transform: translateY(-560px) translateX(-15px) scale(0.6); opacity: 0; }
}

.particle:nth-child(1) { left: 4%; bottom: 0; width: 7px; height: 7px; animation-duration: 8s; animation-delay: 0s; }
.particle:nth-child(2) { left: 11%; bottom: 0; width: 4px; height: 4px; animation-duration: 11s; animation-delay: 1.2s; }
.particle:nth-child(3) { left: 18%; bottom: 0; width: 9px; height: 9px; animation-duration: 9.5s; animation-delay: 2.4s; }
.particle:nth-child(4) { left: 25%; bottom: 0; width: 5px; height: 5px; animation-duration: 7s; animation-delay: 0.6s; }
.particle:nth-child(5) { left: 32%; bottom: 0; width: 12px; height: 12px; animation-duration: 12s; animation-delay: 3s; }
.particle:nth-child(6) { left: 39%; bottom: 0; width: 6px; height: 6px; animation-duration: 8.5s; animation-delay: 1.8s; }
.particle:nth-child(7) { left: 46%; bottom: 0; width: 8px; height: 8px; animation-duration: 10s; animation-delay: 4s; }
.particle:nth-child(8) { left: 53%; bottom: 0; width: 4px; height: 4px; animation-duration: 7.5s; animation-delay: 2.2s; }
.particle:nth-child(9) { left: 60%; bottom: 0; width: 11px; height: 11px; animation-duration: 13s; animation-delay: 0.8s; }
.particle:nth-child(10) { left: 67%; bottom: 0; width: 6px; height: 6px; animation-duration: 9s; animation-delay: 3.6s; }
.particle:nth-child(11) { left: 74%; bottom: 0; width: 9px; height: 9px; animation-duration: 11.5s; animation-delay: 1.5s; }
.particle:nth-child(12) { left: 81%; bottom: 0; width: 5px; height: 5px; animation-duration: 8s; animation-delay: 4.4s; }
.particle:nth-child(13) { left: 88%; bottom: 0; width: 10px; height: 10px; animation-duration: 10.5s; animation-delay: 2.8s; }
.particle:nth-child(14) { left: 95%; bottom: 0; width: 4px; height: 4px; animation-duration: 7s; animation-delay: 0.4s; }
.particle:nth-child(15) { left: 15%; bottom: 0; width: 6px; height: 6px; animation-duration: 9s; animation-delay: 5s; }
.particle:nth-child(16) { left: 44%; bottom: 0; width: 5px; height: 5px; animation-duration: 8.5s; animation-delay: 5.6s; }
.particle:nth-child(17) { left: 63%; bottom: 0; width: 8px; height: 8px; animation-duration: 11s; animation-delay: 6.2s; }
.particle:nth-child(18) { left: 8%; bottom: 0; width: 4px; height: 4px; animation-duration: 10s; animation-delay: 6.8s; }
.particle:nth-child(19) { left: 78%; bottom: 0; width: 6px; height: 6px; animation-duration: 9.5s; animation-delay: 7.4s; }
.particle:nth-child(20) { left: 92%; bottom: 0; width: 9px; height: 9px; animation-duration: 12.5s; animation-delay: 8s; }

.particle-dark {
  background: var(--negro);
  box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(141, 198, 63, 0.25);
}

.hero h1 {
  color: var(--blanco);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--verde-claro);
}

.hero p {
  color: var(--gris-200);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero p.hero-tagline {
  font-family: var(--fuente-titulo);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--verde-claro);
  margin-bottom: 12px;
  max-width: none;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--fuente-titulo);
  font-size: 1.8rem;
  color: var(--verde-claro);
}

.hero-stats div span {
  color: var(--gris-400);
  font-size: 0.85rem;
}

/* Ilustración del hero */
.hero-visual {
  position: relative;
  transition: transform 0.2s ease-out;
}

.hero-visual .visual-card {
  position: absolute;
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra-fuerte);
  padding: 18px 22px;
  color: var(--negro);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-visual .visual-card i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--verde-degradado);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--negro);
  font-size: 1.1rem;
}

.hero-visual .card-1 { top: 10%; right: 4%; animation: flotar 4s ease-in-out infinite; }
.hero-visual .card-2 { bottom: 8%; left: 28%; animation: flotar 5s ease-in-out infinite 0.6s; }
.hero-visual .card-3 { bottom: 8%; right: 4%; animation: flotar 4.5s ease-in-out infinite 0.3s; }

@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Franja de confianza / logos ---------- */
.trust-strip {
  background: var(--negro);
  padding: 20px 0;
}

.trust-strip .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--gris-400);
  font-family: var(--fuente-titulo);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.trust-strip span i {
  color: var(--verde-claro);
  margin-right: 8px;
}

/* ---------- Estadísticas ---------- */
.stats {
  background: var(--gris-100);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.stat-card {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 34px 20px;
  text-align: center;
  box-shadow: var(--sombra);
  transition: var(--transicion);
}

.stat-card:hover {
  transform: translateY(-6px);
}

.stat-card:hover i {
  animation: stat-icon-spin 0.6s ease-in-out;
  background: var(--verde-degradado);
  color: var(--negro);
}

.stat-card i {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(141, 198, 63, 0.12);
  font-size: 1.6rem;
  color: var(--verde);
  animation: stat-icon-float 2s ease-in-out infinite, stat-icon-glow 2s ease-in-out infinite;
  transition: var(--transicion);
}

.stat-card i::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(141, 198, 63, 0.6);
  opacity: 0;
  animation: stat-ring-pulse 2s ease-out infinite;
}

.stat-card:nth-child(2) i,
.stat-card:nth-child(2) i::after { animation-delay: 0.3s; }
.stat-card:nth-child(3) i,
.stat-card:nth-child(3) i::after { animation-delay: 0.6s; }
.stat-card:nth-child(4) i,
.stat-card:nth-child(4) i::after { animation-delay: 0.9s; }
.stat-card:nth-child(5) i,
.stat-card:nth-child(5) i::after { animation-delay: 1.2s; }

@keyframes stat-icon-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.08); }
}

@keyframes stat-icon-glow {
  0%, 100% { background: rgba(141, 198, 63, 0.12); box-shadow: none; }
  50% { background: rgba(141, 198, 63, 0.3); box-shadow: 0 0 18px 4px rgba(141, 198, 63, 0.35); }
}

@keyframes stat-icon-spin {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(-14deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes stat-ring-pulse {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

.stat-card strong {
  animation: stat-number-pop 2.5s ease-in-out infinite;
}

.stat-card:nth-child(2) strong { animation-delay: 0.2s; }
.stat-card:nth-child(3) strong { animation-delay: 0.4s; }
.stat-card:nth-child(4) strong { animation-delay: 0.6s; }
.stat-card:nth-child(5) strong { animation-delay: 0.8s; }

@keyframes stat-number-pop {
  0%, 85%, 100% { color: var(--negro); }
  92% { color: var(--verde); }
}

.stat-card strong {
  display: block;
  font-family: var(--fuente-titulo);
  font-size: 2.5rem;
  color: var(--negro);
}

.prefix-plus::before {
  content: "+";
}

.stat-card span {
  color: var(--gris-600);
  font-size: 0.9rem;
}

/* ---------- Tarjetas de servicio ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.service-card {
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  border-radius: var(--radio);
  padding: 34px 26px;
  transition: var(--transicion);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-fuerte);
  border-color: transparent;
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--verde-degradado);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--negro);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--gris-600);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.service-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--verde-oscuro);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transicion);
}

.service-card:hover .service-link {
  gap: 10px;
}

/* Servicios página detallada */
.service-detail {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--gris-200);
}


.service-detail:last-child {
  border-bottom: none;
}

#puerta-a-puerta.service-detail {
  grid-template-columns: 1.4fr 1fr;
}


.service-detail:nth-child(even) .service-detail-text {
  order: 2;
}

.service-detail-visual {
  background: var(--negro);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.service-detail-visual img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.service-detail:hover .service-detail-visual img {
  transform: scale(1.06);
}

.service-detail-visual i {
  font-size: 6rem;
  background: var(--verde-degradado);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-detail:hover .service-detail-visual i {
  transform: scale(1.15) rotate(-6deg);
}

.service-detail-visual {
  position: relative;
  overflow: hidden;
}

.service-detail-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(141, 198, 63, 0.18), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-detail:hover .service-detail-visual::after {
  opacity: 1;
}

.service-detail-text .numero {
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-size: 3rem;
  color: var(--gris-200);
  -webkit-text-stroke: 1px var(--verde);
  margin-bottom: 6px;
}

.service-detail-text h3 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.service-detail-text p {
  color: var(--gris-600);
  margin-bottom: 18px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--gris-800);
  font-size: 0.95rem;
}

.check-list i {
  color: var(--verde);
  margin-top: 4px;
}

/* ---------- Tipos de envío ---------- */
.package-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.package-card {
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  border-radius: var(--radio-sm);
  padding: 26px 16px;
  text-align: center;
  transition: var(--transicion);
}

.package-card:hover {
  border-color: transparent;
  box-shadow: var(--sombra);
  transform: translateY(-6px);
}

.package-card i {
  font-size: 1.7rem;
  color: var(--verde-oscuro);
  margin-bottom: 12px;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.package-card:hover i {
  transform: scale(1.2) rotate(-8deg);
}

.package-card h4 {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.package-card span {
  color: var(--gris-600);
  font-size: 0.78rem;
}

/* ---------- Tiempos de entrega (barras animadas) ---------- */
.delivery-times {
  display: grid;
  gap: 26px;
  max-width: 760px;
  margin: 0 auto;
}

.time-row {
  display: grid;
  grid-template-columns: 220px 1fr 90px;
  align-items: center;
  gap: 20px;
}

.time-row .time-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

.time-row .time-label i {
  color: var(--verde);
  font-size: 1.1rem;
}

.time-bar {
  height: 10px;
  border-radius: 50px;
  background: var(--gris-200);
  overflow: hidden;
}

.time-bar .bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 50px;
  background: var(--verde-degradado);
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.reveal.visible .time-bar .bar-fill {
  width: var(--w);
}

.time-row .time-value {
  text-align: right;
  font-weight: 700;
  font-family: var(--fuente-titulo);
  color: var(--verde-oscuro);
  font-size: 0.9rem;
}

/* ---------- Ruta de envío animada ---------- */
.route-tracker {
  padding-top: 10px;
}

.route-inner {
  position: relative;
}

.route-line-track {
  position: absolute;
  top: 38px;
  left: 80px;
  right: 80px;
  height: 4px;
  background: var(--gris-200);
  border-radius: 50px;
  z-index: 0;
  overflow: visible;
}

.route-line-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--verde-degradado);
  border-radius: 50px;
  animation: avanzarRuta 8s linear infinite;
}

@keyframes avanzarRuta {
  0% { width: 0%; }
  100% { width: 100%; }
}

.route-truck {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--negro);
  color: var(--verde-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--sombra-fuerte);
  animation: moverCamion 8s linear infinite;
  z-index: 2;
}

@keyframes moverCamion {
  0% { left: 0%; }
  100% { left: 100%; }
}

.route-stops {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.route-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 160px;
}

.stop-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blanco);
  border: 2px solid var(--gris-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--gris-400);
  margin-bottom: 16px;
  animation: iluminarNodo 8s ease-in-out infinite;
}

.route-stop h4 {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.route-stop span {
  color: var(--gris-600);
  font-size: 0.8rem;
}

.route-stop:nth-child(1) .stop-icon { animation-delay: -4s; }
.route-stop:nth-child(2) .stop-icon { animation-delay: -2s; }
.route-stop:nth-child(3) .stop-icon { animation-delay: 0s; }
.route-stop:nth-child(4) .stop-icon { animation-delay: -6s; }
.route-stop:nth-child(5) .stop-icon { animation-delay: -4s; }

@keyframes iluminarNodo {
  0%, 42%, 58%, 100% {
    background: var(--blanco);
    border-color: var(--gris-200);
    color: var(--gris-400);
    transform: scale(1);
  }
  50% {
    background: var(--verde-degradado);
    border-color: transparent;
    color: var(--negro);
    transform: scale(1.15);
  }
}

/* ---------- Garantías ---------- */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.guarantee-card {
  text-align: center;
  padding: 30px 20px;
}

.guarantee-card .icon-circle {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--gris-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--verde-oscuro);
  transition: var(--transicion);
}

.guarantee-card:hover .icon-circle {
  background: var(--verde-degradado);
  color: var(--negro);
  transform: rotate(360deg);
}

.guarantee-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.guarantee-card p {
  color: var(--gris-600);
  font-size: 0.88rem;
}

/* ---------- Por qué elegirnos ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.features-visual.photo-wrap .photo-frame {
  aspect-ratio: unset;
  background: var(--negro);
}

.features-visual .photo-real {
  height: auto;
  object-fit: unset;
}

.features-visual.photo-wrap .photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(141, 198, 63, 0.35), transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.features-visual .photo-placeholder i {
  color: var(--verde-claro);
}

.feature-list {
  display: grid;
  gap: 22px;
}

.feature-list.cols-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature-item .icon {
  min-width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gris-100);
  color: var(--verde-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.feature-item h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.feature-item p {
  color: var(--gris-600);
  font-size: 0.92rem;
}

/* ---------- Cómo funciona ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
}

.steps-grid::before {
  content: "";
  position: absolute;
  top: 55px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background-image: repeating-linear-gradient(to right, var(--verde) 0 10px, transparent 10px 22px);
  background-size: 22px 2px;
  z-index: 1;
  animation: steps-line-flow 0.6s linear infinite;
}

@keyframes steps-line-flow {
  to { background-position: 22px 0; }
}

.steps-progress-truck {
  position: absolute;
  top: 55px;
  left: 12.5%;
  transform: translate(-50%, -50%);
  color: var(--verde-oscuro);
  font-size: 1.4rem;
  z-index: 3;
  opacity: 0;
  animation: steps-truck-move 12s linear infinite;
}

@keyframes steps-truck-move {
  0% { left: 12.5%; opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  6% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  33.33% { left: 37.5%; }
  66.67% { left: 62.5%; }
  94% { opacity: 1; }
  100% { left: 87.5%; opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

.step-number {
  animation-duration: 12s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.step-card:nth-of-type(1) .step-number { animation-name: step-light-1; }
.step-card:nth-of-type(2) .step-number { animation-name: step-light-2; }
.step-card:nth-of-type(3) .step-number { animation-name: step-light-3; }
.step-card:nth-of-type(4) .step-number { animation-name: step-light-4; }

@keyframes step-light-1 {
  0%, 2%, 10%, 100% { box-shadow: none; border-color: var(--verde); background: var(--blanco); color: var(--verde-oscuro); }
  6% { box-shadow: 0 0 0 12px rgba(141, 198, 63, 0.4), 0 0 40px 14px rgba(141, 198, 63, 1); border-color: var(--verde-claro); background: var(--verde-degradado); color: var(--negro); }
}

@keyframes step-light-2 {
  0%, 29.33%, 37.33%, 100% { box-shadow: none; border-color: var(--verde); background: var(--blanco); color: var(--verde-oscuro); }
  33.33% { box-shadow: 0 0 0 12px rgba(141, 198, 63, 0.4), 0 0 40px 14px rgba(141, 198, 63, 1); border-color: var(--verde-claro); background: var(--verde-degradado); color: var(--negro); }
}

@keyframes step-light-3 {
  0%, 62.67%, 70.67%, 100% { box-shadow: none; border-color: var(--verde); background: var(--blanco); color: var(--verde-oscuro); }
  66.67% { box-shadow: 0 0 0 12px rgba(141, 198, 63, 0.4), 0 0 40px 14px rgba(141, 198, 63, 1); border-color: var(--verde-claro); background: var(--verde-degradado); color: var(--negro); }
}

@keyframes step-light-4 {
  0%, 90%, 98%, 100% { box-shadow: none; border-color: var(--verde); background: var(--blanco); color: var(--verde-oscuro); }
  94% { box-shadow: 0 0 0 12px rgba(141, 198, 63, 0.4), 0 0 40px 14px rgba(141, 198, 63, 1); border-color: var(--verde-claro); background: var(--verde-degradado); color: var(--negro); }
}

@media (max-width: 768px) {
  .steps-progress-truck { display: none; }
}

.step-card {
  text-align: center;
  padding: 20px;
  position: relative;
  transition: var(--transicion);
}

.step-card:hover {
  transform: translateY(-6px);
}

.step-number {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--blanco);
  border: 2px solid var(--verde);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--verde-oscuro);
  position: relative;
  z-index: 2;
  transition: var(--transicion);
}

.step-card:hover .step-number {
  animation-play-state: paused;
  transform: scale(1.15);
  background: var(--verde-degradado);
  border-color: transparent;
  color: var(--negro);
  box-shadow: 0 0 0 8px rgba(141, 198, 63, 0.18);
}

.step-card:hover i.step-icon {
  animation: step-icon-spin 0.6s ease-in-out;
}

@keyframes step-icon-spin {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(-12deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.step-number::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--verde);
  opacity: 0;
  animation: step-pulse 1.8s ease-out infinite;
}

.step-card:nth-of-type(2) .step-number::after { animation-delay: 0.3s; }
.step-card:nth-of-type(3) .step-number::after { animation-delay: 0.6s; }
.step-card:nth-of-type(4) .step-number::after { animation-delay: 0.9s; }

@keyframes step-pulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

.step-card h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.step-card p {
  color: var(--gris-600);
  font-size: 0.9rem;
}

.step-card i.step-icon {
  display: block;
  font-size: 1.4rem;
  color: var(--verde);
  margin-bottom: 10px;
  animation: step-icon-bounce 2.4s ease-in-out infinite;
}

.step-card:nth-of-type(2) i.step-icon { animation-delay: 0.2s; }
.step-card:nth-of-type(3) i.step-icon { animation-delay: 0.4s; }
.step-card:nth-of-type(4) i.step-icon { animation-delay: 0.6s; }

@keyframes step-icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 768px) {
  .steps-grid::before { display: none; }
}

/* ---------- Cobertura ---------- */
.coverage {
  background: var(--negro);
  color: var(--blanco);
  border-radius: var(--radio);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.coverage h2 {
  color: var(--blanco);
}

.coverage p {
  color: var(--gris-400);
  margin-bottom: 26px;
}

.coverage-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.coverage-cities span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.coverage-cities span i {
  color: var(--verde-claro);
}

.coverage-visual.photo-wrap .photo-frame {
  height: 320px;
  aspect-ratio: unset;
}

/* ---------- Testimonios ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial-card {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 32px 28px;
  box-shadow: var(--sombra);
}

/* Carrusel de testimonios */
.testimonial-carousel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.testimonial-track-outer {
  overflow: hidden;
  border-radius: var(--radio);
}

.testimonial-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

.testimonial-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 4px;
}

.testimonial-slide .testimonial-card {
  text-align: center;
  padding: 44px 40px;
  position: relative;
}

.testimonial-slide .testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 24px;
  font-family: Georgia, serif;
  font-size: 4.5rem;
  color: var(--gris-200);
  line-height: 1;
  z-index: 0;
}

.testimonial-slide .testimonial-card > * {
  position: relative;
  z-index: 1;
}

.testimonial-slide .testimonial-stars {
  justify-content: center;
  display: flex;
  gap: 3px;
}

.testimonial-slide .testimonial-author {
  justify-content: center;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  color: var(--negro);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transicion);
  flex-shrink: 0;
}

.carousel-arrow:hover {
  background: var(--verde-degradado);
  border-color: transparent;
  transform: scale(1.08);
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gris-200);
  padding: 0;
  transition: var(--transicion);
}

.carousel-dots .dot.active {
  background: var(--verde-degradado);
  width: 26px;
  border-radius: 50px;
}

.testimonial-stars {
  color: var(--verde);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.testimonial-card p {
  color: var(--gris-800);
  font-size: 0.95rem;
  margin-bottom: 22px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-author .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--verde-degradado);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fuente-titulo);
  font-weight: 700;
  color: var(--negro);
  position: relative;
  overflow: hidden;
}

.testimonial-author .avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
}

.testimonial-author span {
  color: var(--gris-600);
  font-size: 0.82rem;
}

/* ---------- CTA final ---------- */
.cta-banner {
  background: var(--verde-degradado);
  border-radius: var(--radio);
  padding: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  animation: brilloDeslizante 5s ease-in-out infinite;
}

@keyframes brilloDeslizante {
  0% { left: -60%; }
  40%, 100% { left: 130%; }
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.cta-banner p,
.cta-banner .btn {
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: var(--negro-suave);
  margin-top: 8px;
}

/* ---------- Nosotros: misión/visión/valores ---------- */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.mv-card {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 36px 28px;
  box-shadow: var(--sombra);
  text-align: center;
  transition: box-shadow 0.4s ease;
}

.mv-card-wrap:hover .mv-card {
  box-shadow: var(--sombra-fuerte);
}

@keyframes mv-card-spin-in {
  from { transform: perspective(1200px) rotateY(0deg); }
  to { transform: perspective(1200px) rotateY(360deg); }
}

@keyframes mv-card-spin-out {
  from { transform: perspective(1200px) rotateY(360deg); }
  to { transform: perspective(1200px) rotateY(0deg); }
}

.mv-grid .mv-card.spin-in {
  animation: mv-card-spin-in 1s ease forwards;
}

.mv-grid .mv-card.spin-out {
  animation: mv-card-spin-out 1s ease forwards;
}

.mv-card i {
  font-size: 2.2rem;
  color: var(--verde);
  margin-bottom: 18px;
}

.mv-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.mv-card p {
  color: var(--gris-600);
  font-size: 0.93rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.value-item {
  text-align: center;
  padding: 22px 14px;
  border-radius: var(--radio-sm);
  background: var(--gris-100);
  transition: var(--transicion);
}

.value-item:hover {
  background: var(--negro);
  color: var(--blanco);
}

.value-item:hover i {
  color: var(--verde-claro);
}

.value-item i {
  font-size: 1.6rem;
  color: var(--verde-oscuro);
  margin-bottom: 10px;
  display: block;
}

.value-item h4 {
  font-size: 0.95rem;
  color: inherit;
}

/* Historia / timeline sencillo */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-hero-visual .photo-placeholder i {
  color: var(--verde);
}

.about-hero-text p {
  color: var(--gris-600);
  margin-bottom: 16px;
}

/* ---------- Video institucional / infografías ---------- */
.video-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.video-wrap-outer {
  display: flex;
  justify-content: center;
}

.video-wrap {
  position: relative;
  display: inline-block;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-fuerte);
  background: var(--negro);
  line-height: 0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.video-wrap:hover {
  transform: scale(1.04);
  box-shadow: 0 30px 60px rgba(22, 22, 22, 0.28);
}

.video-sound-toggle {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.7);
  backdrop-filter: blur(4px);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 2;
  transition: var(--transicion);
}

.video-sound-toggle:hover {
  background: var(--verde-degradado);
  color: var(--negro);
  transform: scale(1.08);
}

.video-wrap video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
}

.video-wrap-outer.big {
  max-width: 980px;
  margin: 0 auto;
}

.video-wrap-outer.big .video-wrap video {
  max-height: 78vh;
}

.infographic-frame {
  max-width: 1140px;
  margin: 0 auto;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-fuerte);
  transition: var(--transicion);
  border: 10px solid var(--negro);
  background: var(--negro);
}

.infographic-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(22, 22, 22, 0.22);
}

.infographic-frame img {
  width: 100%;
  display: block;
}

/* ---------- Presencia en Colombia (galería de ciudades) ---------- */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.more-cities {
  margin-top: 34px;
  text-align: center;
}

.more-cities-title {
  color: var(--gris-600);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.more-cities .coverage-cities {
  justify-content: center;
}

.more-cities .coverage-cities span {
  background: var(--blanco);
  border-color: var(--gris-200);
  color: var(--negro);
}

.more-cities .coverage-cities span i {
  color: var(--verde);
}

.more-cities-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin-top: 8px;
}

.more-cities-grid .city-card {
  flex: 0 1 calc(33.333% - 18px);
  min-width: 0;
}

.city-card.small .photo-frame {
  height: 170px;
}

.city-card.small .city-label {
  padding: 14px 16px;
  gap: 12px;
}

.city-card.small .city-label i {
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
}

.city-card.small .city-label strong {
  font-size: 0.98rem;
}

.more-cities-extra {
  text-align: center;
  color: var(--gris-600);
  font-weight: 600;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.more-cities-extra i {
  color: var(--verde);
}

@media (max-width: 900px) {
  .more-cities-grid .city-card {
    flex-basis: calc(50% - 13px);
  }
}

@media (max-width: 560px) {
  .more-cities-grid .city-card {
    flex-basis: 100%;
  }
}

/* ---------- Burbujas de fotos ---------- */
.photo-bubbles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin-top: 50px;
}

.photo-bubble {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--blanco);
  box-shadow: var(--sombra-fuerte);
  animation: flotar 4.5s ease-in-out infinite;
  transition: var(--transicion);
}

.photo-bubble:hover {
  transform: scale(1.08);
  border-color: var(--verde-claro);
}

.photo-bubble:nth-child(2) { animation-delay: 0.5s; }
.photo-bubble:nth-child(3) { animation-delay: 1s; }
.photo-bubble:nth-child(4) { animation-delay: 1.5s; }
.photo-bubble:nth-child(5) { animation-delay: 2s; }

.photo-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Pasarela de imágenes ---------- */
.image-carousel {
  overflow: hidden;
  margin-top: 46px;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.image-carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: carousel-scroll 30s linear infinite;
}

.image-carousel:hover .image-carousel-track {
  animation-play-state: paused;
}

.image-carousel-track img {
  width: 260px;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  flex-shrink: 0;
}

@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .photo-bubble { width: 88px; height: 88px; }
  .image-carousel-track img { width: 190px; height: 130px; }
}

.city-card .photo-frame {
  height: 220px;
  aspect-ratio: unset;
  border-radius: var(--radio) var(--radio) 0 0;
  box-shadow: none;
}

.city-label {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  border-top: none;
  border-radius: 0 0 var(--radio) var(--radio);
  padding: 18px 20px;
  box-shadow: var(--sombra);
}

.city-card:hover .photo-real {
  transform: scale(1.1);
}

.city-label i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--verde-degradado);
  color: var(--negro);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: flotar 3.5s ease-in-out infinite;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.city-label strong {
  display: block;
  font-size: 1rem;
}

.city-label span {
  color: var(--gris-600);
  font-size: 0.85rem;
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

/* Canales de contacto rápido */
.quick-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.quick-contact-card {
  display: block;
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  border-radius: var(--radio);
  padding: 32px 26px;
  text-align: center;
  transition: var(--transicion);
  position: relative;
  overflow: hidden;
}

.quick-contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--verde-degradado);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.quick-contact-card:hover::before {
  transform: scaleX(1);
}

.quick-contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-fuerte);
}

.qc-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--verde-degradado);
  color: var(--negro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  position: relative;
  transition: var(--transicion);
}

.quick-contact-card:hover .qc-icon {
  transform: scale(1.1) rotate(-6deg);
}

.quick-contact-card h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.quick-contact-card span {
  color: var(--gris-600);
  font-size: 0.88rem;
}

.qc-icon .ping {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--verde);
  opacity: 0;
  transform: scale(0.85);
}

.quick-contact-card:hover .ping {
  animation: pingContacto 1.1s ease-out infinite;
}

@keyframes pingContacto {
  0% { opacity: 0.6; transform: scale(0.85); }
  100% { opacity: 0; transform: scale(1.3); }
}

/* Foto de contacto */
.contact-photo-wrap {
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  height: 200px;
  margin-bottom: 24px;
  box-shadow: var(--sombra);
}

.contact-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
  transition: transform 0.6s ease;
}

.contact-photo-wrap:hover img {
  transform: scale(1.05);
}

.contact-photo-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(22, 22, 22, 0.85), transparent);
  color: var(--blanco);
  padding: 30px 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-photo-caption i {
  color: var(--verde-claro);
}

/* Meta información (dirección / horario) */
.contact-meta {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--gris-800);
}

.contact-meta-item i {
  color: var(--verde-oscuro);
  font-size: 1.1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--gris-100);
  color: var(--gris-600);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gris-400);
}

.status-badge.abierto {
  background: rgba(141, 198, 63, 0.15);
  color: var(--verde-oscuro);
}

.status-badge.abierto .status-dot {
  background: var(--verde);
  animation: pulsoEstado 1.6s ease-in-out infinite;
}

.status-badge.cerrado {
  background: rgba(214, 69, 69, 0.1);
  color: #b23c3c;
}

.status-badge.cerrado .status-dot {
  background: #d64545;
}

@keyframes pulsoEstado {
  0%, 100% { box-shadow: 0 0 0 0 rgba(141, 198, 63, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(141, 198, 63, 0); }
}

/* Mapa con marco decorativo */
.map-wrap {
  position: relative;
  isolation: isolate;
  margin-bottom: 50px;
}

.map-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-fuerte);
  height: 320px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.9) contrast(1.05);
  transition: filter 0.5s ease;
}

.map-frame:hover iframe {
  filter: grayscale(0);
}

.map-card {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: -26px;
  background: var(--blanco);
  border-radius: 14px;
  box-shadow: var(--sombra-fuerte);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.map-card strong {
  display: block;
  font-size: 0.95rem;
}

.map-card span {
  color: var(--gris-600);
  font-size: 0.82rem;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.82rem;
}

.contact-form {
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  border-radius: var(--radio);
  padding: 40px;
  box-shadow: var(--sombra);
  position: relative;
}

.form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.form-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gris-100);
  color: var(--verde-oscuro);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 50px;
  white-space: nowrap;
}

.form-badge i {
  color: var(--verde);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--negro-suave);
}

.form-group .field-icon {
  position: absolute;
  left: 16px;
  top: 56px;
  transform: translateY(-50%);
  color: var(--gris-400);
  font-size: 0.95rem;
  transition: var(--transicion);
  pointer-events: none;
}

.form-group:focus-within .field-icon {
  color: var(--verde);
}

.form-group.with-icon input,
.form-group.with-icon select {
  padding-left: 42px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gris-200);
  border-radius: var(--radio-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--negro);
  background: var(--gris-100);
  transition: var(--transicion);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--verde);
  background: var(--blanco);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-error {
  color: #d64545;
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}

.form-group.invalid input,
.form-group.invalid textarea,
.form-group.invalid select {
  border-color: #d64545;
}

.form-group.invalid .form-error {
  display: block;
}

.form-success {
  display: none;
  background: #eaf6d8;
  color: var(--verde-oscuro);
  padding: 16px 20px;
  border-radius: var(--radio-sm);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.92rem;
  align-items: center;
  gap: 10px;
}

.form-success.show {
  display: flex;
}

/* ---------- Modal de éxito al enviar el formulario ---------- */
.success-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 8, 0.72);
  backdrop-filter: blur(3px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.success-modal-overlay.show {
  display: flex;
  animation: modal-fade-in 0.25s ease;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.success-modal-card {
  position: relative;
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 44px 40px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--sombra-fuerte);
  animation: modal-pop-in 0.35s ease;
}

@keyframes modal-pop-in {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.success-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gris-200);
  color: var(--negro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transicion);
}

.success-modal-close:hover {
  background: var(--verde-degradado);
  color: var(--blanco);
  transform: rotate(90deg);
}

.success-modal-logo {
  width: 130px;
  margin: 0 auto 18px;
  display: block;
}

.success-modal-card h3 {
  color: var(--verde);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.success-modal-card p {
  color: var(--gris-600);
  font-size: 0.98rem;
}

.success-modal-arrow {
  color: var(--verde);
  font-size: 1.3rem;
  margin: 14px 0;
  animation: modal-arrow-bounce 1.4s ease-in-out infinite;
}

@keyframes modal-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.success-modal-footer {
  font-weight: 700;
  color: var(--negro);
  font-size: 1.05rem;
}

/* ---------- Cotizador / rastreador embebidos en Contacto ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tool-card {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra-fuerte);
  overflow: hidden;
  scroll-margin-top: 110px;
}

.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 20px;
  background: var(--negro);
  color: var(--blanco);
  font-weight: 700;
  font-size: 0.98rem;
}

.tool-card-header i {
  color: var(--verde);
  font-size: 1.05rem;
}

.tool-card iframe {
  width: 100%;
  height: 640px;
  border: none;
  display: block;
  background: var(--gris-100);
}

.tool-tab-fallback {
  text-align: right;
  padding: 8px 16px;
  font-size: 0.82rem;
  color: var(--gris-600);
  background: var(--gris-100);
  border-bottom: 1px solid var(--gris-200);
}

.tool-tab-fallback a {
  color: var(--verde-oscuro);
  font-weight: 700;
}

.tool-tab-fallback a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tool-card iframe {
    height: 560px;
  }
}

/* ---------- FAQ (contacto) ---------- */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--gris-100);
  border-radius: var(--radio-sm);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.faq-question i {
  color: var(--verde-oscuro);
  transition: var(--transicion);
}

.faq-item.open .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 22px;
}

.faq-item.open .faq-answer {
  max-height: 220px;
  padding: 0 22px 20px;
}

.faq-answer p {
  color: var(--gris-600);
  font-size: 0.9rem;
}

/* ---------- Sistema de fotografías con marco y acento ---------- */
.photo-wrap {
  position: relative;
  isolation: isolate;
}

.photo-accent {
  position: absolute;
  inset: 0;
  transform: translate(20px, 20px);
  background: var(--verde-degradado);
  border-radius: var(--radio);
  z-index: 0;
}

.photo-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-fuerte);
  aspect-ratio: 4 / 5;
  background: var(--gris-200);
}

.photo-frame.wide {
  aspect-ratio: 16 / 10;
}

.photo-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.photo-wrap:hover .photo-real {
  transform: scale(1.06);
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  background:
    repeating-linear-gradient(
      45deg,
      var(--gris-100),
      var(--gris-100) 12px,
      var(--gris-200) 12px,
      var(--gris-200) 24px
    );
  color: var(--gris-600);
}

.photo-placeholder i {
  font-size: 2.4rem;
  color: var(--verde);
}

.photo-placeholder span {
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 12px;
  border-radius: 50px;
  font-family: "Courier New", monospace;
}

.photo-badge {
  position: absolute;
  z-index: 2;
  bottom: -22px;
  left: -22px;
  background: var(--negro);
  color: var(--blanco);
  padding: 16px 22px;
  border-radius: 14px;
  box-shadow: var(--sombra-fuerte);
  display: flex;
  align-items: center;
  gap: 12px;
}

.photo-badge.right {
  left: auto;
  right: -22px;
}

.photo-badge.top {
  bottom: auto;
  top: -22px;
}

.photo-badge i {
  font-size: 1.4rem;
  color: var(--verde-claro);
}

.photo-badge strong {
  display: block;
  font-family: var(--fuente-titulo);
  font-size: 1.15rem;
  line-height: 1.1;
}

.photo-badge span {
  font-size: 0.78rem;
  color: var(--gris-400);
}

/* ---------- Divisores de sección tipo onda ---------- */
.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 64px;
}

.wave-divider path {
  fill: var(--gris-100);
}

.wave-divider.fill-white path {
  fill: var(--blanco);
}

.trust-strip {
  position: relative;
}

/* ---------- Acento superior en tarjetas al hacer hover ---------- */
.service-card,
.package-card,
.guarantee-card,
.mv-card {
  position: relative;
}

.service-card::before,
.package-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--verde-degradado);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  border-radius: var(--radio) var(--radio) 0 0;
}

.service-card:hover::before,
.package-card:hover::before {
  transform: scaleX(1);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--negro);
  color: var(--gris-400);
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo img {
  height: 42px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.footer-about p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transicion);
}

.footer-social a:hover {
  background: var(--verde);
  color: var(--negro);
}

.footer h4 {
  color: var(--blanco);
  font-size: 1rem;
  margin-bottom: 22px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transicion);
}

.footer-links a:hover {
  color: var(--verde-claro);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  align-items: flex-start;
}

.footer-contact i {
  color: var(--verde-claro);
  margin-top: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a:hover {
  color: var(--verde-claro);
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-credit img {
  height: 20px;
  width: auto;
}

.footer-credit .signature {
  font-family: "Great Vibes", cursive;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--verde-claro);
  margin-left: 2px;
  transition: var(--transicion);
}

.footer-credit:hover .signature {
  color: var(--blanco);
}

/* ---------- Botón volver arriba ---------- */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--verde-degradado);
  color: var(--negro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--sombra-fuerte);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transicion);
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Página interna: banner de encabezado ---------- */
.page-banner {
  background: var(--negro);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--blanco);
  padding: 170px 0 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 11, 8, 0.75) 0%, rgba(10, 11, 8, 0.55) 45%, rgba(10, 11, 8, 0.92) 100%);
}

.pb-servicios::before,
.pb-cobertura::before,
.pb-nosotros::before,
.pb-contacto::before {
  background: none;
}

.pb-servicios { background-image: url("../imagenes/hero-mensajero.jpg"); background-position: center 60%; padding-top: 220px; padding-bottom: 320px; }
.pb-servicios .container,
.pb-cobertura .container,
.pb-nosotros .container,
.pb-contacto .container {
  display: flex;
  justify-content: center;
}
.pb-servicios .banner-text-panel,
.pb-cobertura .banner-text-panel,
.pb-nosotros .banner-text-panel,
.pb-contacto .banner-text-panel {
  text-align: center;
  max-width: 560px;
  background: rgba(10, 11, 8, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radio);
  padding: 34px 40px;
  backdrop-filter: blur(3px);
}
.pb-servicios .banner-text-panel .breadcrumb,
.pb-cobertura .banner-text-panel .breadcrumb,
.pb-nosotros .banner-text-panel .breadcrumb,
.pb-contacto .banner-text-panel .breadcrumb {
  justify-content: center;
}
.pb-nosotros { background-image: url("../imagenes/banner-nosotros-equipo.jpg"); background-position: center 80%; padding-top: 170px; padding-bottom: 340px; }
.pb-contacto { background-image: url("../imagenes/equipo-encolombia.jpg"); background-position: center 42%; padding-top: 170px; padding-bottom: 280px; }
.pb-cobertura { background-image: url("../imagenes/encolombia-sede.jpg"); background-position: center 25%; padding-top: 110px; padding-bottom: 250px; }

/* ---------- Mapa de cobertura animado ---------- */
#mapa-cobertura {
  scroll-margin-top: 100px;
}

.coverage-map {
  background: var(--negro);
  border-radius: var(--radio);
  padding: 30px;
  overflow: hidden;
}

.coverage-map-inner {
  position: relative;
  width: 1264px;
  height: 843px;
  transform-origin: top left;
  border-radius: var(--radio);
  overflow: hidden;
  background-image: url("../imagenes/encolombia-mapa.jpg");
  background-size: cover;
  background-position: center;
}

.coverage-map-svg {
  position: absolute;
  inset: 0;
  width: 1264px;
  height: 843px;
  overflow: visible;
}

.radar-ring {
  fill: none;
  stroke: rgba(141, 198, 63, 0.15);
  stroke-width: 1.5;
}

.route-line {
  fill: none;
  stroke: rgba(141, 198, 63, 0.45);
  stroke-width: 2.5;
  stroke-dasharray: 7 7;
  animation: dash-flow 1s linear infinite;
}

@keyframes dash-flow {
  to { stroke-dashoffset: -14; }
}

.map-truck {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--verde-claro);
  font-size: 1.05rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
  offset-rotate: auto;
  animation: map-travel 7s linear infinite;
}

@keyframes map-travel {
  0% { offset-distance: 0%; opacity: 0; }
  6% { opacity: 1; }
  94% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.map-node {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.map-dot {
  display: block;
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}

.map-node-label {
  position: absolute;
  left: 50%;
  bottom: 135%;
  transform: translateX(-50%) translateY(8px);
  text-align: center;
  white-space: nowrap;
  color: var(--blanco);
  font-size: 0.78rem;
  line-height: 1.3;
  background: rgba(10, 11, 8, 0.92);
  border: 1px solid rgba(141, 198, 63, 0.45);
  border-radius: 10px;
  padding: 8px 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.map-node:hover .map-node-label,
.map-node:focus-within .map-node-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.map-node-label strong {
  display: block;
  font-family: var(--fuente-titulo);
  font-size: 0.85rem;
}

.map-node-label span {
  color: var(--verde-claro);
  font-size: 0.72rem;
}

.map-node.hub .map-dot {
  width: 40px;
  height: 40px;
}

.map-node.hub .map-dot::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--blanco);
  animation: pulse-hub 2s ease-in-out infinite;
}

@keyframes pulse-hub {
  0%, 100% { box-shadow: 0 0 0 8px rgba(141, 198, 63, 0.25), 0 0 16px 4px rgba(141, 198, 63, 0.5); }
  50% { box-shadow: 0 0 0 14px rgba(141, 198, 63, 0.12), 0 0 20px 6px rgba(141, 198, 63, 0.7); }
}

.coverage-map-hint {
  display: none;
  text-align: center;
  color: var(--gris-400);
  font-size: 0.82rem;
  margin-top: 14px;
}

@media (max-width: 940px) {
  .coverage-map-hint { display: block; }
}

.page-banner .container {
  position: relative;
}

.page-banner h1 {
  color: var(--blanco);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 12px;
}

.breadcrumb {
  display: inline-flex;
  gap: 8px;
  color: var(--gris-400);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--gris-400);
  transition: var(--transicion);
}

.breadcrumb a:hover {
  color: var(--verde-claro);
}

.breadcrumb span {
  color: var(--verde-claro);
}

.page-banner .blob-1 { width: 260px; height: 260px; top: -70px; right: -30px; }
.page-banner .blob-2 { width: 200px; height: 200px; bottom: -70px; left: -30px; }

/* ---------- Animaciones de aparición ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Pantalla de carga (preloader) ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--negro);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloader img {
  height: 52px;
  filter: brightness(0) invert(1);
  animation: preloaderPulso 1.4s ease-in-out infinite;
}

.preloader-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(141, 198, 63, 0.2);
  border-top-color: var(--verde-claro);
  animation: girar 0.9s linear infinite;
}

@keyframes preloaderPulso {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.94); }
}

@keyframes girar {
  to { transform: rotate(360deg); }
}

/* ---------- Barra de progreso de scroll ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--verde-degradado);
  z-index: 2000;
  transition: width 0.1s ease-out;
}

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  left: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #79b62f;
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 12px 28px rgba(141, 198, 63, 0.4);
  z-index: 900;
  transition: var(--transicion);
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #79b62f;
  animation: ondaWhatsapp 2.2s ease-out infinite;
  z-index: -1;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 16px 34px rgba(141, 198, 63, 0.4);
}

.whatsapp-tooltip {
  position: absolute;
  left: 68px;
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: var(--negro);
  color: var(--blanco);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transicion);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@keyframes ondaWhatsapp {
  0% { box-shadow: 0 0 0 0 rgba(141, 198, 63, 0.4); }
  100% { box-shadow: 0 0 0 22px rgba(37, 211, 102, 0); }
}

/* ---------- Efecto ripple en botones ---------- */
.btn {
  position: relative;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* ---------- Tilt 3D en tarjetas ---------- */
.tilt {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
}

/* ---------- Formas decorativas animadas (blobs) ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: flotarBlob 9s ease-in-out infinite;
}

.blob-verde {
  background: var(--verde-claro);
}

.blob-oscuro {
  background: var(--verde-oscuro);
  animation-delay: -3s;
}

@keyframes flotarBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -30px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero .blob-1 { width: 320px; height: 320px; top: -80px; right: 5%; }
.hero .blob-2 { width: 240px; height: 240px; bottom: -60px; left: 8%; }

.coverage { position: relative; overflow: hidden; }
.coverage .blob-1 { width: 260px; height: 260px; top: -60px; left: -40px; }

.testimonials-wrap { position: relative; }
.testimonials-wrap .blob-1 { width: 300px; height: 300px; top: 10%; right: -60px; opacity: 0.18; }

/* Asegurar que el contenido quede sobre los blobs */
.hero .container,
.coverage > div,
.testimonials-wrap .container {
  position: relative;
  z-index: 1;
}

/* ---------- Ticker / marquee de la franja de confianza ---------- */
.trust-strip {
  overflow: hidden;
  position: relative;
}

.trust-strip .container {
  display: none;
}

.trust-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: desplazarTicker 22s linear infinite;
  padding: 20px 0;
}

.trust-strip:hover .trust-track {
  animation-play-state: paused;
}

.trust-track span {
  color: var(--gris-400);
  font-family: var(--fuente-titulo);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  white-space: nowrap;
}

.trust-track span i {
  color: var(--verde-claro);
  margin-right: 8px;
}

@keyframes desplazarTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Franja de clientes (deslizante) ---------- */
.clients-strip {
  background: var(--blanco);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--gris-200);
  padding-top: 22px;
}

.clients-label {
  text-align: center;
  color: var(--gris-600);
  font-family: var(--fuente-titulo);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.clients-label i {
  color: var(--verde);
  margin-right: 8px;
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 70px;
  width: max-content;
  animation: desplazarTicker 42s linear infinite;
  padding: 20px 0;
}

.clients-strip:hover .clients-track {
  animation-play-state: paused;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  height: 50px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.client-logo:hover img {
  transform: scale(1.45);
}

/* ---------- Números de servicio con gradiente animado ---------- */
.numero {
  background: var(--verde-degradado);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-stroke: unset !important;
  animation: degradadoMovido 4s ease infinite;
}

@keyframes degradadoMovido {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Indicador de scroll en el hero ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gris-400);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: rebotarScroll 2.2s ease-in-out infinite;
  z-index: 1;
}

.scroll-indicator i {
  color: var(--verde-claro);
}

@keyframes rebotarScroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    margin-bottom: 30px;
  }
  .hero-text {
    grid-template-columns: 1fr;
  }
  .hero-stats-card {
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
  }
  .hero-stats-card .stat-row {
    flex-direction: column;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features,
  .about-hero,
  .coverage,
  .video-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .features-visual,
  .about-hero-visual {
    order: -1;
  }
  .quick-contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .features-visual.photo-wrap .photo-frame {
    height: 300px;
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mv-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .service-detail {
    grid-template-columns: 1fr;
  }
  .service-detail:nth-child(even) .service-detail-text {
    order: 0;
  }
  .package-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .route-tracker {
    overflow-x: auto;
    padding-bottom: 14px;
  }
  .route-inner {
    min-width: 640px;
  }
  .guarantee-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .time-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .time-row .time-label {
    justify-content: center;
  }
  .time-row .time-value {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .topbar { display: none; }

  .pb-servicios .container,
  .pb-cobertura .container,
  .pb-nosotros .container,
  .pb-contacto .container { justify-content: center; }
  .pb-servicios .banner-text-panel,
  .pb-cobertura .banner-text-panel,
  .pb-nosotros .banner-text-panel,
  .pb-contacto .banner-text-panel { max-width: 100%; text-align: center; }
  .pb-servicios .banner-text-panel .breadcrumb,
  .pb-cobertura .banner-text-panel .breadcrumb,
  .pb-nosotros .banner-text-panel .breadcrumb,
  .pb-contacto .banner-text-panel .breadcrumb { justify-content: center; }

  .pb-servicios,
  .pb-nosotros,
  .pb-contacto,
  .pb-cobertura {
    padding-top: 130px;
    padding-bottom: 80px;
  }

  .hero::before {
    background: linear-gradient(to bottom, transparent 0, transparent 36vw, rgba(10, 11, 8, 0.65) 39vw, var(--negro) 44vw);
  }

  #puerta-a-puerta.service-detail {
    grid-template-columns: 1fr;
  }

  .feature-list.cols-3 {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(320px, 80%);
    background: var(--blanco);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 40px 30px;
    transition: right 0.35s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    width: 100%;
    padding: 14px 18px;
  }

  .nav-actions .btn-primary,
  .nav-actions .btn-track {
    display: none;
  }

  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }

  .overlay.active {
    display: block;
  }

  .section {
    padding: 60px 0;
  }

  .services-grid,
  .stats-grid,
  .steps-grid,
  .testimonials-grid,
  .mv-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .package-grid,
  .guarantee-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .quick-contact-grid {
    grid-template-columns: 1fr;
  }

  .cities-grid {
    grid-template-columns: 1fr;
  }

  .map-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .form-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 28px;
  }

  .coverage {
    padding: 36px 24px;
  }

  .photo-badge {
    left: 12px;
    bottom: -18px;
    padding: 12px 16px;
  }

  .photo-badge.right {
    right: 12px;
  }

  .photo-accent {
    transform: translate(12px, 12px);
  }

  .wave-divider svg {
    height: 44px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 24px;
  }
  .trust-strip .container {
    justify-content: center;
  }
  .photo-badge strong {
    font-size: 1rem;
  }
  .testimonial-slide .testimonial-card {
    padding: 34px 22px;
  }
  .testimonial-slide .testimonial-card::before {
    font-size: 3.2rem;
    left: 14px;
  }
}
