/* ─────────────────────────────────────────────────────────────
   Animaciones y escena de transporte — Multimodal Ortiz
   ───────────────────────────────────────────────────────────── */
:root { --azul-vivo: #2b6cd0; --azul-luz: #7fb2ff; --noche: #061a3a; }

/* ── Barra superior: se compacta al hacer scroll ─────────────── */
.barra__in { transition: height .25s ease; }
.barra.con-sombra .barra__in { height: 64px; }
.barra.con-sombra .barra__logo img { height: 44px; }
.barra__logo img { transition: height .25s ease; }
.barra__nav a { position: relative; }
.barra__nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 3px; background: var(--azul); transform: skewX(-20deg); transition: right .25s ease; }
.barra__nav a:hover::after { right: 0; }

/* ── Botón con destello ─────────────────────────────────────── */
.btn--azul { position: relative; overflow: hidden; isolation: isolate; }
.btn--azul::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s ease; z-index: -1; }
.btn--azul:hover::after { left: 130%; }

/* ── HERO oscuro ────────────────────────────────────────────── */
.hero { background: linear-gradient(160deg, var(--noche) 0%, #0b2f63 55%, #164a8f 115%); color: #c9d8ee; padding: 64px 0 300px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--azul-luz); }
.hero .sobre { color: #8db6f0; }
.hero__bajada { color: #c3d3ea; }
.hero .btn--azul { background: var(--azul-vivo); box-shadow: 0 10px 30px rgba(43,108,208,.45); }
.hero .btn--azul:hover { background: #3a7be0; }
.hero .btn--linea { border-color: rgba(255,255,255,.7); color: #fff; }
.hero .btn--linea:hover { background: #fff; color: var(--azul-profundo); }
.hero__tarjeta { border: 0; box-shadow: 0 30px 70px rgba(0,0,0,.35); position: relative; z-index: 2; }
.rapida i { transition: transform .2s ease; }
.rapida:hover i { transform: translateX(5px); }
.rapida:hover svg { animation: sacude .5s ease; }
@keyframes sacude { 30% { transform: translateX(3px) rotate(-4deg); } 60% { transform: translateX(-2px) rotate(2deg); } }

/* Entrada del hero */
.hero__texto > * { animation: entra .8s cubic-bezier(.2,.7,.2,1) both; }
.hero__texto > :nth-child(2) { animation-delay: .1s; }
.hero__texto > :nth-child(3) { animation-delay: .25s; }
.hero__texto > :nth-child(4) { animation-delay: .4s; }
.hero__tarjeta { animation: entra 1s .35s cubic-bezier(.2,.7,.2,1) both; }
@keyframes entra { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Líneas de velocidad */
.vientos { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.vientos i { position: absolute; right: -300px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(127,178,255,.55)); animation: viento 3.2s linear infinite; }
.vientos i:nth-child(1) { top: 14%; width: 220px; animation-duration: 2.6s; }
.vientos i:nth-child(2) { top: 31%; width: 140px; animation-duration: 3.4s; animation-delay: -1.2s; }
.vientos i:nth-child(3) { top: 47%; width: 300px; animation-duration: 2.2s; animation-delay: -.5s; }
.vientos i:nth-child(4) { top: 58%; width: 120px; animation-duration: 3.8s; animation-delay: -2.4s; }
.vientos i:nth-child(5) { top: 22%; width: 180px; animation-duration: 4.2s; animation-delay: -3s; }
.vientos i:nth-child(6) { top: 66%; width: 260px; animation-duration: 2.9s; animation-delay: -1.8s; }
@keyframes viento { from { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } to { transform: translateX(calc(-100vw - 600px)); opacity: .2; } }

/* ── Escena: puerto, grúa, barco y carretera ────────────────── */
.escena { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; pointer-events: none; z-index: 1; }
.puerto { position: absolute; right: 0; bottom: 36px; height: 220px; width: auto; max-width: 100%; }
.carretera { position: absolute; left: 0; right: 0; bottom: 0; height: 38px; background: #0d0d0f; border-top: 3px solid var(--azul-vivo); }
.carretera::before { top: 16px; }
.carro { animation: carro 9s ease-in-out infinite; }
.gancho { animation: gancho 9s ease-in-out infinite; }
@keyframes carro {
  0%, 12% { transform: translateX(-67px); }
  42%, 62% { transform: translateX(209px); }
  90%, 100% { transform: translateX(-67px); }
}
@keyframes gancho {
  0% { transform: translateY(37px); }
  10%, 42% { transform: translateY(0); }
  52%, 56% { transform: translateY(27px); }
  64%, 90% { transform: translateY(0); }
  100% { transform: translateY(37px); }
}
.barco { animation: flota 3.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center bottom; }
@keyframes flota { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(3px) rotate(.6deg); } }
.olas { animation: olas 3s linear infinite; }
@keyframes olas { to { stroke-dashoffset: -64; } }
.baliza { animation: parpadea 1.4s steps(2, end) infinite; }
@keyframes parpadea { 50% { opacity: .15; } }

/* Tráileres en la carretera */
.camiones { position: absolute; inset: 0; }
.camion { position: absolute; left: 0; bottom: 12px; width: 240px; animation: conduce 13s linear infinite; will-change: transform; }
.camion svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); }
.camion--b { width: 200px; bottom: 16px; animation-duration: 10s; animation-delay: -6s; }
.camion--regresa { bottom: 20px; width: 150px; opacity: .55; animation-name: regresa; animation-duration: 16s; animation-delay: -3s; z-index: -1; }
.camion--regresa svg { transform: scaleX(-1); }
@keyframes conduce { from { transform: translateX(-280px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes regresa { from { transform: translateX(calc(100vw + 40px)); } to { transform: translateX(-280px); } }
.rueda { animation: gira .55s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ── Franja y cinta de servicios ────────────────────────────── */
.franja { position: relative; z-index: 2; box-shadow: 0 18px 40px rgba(11,47,99,.18); }
.franja li { transition: background .2s; }
.franja li:hover { background: rgba(255,255,255,.08); }
.cinta { background: var(--negro); overflow: hidden; padding: 18px 0; margin-top: 64px; }
.cinta__pista { display: flex; width: max-content; animation: cinta 38s linear infinite; }
.cinta span { display: flex; align-items: center; gap: 26px; padding-right: 26px; color: #fff; font-size: clamp(1.1rem, 2.4vw, 1.7rem); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.cinta span:nth-child(even) { color: var(--azul-luz); }
.cinta span::after { content: ""; width: 26px; height: 8px; background: var(--azul-vivo); transform: skewX(-25deg); }
.cinta:hover .cinta__pista { animation-play-state: paused; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ── Tarjetas de servicio con íconos animados ───────────────── */
.servicio { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; }
.servicio.visible:hover, .servicio:not(.revela):hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(11,47,99,.16); }
.servicio__cab { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.servicio__cab .servicio__num { margin: 0; }
.ico { width: 78px; height: 56px; color: var(--azul); overflow: visible; }
.ico--camion { animation: rebota 1.1s ease-in-out infinite; }
.ico--camion .rueda { animation-duration: 1.2s; }
.servicio:hover .ico--camion .rueda { animation-duration: .3s; }
.servicio:hover .ico--camion { animation-duration: .45s; }
@keyframes rebota { 50% { transform: translateY(-2px); } }
.ico-gancho { animation: subebaja 2.6s ease-in-out infinite alternate; }
.servicio:hover .ico-gancho { animation-duration: 1s; }
@keyframes subebaja { from { transform: translateY(-4px); } to { transform: translateY(10px); } }
.ico--globo { width: 56px; height: 56px; }
.meridiano { animation: meridiano 4s linear infinite; transform-box: fill-box; transform-origin: center; }
.meridiano--2 { animation-delay: -2s; }
@keyframes meridiano { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
.orbita { animation: orbita 5s linear infinite; transform-origin: 30px 30px; }
.servicio:hover .orbita { animation-duration: 2s; }
@keyframes orbita { to { transform: rotate(360deg); } }

/* ── Ruta del proceso: el tráiler recorre los 4 pasos ───────── */
.ruta { position: relative; height: 58px; margin-top: 36px; }
.ruta::before { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; background: repeating-linear-gradient(90deg, #4f78b8 0 18px, transparent 18px 30px); }
.ruta__camion { position: absolute; left: 0; bottom: 6px; width: 84px; transition: left 3.4s cubic-bezier(.45,0,.25,1); }
.ruta__camion .rueda { animation-play-state: paused; }
#proceso.en-marcha .ruta__camion { left: calc(100% - 84px); }
#proceso.en-marcha .ruta__camion .rueda { animation-play-state: running; animation-iteration-count: 6; }
.pasos { margin-top: 20px; }
.pasos li::after { display: none; }
.pasos li { opacity: .3; transform: translateY(12px); transition: opacity .5s, transform .5s; }
.pasos li::before { transition: color .4s; color: #4f78b8; }
#proceso.en-marcha .pasos li { opacity: 1; transform: none; }
#proceso.en-marcha .pasos li::before { color: #fff; }
#proceso.en-marcha .pasos li:nth-child(2) { transition-delay: .9s; }
#proceso.en-marcha .pasos li:nth-child(2)::before { transition-delay: .9s; }
#proceso.en-marcha .pasos li:nth-child(3) { transition-delay: 1.8s; }
#proceso.en-marcha .pasos li:nth-child(3)::before { transition-delay: 1.8s; }
#proceso.en-marcha .pasos li:nth-child(4) { transition-delay: 2.7s; }
#proceso.en-marcha .pasos li:nth-child(4)::before { transition-delay: 2.7s; }

/* ── Cifras con contador ────────────────────────────────────── */
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 4px 0 30px; }
.cifras b { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; font-style: italic; color: var(--azul); line-height: 1; }
.cifras span { color: var(--gris-texto); font-size: .9rem; }
.beneficios li { transition: transform .25s, background .25s; border-left: 4px solid transparent; }
.beneficios li:hover { transform: translateY(-4px); background: var(--azul-claro); border-left-color: var(--azul); }

/* ── Cotizador: el camión avanza con cada paso ──────────────── */
.cot__pasos { margin-bottom: 4px; }
.cot__pasos li { border-bottom: 0; padding-bottom: 0; }
.cot__pasos span { transition: background .3s, transform .3s; }
.cot__pasos li.activo span { transform: scale(1.12); }
.cot__ruta { position: relative; height: 44px; margin: 0 0 26px; }
.cot__ruta::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 4px; background: var(--linea); }
.cot__avance { position: absolute; left: 0; bottom: 0; height: 4px; border-radius: 4px; background: var(--azul); width: 6%; transition: width .9s cubic-bezier(.45,0,.25,1); }
.cot__camion { position: absolute; bottom: 4px; left: 0; width: 56px; transition: left .9s cubic-bezier(.45,0,.25,1); }
.cot__camion .rueda { animation-play-state: paused; }
.cot__ruta.andando .cot__camion .rueda { animation-play-state: running; }
.cot__ruta.andando .cot__camion { animation: rebota .3s ease-in-out infinite; }
.cot__meta { position: absolute; right: 0; bottom: 4px; width: 22px; }
.cot[data-paso="2"] .cot__camion { left: calc(33.3% + 10px); }
.cot[data-paso="2"] .cot__avance { width: calc(33.3% + 40px); }
.cot[data-paso="3"] .cot__camion { left: calc(66.6% + 10px); }
.cot[data-paso="3"] .cot__avance { width: calc(66.6% + 40px); }
.cot[data-paso="4"] .cot__camion { left: calc(100% - 82px); }
.cot[data-paso="4"] .cot__avance { width: 100%; }
.cot__panel:not([hidden]) { animation: panel .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes panel { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.opcion { transition: border-color .15s, background .15s, transform .2s; }
.opcion:hover { transform: translateY(-3px); }

/* Sello de "Registrada" */
.resultado:not([hidden]) { animation: entra .6s cubic-bezier(.2,.7,.2,1) both; }
.resultado__cab { position: relative; }
.sello { position: absolute; right: 0; top: 0; border: 3px solid var(--azul); color: var(--azul); border-radius: 8px; padding: 6px 14px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; transform: rotate(-10deg); animation: sella .55s .35s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes sella { from { opacity: 0; transform: rotate(-10deg) scale(2.4); } to { opacity: .9; transform: rotate(-10deg) scale(1); } }

/* ── Aparición al hacer scroll ──────────────────────────────── */
.revela { opacity: 0; transform: translateY(30px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.revela.visible { opacity: 1; transform: none; }

/* WhatsApp con pulso */
.wa-flotante::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: pulso 2.4s ease-out infinite; }
@keyframes pulso { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }

/* ── Responsivo ─────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero { padding-bottom: 270px; }
}
@media (max-width: 760px) {
  .hero { padding-bottom: 210px; }
  .escena { height: 200px; }
  .puerto { height: 150px; right: -40px; }
  .camion { width: 160px; }
  .camion--b { width: 135px; }
  .camion--regresa { width: 100px; }
  .cinta { margin-top: 40px; }
  .cifras { gap: 8px; }
  .cifras span { font-size: .8rem; }
  .cot__camion { width: 46px; }
}

/* Movimiento reducido: todo quieto y visible */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revela { opacity: 1; transform: none; }
  .camion { transform: translateX(8vw); }
  .camion--b, .camion--regresa { display: none; }
  .pasos li { opacity: 1; transform: none; }
}

@media print { .escena, .vientos, .cinta, .cot__ruta, .sello { display: none !important; } }

/* Ajuste de proporciones del hero para que la escena se vea al cargar */
.hero { padding-top: 48px; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.7rem); }
.hero__in { grid-template-columns: 1.3fr 1fr; align-items: start; }
.hero__tarjeta { margin-top: 36px; }
.hero__botones { margin-top: 22px; }

/* ── Cobertura: mapa de rutas ───────────────────────────────── */
.seccion--noche { background: radial-gradient(900px 500px at 75% 40%, #123f80 0%, transparent 70%), linear-gradient(180deg, #061a3a, #0a2a5a); color: #c3d3ea; overflow: hidden; }
.seccion--noche h2 { color: #fff; }
.seccion--noche .sobre { color: #8db6f0; }
.cobertura { display: grid; grid-template-columns: .85fr 1.4fr; gap: 40px; align-items: center; }
.ruta-info { margin-top: 28px; padding: 22px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(127,178,255,.25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; gap: 4px; }
.ruta-info__de { font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: #8db6f0; }
.ruta-info__de::after { content: " →"; }
.ruta-info__a { font-size: clamp(1.6rem, 3vw, 2.2rem); font-style: italic; font-weight: 900; color: #fff; line-height: 1.1; }
.ruta-info__km { color: #c3d3ea; margin-bottom: 14px; }
.ruta-info .btn { justify-self: start; background: var(--azul-vivo); }
.mapa svg { width: 100%; height: auto; display: block; overflow: visible; }
.mapa__borde { fill: none; stroke: rgba(127,178,255,.35); stroke-width: 1.2; stroke-linejoin: round; }
.mapa__ruta { fill: none; stroke: #7fb2ff; stroke-opacity: .28; stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.45,0,.25,1), stroke .25s, stroke-opacity .25s, stroke-width .25s; }
.mapa svg.dibujar .mapa__ruta { stroke-dashoffset: 0; }
.mapa__rutas .mapa__ruta:nth-child(3n) { transition-delay: .15s; }
.mapa__rutas .mapa__ruta:nth-child(3n+1) { transition-delay: .3s; }
.mapa__ruta.activa { stroke: #fff; stroke-opacity: 1; stroke-width: 2.6; filter: drop-shadow(0 0 6px rgba(127,178,255,.9)); }
.mapa__ciudad { cursor: pointer; outline: none; }
.mapa__toque { fill: transparent; }
.mapa__punto { fill: #7fb2ff; stroke: #061a3a; stroke-width: 2; transition: r .2s, fill .2s; }
.mapa__ciudad:hover .mapa__punto, .mapa__ciudad:focus-visible .mapa__punto, .mapa__ciudad.activa .mapa__punto { fill: #fff; r: 7; }
.mapa__ciudad text { fill: #c3d3ea; font: 600 12.5px var(--fuente); paint-order: stroke; stroke: #061a3a; stroke-width: 4px; pointer-events: none; }
.mapa__ciudad.activa text { fill: #fff; font-weight: 800; }
.mapa__origen-txt { fill: #fff; font: italic 900 14px var(--fuente); letter-spacing: .08em; paint-order: stroke; stroke: #061a3a; stroke-width: 4px; }
.mapa__pulso { fill: none; stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulsoMapa 2s ease-out infinite; }
@keyframes pulsoMapa { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }

/* ── Rastreo de folio ───────────────────────────────────────── */
.rastreo { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.rastreo__txt { color: var(--gris-texto); }
.rastreo__caja { background: var(--blanco); border: 1px solid var(--linea); border-radius: 16px; padding: 28px; box-shadow: var(--sombra); }
.rastreo__form { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 12px; align-items: end; }
.rastreo__folio { margin: 18px 0 22px; color: var(--gris-texto); }
.rastreo__folio b { color: var(--azul); font-style: italic; font-size: 1.15rem; }
.linea-estatus { --avance: 0%; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0; position: relative; }
.linea-estatus::before, .linea-estatus::after { content: ""; position: absolute; top: 11px; left: 12.5%; height: 4px; border-radius: 4px; }
.linea-estatus::before { right: 12.5%; background: var(--linea); }
.linea-estatus::after { width: calc((75%) * var(--avance) / 100%); background: var(--azul); transition: width 1s cubic-bezier(.45,0,.25,1); }
.linea-estatus li { position: relative; z-index: 1; text-align: center; font-size: .85rem; font-weight: 600; color: #9aa3b2; padding-top: 34px; }
.linea-estatus li::before { content: ""; position: absolute; top: 2px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--blanco); border: 4px solid var(--linea); box-sizing: border-box; transition: all .4s; }
.linea-estatus li.hecho { color: var(--negro); }
.linea-estatus li.hecho::before { background: var(--azul); border-color: var(--azul); }
.linea-estatus li.actual { color: var(--azul); font-weight: 800; }
.linea-estatus li.actual::before { border-color: var(--azul); box-shadow: 0 0 0 6px rgba(11,69,168,.15); animation: latido 1.6s ease-in-out infinite; }
.linea-estatus.perdida li.actual { color: var(--gris-texto); }
@keyframes latido { 50% { box-shadow: 0 0 0 10px rgba(11,69,168,.05); } }

/* Resultado del cotizador */
.resultado__correo { background: #dff5e6; color: #146c2e; border-radius: 8px; padding: 12px 16px; font-weight: 600; margin: 0 0 20px; }
.resultado__estimado b { font-style: italic; }

/* Tarjeta del hero con efecto vidrio en el borde */
.hero__tarjeta { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #7fb2ff, #0b45a8 60%, #061a3a) border-box; border: 2px solid transparent; }

@media (max-width: 980px) {
  .cobertura, .rastreo { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .rastreo__form { grid-template-columns: 1fr 1fr; }
  .rastreo__form .btn { grid-column: 1 / -1; }
  .rastreo__caja { padding: 20px; }
  .mapa__ciudad text { font-size: 15px; }
}

/* ═════════════════════════════════════════════════════════════
   INICIO v2 — titular grande, palabra que rota y consola de
   cotización con los 3 servicios
   ═════════════════════════════════════════════════════════════ */
.hero--v2 { padding: 52px 0 268px; text-align: center; background: radial-gradient(1200px 600px at 50% -10%, #12407f 0%, transparent 60%), linear-gradient(180deg, #050f24 0%, #08214a 60%, #0d3166 100%); }
.hero--v2::before { mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%); }
.hero__luces { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__luces i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: flotaLuz 14s ease-in-out infinite alternate; }
.hero__luces i:nth-child(1) { width: 520px; height: 520px; left: -120px; top: -80px; background: #1d5fc4; }
.hero__luces i:nth-child(2) { width: 460px; height: 460px; right: -100px; top: 60px; background: #2b8bff; opacity: .3; animation-duration: 18s; animation-delay: -6s; }
.hero__luces i:nth-child(3) { width: 380px; height: 380px; left: 38%; top: 260px; background: #0e3d86; animation-duration: 16s; animation-delay: -3s; }
@keyframes flotaLuz { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }

.hero__centro { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero__pastilla { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #d2e0f5; font-size: .9rem; font-weight: 600; margin: 0; animation: entra .7s both; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.punto-vivo { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: vivo 1.8s ease-out infinite; }
@keyframes vivo { to { box-shadow: 0 0 0 10px rgba(61,220,132,0); } }
.hero--v2 .hero__titulo { font-size: clamp(2.5rem, 6vw, 4.7rem); font-weight: 900; font-style: italic; font-stretch: 112%; letter-spacing: -.025em; line-height: 1.04; color: #fff; margin: 22px 0 16px; animation: entra .8s .08s both; }
.hero__linea2 { color: #9cc4ff; }
.rotador { display: inline-grid; vertical-align: bottom; overflow: hidden; padding: 0 .08em .06em; margin-bottom: -.06em; }
.rotador > span { grid-area: 1 / 1; white-space: nowrap; background: linear-gradient(90deg, #7fb2ff, #e3eeff 60%, #7fb2ff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brillo 4s linear infinite; }
.rotador > span.entra { animation: rotaEntra .6s cubic-bezier(.2,.8,.2,1) both, brillo 4s linear infinite; }
.rotador > span.sale { animation: rotaSale .6s cubic-bezier(.6,0,.8,.2) both; }
@keyframes rotaEntra { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rotaSale { to { transform: translateY(-100%); opacity: 0; } }
@keyframes brillo { to { background-position: -200% 0; } }
.hero--v2 .hero__sub { max-width: 640px; margin: 0 auto; color: #b9cbe6; font-size: 1.15rem; animation: entra .8s .16s both; }

/* Consola */
.consola { width: min(1020px, 100%); margin-top: 34px; background: rgba(255,255,255,.98); border-radius: 22px; padding: 10px; text-align: left; box-shadow: 0 40px 90px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.12); animation: entra .9s .25s cubic-bezier(.2,.7,.2,1) both; position: relative; }
.consola::before { content: ""; position: absolute; inset: -2px; border-radius: 24px; padding: 2px; background: linear-gradient(120deg, #7fb2ff, transparent 30%, transparent 70%, #2b6cd0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .8; }
.consola__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.consola__tab { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 15px; border: 0; background: transparent; cursor: pointer; font: inherit; color: var(--tinta); text-align: left; transition: background .25s, color .25s, transform .2s, box-shadow .25s; }
.consola__tab:hover { background: var(--gris); }
.consola__tab span { display: flex; flex-direction: column; line-height: 1.25; }
.consola__tab b { font-size: 1.04rem; font-weight: 800; }
.consola__tab small { color: var(--gris-texto); font-size: .82rem; transition: color .25s; }
.consola__tab.activo { background: linear-gradient(135deg, #1a58ad, #0b2f63); color: #fff; box-shadow: 0 12px 26px rgba(11,47,99,.35); }
.consola__tab.activo small { color: #bcd2f2; }
.consola__ico { flex: none; width: 62px; height: 48px; padding: 6px 7px; border-radius: 12px; background: var(--azul-claro); color: var(--azul); overflow: visible; transition: background .25s, transform .3s; }
.consola__tab.activo .consola__ico { background: #fff; transform: rotate(-4deg) scale(1.04); }
.consola__ico--globo { padding: 7px 14px; }
.consola__tab:not(.activo) .rueda, .consola__tab:not(.activo) .ico-gancho, .consola__tab:not(.activo) .meridiano, .consola__tab:not(.activo) .orbita { animation-play-state: paused; }
.consola__campos { display: flex; gap: 10px; align-items: flex-end; padding: 14px 8px 8px; margin-top: 10px; border-top: 1px solid var(--linea); }
.consola__grupo { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; animation: panel .4s both; }
.consola__campo { display: flex; flex-direction: column; gap: 5px; }
.consola__campo span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--gris-texto); padding-left: 2px; }
.consola__campo select, .consola__campo input { font: 500 1rem var(--fuente); color: var(--tinta); padding: 13px 14px; border: 1.5px solid #d5dbe5; border-radius: 11px; background: #f8fafc; width: 100%; transition: border-color .2s, box-shadow .2s, background .2s; }
.consola__campo select:focus, .consola__campo input:focus { outline: none; border-color: var(--azul); background: #fff; box-shadow: 0 0 0 4px rgba(11,69,168,.14); }
.consola__ir { min-width: 168px; height: 52px; font-size: 1.1rem; border-radius: 12px; background: linear-gradient(135deg, #2b6cd0, #0b45a8); box-shadow: 0 10px 24px rgba(43,108,208,.4); }
.consola__ir span { transition: transform .2s; }
.consola__ir:hover span { transform: translateX(4px); }
.hero__garantias { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 0; margin: 22px 0 0; color: #c9d8ee; font-size: .95rem; font-weight: 600; animation: entra .8s .4s both; }
.hero__garantias li { display: flex; align-items: center; gap: 8px; }
.hero__garantias li::before { content: "✓"; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; background: rgba(127,178,255,.2); color: #9cc4ff; }

/* Pie: logo sobre placa blanca */
.pie__logo { display: inline-flex; background: #fff; border-radius: 10px; padding: 8px 14px; }
.pie__logo img { height: 40px; width: auto; }
.demo-aviso { display: flex; align-items: center; gap: 8px; }
.demo-aviso button { background: none; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; padding: 0 2px; line-height: 1; opacity: .7; }

@media (max-width: 900px) {
  .consola__tabs { gap: 6px; }
  .consola__tab { flex-direction: column; text-align: center; gap: 8px; padding: 12px 6px; }
  .consola__tab small { display: none; }
  .consola__tab b { font-size: .9rem; }
  .consola__campos { flex-direction: column; align-items: stretch; }
  .consola__ir { width: 100%; }
}
@media (max-width: 760px) {
  .hero--v2 { padding: 34px 0 205px; }
  .hero--v2 .hero__titulo { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero__pastilla { font-size: .8rem; }
  .consola { margin-top: 26px; padding: 8px; border-radius: 18px; }
  .consola__ico { width: 54px; height: 42px; }
  .consola__grupo { grid-template-columns: 1fr; }
  .hero__garantias { gap: 8px 16px; font-size: .85rem; }
}

/* Recorte firme de la palabra que rota (evita que se vea la siguiente) */
.rotador { overflow: clip; height: 1.08em; line-height: 1.08; }
.rotador > span { line-height: 1.08; }
@media (max-width: 760px) {
  .rotador { display: grid; justify-content: center; margin: 0 auto; }
}

/* ═══ Compatibilidad en tablets, celular horizontal y pantallas chicas ═══ */
.barra__logo { flex: none; }
.barra__logo img { width: auto; }
@media (max-width: 1180px) {
  .barra__in { height: 68px; }
  .barra__cta { margin-left: auto; padding: .6em 1.1em; }
  .barra__menu { display: block; }
  .barra__nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--blanco); flex-direction: column; gap: 0; padding: 8px 24px 18px; border-bottom: 1px solid var(--linea); box-shadow: var(--sombra); max-height: calc(100vh - 68px); overflow-y: auto; }
  .barra__nav.abierto { display: flex; }
  .barra__nav a { padding: 14px 0; border-bottom: 1px solid var(--gris); }
  .barra__nav a::after { display: none; }
  .barra { position: sticky; }
}
@media (max-width: 760px) {
  .wa-flotante { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .wa-flotante svg { width: 28px; height: 28px; }
}
@media (max-width: 360px) {
  .hero__pastilla { font-size: .72rem; padding: 7px 12px; white-space: nowrap; }
  .hero--v2 .hero__titulo { font-size: 2.05rem; }
  .barra__cta { padding: .55em .8em; font-size: .92rem; }
  .barra__logo img { height: 38px; }
  .consola__tab b { font-size: .8rem; }
  .consola__ico { width: 46px; height: 36px; }
}
/* Celular en horizontal: el hero no necesita tanta altura */
@media (max-height: 500px) and (orientation: landscape) {
  .hero--v2 { padding-top: 28px; }
  .hero--v2 .hero__titulo { font-size: 2.6rem; margin: 14px 0 10px; }
}

/* ═════════════════════════════════════════════════════════════
   RENDIMIENTO — navegación fluida en celulares
   ═════════════════════════════════════════════════════════════ */
/* 1) Sin desenfoque de fondo (muy costoso al hacer scroll) */
.barra, .hero__pastilla, .ruta-info { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.barra { background: #fff; }
.hero__pastilla { background: rgba(255,255,255,.1); }
.ruta-info { background: rgba(255,255,255,.08); }

/* 2) Luces del inicio: degradados suaves en vez de blur animado; solo se mueve con transform (lo hace la GPU) */
.hero__luces i { filter: none; opacity: 1; will-change: transform; }
.hero__luces i:nth-child(1) { background: radial-gradient(circle, rgba(29,95,196,.55) 0%, rgba(29,95,196,0) 68%); }
.hero__luces i:nth-child(2) { background: radial-gradient(circle, rgba(43,139,255,.35) 0%, rgba(43,139,255,0) 68%); }
.hero__luces i:nth-child(3) { background: radial-gradient(circle, rgba(14,61,134,.6) 0%, rgba(14,61,134,0) 68%); }

/* 3) Sin sombras con filtro en piezas que se mueven */
.camion svg { filter: none; }
.mapa__ruta.activa { filter: none; stroke-width: 3; }
.vientos i, .camion, .cinta__pista, .carro, .gancho { will-change: transform; }

/* 4) Texto que rota: brillo fijo (animar el fondo del texto repinta en cada cuadro) */
.rotador > span, .rotador > span.entra { animation-name: none; }
.rotador > span.entra { animation: rotaEntra .6s cubic-bezier(.2,.8,.2,1) both; }
.rotador > span { background-position: 30% 0; }

/* 5) Punto "en vivo" con transform en lugar de sombra animada */
.punto-vivo { position: relative; animation: none; box-shadow: none; }
.punto-vivo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3ddc84; animation: pulsoPunto 1.8s ease-out infinite; }
@keyframes pulsoPunto { from { transform: scale(1); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }

/* 6) Las secciones fuera de pantalla congelan sus animaciones */
.pausado, .pausado *, .pausado *::before, .pausado *::after { animation-play-state: paused !important; }

/* 8) En celular: menos piezas en movimiento simultáneo */
@media (max-width: 760px) {
  .vientos { display: none; }
  .hero__luces i { animation: none; }
  .camion--regresa { display: none; }
  .hero::before { display: none; }
}

/* ═══ RENDIMIENTO 2 — menos piezas SVG redibujándose en cada cuadro ═══ */
/* Llantas de los tráileres de la carretera: el tráiler ya se mueve, no hace falta girarlas */
.camion .rueda { animation: none; }
/* Olas, baliza y vaivén del barco: detalle mínimo, costo alto */
.olas, .baliza, .barco { animation: none; }
/* Íconos de la consola y de las tarjetas: solo se animan al pasar el mouse */
.consola__ico *, .ico * { animation-play-state: paused !important; }
.consola__tab:hover .consola__ico *, .servicio:hover .ico * { animation-play-state: running !important; }
.ico--camion { animation: none; }
/* Durante el scroll no corre ninguna animación (se reanudan al soltar) */
.desplazando *, .desplazando *::before, .desplazando *::after { animation-play-state: paused !important; }

/* Escena del puerto: fondo fijo + grúa en capas que mueve la GPU */
.puerto { position: absolute; right: 0; bottom: 36px; height: 220px; width: auto; max-width: none; aspect-ratio: 560 / 210; }
.puerto svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.capa-carro { position: absolute; inset: 0; clip-path: inset(21.5% 0 0 0); will-change: transform; animation: carro2 9s ease-in-out infinite; }
.capa-gancho { position: absolute; inset: 0; will-change: transform; animation: gancho2 9s ease-in-out infinite; }
@keyframes carro2 {
  0%, 12% { transform: translateX(-11.964%); }
  42%, 62% { transform: translateX(37.321%); }
  90%, 100% { transform: translateX(-11.964%); }
}
@keyframes gancho2 {
  0% { transform: translateY(17.619%); }
  10%, 42% { transform: translateY(0); }
  52%, 56% { transform: translateY(12.857%); }
  64%, 90% { transform: translateY(0); }
  100% { transform: translateY(17.619%); }
}
@media (max-width: 760px) { .puerto { height: 150px; right: -40px; } }
/* Mapa: anillo fijo en Veracruz (la animación SVG infinita costaba en cada cuadro) */
.mapa__pulso { animation: none; opacity: .5; transform: scale(1.8); }
/* Rayas de la carretera: se mueven con transform (GPU) en vez de background-position */
/* (el hero ya recorta lo que sobresale; la carretera no debe recortar a los tráileres) */
.carretera::before { left: 0; right: -80px; animation: avanza2 2.4s linear infinite; will-change: transform; }
@keyframes avanza2 { to { transform: translateX(-80px); } }
/* Vigencia en resultado y rastreo */
.resultado__vigencia { margin: -6px 0 0; font-weight: 700; color: var(--azul); font-size: .95rem; }
.rastreo__vigencia { margin: -12px 0 18px; font-weight: 600; color: var(--azul); font-size: .92rem; }
.rastreo__vigencia.vencida { color: #b42318; }

/* Logo nuevo (más ancho): un poco más alto en la barra para que se lea "MULTIMODAL" */
.barra__logo img { height: 62px; }
.barra.con-sombra .barra__logo img { height: 52px; }
@media (max-width: 760px) { .barra__logo img, .barra.con-sombra .barra__logo img { height: 46px; } }
@media (max-width: 360px) { .barra__logo img, .barra.con-sombra .barra__logo img { height: 40px; } }

/* ═════════════════════════════════════════════════════════════
   LOGO EN MOVIMIENTO — el tráiler avanza hacia la izquierda
   (solo transform/opacity: lo mueve la tarjeta gráfica)
   ═════════════════════════════════════════════════════════════ */
.barra__logo { position: relative; display: inline-flex; align-items: center; isolation: isolate; }
.barra__logo img { position: relative; z-index: 1; transform-origin: 30% 80%; will-change: transform;
  animation: logoEntra 1.1s cubic-bezier(.16,.84,.28,1) both, logoMotor 3.2s 1.2s ease-in-out infinite; }

/* Entrada: llega desde la derecha y "frena" con un pequeño cabeceo */
@keyframes logoEntra {
  0%   { transform: translateX(46px) skewX(-8deg); opacity: 0; }
  55%  { transform: translateX(-4px) skewX(3deg); opacity: 1; }
  75%  { transform: translateX(1px) rotate(-.6deg); }
  100% { transform: none; }
}
/* En marcha: vibración suave del motor y un tirón hacia adelante cada ciclo */
@keyframes logoMotor {
  0%, 100% { transform: translate(0, 0); }
  8%  { transform: translate(0, -1px); }
  16% { transform: translate(0, 0); }
  24% { transform: translate(0, -1px); }
  32% { transform: translate(0, 0); }
  60% { transform: translate(-2px, 0); }
  70% { transform: translate(0, 0); }
}

/* Líneas de velocidad que salen por detrás del remolque (lado derecho) */
.logo-vel { position: absolute; z-index: 0; top: 18%; right: -6px; width: 46px; height: 44%; pointer-events: none; overflow: hidden; }
.logo-vel i { position: absolute; right: 0; height: 2.5px; border-radius: 2px; background: linear-gradient(90deg, rgba(11,69,168,.85), rgba(11,69,168,0)); transform-origin: left center; opacity: 0;
  animation: logoLinea 1.6s 1.1s ease-out infinite; will-change: transform, opacity; }
.logo-vel i:nth-child(1) { top: 10%; width: 40px; }
.logo-vel i:nth-child(2) { top: 48%; width: 30px; animation-delay: 1.45s; }
.logo-vel i:nth-child(3) { top: 84%; width: 22px; animation-delay: 1.8s; }
@keyframes logoLinea {
  0%   { transform: translateX(-30px) scaleX(.3); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateX(14px) scaleX(1); opacity: 0; }
}

/* Polvo bajo las llantas traseras, solo al llegar */
.logo-polvo { position: absolute; z-index: 0; right: 10%; bottom: 14%; width: 36px; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(120,130,150,.35), rgba(120,130,150,0)); opacity: 0; pointer-events: none;
  animation: logoPolvo 1.1s .45s ease-out both; }
@keyframes logoPolvo { 0% { opacity: 0; transform: translateX(0) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(22px) scale(1.6); } }

/* Al pasar el mouse: acelera */
.barra__logo:hover img { animation: logoAcelera .5s ease-in-out infinite; }
.barra__logo:hover .logo-vel i { animation-duration: .55s; }
@keyframes logoAcelera { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-2px, -1px); } }

/* Respeta "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
  .barra__logo img, .logo-vel i, .logo-polvo { animation: none !important; opacity: 1; }
  .logo-vel, .logo-polvo { display: none; }
}
