/* Hero de la portada: relieve de Colombia con la anomalía de temperatura del aire de 12 meses (14-nov-2026).
   Solo lo carga index.html. La imagen fija es el respaldo (sin WebGL, «reducir movimiento», buscadores). */
.hero-figure .ph.hero-mapa{aspect-ratio:auto;height:clamp(420px,46vw,600px);clip-path:none;box-shadow:none;border-radius:0;overflow:visible;background:none}
.hero-figure .ph.hero-mapa .mapa-fijo,.hero-mapa canvas{position:absolute;inset:-4% -8% 0 -8%;width:116%;height:104%;max-width:none;display:block;
  -webkit-mask-image:radial-gradient(ellipse 70% 68% at 50% 48%,#000 58%,transparent 100%);mask-image:radial-gradient(ellipse 70% 68% at 50% 48%,#000 58%,transparent 100%)}
.hero-figure .ph.hero-mapa .mapa-fijo{object-fit:contain;animation:none;border-radius:0;box-shadow:none;transition:opacity .2s ease .15s}
.hero-mapa canvas{opacity:0;transition:opacity .35s ease}
.hero-mapa.en-3d canvas{opacity:1}
.hero-figure .ph.hero-mapa.en-3d .mapa-fijo{opacity:0}
/* Leyenda: pie del mapa, debajo de la figura, para no chocar con la tarjeta «4 observatorios» */
.mapa-leyenda{position:absolute;right:0;top:calc(100% + .7rem);display:flex;flex-direction:column;align-items:flex-end;gap:.3rem;font:400 .74rem/1.3 var(--sans);color:var(--muted);text-align:right;z-index:3;max-width:100%}
.mapa-leyenda .bar{display:flex;align-items:center;gap:.45rem}
.mapa-leyenda i{display:block;width:120px;height:8px;border-radius:4px;background:linear-gradient(90deg,#608AB4 0%,#608AB4 10%,#F4EDE0 50%,#F1DDBB 60%,#EFCD95 70%,#EBB763 83%,#D2782D 90%,#D2782D 100%)}
.mapa-leyenda b{font-weight:600;color:var(--ink)}
.hero-figure:has(.hero-mapa){margin-bottom:4.4rem}
/* Escritorio ancho: la leyenda arriba a la derecha para que se vea sin hacer scroll */
@media (min-width:1180px){.mapa-leyenda{top:.25rem;max-width:15.5rem}.hero-figure:has(.hero-mapa){margin-bottom:0}}
@media (max-width:880px){
  .hero-figure .ph.hero-mapa{height:380px}
  .mapa-leyenda{top:calc(100% + .6rem)}
  .hero-figure .float-stat{bottom:12px}
}
@media (max-width:520px){.hero-figure .ph.hero-mapa{height:330px}.mapa-leyenda i{width:90px}}

/* 15-nov-2026: leyenda más angosta para no rozar La Guajira; en celular la tarjeta «4 observatorios» sale del mapa */
@media (min-width:1180px){.mapa-leyenda{max-width:12.5rem}.mapa-leyenda .bar,.mapa-leyenda .bar *{white-space:nowrap}.mapa-leyenda i{width:84px}}
@media (max-width:880px){.hero-figure:has(.hero-mapa){margin-bottom:0}
  .hero-figure .float-stat{position:relative;left:auto;bottom:auto;margin:4.8rem 0 0;width:max-content}}
