/* ============================================================
   Hero: imagen nueva + mapa vectorial en el piso + pantalla real
   Capas (de abajo hacia arriba):
   1. .hero-mapa  → calles en perspectiva, se desvanecen antes de las orillas
   2. .hero-tapa  → parche blanco detrás de la SIM (si no, el mapa se vería a través)
   3. imagen      → mix-blend-mode: multiply: su fondo blanco deja ver el mapa
   4. .hero-pant  → pantalla real animada, recortada alrededor del GPS y la SIM
   Medidas tomadas sobre hero-nuevo.webp (1611 × 2000).
   ============================================================ */

.hero-comp {
  --ink: #0a223b; --blue: #006aca; --sky: #eaf5ff; --muted: #617084;
  position: relative; width: 100%; max-width: 480px; margin: 0 auto;
  aspect-ratio: 1611 / 2000;
}
@media (max-width: 899px) { .hero-comp { max-width: 440px; } }

.hero-comp .hero-img-nueva {
  position: relative; z-index: 2;
  width: 100%; height: 100%; max-width: none; display: block;
  filter: none;                                   /* la sombra del sitio rodeaba el rectángulo */
  mix-blend-mode: multiply;
}

/* 1 · Mapa en el piso */
.hero-mapa {
  position: absolute; z-index: 0; left: 0; right: 0; top: 62%; height: 36%;
  perspective: 1500px; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 30%, transparent 100%);
}
.hero-mapa svg {
  position: absolute; left: -15%; width: 130%; top: -45%; height: 190%;
  transform: rotateX(56deg); transform-origin: 50% 50%;
}
.hm-calles path { fill: none; stroke: #d3e0ec; stroke-width: 2.5; }
.hm-calles .hm-av { stroke: #c3d5e6; stroke-width: 7; }
.hm-calles .hm-fina { stroke: #e0e9f2; stroke-width: 2; }
.hm-ruta { fill: none; stroke: var(--blue); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.hm-punto { fill: var(--blue); stroke: #fff; stroke-width: 5; }
.hm-pulso { fill: var(--blue); opacity: 0; transform-box: fill-box; transform-origin: center; }

/* 2 · Parche detrás de la SIM */
.hero-tapa { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; }
.hero-tapa polygon { fill: #fff; }

/* 4 · Pantalla del celular (diseñada a 300 × 656 y escalada con --s) */
.hero-pant {
  position: absolute; z-index: 3;
  left: 34.70%; top: 13%; width: 35.13%; height: 61.9%;
  border-radius: 14.1% / 6.46%;
  overflow: hidden; background: #fff;
  /* el GPS (derecha) y la SIM (abajo a la izquierda) quedan delante de la pantalla */
  clip-path: polygon(0 0, 100% 0, 100% 48.3%, 78.4% 49.2%, 74.4% 49.9%, 71.7% 51.2%, 70.3% 53.2%, 70.3% 100%, 25.6% 100%, 23.7% 84.6%, 0 84.6%);
}
.hp {
  position: absolute; left: 0; top: 0; width: 300px; height: 656px;
  transform: scale(var(--s, 1)); transform-origin: 0 0;
  font-family: Inter, sans-serif; color: var(--ink);
}
.hp-isla { position: absolute; top: 8px; left: 104px; width: 92px; height: 27px; border-radius: 20px; background: #0a0b0d; }
.hp-barra { position: absolute; top: 0; left: 0; right: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 2px 24px 0 30px; font-size: 13px; font-weight: 600; }
.hp-barra .tel-iconos { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.hp-barra .tel-iconos i { width: 3px; background: var(--ink); border-radius: 1px; }
.hp-barra .tel-iconos i:nth-child(1) { height: 5px; } .hp-barra .tel-iconos i:nth-child(2) { height: 8px; } .hp-barra .tel-iconos i:nth-child(3) { height: 11px; }
.hp-barra .tel-iconos b { width: 21px; height: 10px; margin-left: 5px; border: 1.5px solid var(--ink); border-radius: 3px; box-shadow: inset 0 0 0 1.5px #fff, inset 0 0 0 8px var(--ink); }
.hp-url {
  position: absolute; top: 48px; left: 14px; right: 14px; height: 28px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  border-radius: 9px; background: #f1f4f7; color: #4b5563; font-size: 12px; font-weight: 500;
}
.hp-url svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.hp-banda { position: absolute; top: 84px; left: 10px; right: 10px; z-index: 2; padding: 12px 14px 14px; border-radius: 16px; background: var(--blue); color: #fff; }
.hp-est { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: #ffffff26; font-size: 11px; font-weight: 600; }
.hp-est i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.hp-est i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: hp-ping 1.6s ease-out infinite; }
@keyframes hp-ping { to { transform: scale(2.8); opacity: 0; } }
.hp-nom { margin-top: 6px; font: 800 22px 'Plus Jakarta Sans', sans-serif; letter-spacing: -.5px; }
.hp-datos { display: flex; gap: 14px; margin-top: 8px; }
.hp-datos p { font-size: 10.5px; }
.hp-datos b { font: 800 17px 'Plus Jakarta Sans', sans-serif; font-variant-numeric: tabular-nums; }
.hp-datos small { display: block; font-size: 10px; opacity: .8; }
.hp-mapa { position: absolute; top: 196px; left: 0; width: 300px; height: 460px; }
.hp-cuadras rect { fill: #dde9f3; }
.hp-calle { fill: none; stroke: #fff; stroke-width: 8; }
.hp-ruta { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.hp-auto-pulso { fill: var(--blue); }
.hp-auto-punto { fill: var(--blue); stroke: #fff; stroke-width: 3.5; }
.hp-dir {
  position: absolute; top: 468px; left: 10px; width: 192px; z-index: 2;
  display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 14px;
  background: #fff; box-shadow: 0 8px 24px #0a223b1f, 0 0 0 1px #e8edf2;
}
.hp-dir-ico { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--sky); position: relative; }
.hp-dir-ico::after { content: ""; position: absolute; left: 9px; top: 7px; width: 11px; height: 11px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: inset 0 0 0 3px var(--blue), inset 0 0 0 6px #fff; background: var(--blue); }
.hp-dir b { display: block; font-size: 12.5px; }
.hp-dir span { display: block; font-size: 11px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .hp-est i::after { animation: none; }
}
