/* Mapa de los monumentos (nivel 3): el contorno de Colombia, sobre blanco, con un número por monumento. */

.mapa {
  display: grid;
  gap: var(--s3);
  justify-items: center;
}

.mapa__marco {
  position: relative;
  width: min(100%, calc(min(46rem, 82svh) * 1024 / 1403));
}

.mapa__lienzo {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--fuente);
}

/* El país: la lámina blanca con su borde. */
.mapa__pais .pais {
  fill: var(--blanco);
  stroke: color-mix(in oklab, var(--hierro) 62%, var(--blanco));
  stroke-width: 1.25;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 6px 10px oklch(0 0 0 / 0.06));
}

.mapa__pais .recuadro {
  stroke: color-mix(in oklab, var(--hierro) 40%, var(--blanco));
  stroke-width: 1;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
}

/* Referencias: Bogotá, la escala y el norte, en gris. */
.mapa__ref rect {
  fill: var(--blanco);
  stroke: color-mix(in oklab, var(--hierro) 60%, var(--blanco));
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.mapa__ref text,
.mapa__escala text,
.mapa__norte text {
  fill: color-mix(in oklab, var(--hierro) 62%, var(--blanco));
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mapa__escala path {
  fill: none;
  stroke: color-mix(in oklab, var(--hierro) 62%, var(--blanco));
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.mapa__norte path {
  fill: color-mix(in oklab, var(--hierro) 62%, var(--blanco));
}

/* Cada monumento: el punto exacto, la línea guía y la marca con su número. */
.mapa__punto {
  cursor: pointer;
  outline: none;
}

.mapa__lugar {
  fill: var(--rojo);
  stroke: var(--blanco);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.mapa__guia {
  stroke: var(--rojo);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.mapa__marca circle {
  fill: var(--rojo);
  stroke: var(--blanco);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  transition: fill var(--breve) var(--salida);
}

.mapa__marca text {
  fill: var(--blanco);
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.mapa__marca {
  transition: scale var(--breve) var(--salida);
}

.mapa__punto:hover .mapa__marca circle,
.mapa__punto.esta-activo .mapa__marca circle {
  fill: var(--hierro);
}

.mapa__punto:focus-visible .mapa__marca circle {
  fill: var(--hierro);
  stroke: var(--amarillo);
  stroke-width: 4;
}

.mapa figcaption {
  justify-self: stretch;
  font-size: var(--paso--1);
  font-weight: 500;
  text-align: center;
}

/* La tarjeta del monumento que aparece al tocar un número. */
.mapa__tarjeta {
  position: absolute;
  z-index: 2;
  min-width: 12rem;
  max-width: 16rem;
  padding: var(--s3) var(--s4);
  border: var(--trazo) solid var(--hierro);
  background-color: var(--lamina);
  color: var(--hierro);
  box-shadow: 0 0.6rem 1.4rem oklch(0 0 0 / 0.16);
  translate: -50% calc(-100% - 0.9rem);
  pointer-events: auto;
}

.mapa__tarjeta strong {
  display: block;
  font-size: var(--paso-0);
  line-height: 1.15;
}

.mapa__tarjeta span {
  display: block;
  margin-top: var(--s1);
  font-size: var(--paso--1);
  color: var(--tinta-suave);
}

.mapa__tarjeta a {
  display: inline-block;
  margin-top: var(--s2);
  font-size: var(--paso--1);
  font-weight: 700;
}
