/* =========================================================
   RUPTEC - HERO SECTION
   Módulo 1: Header + Hero
========================================================= */
/* Estado visible de seguridad */
.site-header,
.animate-hero,
.hero-truck,
.hotspot,
.tech-line,
.hero-card {
  visibility: visible;
}

.hero-section {
  position: relative;
  min-height: 860px;
  padding-top: 78px;
  overflow: hidden;
  background: #ffffff;
}

/* Fondo de carretera */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 78px 0 0 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.84) 34%,
      rgba(255, 255, 255, 0.36) 62%,
      rgba(255, 255, 255, 0.10) 100%
    ),
    url("../assets/hero/hero-road-bg.png");
  background-size: cover;
  background-position: center bottom;
  opacity: 0.76;
  pointer-events: none;
}

/* Luz blanca inferior para integrar carretera y contenido */
.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 190px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.84) 72%,
    rgba(255, 255, 255, 1) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Formas suaves de fondo */
.hero-bg-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.5;
  pointer-events: none;
}

.shape-one {
  width: 360px;
  height: 360px;
  background: rgba(0, 87, 255, 0.12);
  right: 4%;
  top: 18%;
}

.shape-two {
  width: 220px;
  height: 220px;
  background: rgba(52, 152, 255, 0.16);
  left: 42%;
  bottom: 8%;
}

/* Layout principal */
.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 760px;
  align-items: center;
  min-height: calc(860px - 78px);
  gap: 40px;
}

/* =========================================================
   CONTENIDO IZQUIERDO
========================================================= */

.hero-content {
  padding: 78px 0 64px;
}

.hero-eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.hero-title {
  max-width: 640px;
  font-size: clamp(48px, 5vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
  color: #101b2d;
}

.hero-title span {
  display: block;
}

.hero-title .blue {
  color: var(--color-primary);
  font-style: italic;
}

.hero-description {
  max-width: 560px;
  margin-top: 28px;
  color: #334158;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  flex-wrap: nowrap;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
  white-space: nowrap;
  flex: 0 0 auto;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: center;
  gap: 18px 32px;
  margin-top: 52px;
}

.hero-feature {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #26364e;
  font-size: 14px;
  font-weight: 800;
}

.feature-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-weight: 900;
  flex-shrink: 0;
}

/* =========================================================
   VISUAL DERECHO - CAMIÓN + HOTSPOTS + CARDS
========================================================= */

.hero-visual {
  position: relative;
  width: 760px;
  height: 760px;
  justify-self: end;
  overflow: visible;
}

/* Sombra/luz debajo del camión */
.truck-glow {
  position: absolute;
  width: 560px;
  height: 210px;
  right: 130px;
  bottom: 90px;
  background: radial-gradient(
    ellipse,
    rgba(0, 87, 255, 0.15),
    rgba(0, 87, 255, 0.06) 38%,
    transparent 72%
  );
  filter: blur(18px);
  z-index: 1;
}

/*
  IMPORTANTE:
  truck-stage controla camión + puntos.
  Si cambias el tamaño del camión, cambia aquí, no cada hotspot.
*/
.truck-stage {
  position: absolute;
  width: 560px;
  height: 470px;
  right: 170px;
  bottom: 118px;
  z-index: 3;
}

/* Imagen del camión */
.hero-truck {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(16, 27, 45, 0.18));
  z-index: 3;
}

/* Hotspots */
/* =========================
   HOTSPOTS DEL HERO
========================= */

.hotspot {
  position: absolute;
  z-index: 30;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  cursor: pointer;
  box-shadow:
    0 0 0 8px rgba(0, 87, 255, 0.13),
    0 16px 28px rgba(0, 87, 255, 0.22);
  animation: hotspot-pulse 2.2s infinite;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.hotspot span {
  position: relative;
  z-index: 2;

  width: 100%;
  height: 100%;

  display: grid;
  place-items: center;

  color: #ffffff;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;

  pointer-events: none;
  transform: translateY(-1px);
}

.hotspot:hover {
  transform: scale(1.12);
}

@keyframes hotspot-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(0, 87, 255, 0.34),
      0 12px 24px rgba(0, 87, 255, 0.2);
  }

  70% {
    box-shadow:
      0 0 0 12px rgba(0, 87, 255, 0),
      0 12px 24px rgba(0, 87, 255, 0.2);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(0, 87, 255, 0),
      0 12px 24px rgba(0, 87, 255, 0.2);
  }
}

/* Posición de hotspots - arco centrado y sincronizado con cards */
.point-dms,
.point-adas,
.point-bsd,
.point-counter,
.point-avm {
  right: auto;
  bottom: auto;
}

/* 
  Mantengo una progresión vertical parecida a la original
  para que siga alineada con los cards,
  pero corrijo la curva horizontal para que el arco
  quede más centrado sobre el camión.
*/
.point-dms {
  top: 145px;
  left: 250px;
}

.point-adas {
  top: 265px;
  left: 205px;
}

.point-bsd {
  top: 385px;
  left: 190px;
}

.point-counter {
  top: 505px;
  left: 215px;
}

.point-avm {
  top: 625px;
  left: 260px;
}

/* Líneas punteadas desde hotspots hacia cards */
.tech-line {
  position: absolute;
  z-index: 6;
  height: 1px;
  border-top: 1px dashed rgba(0, 87, 255, 0.38);
}

/* Líneas punteadas sincronizadas con el nuevo arco y los cards */
.line-dms {
  width: 155px;
  top: 162px;
  left: 286px;
}

.line-adas {
  width: 198px;
  top: 282px;
  left: 241px;
}

.line-bsd {
  width: 212px;
  top: 402px;
  left: 226px;
}

.line-counter {
  width: 187px;
  top: 522px;
  left: 251px;
}

.line-avm {
  width: 142px;
  top: 642px;
  left: 296px;
}

.hotspot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid rgba(0, 87, 255, 0.16);
  animation: hotspotRing 2.2s infinite;
}

@keyframes hotspotRing {
  0% {
    transform: scale(0.82);
    opacity: 0.65;
  }

  70% {
    transform: scale(1.35);
    opacity: 0;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* Cards laterales */
.hero-card {
  position: absolute;
  z-index: 20;
  width: 320px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(231, 237, 245, 0.95);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition:
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .hero-card:hover {
    box-shadow: var(--shadow-medium);
    border-color: rgba(0, 87, 255, 0.22);
  }
}

.hero-card strong {
  display: block;
  color: var(--color-dark);
  font-size: 16px;
  line-height: 1.2;
}

.hero-card p {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
  line-height: 1.35;
}

.hero-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-weight: 900;
}

/* Posición ordenada de cards */
.card-dms {
  top: 115px;
  right: 0;
}

.card-adas {
  top: 235px;
  right: 8px;
}

.card-bsd {
  top: 355px;
  right: 0;
}

.card-counter {
  top: 475px;
  right: -6px;
}

.card-avm {
  top: 595px;
  right: 18px;
}

/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(0, 87, 255, 0.34),
      0 16px 28px rgba(0, 87, 255, 0.22);
  }

  70% {
    box-shadow:
      0 0 0 14px rgba(0, 87, 255, 0),
      0 16px 28px rgba(0, 87, 255, 0.22);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(0, 87, 255, 0),
      0 16px 28px rgba(0, 87, 255, 0.22);
  }
}

/* =========================================================
   RESPONSIVE HERO
========================================================= */

@media (max-width: 1280px) {
  .hero-container {
    grid-template-columns: minmax(0, 1fr) 690px;
    gap: 24px;
  }

  .hero-visual {
    width: 690px;
  }

  .truck-stage {
    width: 520px;
    height: 440px;
    right: 150px;
    bottom: 130px;
  }

  .hero-card {
    width: 300px;
  }

  .card-dms {
    right: 4px;
  }

  .card-adas {
    right: 4px;
  }

  .card-bsd {
    right: 4px;
  }

  .card-counter {
    right: 0;
  }

  .card-avm {
    right: 10px;
  }
}

@media (max-width: 1180px) {
  .hero-section {
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 10px;
  }

  .hero-content {
    padding: 72px 0 24px;
  }

  .hero-visual {
    width: 100%;
    max-width: 860px;
    height: 720px;
    justify-self: center;
    margin-inline: auto;
  }

  .truck-stage {
    width: 560px;
    height: 470px;
    right: 250px;
    bottom: 120px;
  }

  .truck-glow {
    right: 240px;
    bottom: 90px;
  }

  .card-dms,
  .card-adas,
  .card-bsd,
  .card-counter,
  .card-avm {
    right: 24px;
  }
}

@media (max-width: 980px) {
  .hero-section {
    padding-top: 70px;
  }

.hero-section::before {
  inset: 70px 0 0 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.70) 45%,
      rgba(255, 255, 255, 0.38) 100%
    ),
    url("../assets/hero/hero-road-bg.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 1;
}

  .hero-content {
    padding-top: 58px;
    text-align: left;
  }

  .hero-title {
    font-size: clamp(44px, 10vw, 68px);
  }

  .hero-description {
    max-width: 620px;
  }

  .hero-visual {
    height: 680px;
  }

  .truck-stage {
    width: 520px;
    height: 440px;
    right: auto;
    left: 0;
    bottom: 110px;
  }

  .truck-glow {
    width: 520px;
    right: auto;
    left: 20px;
    bottom: 84px;
  }

  .hero-card {
    width: 285px;
    padding: 15px 16px;
  }

  .card-dms {
    top: 60px;
    right: 0;
  }

  .card-adas {
    top: 184px;
    right: 0;
  }

  .card-bsd {
    top: 308px;
    right: 0;
  }

  .card-counter {
    top: 432px;
    right: 0;
  }

  .card-avm {
    top: 556px;
    right: 0;
  }

  .tech-line {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero-visual {
    height: 590px;
  }

  .hero-card {
    width: 225px;
    min-width: 0;
    max-width: none;
    right: 0;
  }

  .card-dms {
    top: 12px;
  }

  .card-adas {
    top: 108px;
  }

  .card-bsd {
    top: 204px;
  }

  .card-counter {
    top: 300px;
  }

  .card-avm {
    top: 396px;
  }

  .hero-content {
    padding-top: 46px;
    padding-bottom: 20px;
  }

  .hero-eyebrow {
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .hero-title {
    font-size: clamp(40px, 13vw, 58px);
    letter-spacing: -0.05em;
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
    margin-top: 30px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 34px;
  }

  .hero-feature {
    font-size: 13px;
  }

  .hero-visual {
    height: 640px;
    margin-top: 8px;
  }

  .truck-stage {
    width: 470px;
    height: 400px;
    left: 50%;
    transform: translateX(-56%);
    bottom: 125px;
  }

  .truck-glow {
    width: 420px;
    height: 160px;
    left: 50%;
    transform: translateX(-60%);
    bottom: 100px;
  }

  .hotspot {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

.point-dms,
.point-adas,
.point-bsd,
.point-counter,
.point-avm {
  right: auto;
  bottom: auto;
}

.point-dms {
  top: 82px;
  left: 68px;
}

.point-adas {
  top: 158px;
  left: 40px;
}

.point-bsd {
  top: 238px;
  left: 34px;
}

.point-counter {
  top: 318px;
  left: 56px;
}

.point-avm {
  top: 392px;
  left: 104px;
}
  .hero-card {
    width: 250px;
    padding: 12px 13px;
    gap: 10px;
  }

  .hero-card strong {
    font-size: 13px;
  }

  .hero-card p {
    font-size: 10.5px;
  }

  .hero-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 12px;
  }

}

@media (max-width: 520px) {
  .hero-visual {
    height: 570px;
  }

  .hero-card {
    width: 205px;
  }

  .card-dms {
    top: 8px;
  }

  .card-adas {
    top: 98px;
  }

  .card-bsd {
    top: 188px;
  }

  .card-counter {
    top: 278px;
  }

  .card-avm {
    top: 368px;
  }
}

@media (max-width: 430px) {
  .hero-visual {
    height: 540px;
  }

  .hero-card {
    width: 190px;
    padding: 10px;
  }

  .truck-stage {
    width: 390px;
    height: 340px;
    transform: translateX(-64%);
    bottom: 130px;
  }

  .hero-card-icon {
    width: 32px;
    height: 32px;
  }

  .card-dms {
    top: 0;
  }

  .card-adas {
    top: 86px;
  }

  .card-bsd {
    top: 172px;
  }

  .card-counter {
    top: 258px;
  }

  .card-avm {
    top: 344px;
  }
}

/* =========================
   ESTADO ESTABLE DEL HERO
========================= */

.site-header {
  opacity: 1;
  visibility: visible;
}

.hotspot {
  opacity: 1;
  visibility: visible;
}

.hotspot span {
  opacity: 1;
  visibility: visible;
}