/* Mapa Interactivo EAFIT ---------------------------------------------------- */

.mapa-interactivo-eafit {
  --mie-blue: #0ab1e7;
  --mie-red: #e51e32;
  --mie-bg: #ffffff;
  position: relative;
  width: 100%;
  height: 100vh;          /* ocupa 100% de la pantalla */
  overflow: hidden;       /* sin barras de scroll */
  background: var(--mie-bg);
  touch-action: none;     /* el gesto lo maneja el JS (pan/pinch) */
}

/* Escenario: recorta el mapa y captura el arrastre. */
.mie-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  background: var(--mie-bg);
}
.mie-stage.mie-grabbing {
  cursor: grabbing;
}

/* Mundo: se mueve/escala con transform. */
.mie-world {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.mie-map {
  display: block;
  width: 1345px;
  height: 834px;
  pointer-events: none;   /* el mapa base no intercepta clics */
  user-select: none;
  -webkit-user-drag: none;
}

/* --- Hotspots (dots interactivos) ---------------------------------------- */
.mie-hotspot {
  position: absolute;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;  /* centrado sobre cx/cy */
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 5;
}
.mie-hotspot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Anillo pulsante que insinúa que el punto es clicable. */
.mie-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  animation: mie-pulse 2.2s ease-out infinite;
}
.mie-hotspot.mie-blue .mie-pulse {
  box-shadow: 0 0 0 0 rgba(10, 177, 231, 0.55);
}
.mie-hotspot.mie-red .mie-pulse {
  box-shadow: 0 0 0 0 rgba(229, 30, 50, 0.55);
}
.mie-hotspot.mie-blue:hover .mie-pulse {
  box-shadow: 0 0 0 0 rgba(10, 177, 231, 0.9);
}
.mie-hotspot.mie-red:hover .mie-pulse {
  box-shadow: 0 0 0 0 rgba(229, 30, 50, 0.9);
}

@keyframes mie-pulse {
  0% { box-shadow: 0 0 0 0 currentColor; }
  70% { box-shadow: 0 0 0 18px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
/* currentColor por color de pin */
.mie-hotspot.mie-blue { color: rgba(10, 177, 231, 0.5); }
.mie-hotspot.mie-red { color: rgba(229, 30, 50, 0.5); }

/* --- Popup / modal -------------------------------------------------------- */
.mie-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.mie-overlay.mie-open {
  opacity: 1;
  visibility: visible;
}

.mie-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 82vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 26px 26px 22px;
  border-radius: 4px;
  background: #d7d7d7;
  color: #1a1a1a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
  font-family: Arial, Helvetica, sans-serif;
}
.mie-overlay.mie-open .mie-card {
  transform: translateY(0) scale(1);
}

.mie-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: var(--mie-blue);
}
.mie-card[data-color="red"] .mie-close { color: var(--mie-red); }

.mie-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 34px 14px 0;
}

/* Badge circular con el número (mismo color del pin). */
.mie-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--mie-blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
}
.mie-card[data-color="red"] .mie-badge { background: var(--mie-red); }

.mie-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--mie-blue);
}
.mie-card[data-color="red"] .mie-title { color: var(--mie-red); }

.mie-text {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #222;
}

.mie-indicator {
  font-size: 12px;
  color: #7a7a7a;
}
.mie-indicator:empty { display: none; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 600px) {
  .mie-card {
    max-width: 100%;
    padding: 22px 20px 18px;
  }
  .mie-title { font-size: 24px; }
  .mie-text { font-size: 14px; }
}
