* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --point-size: 20px;
  --overlay-bg: rgba(0, 0, 0, 0.72);
  --brand: #152028;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f5f5f5;
  font-family: 'Lato', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #222;
}

/* Contenedor limitado al ancho real de la imagen */
.map-container {
  position: relative;
  width: 100%;
  max-width: 800px; /* tamaño real de Visual.png */
  margin: 0 auto;
}

.map {
  width: 100%;
  height: auto;
  display: block;
}

.points-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.point {
  position: absolute;
  width: var(--point-size);
  height: var(--point-size);
  background-color: #ff0000;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
  pointer-events: auto;
  left: var(--x);
  top: var(--y);
}

.point.base {
  opacity: 0.6; /* o el valor que quieras */
}

.point::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(154, 31, 31, 0.32);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.point:hover {
  transform: translate(-50%, -50%) scale(1.15);
  background-color: #a40b0b;
}

/* Popup */
.popup {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.popup.active {
  display: flex;
  opacity: 1;
}

.popup-content {
  position: relative;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  max-width: 90%;
  width: 600px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.popup.active .popup-content {
  transform: scale(1);
}

.popup .close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.popup h2 {
  color: var(--brand);
  margin-bottom: 16px;
  font-size: 24px;
}

.popup img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.popup img:hover {
    transform: scale(1.02);
}

.popup p {
    color: #444;
    line-height: 1.6;
    margin-top: 15px;
}

/* Overlay de instrucciones */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.intro-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 28px 22px;
  max-width: 640px;
  margin: 0 16px;
  text-align: center;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

.intro-content h1 {
  font-size: 22px;
  color: var(--brand);
  margin-bottom: 10px;
}

.intro-content p {
  font-size: 18px;
  line-height: 1.5;
  color: #222;
  margin-bottom: 18px;
}

.intro-close {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(31, 144, 154, 0.35);
}
