/* ═══════════════════════════════════════════════════════════════
   Haydaz Transporte · Landing
   Animaciones: todo lo que revela contenido va en CSS y sólo se
   oculta bajo html.anim (la agrega main.js cuando ya corrió).
   ═══════════════════════════════════════════════════════════════ */

@font-face { font-family: "Stapel Expanded"; src: url("../fonts/stapel-expanded-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Stapel"; src: url("../fonts/stapel-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Stapel"; src: url("../fonts/stapel-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Stapel"; src: url("../fonts/stapel-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Stapel Condensed"; src: url("../fonts/stapel-condensed-extrabold-italic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }

:root {
  --rojo: #E1161C;
  --rojo-2: #C3121A;
  --bordo: #7C0D12;
  --bordo-2: #5E0A0E;
  --negro: #121212;
  --grafito: #1C1C1C;
  --hueso: #F2EFEA;
  --t-suave: rgba(255, 255, 255, .8);

  --f-ext: "Stapel Expanded", "Arial Black", Arial, sans-serif;
  --f: "Stapel", Arial, sans-serif;
  --f-cond: "Stapel Condensed", "Arial Narrow", Arial, sans-serif;

  --g: clamp(16px, 4.2vw, 64px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--negro);
  color: #fff;
  font: 500 1rem/1.55 var(--f);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
section { position: relative; isolation: isolate; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─────────────── Piezas de marca (salen de los posteos) ─────────────── */

/* Etiqueta roja con filo blanco y esquina redondeada arriba a la derecha */
.chip {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: .64em 1.1em .58em 1em;
  border-radius: 0 14px 0 0;
  background: var(--rojo);
  box-shadow: -6px 0 0 #fff;
  color: #fff;
  font: italic 800 clamp(.82rem, 1.1vw, .95rem)/1 var(--f-cond);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.chip-blanco { background: #fff; color: var(--rojo); box-shadow: -6px 0 0 var(--bordo); }

/* Títulos: Stapel Expanded Black, líneas que suben desde una máscara */
.h2 {
  margin-top: 22px;
  font: 900 clamp(2rem, 7.6vw, 5.4rem)/.88 var(--f-ext);
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.l { display: block; overflow: hidden; padding-block: .26em .18em; margin-block: -.26em -.18em; }
/* La máscara sólo recorta arriba/abajo: una palabra larga nunca queda cortada al costado */
@supports (overflow: clip) { .l { overflow-x: visible; overflow-y: clip; } }
.l > span { display: inline-block; }
.l-caja > span {
  margin-top: .07em;
  padding: .09em .16em .02em;
  border-radius: 0 .22em 0 0;
  background: #fff;
  color: var(--rojo);
}
.l-caja-roja > span { background: var(--rojo); color: #fff; }

.sec-sub { max-width: 44ch; margin-top: 24px; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: #444; }
.sec-sub strong { font-weight: 800; }

/* Chevrones rojos de los posteos */
.chev { position: absolute; color: var(--rojo); pointer-events: none; }
.chev-linea { color: transparent; stroke: rgba(255, 255, 255, .55); stroke-width: 1.5; }

/* Textura de puntos */
.puntos {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(currentColor 1.1px, transparent 1.6px);
  background-size: 11px 11px;
}
.puntos-hero { color: #fff; opacity: .2; -webkit-mask-image: radial-gradient(55% 45% at 88% 18%, #000, transparent 72%); mask-image: radial-gradient(55% 45% at 88% 18%, #000, transparent 72%); }
.puntos-claro { color: var(--negro); opacity: .14; -webkit-mask-image: linear-gradient(165deg, #000, transparent 42%); mask-image: linear-gradient(165deg, #000, transparent 42%); }
.puntos-rojo { color: #fff; opacity: .16; -webkit-mask-image: radial-gradient(45% 55% at 92% 85%, #000, transparent 75%); mask-image: radial-gradient(45% 55% at 92% 85%, #000, transparent 75%); }

/* Píldora de WhatsApp como en las piezas: círculo rojo + cápsula blanca */
.pill-wa {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 22px 4px 4px;
  border-radius: 99px;
  background: #fff;
  color: var(--rojo);
  font: 800 1.02rem/1 var(--f);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.pill-wa:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, .32); }
.pill-wa-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--rojo-2); color: #fff; }
.pill-wa-ico svg { width: 26px; height: 26px; }

/* ─────────────── Cabecera: la ruta como menú ─────────────── */
.tope {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 56px);
  padding: 16px var(--g);
  transition: background .35s, padding .35s;
}
.tope.solida { padding-block: 10px; background: rgba(18, 18, 18, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tope-logo { flex: none; }
.tope-logo img { width: clamp(116px, 11vw, 150px); height: auto; }
.tope-ruta { position: relative; flex: 1; max-width: 620px; height: 40px; margin-left: auto; display: flex; justify-content: space-between; align-items: flex-start; }
.tr-linea { position: absolute; left: 7px; right: 7px; top: 6px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.tr-avance { position: absolute; inset: 0 auto 0 0; width: calc(var(--avance, 0) * 100%); border-radius: inherit; background: var(--rojo); }
.tr-camion { position: absolute; top: -18px; left: calc(var(--avance, 0) * 100%); width: 30px; height: 17px; color: #fff; transform: translateX(-50%); }
.tr-p {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, .6);
  font: italic 800 .78rem/1 var(--f-cond);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .3s;
}
.tr-p::after { content: ""; position: absolute; inset: -10px -12px; }
.tr-p i { width: 15px; height: 15px; border: 3px solid rgba(255, 255, 255, .5); border-radius: 50%; background: var(--negro); transition: .3s; }
.tr-p:hover, .tr-p.on { color: #fff; }
.tr-p.on i { border-color: var(--rojo); background: #fff; transform: scale(1.18); }

/* ═════════════════════ 1 · PORTADA ═════════════════════ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 130px var(--g) clamp(40px, 7vh, 72px);
  background: var(--negro);
}
.hero-medio { position: absolute; inset: 0; z-index: -3; background: #2a1213; transition: clip-path 1.5s var(--ease-io); }
.hero-foto { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-medio::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, .3) 0%, rgba(18, 18, 18, .25) 30%, rgba(18, 18, 18, .9) 74%, var(--negro) 100%),
    linear-gradient(118deg, rgba(225, 22, 28, .6), rgba(225, 22, 28, 0) 58%);
}
.hero-bandas { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.chev-1 { width: 58vw; height: 64%; top: -6%; right: -26vw; opacity: .55; mix-blend-mode: multiply; }
.chev-2 { width: 30vw; height: 40%; top: 4%; right: 8vw; opacity: .75; }
.chev-3 { display: none; }
.estela {
  position: absolute;
  width: 26vw;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
  opacity: 0;
  rotate: -58deg;
  animation: estela 3.8s linear infinite;
}
.e1 { top: 26%; right: 18%; }
.e2 { top: 52%; right: 2%; animation-delay: 1.4s; }
.e3 { top: 12%; right: 40%; animation-delay: 2.5s; }
@keyframes estela {
  0% { opacity: 0; translate: 0 0; }
  12% { opacity: .9; }
  55% { opacity: 0; translate: -17vw 28vw; }
  100% { opacity: 0; translate: -17vw 28vw; }
}

.hero-txt { position: relative; max-width: 900px; }
.hero-h1 {
  width: max-content;
  margin-top: 22px;
  font: 800 clamp(2.6rem, 14.5vw, 12rem)/.86 var(--f);
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.hero-vuelta { display: inline-block; width: .62em; height: .62em; margin-left: .08em; padding: .09em; vertical-align: .02em; border-radius: 50%; background: var(--rojo); color: #fff; animation: girar 7s var(--ease-io) infinite; }
@keyframes girar { 0%, 38% { rotate: 0deg; } 50%, 88% { rotate: 180deg; } 100% { rotate: 180deg; } }
.hero-sub { max-width: 38ch; margin-top: 26px; color: var(--t-suave); font-size: clamp(1.02rem, 1.35vw, 1.25rem); }
.hero-sub strong { color: #fff; font-weight: 700; }

/* Entrada de la portada */
html.anim .hero-medio { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); }
html.anim .hero.listo .hero-medio { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

/* ─────────────── La cinta: la ruta como separador ─────────────── */
.cinta {
  position: relative;
  z-index: 5;
  margin: -24px -3vw 0;
  padding: 26px 0;
  overflow: hidden;
  border-block: 4px solid #fff;
  background: #1a1a1a;
  box-shadow: 0 22px 44px rgba(0, 0, 0, .35);
  rotate: -2deg;
}
.cinta::before, .cinta::after {
  content: "";
  position: absolute;
  left: 0;
  width: 200%;
  height: 3px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 34px, transparent 34px 64px);
  animation: cinta 6s linear infinite;
}
.cinta::before { top: 9px; }
.cinta::after { bottom: 9px; animation-duration: 9s; }
.cinta-pista {
  display: flex;
  align-items: center;
  width: max-content;
  font: 900 clamp(1.5rem, 3.4vw, 2.8rem)/1 var(--f-ext);
  text-transform: uppercase;
  white-space: nowrap;
  animation: cinta 46s linear infinite;
}
.cinta-pista > * { margin-right: 26px; }
.cinta-pista .hueco { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.cinta-pista svg { width: .78em; height: .78em; color: var(--rojo); }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ═════════════════════ 2 · SERVICIOS ═════════════════════ */
.servicios {
  overflow-x: clip;
  padding: clamp(120px, 14vw, 190px) var(--g) clamp(80px, 10vw, 150px);
  background: var(--hueso);
  color: var(--negro);
}
.sec-cab { max-width: 1440px; }
html.anim .servicios { padding-bottom: 12px; }
.servicios .h2 { font-size: clamp(1.55rem, 6.8vw, 5.4rem); }
/* Cinta horizontal anclada: sólo se fija y desplaza con html.anim (sin JS queda en columna) */
.serv-pin { position: relative; margin: clamp(36px, 6vw, 80px) calc(var(--g) * -1) 0; }
.serv-fijo { position: relative; }
.serv-pista { display: flex; flex-direction: column; gap: 18px; padding: 0 var(--g); }
html.anim .serv-pin { height: 360vh; }
html.anim .serv-fijo {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 74px 0 22px;
}
html.anim .serv-pista { flex-direction: row; width: max-content; will-change: transform; }
.serv {
  flex: none;
  display: flex;
  flex-direction: column;
  width: min(84vw, 430px);
  overflow: hidden;
  border-radius: 0 26px 0 0;
  background: #fff;
  box-shadow: 0 24px 50px rgba(18, 18, 18, .12);
  transition: opacity .4s, translate .5s var(--ease);
}
html.anim .serv:not(.activo) { opacity: .5; translate: 0 10px; }
.serv-foto { position: relative; flex: none; margin: 0; aspect-ratio: 16 / 11; max-height: 36svh; overflow: hidden; background: var(--negro); }
.serv-foto img { width: 100%; height: 100%; object-fit: cover; }
.serv-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(225, 22, 28, 0) 45%, rgba(18, 18, 18, .55)); }
.serv-n {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 8px;
  color: #fff;
  font: 900 clamp(2.6rem, 11vw, 5.5rem)/.85 var(--f-ext);
  text-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.serv-cuerpo { padding: 18px 20px 22px; }
.serv-t { font: 800 clamp(1.25rem, 2.2vw, 2.1rem)/1.05 var(--f); text-transform: uppercase; }
.serv-p { max-width: 48ch; margin-top: 10px; color: #3b3b3b; font-size: .98rem; line-height: 1.5; }
.serv-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.serv-tags li {
  padding: .5em .8em .48em;
  border: 1.5px solid currentColor;
  border-radius: 0 10px 0 0;
  color: var(--rojo-2);
  font: italic 800 .78rem/1 var(--f-cond);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.serv-chip {
  display: inline-block;
  margin-bottom: 10px;
  padding: .55em .8em .5em;
  background: var(--rojo);
  color: #fff;
  font: 800 .7rem/1 var(--f);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.serv-avance { display: none; }
html.anim .serv-avance { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 0 var(--g); font: 900 .95rem/1 var(--f-ext); }
.sa-barra { position: relative; flex: 1; max-width: 360px; height: 3px; border-radius: 3px; background: rgba(18, 18, 18, .15); }
.sa-barra i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--rojo); }
.sa-total { color: rgba(18, 18, 18, .45); }

/* ═════════════════════ 3 · RECORRIDO ═════════════════════ */
.como { background: var(--negro); }
.como-fijo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding: clamp(110px, 12vw, 150px) var(--g) clamp(70px, 9vw, 110px); }
.km {
  display: flex;
  align-items: baseline;
  gap: .14em;
  margin-top: 28px;
  color: var(--rojo);
  font: 900 clamp(2.4rem, 12.5vw, 8.6rem)/.85 var(--f-ext);
  font-variant-numeric: tabular-nums;
}
.km-u { color: #fff; font-size: .32em; }
.km-leyenda { margin-top: 10px; color: rgba(255, 255, 255, .6); font: italic 800 .95rem/1.2 var(--f-cond); letter-spacing: .08em; text-transform: uppercase; }
.pasos { display: grid; margin-top: 36px; }
.paso { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); transition: opacity .45s; }
.paso-n { display: grid; place-items: center; width: 48px; height: 34px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 0 12px 0 0; font: 900 .95rem/1 var(--f-ext); transition: background .4s, border-color .4s; }
.paso h3 { font: 800 1.18rem/1.1 var(--f); text-transform: uppercase; }
.paso p { margin-top: 5px; color: rgba(255, 255, 255, .78); font-size: .98rem; }
html.anim .paso { opacity: .55; }
html.anim .paso.pasado { opacity: .8; }
html.anim .paso.activo { opacity: 1; }
.paso.activo .paso-n, .paso.pasado .paso-n { border-color: var(--rojo); }
.paso.activo .paso-n { background: var(--rojo); }

.como-mapa { position: relative; display: grid; place-items: center; }
.mapa-ruta {
  width: 100%;
  max-width: 520px;
  height: auto;
  overflow: visible;
  -webkit-mask-image: radial-gradient(75% 70% at 55% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(75% 70% at 55% 50%, #000 62%, transparent 100%);
}
.mr-vecinos path { fill: #1a1a1a; stroke: #2e2e2e; stroke-width: .8; }
.mr-provs path { fill: #2a2a2a; stroke: #4a4a4a; stroke-width: .8; stroke-linejoin: round; }
.mr-provs .es-origen { fill: #343434; }
.mr-provs .es-destino { fill: var(--bordo); stroke: var(--rojo); }
.mr-et { fill: rgba(255, 255, 255, .72); font: italic 800 10px var(--f-cond); letter-spacing: .14em; }
.mr-et.es-pais { fill: rgba(255, 255, 255, .5); }
.mr-ruta-base { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.mr-ruta { fill: none; stroke: var(--rojo); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(225, 22, 28, .75)); }
.mr-ramal { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .75; transition: stroke-dashoffset 1.2s var(--ease-io); }
html.anim .mapa-ruta:not(.llego) .mr-ramal { stroke-dashoffset: 1; }
.mr-punto { fill: #fff; stroke: var(--rojo); stroke-width: 3; }
.mr-pulso { fill: rgba(225, 22, 28, .45); transform-box: fill-box; transform-origin: center; opacity: 0; }
.mr-parada.on .mr-pulso { animation: pulso 2.2s ease-out infinite; }
@keyframes pulso { from { opacity: .9; scale: .6; } to { opacity: 0; scale: 2.4; } }
.mr-parada text { fill: #fff; font: 800 11px var(--f); letter-spacing: .04em; paint-order: stroke; stroke: var(--negro); stroke-width: 3px; stroke-linejoin: round; }
.mr-parada .mr-suc { fill: #FF6B70; font: italic 800 8.5px var(--f-cond); letter-spacing: .14em; }
.mr-in { transition: opacity .5s, scale .6s var(--ease); }
html.anim .mr-parada:not(.on) .mr-in { opacity: .25; scale: .7; }
.ico-camion path { fill: #fff; }
.ico-camion circle { fill: var(--negro); stroke: #fff; stroke-width: 2.4; }
.mr-camion { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.escudo path { fill: #fff; stroke: var(--bordo); stroke-width: 1.5; }
.escudo-t { fill: var(--rojo); font: 800 5.6px var(--f); letter-spacing: .06em; text-anchor: middle; }
.escudo-n { fill: var(--rojo); font: 900 10px var(--f-ext); text-anchor: middle; }

/* ═════════════════════ 4 · COBERTURA ═════════════════════ */
.cobertura { overflow: hidden; padding: clamp(110px, 12vw, 170px) var(--g) clamp(80px, 10vw, 140px); background: var(--rojo); }
.cob-fondo { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.cob-fondo .chev { color: var(--bordo); }
.chev-cob-1 { width: 46vw; height: 130%; top: -15%; left: -26vw; opacity: .4; }
.chev-cob-2 { width: 18vw; height: 55%; right: 2vw; bottom: -8%; opacity: .22; }
.cob-grilla { display: grid; gap: 30px; }
.cobertura .h2 { line-height: .98; }
.cobertura .sec-sub { color: #fff; }
.zonas { margin-top: 34px; border-bottom: 1px solid rgba(255, 255, 255, .38); }
.zona {
  position: relative;
  display: grid;
  grid-template-areas: "n f" "d f";
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px 16px;
  width: 100%;
  padding: 18px 12px 18px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .38);
  background: none;
  text-align: left;
  cursor: pointer;
  transition: padding .4s var(--ease), background .4s;
}
.zona-n { grid-area: n; font: 900 clamp(1.3rem, 2.5vw, 2.05rem)/1 var(--f-ext); text-transform: uppercase; }
.zona-d { grid-area: d; justify-self: start; padding: .45em .75em .42em; border-radius: 0 10px 0 0; background: #fff; color: var(--rojo); font: italic 800 .82rem/1 var(--f-cond); letter-spacing: .07em; text-transform: uppercase; }
.zona-f { grid-area: f; width: 30px; height: 30px; transition: transform .4s var(--ease); }
.zona:hover, .zona[aria-pressed="true"] { padding-left: 16px; }
.zona[aria-pressed="true"] { background: linear-gradient(90deg, rgba(94, 10, 14, .6), rgba(94, 10, 14, 0)); }
.zona:hover .zona-f, .zona[aria-pressed="true"] .zona-f { transform: translateX(6px); }
.no-aparece { display: inline-flex; align-items: center; gap: .5em; margin-top: 24px; font: 700 1.05rem/1.2 var(--f); }
.no-aparece strong { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.no-aparece svg { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease); }
.no-aparece:hover svg { transform: translateX(5px); }

.mapa-mis { position: relative; }
.mapa-mis-svg { width: 100%; height: auto; overflow: visible; }
.mm-vecinos path { fill: none; stroke: rgba(255, 255, 255, .32); stroke-width: 1.2; stroke-dasharray: 4 5; }
.mm-prov { fill: var(--bordo); stroke: rgba(255, 255, 255, .45); stroke-width: 1.4; stroke-linejoin: round; }
.mm-sombra { fill: rgba(60, 4, 7, .45); }
.mm-r {
  fill: none;
  stroke: #fff;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: opacity .35s, stroke-width .35s, stroke-dashoffset 1.7s var(--ease-io) calc(.25s + var(--i) * .2s);
}
html.anim .mapa-mis:not(.visto) .mm-r { stroke-dashoffset: 1; }
.mm-c { transition: opacity .35s; }
.mm-in { transition: opacity .5s, scale .6s var(--ease); transition-delay: calc(.9s + var(--i) * .06s); }
html.anim .mapa-mis:not(.visto) .mm-in { opacity: 0; scale: .3; }
.mapa-mis.zonificado .mm-in { transition-delay: 0s; }
.mm-c circle { fill: #fff; stroke: var(--bordo); stroke-width: 2.5; }
.mm-c.es-capital circle { fill: var(--negro); stroke: #fff; stroke-width: 3; }
.mm-c text { fill: #fff; font: italic 800 13.5px var(--f-cond); letter-spacing: .05em; paint-order: stroke; stroke: var(--bordo); stroke-width: 3.5px; stroke-linejoin: round; }
.mm-c .mm-suc { font-size: 10px; letter-spacing: .14em; fill: #ffd0d1; }
.mm-pin { fill: #fff; }
.mm-pin-o { fill: var(--rojo); }

/* Zona elegida: se apagan las demás rutas y localidades */
.mapa-mis[data-zona] .mm-r { opacity: .22; }
.mapa-mis[data-zona] .mm-c { opacity: .3; }
.mapa-mis[data-zona="posadas"] .mm-r[data-z~="posadas"],
.mapa-mis[data-zona="obera"] .mm-r[data-z~="obera"],
.mapa-mis[data-zona="eldorado"] .mm-r[data-z~="eldorado"],
.mapa-mis[data-zona="interior"] .mm-r[data-z~="interior"] { opacity: 1; stroke-width: 5.5; }
.mapa-mis[data-zona="posadas"] .mm-c[data-z="posadas"],
.mapa-mis[data-zona="obera"] .mm-c[data-z="obera"],
.mapa-mis[data-zona="eldorado"] .mm-c[data-z="eldorado"],
.mapa-mis[data-zona="interior"] .mm-c[data-z="interior"] { opacity: 1; }

.sucursales { margin-top: clamp(60px, 8vw, 110px); }
.suc-tit { margin-bottom: 22px; font: 800 clamp(1.3rem, 2.2vw, 1.8rem)/1.1 var(--f); text-transform: uppercase; }
.suc-lista { display: grid; gap: 16px; }
.suc {
  display: grid;
  grid-template-areas: "pin lugar" "pin dir" "pin ir";
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 16px;
  padding: 18px 22px 18px 18px;
  border-radius: 0 22px 0 0;
  background: var(--bordo);
  transition: transform .35s var(--ease), background .3s;
}
.suc:hover { transform: translateY(-4px); background: var(--bordo-2); }
.suc-pin { grid-area: pin; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--bordo); }
.suc-pin svg { width: 30px; height: 30px; }
.suc-lugar { grid-area: lugar; color: rgba(255, 255, 255, .75); font: italic 800 .8rem/1.2 var(--f-cond); letter-spacing: .08em; text-transform: uppercase; }
.suc-dir { grid-area: dir; font: 800 1.2rem/1.1 var(--f); }
.suc-ir { grid-area: ir; display: inline-flex; align-items: center; gap: .4em; color: #ffd2d3; font: 700 .86rem/1.3 var(--f); }
.suc-ir svg { width: 1em; height: 1em; }

/* ═════════════════════ 5 · COTIZÁ ═════════════════════ */
.cotizar { overflow: hidden; padding: clamp(120px, 13vw, 180px) var(--g) 0; background: var(--negro); }
.cot-fondo { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.cotizar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, var(--negro) 0%, rgba(18, 18, 18, .5) 28%, rgba(18, 18, 18, .82) 72%, var(--negro) 100%),
    linear-gradient(112deg, rgba(225, 22, 28, .55), transparent 52%);
}
.cot-bandas { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.chev-cot-1 { width: 34vw; height: 70%; top: 6%; right: -16vw; opacity: .5; }
.chev-cot-2 { width: 18vw; height: 38%; top: 14%; right: 4vw; }
.cot-grilla { display: grid; gap: 48px; align-items: start; }
.cot-h2 { margin-top: 0; }
.cotizar .sec-sub { color: rgba(255, 255, 255, .82); }
.cotizar .sec-sub strong { color: #fff; }

.contactos { display: grid; gap: 12px; max-width: 440px; margin-top: 34px; }
.contactos a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 18px 6px 6px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  transition: background .3s, color .3s, transform .35s var(--ease);
}
.contactos a:hover { background: #fff; color: var(--rojo); transform: translateX(6px); }
.c-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--rojo); color: #fff; }
.c-ico svg { width: 22px; height: 22px; }
.c-txt { display: flex; flex-direction: column; min-width: 0; font: 800 1.02rem/1.15 var(--f); overflow-wrap: anywhere; }
.c-txt small { opacity: .65; font: italic 800 .7rem/1.3 var(--f-cond); letter-spacing: .1em; text-transform: uppercase; }

.cotizador {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 28px;
  background: rgba(28, 28, 28, .94);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.cot-tit { margin-bottom: 20px; font: 900 1.35rem/1 var(--f-ext); text-transform: uppercase; }
.cotizador fieldset { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.cotizador legend { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 0; font: italic 800 .9rem/1 var(--f-cond); letter-spacing: .08em; text-transform: uppercase; }
.cotizador legend span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--rojo); font: normal 900 .72rem/1 var(--f-ext); }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opciones label { position: relative; cursor: pointer; }
.opciones input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.opciones span { display: block; padding: .74em 1.05em .7em; border: 1.5px solid rgba(255, 255, 255, .22); border-radius: 99px; font: 700 .92rem/1 var(--f); transition: background .25s, color .25s, border-color .25s; }
.opciones label:hover span { border-color: #fff; }
.opciones input:checked + span { border-color: #fff; background: #fff; color: var(--rojo); }
.opciones input:focus-visible + span { outline: 3px solid var(--rojo); outline-offset: 2px; }
.campo { display: block; margin-top: 10px; }
.campo input { width: 100%; padding: 12px 2px; border: 0; border-bottom: 1.5px solid rgba(255, 255, 255, .25); border-radius: 0; background: transparent; color: #fff; font: 500 1rem var(--f); }
.campo input::placeholder { color: rgba(255, 255, 255, .62); }
.campo input:focus { outline: none; border-bottom-color: var(--rojo); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pill-wa-xl { width: 100%; margin-top: 8px; padding-right: 26px; font-size: 1.1rem; }
.pill-wa-xl .pill-wa-ico { width: 54px; height: 54px; }
.cot-barra { position: absolute; left: 50%; bottom: -10px; width: 56%; height: 10px; border-radius: 0 0 8px 8px; background: var(--rojo); translate: -50% 0; }

.firma {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: clamp(80px, 10vw, 130px);
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .55);
  font: italic 800 .8rem/1.3 var(--f-cond);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.firma img { width: 122px; height: auto; }
.firma-dev { margin-left: auto; color: rgba(255, 255, 255, .7); transition: color .3s; }
.firma-dev strong { color: #fff; font-weight: 800; }
.firma-dev:hover { color: #fff; }
.firma-dev:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.marca-gigante {
  margin: 0 calc(var(--g) * -1);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .14);
  font: 900 clamp(3.2rem, 13vw, 19rem)/.74 var(--f-ext);
  letter-spacing: -.03em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  translate: 0 .08em;
}

/* WhatsApp flotante (aparece después de la portada) */
.wa-flot {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(14px, 2vw, 26px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  border-radius: 99px;
  background: #fff;
  color: var(--rojo);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
  font: 800 .95rem/1 var(--f);
  transition: translate .5s var(--ease), opacity .4s;
}
.wa-flot .pill-wa-ico { width: 52px; height: 52px; }
.wa-flot-txt { padding-right: 16px; }
html.anim .wa-flot:not(.on) { translate: 0 150%; opacity: 0; pointer-events: none; }

/* ─────────────── Revelados al hacer scroll ─────────────── */
/* :where() deja la especificidad baja para que .visto siempre gane */
html.anim [data-rv]:where(:not([data-rv="lineas"], [data-rv="wipe"], [data-rv="mapa"])) {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s);
}
html.anim [data-rv].visto { opacity: 1; transform: none; }
html.anim [data-rv="lineas"] .l > span { transform: translateY(160%); transition: transform 1.05s var(--ease); }
html.anim [data-rv="lineas"] .l:nth-child(2) > span { transition-delay: .09s; }
html.anim [data-rv="lineas"] .l:nth-child(3) > span { transition-delay: .18s; }
html.anim [data-rv="lineas"].visto .l > span { transform: none; }
html.anim [data-rv="wipe"] { clip-path: inset(0 100% 0 0); transition: clip-path .85s var(--ease-io) var(--d, 0s); }
html.anim [data-rv="wipe"].visto { clip-path: inset(-4px -4px -4px -12px); }

/* ═════════════════════ Tablet ═════════════════════ */
@media (min-width: 720px) {
  .suc-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ═════════════════════ Escritorio ═════════════════════ */
@media (min-width: 1024px) {
  .hero { justify-content: center; padding-top: 120px; }
  .hero-txt { max-width: 62%; }
  .hero-h1 { font-size: clamp(5rem, min(11vw, 18vh), 12rem); }
  .hero-medio { left: 40%; }
  .hero-medio::after {
    background:
      linear-gradient(90deg, rgba(225, 22, 28, .62) 0%, rgba(225, 22, 28, .12) 38%, rgba(18, 18, 18, 0) 70%),
      linear-gradient(0deg, rgba(18, 18, 18, .75), rgba(18, 18, 18, 0) 42%);
  }
  html.anim .hero-medio { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
  html.anim .hero.listo .hero-medio,
  .hero-medio { clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
  .chev-1 { width: 26vw; height: 118%; top: -9%; right: auto; left: 33vw; opacity: .7; }
  .chev-2 { width: 11vw; height: 66%; top: -4%; right: auto; left: 52vw; opacity: .6; }
  .chev-3 { display: block; width: 7vw; height: 44%; bottom: -6%; right: 6vw; opacity: .55; mix-blend-mode: multiply; }

  .servicios .h2 { font-size: clamp(3rem, 5.2vw, 5.4rem); }
  .cobertura .h2 { font-size: clamp(2.2rem, 3.6vw, 4.2rem); }
  .cot-h2 { font-size: clamp(2.1rem, 3.3vw, 4.4rem); }
  html.anim .serv-pin { height: 380vh; }
  .serv { flex-direction: row; width: min(1040px, 74vw); height: min(62vh, 540px); }
  .serv-foto { width: 52%; height: 100%; aspect-ratio: auto; max-height: none; }
  .serv-cuerpo { display: flex; flex-direction: column; justify-content: center; width: 48%; padding: clamp(28px, 3.4vw, 54px); }
  .serv-p { font-size: 1.05rem; }
  .serv-n { left: 26px; bottom: 16px; }

  .como-pista { height: 330vh; }
  .como-fijo {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 640px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 5vw;
    padding-block: 92px 36px;
  }
  .como .h2 { font-size: clamp(2.3rem, 4.4vw, 4.6rem); }
  .km { margin-top: 22px; font-size: clamp(3.6rem, 6.6vw, 7rem); }
  .pasos { margin-top: 24px; }
  .paso { padding: 12px 0; }
  .mapa-ruta { width: auto; height: calc(100vh - 128px); max-height: 860px; max-width: 100%; }

  .cob-grilla { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 5vw; }
  .mapa-mis-svg { max-height: 86vh; margin-inline: auto; width: auto; }

  .cot-grilla { grid-template-columns: minmax(0, 1fr) minmax(0, clamp(420px, 36vw, 540px)); gap: 5vw; }
}

@media (min-width: 1024px) and (max-height: 820px) {
  .hero { padding-top: 96px; }
  .hero-sub { margin-top: 20px; }
  .como .h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
  .km { font-size: clamp(3rem, 5.4vw, 5.2rem); }
  .paso p { font-size: .9rem; }
  .paso { padding: 9px 0; }
}

/* ═════════════════════ Celular ═════════════════════ */
@media (max-width: 719px) {
  .tope { gap: 18px; padding-block: 12px; }
  .tope-ruta { height: 16px; }
  .tr-p span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tr-p i { width: 13px; height: 13px; border-width: 2.5px; }
  .tr-linea { top: 5px; }
  .tr-camion { top: -12px; width: 22px; height: 12px; }
  .wa-flot-txt { display: none; }
  .wa-flot { padding: 4px; }
  .cinta { margin-top: -18px; padding: 22px 0; }
  .zona { padding-right: 4px; }
}

/* Movimiento reducido: sin desplazamientos ni bucles, sólo fundidos */
/* Recorrido en celular y tablet: pantalla fija, el scroll mueve el camión */
@media (max-width: 1023px) {
  html.anim .como-pista { height: 340vh; }
  html.anim .como-fijo {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
    gap: 0;
    padding: 70px var(--g) 18px;
    overflow: hidden;
  }
  html.anim .como-izq { display: contents; }
  html.anim .como .chip { order: 1; justify-self: start; }
  html.anim .como .h2 { order: 2; margin-top: 12px; font-size: clamp(1.7rem, 8vw, 3rem); }
  html.anim .como-mapa { order: 3; min-height: 0; margin: 8px 0; }
  html.anim .mapa-ruta { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
  html.anim .km { order: 4; margin-top: 0; font-size: clamp(2.4rem, 11vw, 4.4rem); }
  html.anim .km-leyenda { order: 5; margin-top: 4px; font-size: .8rem; }
  html.anim .pasos { order: 6; margin-top: 10px; }
  html.anim .paso { padding: 10px 0 0; }
  html.anim .paso:not(.activo) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  html.anim [data-rv],
  html.anim [data-rv="lineas"] .l > span,
  html.anim [data-rv="wipe"] { transform: none !important; clip-path: none !important; }
  html.anim [data-rv] { transition: opacity .5s linear !important; }
  html.anim .hero-medio { transition: none; }
  .mm-r, .mr-ramal, .mm-in { transition-duration: .01s !important; transition-delay: 0s !important; }
}
