.distrito__intro { max-width: 65rem; }
.distrito__intro > p:last-of-type { max-width: 44rem; }
.atlas__indicacion { margin-top: 1.45rem; color: var(--secundario); }

.atlas {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .5rem;
  min-inline-size: 0;
  margin: .7rem 0 0;
  padding: 0;
  border: 0;
}
.atlas__oculto, .atlas__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.atlas > label {
  display: grid;
  align-items: center;
  min-height: 3rem;
  padding: .58rem .4rem;
  border: 1px solid var(--linea);
  background: #182a26;
  color: var(--secundario);
  text-align: center;
  line-height: 1.25;
  font-weight: 700;
  cursor: pointer;
}
.atlas > label:hover { border-color: var(--ambar); }
.atlas__radio:checked + label {
  border-color: var(--ambar);
  background: var(--ambar);
  color: var(--tinta);
}
.atlas__radio:focus-visible + label { outline: 2px solid var(--turquesa); outline-offset: 3px; }

.atlas__mesa {
  display: grid;
  grid-template-columns: minmax(0, 2.7fr) minmax(14rem, 1fr);
  grid-column: 1 / -1;
  align-items: start;
  gap: clamp(.8rem, 2.2vw, 1.75rem);
  margin-top: .45rem;
}
.atlas__mapa {
  min-width: 0;
  border: 1px solid var(--linea);
  background: #172622;
  box-shadow: .3rem .3rem 0 var(--fondo), .3rem .3rem 0 1px var(--linea);
}
.atlas__imagen { position: relative; overflow: hidden; isolation: isolate; }
.atlas__imagen img { display: block; width: 100%; height: auto; }
.atlas__mapa figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .3rem .9rem;
  padding: .5rem .85rem;
  color: var(--secundario);
  font-size: .88rem;
}
.atlas__mapa a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ambar); font-weight: 700; text-underline-offset: .24em; }

.atlas__zona {
  position: absolute;
  inset: var(--atlas-inset);
  cursor: pointer;
}
.atlas__marca {
  position: absolute;
  inset: var(--atlas-guia, 0);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 210ms ease-out, transform 260ms ease-out;
}
.atlas__marca::before {
  content: "";
  position: absolute;
  inset: 0;
  --trazo: linear-gradient(var(--atlas-acento), var(--atlas-acento));
  --largo: clamp(.6rem, 1.8vw, 1.45rem);
  background:
    var(--trazo) left top / var(--largo) 2px,
    var(--trazo) left top / 2px var(--largo),
    var(--trazo) right top / var(--largo) 2px,
    var(--trazo) right top / 2px var(--largo),
    var(--trazo) left bottom / var(--largo) 2px,
    var(--trazo) left bottom / 2px var(--largo),
    var(--trazo) right bottom / var(--largo) 2px,
    var(--trazo) right bottom / 2px var(--largo);
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 2px #000);
}
.atlas__marca::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--atlas-acento) 27%, transparent) 49%, var(--atlas-acento) 49.8%, transparent 50.4%);
}
.atlas__zona--mango { --atlas-inset: 6.7% 65.15% 46.1% .45%; --atlas-acento: var(--ambar); }
.atlas__zona--calle12 {
  --atlas-inset: 53.9% 65.15% .9% .45%;
  --atlas-guia: 0 0 30.6%;
  --atlas-acento: #ffd29f;
  clip-path: polygon(0 0, 100% 0, 100% 69.4%, 64% 69.4%, 64% 100%, 0 100%);
}
.atlas__marca--bar { inset: 69.4% 36% 0 0; }
.atlas__zona--central { --atlas-inset: 6.7% 36.85% 14.55% 35.7%; --atlas-acento: var(--turquesa); }
.atlas__zona--shinjuku { --atlas-inset: 6.7% .45% 50.25% 63.95%; --atlas-acento: #ffc3a6; }
.atlas__zona--kowloon { --atlas-inset: 49.75% .45% 14.55% 63.95%; --atlas-acento: #b8dbf5; }
@media (hover: hover) {
  .atlas__zona:hover .atlas__marca { opacity: .58; transform: scale(1); }
}
#atlas-mango:checked ~ .atlas__mesa .atlas__marca--mango,
#atlas-calle12:checked ~ .atlas__mesa .atlas__marca--calle12,
#atlas-calle12:checked ~ .atlas__mesa .atlas__marca--bar,
#atlas-central:checked ~ .atlas__mesa .atlas__marca--central,
#atlas-shinjuku:checked ~ .atlas__mesa .atlas__marca--shinjuku,
#atlas-kowloon:checked ~ .atlas__mesa .atlas__marca--kowloon {
  opacity: 1;
  transform: scale(1);
  --barrido-sector: barrido-crt;
}

.atlas__fichas {
  background: repeating-linear-gradient(132deg, transparent 0 4px, #39483d09 4px 5px), var(--papel);
  color: var(--tinta-papel);
  border-top: 5px solid var(--atlas-tinta, var(--oxido));
  padding: clamp(.95rem, 2.25vw, 1.55rem);
  box-shadow: .3rem .3rem 0 var(--fondo), .3rem .3rem 0 1px var(--linea);
}
#atlas-mango:checked ~ .atlas__mesa .atlas__fichas { --atlas-tinta: #bb7419; }
#atlas-calle12:checked ~ .atlas__mesa .atlas__fichas { --atlas-tinta: #b3683b; }
#atlas-central:checked ~ .atlas__mesa .atlas__fichas { --atlas-tinta: #31786a; }
#atlas-shinjuku:checked ~ .atlas__mesa .atlas__fichas { --atlas-tinta: var(--oxido); }
#atlas-kowloon:checked ~ .atlas__mesa .atlas__fichas { --atlas-tinta: #47728c; }
.atlas__ficha { display: none; }
#atlas-mango:checked ~ .atlas__mesa #ficha-mango,
#atlas-calle12:checked ~ .atlas__mesa #ficha-calle12,
#atlas-central:checked ~ .atlas__mesa #ficha-central,
#atlas-shinjuku:checked ~ .atlas__mesa #ficha-shinjuku,
#atlas-kowloon:checked ~ .atlas__mesa #ficha-kowloon { display: block; }
.atlas__lugares {
  margin-bottom: .5rem;
  color: #40524a;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.atlas__ficha h3 { margin-bottom: .8rem; font-size: clamp(1.55rem, 2.25vw, 2.25rem); line-height: 1.05; }
.atlas__ficha p + p { border-top: 1px solid #a59475; margin-top: .85rem; padding-top: .8rem; }

@media (max-width: 46rem) {
  .atlas__mesa { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 36rem) {
  .atlas { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .atlas > label { grid-column: span 2; }
  .atlas > label:nth-last-of-type(-n + 2) { grid-column: span 3; }
}
@media (max-width: 25rem) {
  .atlas > label { font-size: .89rem; }
  .atlas__mapa figcaption { padding-inline: .65rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .atlas__marca::after { animation: var(--barrido-sector, none) .6s ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas__marca { transition: none; transform: none; }
}
