/* Mapa interactivo de ubicaciones del sistema de seguridad. */
body[data-page="home"] .home-security-map {
  --map-navy: #0b213f;
  --map-blue: #2759a2;
  --map-red: #d33d4b;
  --map-line: rgb(255 255 255 / .18);
  position: relative;
  overflow: hidden;
  padding: clamp(4.75rem, 8vw, 7.5rem) 0;
  color: #fff;
  background:
    radial-gradient(circle at 50% 45%, rgb(39 89 162 / .42), transparent 36rem),
    linear-gradient(135deg, #07172c 0%, var(--map-navy) 52%, #07182c 100%);
  isolation: isolate;
}

body[data-page="home"] .home-security-map::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

body[data-page="home"] .home-security-map__head {
  width: min(100% - 2rem, 70rem);
  margin: 0 auto clamp(2.2rem, 4vw, 3.5rem);
  text-align: center;
}

body[data-page="home"] .home-security-map__head .home3-label,
body[data-page="home"] .home-security-map__head h2,
body[data-page="home"] .home-security-map__head p {
  margin-inline: auto;
  color: #fff;
  text-align: center;
}

body[data-page="home"] .home-security-map__head .home3-label {
  color: #ff7a86;
}

body[data-page="home"] .home-security-map__head h2 {
  max-width: 18ch;
  margin-bottom: 1rem;
}

body[data-page="home"] .home-security-map__head > p:last-child {
  max-width: 62ch;
  color: rgb(255 255 255 / .76);
  font-size: 1.05rem;
}

body[data-page="home"] .home-security-map__layout {
  display: grid;
  width: min(100% - 2rem, 98rem);
  margin-inline: auto;
  align-items: center;
  grid-template-columns: minmax(17rem, 20.5rem) minmax(30rem, 1fr) minmax(17rem, 20.5rem);
  gap: clamp(.8rem, 1.5vw, 1.5rem);
}

body[data-page="home"] .home-security-map__list {
  display: grid;
  align-content: center;
  grid-row: 1;
  gap: .65rem;
}

body[data-page="home"] .home-security-map__list:first-child {
  grid-column: 1;
}

body[data-page="home"] .home-security-map__list:last-child {
  grid-column: 3;
}

body[data-page="home"] .home-security-map__lists-mobile {
  display: contents;
}

body[data-page="home"] .home-security-map__card {
  display: grid;
  width: 100%;
  min-height: 6.15rem;
  padding: .65rem .8rem;
  border: 1px solid rgb(255 255 255 / .2);
  border-left: 4px solid transparent;
  border-radius: 4px;
  color: #122a4d;
  background: rgb(255 255 255 / .94);
  box-shadow: 0 10px 28px rgb(0 0 0 / .12);
  font: inherit;
  text-align: left;
  cursor: pointer;
  grid-template-columns: 4.8rem minmax(0, 1fr);
  align-items: center;
  gap: .85rem;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body[data-page="home"] .home-security-map__card:hover,
body[data-page="home"] .home-security-map__card:focus-visible,
body[data-page="home"] .home-security-map__card.is-active {
  border-color: var(--map-red);
  border-left-color: var(--map-red);
  background: #fff;
  box-shadow: 0 13px 34px rgb(0 0 0 / .25), 0 0 0 2px rgb(211 61 75 / .2);
  transform: translateY(-2px);
}

body[data-page="home"] .home-security-map__card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

body[data-page="home"] .home-security-map__card > img {
  display: block;
  width: 4.8rem;
  height: 4.8rem;
  padding: .35rem;
  border: 1px solid #d9e2ed;
  border-radius: .55rem;
  background: linear-gradient(145deg, #fff, #eaf0f6);
  filter: contrast(1.08) drop-shadow(0 .3rem .4rem rgb(15 36 68 / .12));
  object-fit: contain;
}

body[data-page="home"] .home-security-map__card--sign {
  min-height: 9.4rem;
  grid-template-columns: 7rem minmax(0, 1fr);
}

body[data-page="home"] .home-security-map__card--sign > img {
  width: 7rem;
  height: 8.7rem;
  padding: .18rem;
  border-color: #b9c8db;
  background: #fff;
  filter: drop-shadow(0 .35rem .55rem rgb(15 36 68 / .16));
}

body[data-page="home"] .home-security-map__sign {
  display: grid;
  width: 4.8rem;
  height: 4.8rem;
  overflow: hidden;
  align-content: center;
  justify-items: center;
  padding: .38rem .28rem;
  border: 2px solid #d33d4b;
  border-radius: .35rem;
  color: #fff;
  background: #0f2444;
  box-shadow: 0 .3rem .55rem rgb(15 36 68 / .2);
  gap: .08rem;
}

body[data-page="home"] .home-security-map__sign img {
  display: block;
  width: 3.35rem;
  height: 1.85rem;
  object-fit: contain;
}

body[data-page="home"] .home-security-map__sign b,
body[data-page="home"] .home-security-map__sign small {
  color: #fff;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

body[data-page="home"] .home-security-map__sign b {
  font-size: .46rem;
  letter-spacing: .04em;
}

body[data-page="home"] .home-security-map__sign small {
  color: #ff8d98;
  font-size: .4rem;
  letter-spacing: .1em;
}

body[data-page="home"] .home-security-map__card span {
  display: grid;
  min-width: 0;
  gap: .18rem;
}

body[data-page="home"] .home-security-map__card strong {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.05;
}

body[data-page="home"] .home-security-map__card small {
  color: #5f6f82;
  font-size: .78rem;
  line-height: 1.25;
}

body[data-page="home"] .home-security-map__card .home-security-map__sign b {
  color: #fff;
  font-size: .46rem;
  letter-spacing: .04em;
}

body[data-page="home"] .home-security-map__card .home-security-map__sign small {
  color: #ff8d98;
  font-size: .4rem;
  letter-spacing: .1em;
  line-height: 1;
}

body[data-page="home"] .home-security-map__visual {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: 62rem;
  margin-inline: auto;
  aspect-ratio: 3 / 2;
}

body[data-page="home"] .home-security-map__visual::after {
  position: absolute;
  z-index: -1;
  right: 8%;
  bottom: 5%;
  left: 8%;
  height: 16%;
  border-radius: 50%;
  background: rgb(0 0 0 / .38);
  filter: blur(24px);
  content: "";
}

body[data-page="home"] .home-security-map__visual > picture,
body[data-page="home"] .home-security-map__visual > picture img {
  display: block;
  width: 100%;
  height: 100%;
}

body[data-page="home"] .home-security-map__visual > picture img {
  object-fit: contain;
  filter: drop-shadow(0 22px 36px rgb(0 0 0 / .34));
}

body[data-page="home"] .home-security-map__marker {
  --marker-scale: .74;
  position: absolute;
  z-index: 3;
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--map-blue);
  box-shadow: 0 0 0 .38rem rgb(39 89 162 / .2), 0 5px 15px rgb(0 0 0 / .35);
  font-size: .78rem;
  font-weight: 850;
  opacity: .62;
  place-items: center;
  transform: translate(-50%, -50%) scale(var(--marker-scale));
  transition: opacity 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body[data-page="home"] .home-security-map__marker::after {
  position: absolute;
  inset: -.6rem;
  border: 2px solid var(--map-red);
  border-radius: 50%;
  content: "";
  opacity: 0;
}

body[data-page="home"] .home-security-map__marker.is-active {
  --marker-scale: 1;
  z-index: 5;
  background: var(--map-red);
  box-shadow: 0 0 0 .58rem rgb(211 61 75 / .25), 0 8px 22px rgb(0 0 0 / .45);
  opacity: 1;
}

body[data-page="home"] .home-security-map__marker--brand {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: .4rem;
  background: #0f2444;
  font-size: .68rem;
  letter-spacing: .04em;
}

body[data-page="home"] .home-security-map__marker.is-active::after {
  animation: home-map-pulse 1.6s ease-out infinite;
}

body[data-page="home"] .home-security-map__callout {
  position: absolute;
  z-index: 6;
  right: 8%;
  bottom: 2%;
  max-width: 19rem;
  margin: 0;
  padding: .7rem .9rem;
  border-left: 4px solid var(--map-red);
  color: #102846;
  background: rgb(255 255 255 / .96);
  box-shadow: 0 10px 26px rgb(0 0 0 / .25);
  font-size: .83rem;
  line-height: 1.3;
}

body[data-page="home"] .home-security-map__callout strong {
  display: block;
  margin-bottom: .15rem;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.15rem;
}

body[data-page="home"] .home-security-map__hint {
  width: min(100% - 2rem, 94rem);
  margin: 1.6rem auto 0;
  color: rgb(255 255 255 / .65);
  font-size: .78rem;
  text-align: center;
}

@keyframes home-map-pulse {
  0% { opacity: .85; transform: scale(.72); }
  100% { opacity: 0; transform: scale(1.55); }
}

@media (max-width: 74rem) {
  body[data-page="home"] .home-security-map__layout {
    width: min(100% - 1.5rem, 72rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="home"] .home-security-map__visual {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: 50rem;
  }

  body[data-page="home"] .home-security-map__list {
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="home"] .home-security-map__list:first-child {
    grid-column: 1;
  }

  body[data-page="home"] .home-security-map__list:last-child {
    grid-column: 2;
  }
}

@media (max-width: 44rem) {
  body[data-page="home"] .home-security-map {
    padding-block: 4rem;
  }

  body[data-page="home"] .home-security-map__layout {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0;
  }

  body[data-page="home"] .home-security-map__visual {
    order: -1;
    width: calc(100% - 1rem);
    aspect-ratio: 3 / 2;
  }

  body[data-page="home"] .home-security-map__callout {
    right: .45rem;
    bottom: -.9rem;
    left: .45rem;
    max-width: none;
    padding: .6rem .75rem;
    font-size: .76rem;
  }

  body[data-page="home"] .home-security-map__lists-mobile {
    display: flex;
    width: 100%;
    margin-top: 1.65rem;
    overflow-x: auto;
    padding: .6rem 1rem 1.15rem;
    scroll-padding-inline: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: .75rem;
  }

  body[data-page="home"] .home-security-map__lists-mobile::-webkit-scrollbar {
    display: none;
  }

  body[data-page="home"] .home-security-map__list {
    display: contents;
  }

  body[data-page="home"] .home-security-map__card {
    min-width: min(18rem, calc(100vw - 3.25rem));
    min-height: 5.75rem;
    flex: 0 0 min(18rem, calc(100vw - 3.25rem));
    scroll-snap-align: center;
  }

  body[data-page="home"] .home-security-map__card--sign {
    min-height: 8.35rem;
    grid-template-columns: 6.1rem minmax(0, 1fr);
  }

  body[data-page="home"] .home-security-map__card--sign > img {
    width: 6.1rem;
    height: 7.6rem;
  }

  body[data-page="home"] .home-security-map__marker {
    width: 1.75rem;
    height: 1.75rem;
    font-size: .68rem;
  }

  body[data-page="home"] .home-security-map__marker--brand {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: .35rem;
    font-size: .58rem;
  }

  body[data-page="home"] .home-security-map__hint {
    margin-top: .5rem;
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .home-security-map__card,
  body[data-page="home"] .home-security-map__marker {
    transition: none;
  }

  body[data-page="home"] .home-security-map__marker.is-active::after {
    animation: none;
    opacity: .7;
  }
}
