/* ─────────────────────────────────────────
   Hotspot — imagen interactiva con puntos
   Uso: <div id="hs-root"></div>
────────────────────────────────────────── */

#hs-root {
  width: 100%;
}

.hs-wrap {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  line-height: 0;
}

.hs-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  /* Más alto en desktop para que venda */
  min-height: 520px;
  max-height: 780px;
  object-position: center;
}

.hs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.40) 100%
  );
  pointer-events: none;
}

/* ── Dot ── */
.hs-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

/* Anillo pulsante */
.hs-dot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid var(--dot-color, #1D9E75);
  opacity: 0.55;
  animation: hs-pulse 2.4s ease-in-out infinite;
}

@keyframes hs-pulse {
  0%   { transform: scale(1);    opacity: 0.6; }
  65%  { transform: scale(1.7);  opacity: 0;   }
  100% { transform: scale(1.7);  opacity: 0;   }
}

/* Núcleo */
.hs-dot-core {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--dot-color, #1D9E75);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 18px rgba(0,0,0,0.28);
  transition: transform 0.2s ease;
  overflow: hidden;
}

/* Logo dentro del núcleo */
.hs-dot-logo {
  width: 115%;
  height: 115%;
  object-fit: contain;
  display: block;
  /* filter: brightness(0) invert(1); */ /* Removido para permitir colores naturales */
  pointer-events: none;
}

.hs-dot:hover .hs-dot-ring {
  animation-play-state: paused;
  opacity: 0.85;
}

/* ── Tooltip ── */
.hs-tooltip {
  position: absolute;
  background: #ffffff;
  border: 0.5px solid #8DB4DA;
  border-top: 3px solid #1D9E75;
  border-radius: 14px;
  padding: 1.1rem 1.35rem;
  width: 280px;
  pointer-events: auto;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, visibility 0.18s;
  box-shadow: 0 8px 32px rgba(21, 96, 130, 0.14);
  line-height: normal;
}

.hs-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

.hs-tip-tag {
  font-family: 'Figtree', sans-serif;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8DB4DA;
  margin-bottom: 6px;
}

.hs-tip-title {
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #156082;
  line-height: 1.35;
  margin-bottom: 8px;
}

.hs-tip-body {
  font-family: 'Figtree', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #4e6e7a;
  line-height: 1.75;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hs-img {
    min-height: 320px;
    max-height: 500px;
  }
  .hs-dot      { width: 48px;  height: 48px; }
  .hs-dot-core { width: 38px;  height: 38px; }
  .hs-tooltip  { width: 230px; }
  .hs-tip-title { font-size: 0.9rem; }
  .hs-tip-body  { font-size: 0.78rem; }
}

@media (max-width: 480px) {
  .hs-img { min-height: 240px; }
  .hs-dot      { width: 40px;  height: 40px; }
  .hs-dot-core { width: 32px;  height: 32px; }
  /* Tooltip fijo abajo en móvil */
  .hs-tooltip {
    width: calc(100% - 2rem) !important;
    left: 1rem !important;
    top: auto !important;
    bottom: 1rem;
    position: absolute;
  }
}