html { scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; color: #0E0F12; font-family: Manrope, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
* { box-sizing: border-box; }
a { color: #E4002B; text-decoration: none; }
a:hover { color: #B00021; }
::selection { background: #E4002B; color: #fff; }

@keyframes vk-pulse { 0% { transform: scale(1); opacity: .55; } 70% { transform: scale(2.6); opacity: 0; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes vk-dash { to { stroke-dashoffset: -400; } }
@keyframes vk-draw { 0% { stroke-dashoffset: 900; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes vk-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes vk-float2 { 0%,100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }
@keyframes vk-scan { 0% { transform: translateY(-10%); opacity: 0; } 40% { opacity: .8; } 100% { transform: translateY(420%); opacity: 0; } }
@keyframes vk-drive-a { 0% { offset-distance: 0%; } 100% { offset-distance: 100%; } }
@keyframes vk-drive-b { 0% { offset-distance: 12%; } 100% { offset-distance: 112%; } }
@keyframes vk-blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes vk-sweep { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
@keyframes vk-spin { to { transform: rotate(360deg); } }
@keyframes vk-bar { 0% { transform: scaleY(.35); } 100% { transform: scaleY(1); } }

@media (max-width: 1080px) {
  [data-r="nav"] { gap: 18px !important; font-size: 13.5px !important; }
  [data-r="dash"] { grid-template-columns: 210px 1fr 230px !important; }
}

[data-menu-btn] { display: none; }
[data-mobile-menu] {
  position: fixed; inset: 0; z-index: 90;
  height: 100vh; height: 100dvh;
  background: rgba(255,255,255,.98); backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  padding: calc(96px + env(safe-area-inset-top, 0px)) 28px calc(40px + env(safe-area-inset-bottom, 0px));
  opacity: 0; visibility: hidden; transform: translateY(-14px);
  transition: opacity .35s cubic-bezier(.2,.8,.2,1), transform .35s cubic-bezier(.2,.8,.2,1), visibility .35s;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
[data-mobile-menu].is-open { opacity: 1; visibility: visible; transform: translateY(0); }
[data-mobile-menu] nav a[data-mobile-link] {
  opacity: 0; transform: translateY(10px);
  transition: opacity .38s ease, transform .38s ease, color .2s ease, background .2s ease;
  border-radius: 10px; padding-left: 10px; padding-right: 10px;
}
[data-mobile-menu].is-open nav a[data-mobile-link] { opacity: 1; transform: none; }
[data-mobile-menu] nav a[data-mobile-link]:nth-child(1) { transition-delay: .04s; }
[data-mobile-menu] nav a[data-mobile-link]:nth-child(2) { transition-delay: .08s; }
[data-mobile-menu] nav a[data-mobile-link]:nth-child(3) { transition-delay: .12s; }
[data-mobile-menu] nav a[data-mobile-link]:nth-child(4) { transition-delay: .16s; }
[data-mobile-menu] nav a[data-mobile-link]:nth-child(5) { transition-delay: .2s; }
[data-mobile-menu] nav a[data-mobile-link]:nth-child(6) { transition-delay: .24s; }
[data-mobile-menu] nav a[data-mobile-link]:nth-child(7) { transition-delay: .28s; }
[data-mobile-menu] nav a[data-mobile-link]:active { background: #F5F5F7; }
[data-mobile-menu] nav a[data-mobile-link].is-active { color: #E4002B; }
[data-r="nav"] a.is-active { color: #0E0F12 !important; }

@media (max-width: 900px) {
  [data-r="nav"] { display: none !important; }
  [data-menu-btn] { display: inline-flex !important; }
  header[data-header] { top: 10px !important; width: calc(100% - 24px) !important; padding: 10px 10px 10px 16px !important; z-index: 100 !important; }
  [data-r="two"], [data-r="dash"], [data-r="flowgrid"] { grid-template-columns: 1fr !important; }
  [data-r="two"] { gap: 40px !important; }
  [data-r="stats"] { grid-template-columns: repeat(2, 1fr) !important; gap: 28px 16px !important; }
  [data-r="cards3"], [data-r="ind"] { grid-template-columns: repeat(2, 1fr) !important; }
  [data-r="benef"] { grid-template-columns: repeat(2, 1fr) !important; }
  [data-r="benef"] > div { grid-column: span 1 !important; }
  [data-r="foot"] { grid-template-columns: repeat(2, 1fr) !important; gap: 34px !important; }
  [data-r="dash"] aside { border-left: none !important; border-right: none !important; border-top: 1px solid #F1F1F4; }
  [data-r="dash"] > div:nth-child(2) { min-height: 320px; }
  [data-r="flowgrid"] { gap: 34px !important; }
  [data-r="flowgrid"] > div[data-reveal] { display: grid !important; grid-template-columns: 88px 1fr !important; gap: 18px !important; text-align: left !important; padding: 0 !important; align-items: center !important; }
  [data-r="flowgrid"] > div[style*="position:absolute"], [data-flow-line] { display: none !important; }
  [data-r="phones"] { height: 470px !important; }
  [data-r="heromap"] { height: 340px !important; }
  section { padding-left: 20px !important; padding-right: 20px !important; }
  footer { padding-left: 20px !important; padding-right: 20px !important; }
  #inicio { padding-top: 132px !important; padding-bottom: 64px !important; }
}

@media (max-width: 620px) {
  section { padding-top: 76px !important; padding-bottom: 76px !important; }
  [data-r="cards3"], [data-r="ind"], [data-r="benef"], [data-r="foot"], [data-r="stats"] { grid-template-columns: 1fr !important; }
  [data-r="phones"] { height: 430px !important; }
  [data-r="phones"] > div:nth-child(2) { left: 0 !important; top: 40px !important; transform: scale(.86) !important; transform-origin: top left !important; }
  [data-r="phones"] > div:nth-child(3) { right: 0 !important; top: 90px !important; transform: scale(.78) !important; transform-origin: top right !important; }
  [data-r="heromap"] { height: 280px !important; }
  #inicio [data-parallax] { transform: none !important; }
}

@media (max-width: 380px) {
  header[data-header] > a[href="#contacto"] { padding: 9px 14px !important; font-size: 13.5px !important; }
  [data-r="stats"] { gap: 24px 10px !important; }
  [data-r="stats"] div[style*="font-size:40px"] { font-size: 32px !important; }
}

@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

.truck-hotspot-container { position: relative; width: 55%; min-width: 400px; max-width: 620px; margin: 0 auto; border-radius: 24px; overflow: hidden; border: 1px solid #ECECEF; background: linear-gradient(180deg,#fff,#FBFBFC); box-shadow: 0 40px 90px -50px rgba(14,15,18,.35); }
.truck-hotspot-container .truck-img { display: block; width: 100%; height: auto; }
.hotspot {
  position: absolute; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.94); border: 2px solid #E4002B;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; cursor: pointer; user-select: none;
  box-shadow: 0 4px 10px rgba(14,15,18,.18);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .25s ease, color .25s ease;
}
.hotspot:hover, .hotspot.active { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 6px 14px rgba(228,0,43,.32); }
.hotspot.active { background: #E4002B; border-color: #E4002B; color: #fff; }
.hotspot.pulse::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1.5px solid #E4002B; animation: hotspot-pulse 2.2s ease-out infinite;
}
.hotspot::after {
  content: attr(data-tooltip); position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(6px); white-space: nowrap;
  background: #0E0F12; color: #fff; font-family: Manrope, Helvetica, Arial, sans-serif;
  font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 7px;
  box-shadow: 0 8px 18px -10px rgba(14,15,18,.5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.hotspot:hover::after, .hotspot.active::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

@keyframes hotspot-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.9); opacity: 0; } }

@media (max-width: 1080px) {
  .truck-hotspot-container { width: 60%; min-width: 360px; max-width: 500px; }
}

@media (max-width: 900px) {
  .truck-hotspot-container { width: 70%; min-width: 340px; max-width: 460px; }
}

@media (max-width: 620px) {
  .truck-hotspot-container { width: 88%; min-width: 300px; max-width: none; }
  .hotspot { width: 26px; height: 26px; font-size: 12px; }
  .hotspot::after { font-size: 12px; padding: 5px 9px; }
}

@media (max-width: 380px) {
  .truck-hotspot-container { width: 96%; min-width: 260px; }
}

@media (max-width: 380px) {
  .truck-hotspot-container { width: 85%; min-width: 190px; }
}

/* step-form / cotizador */
#form-wrapper { max-width: 640px; margin: 0 auto; padding: 40px 36px; border-radius: 24px; border: 1px solid #ECECEF; background: linear-gradient(180deg,#fff,#FBFBFC); box-shadow: 0 40px 90px -50px rgba(14,15,18,.3); }
#progress-container { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
#progress-text { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 600; color: #E4002B; min-width: 38px; }
#progress-bar-bg { flex: 1; height: 6px; border-radius: 3px; background: #F0F0F3; overflow: hidden; }
#progress-bar { width: 0%; height: 100%; background: linear-gradient(90deg,#E4002B,#FF4D6D); border-radius: 3px; transition: width .4s cubic-bezier(.2,.8,.2,1); }

#step-form .step { display: none; }
#step-form .step.active { display: block; animation: step-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#step-form .step h2 { margin: 0 0 24px; font-family: 'Space Grotesk', Helvetica, sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: #0E0F12; }
#step-form .step p { margin: 0; font-size: 15px; line-height: 1.6; color: #6B7076; }

#step-form .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
#step-form .stack { display: flex; flex-direction: column; gap: 10px; }

#step-form .card {
  padding: 16px 18px; border-radius: 14px; border: 1px solid #EDEDF0; background: #fff;
  font-size: 14.5px; font-weight: 600; color: #0E0F12; cursor: pointer; user-select: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
#step-form .card:hover { border-color: #E0E1E6; transform: translateY(-2px); box-shadow: 0 12px 24px -18px rgba(14,15,18,.4); }
#step-form .card.selected { border-color: #E4002B; background: rgba(228,0,43,.06); color: #B00021; box-shadow: 0 0 0 1px #E4002B inset; }

#step-form input[type="email"], #step-form input[type="tel"], #step-form input[type="text"] {
  width: 100%; padding: 15px 16px; border-radius: 12px; border: 1px solid #E4E5E9;
  font-size: 15.5px; font-family: Manrope, Helvetica, Arial, sans-serif; color: #0E0F12;
  outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
#step-form input:focus { border-color: #E4002B; box-shadow: 0 0 0 3px rgba(228,0,43,.12); }

.form-nav { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
#backBtn {
  display: none; padding: 13px 22px; border-radius: 12px; border: 1px solid #E4E5E9; background: #fff;
  color: #0E0F12; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: border-color .2s ease;
}
#backBtn:hover { border-color: #0E0F12; }
#nextBtn {
  margin-left: auto; padding: 13px 26px; border-radius: 12px; border: none; background: #E4E5E9;
  color: #9096A0; font-weight: 600; font-size: 14.5px; cursor: not-allowed;
  transition: background .25s ease, color .25s ease, transform .2s ease, box-shadow .2s ease;
}
#nextBtn.enabled { background: #E4002B; color: #fff; cursor: pointer; box-shadow: 0 10px 24px rgba(228,0,43,.28); }
#nextBtn.enabled:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(228,0,43,.34); }

@media (max-width: 620px) {
  #form-wrapper { padding: 28px 20px; border-radius: 18px; }
  #step-form .grid { grid-template-columns: 1fr; }
  #step-form .step h2 { font-size: 19px; }
}
