@font-face {
  font-family: AntartidaRounded-Medium;
  src: url(../fonts/AntartidaRounded-Medium.otf);
}

body {
  width: 100%;
  height: 100%;
  font-family: Lora, "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* color: #fff; */
  background-image: url(../img/bg.png);
  background-repeat: repeat;
}

html {
  width: 100%;
  height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 35px;
  text-transform: uppercase;
  font-family: "PT Sans Narrow", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

h3 {
  text-align: left;
  color: #333;
  font-weight: 100;
  border-bottom: 5px solid #ccc;
  padding: 0px 0px 10px 0px;
  font-size: 16px;
}

p {
  margin: 0 0 25px;
  font-size: 18px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  p {
    margin: 0 0 35px;
    font-size: 20px;
    line-height: 1.6;
  }
}

.orange-bg {
  background: #ffc575;
}

.blue-bg {
  background: #99f5e8;
}

.more {
  color: #111 !important;
  padding: 10px 20px 10px 20px;
  float: left;
  font-weight: bold;
}

a:hover,
a:focus {
  text-decoration: underline;
  color: #111;
}

.home {
  background: transparent;
}

.light {
  font-weight: 400;
}

.navbar-custom {
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #fff;
  height: 135px;
}

.navbar-custom .navbar-brand {
  font-weight: 700;
}

.navbar-custom .navbar-brand:focus {
  outline: 0;
}

.navbar-custom .navbar-brand .navbar-toggle {
  padding: 4px 6px;
  font-size: 16px;
  color: #fff;
}

.navbar-custom .navbar-brand .navbar-toggle:focus,
.navbar-custom .navbar-brand .navbar-toggle:active {
  outline: 0;
}

.navbar-custom a {
  color: #fff;
}

.navbar-custom .nav li a {
  -webkit-transition: background 0.3s ease-in-out;
  -moz-transition: background 0.3s ease-in-out;
  transition: background 0.3s ease-in-out;
}

.navbar-custom .nav li a:hover {
  outline: 0;
  color: rgba(255, 255, 255, 0.8);
  background-color: #99f5e8;
}

.navbar-custom .nav li a:focus,
.navbar-custom .nav li a:active {
  outline: 0;
  background-color: transparent;
}

.navbar-custom .nav li.active {
  outline: 0;
}

.navbar-custom .nav li.active a {
  background-color: rgba(255, 255, 255, 0.3);
}

.navbar-custom .nav li.active a:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .navbar-custom {
    padding: 20px 0 20px 0;
    border-bottom: 0;
    letter-spacing: 1px;
    background: 0 0;
    -webkit-transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;
    -moz-transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;
    transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;
    background: transparent;
    height: 166px;
  }

  .navbar-custom.top-nav-collapse {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background: #000;
  }
}

.intro {
  display: table;
  width: 100%;
  height: auto;
  text-align: center;
  color: #fff;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
}

.intro .intro-body {
  padding-top: 40px;
}

.intro .intro-body .brand-heading {
  font-size: 40px;
}

.intro .intro-body .intro-text {
  font-size: 18px;
}

@media (min-width: 768px) {
  .intro {
    height: 100%;
    padding: 0;
  }

  .intro .intro-body .brand-heading {
    font-size: 100px;
  }

  .intro .intro-body .intro-text {
    font-size: 26px;
  }
}

.btn-circle {
  width: 70px;
  height: 70px;
  margin-top: 15px;
  padding: 7px 16px;
  border: 2px solid #fff;
  border-radius: 100% !important;
  font-size: 40px;
  color: #fff;
  background: 0 0;
  -webkit-transition: background 0.3s ease-in-out;
  -moz-transition: background 0.3s ease-in-out;
  transition: background 0.3s ease-in-out;
}

.btn-circle:hover,
.btn-circle:focus {
  outline: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-circle i.animated {
  -webkit-transition-property: -webkit-transform;
  -webkit-transition-duration: 1s;
  -moz-transition-property: -moz-transform;
  -moz-transition-duration: 1s;
}

.btn-circle:hover i.animated {
  -webkit-animation-name: pulse;
  -moz-animation-name: pulse;
  -webkit-animation-duration: 1.5s;
  -moz-animation-duration: 1.5s;
  -webkit-animation-iteration-count: infinite;
  -moz-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  -moz-animation-timing-function: linear;
}

@-webkit-keyframes pulse {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }

  50% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@-moz-keyframes pulse {
  0% {
    -moz-transform: scale(1);
    transform: scale(1);
  }

  50% {
    -moz-transform: scale(1.2);
    transform: scale(1.2);
  }

  100% {
    -moz-transform: scale(1);
    transform: scale(1);
  }
}

.content-section {
  padding-top: 100px;
}

.download-section {
  width: 100%;
  padding: 50px 0;
  color: #fff;
  background: url(../img/downloads-bg.jpg) no-repeat center center scroll;
  background-color: #000;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
}

/* #map {
  width: 100%;
  height: 200px;
  margin-top: 100px;
} */

@media (min-width: 767px) {
  .content-section {
    padding-top: 250px;
  }

  .download-section {
    padding: 100px 0;
  }

  /* #map {
    height: 400px;
    margin-top: 250px;
  } */
}

.btn {
  border-radius: 0;
  text-transform: uppercase;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.btn-default {
  border: 1px solid #ccc;
  color: #000;
  background-color: transparent;
}

.btn-default:hover,
.btn-default:focus {
  border: 1px solid #ccc;
  outline: 0;
  color: #000;
  background-color: #ccc;
}

ul.banner-social-buttons {
  margin-top: 0;
}

@media (max-width: 1199px) {
  ul.banner-social-buttons {
    margin-top: 15px;
  }
  .mapa-container {
    flex-direction: column !important;
  }
}

@media (max-width: 767px) {
  ul.banner-social-buttons li {
    display: block;
    margin-bottom: 20px;
    padding: 0;
  }

  ul.banner-social-buttons li:last-child {
    margin-bottom: 0;
  }
}

footer {
  padding: 50px 0;
}

footer p {
  margin: 0;
}

/* ::-moz-selection {
  text-shadow: none;
  background: #fcfcfc;
  background: rgba(255, 255, 255, 0.2);
}

::selection {
  text-shadow: none;
  background: #fcfcfc;
  background: rgba(255, 255, 255, 0.2);
} */

img::selection {
  background: 0 0;
}

img::-moz-selection {
  background: 0 0;
}

body {
  webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

.title-destacado {
  background: #99f5e8;
  text-align: left;
  color: #000;
  padding: 20px;
}

.title-destacado-tiny {
  width: 60%;
  font-size: 18px;
  background: #fff;
  margin: 0px;
}

.navbar-fixed-bottom,
.navbar-fixed-top {
  position: relative;
}

.box-interactivo {
  min-height: 370px;
  background: black;
}

.victimas {
  background-image: url(../img/victimas.png);
  background-repeat: no-repeat;
  background-size: cover;
}
.memoriales {
  background-image: url(../img/memoriales.png);
  background-repeat: no-repeat;
  background-size: cover;
}
.recintos {
  background-image: url(../img/recintos.png);
  background-repeat: no-repeat;
  background-size: cover;
}
.hallazgos {
  background-image: url(../img/hallazgos.png);
  background-repeat: no-repeat;
  background-size: cover;
}
.justicia {
  background-image: url(../img/justicia.png);
  background-repeat: no-repeat;
  background-size: cover;
}
.margin-down {
  margin-bottom: 40px;
}

.navbar-nav {
  margin: 38px 0 0 0 !important;
}

.arrow {
  display: block;
  float: right;
  margin: 4px 0 0 10px;
}

/* Mapa */
.mapa-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  margin: 0 40px;
}

@media (max-width: 768px) {
  .img-responsive-mapa {
    max-height: 180px;
    width: 100vw;
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  .img-responsive-mapa {
    max-height: 100px;
    max-width: 100px;
  }
}

/* Buscador */
.navbar-search {
  max-width: 600px;
}

@media (max-width: 768px) {
  .navbar-search {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Modal de mapa */
.leaflet-popup-content {
  width: 320px !important;
  max-width: 90vw;
  max-height: 300px;
  overflow-y: auto;
  padding: 10px 0;
}

.popup-memorial img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
}

/* Correccion estilo control mapa */
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  font-size: 22px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: bold !important;
  line-height: 26px !important;
  color: #222 !important;
  background: #fff !important;
  border: none !important;
}

/* Corrige el hover de los controles de zoom de Leaflet */
.leaflet-control-zoom.leaflet-bar a:hover,
.leaflet-control-zoom.leaflet-bar a:focus {
  color: #222 !important;
  background: #f4f4f4 !important;
  text-decoration: none !important;
  outline: none !important;
}

.contenedor-mapa-regiones {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.mapa-wrapper {
  position: relative;
  width: 90%;
}

#svg-container {
  width: 70%;
}

#mapa-container {
  flex: 1;
}

.panel-busqueda {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-busqueda .navbar-search {
  width: 100%;
}

.panel-busqueda {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resultados-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 600px;
  overflow-y: auto;
  /* background: linear-gradient(to right, rgba(255, 255, 255, 0.0001) 0%, rgba(255, 255, 255, 0.85) 15%); */
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 15%,
    rgba(255, 255, 255, 0.9) 39%
  );
  border: none;
  padding: 16px 16px 16px 100px;
  z-index: 1000;
}

.titulo-resultados {
  font-family: "PT Sans Narrow", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  font-size: 24px;
  margin-bottom: 10px;
  color: #222;
  border-bottom: 0;
  line-height: 58px;
}

.lista-resultados {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.lista-resultados li {
  font-size: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: #020202;
}

.icono-mapa {
  margin-right: 10px;
  font-size: 18px;
}

.badge-info {
  font-size: 12px;
}

.arica-parinacota,
.tarapaca,
.antofagasta,
.atacama,
.coquimbo,
.valparaiso,
.metropolitana,
.ohiggins,
.maule,
.nuble,
.biobio,
.araucania,
.los-rios,
.los-lagos,
.aisen,
.magallanes {
  transition: transform 0.3s ease;
  transform-box: fill-box;
  transform-origin: center;
  cursor: pointer;
}

.arica-parinacota:hover,
.tarapaca:hover,
.antofagasta:hover,
.atacama:hover,
.coquimbo:hover,
.valparaiso:hover,
.metropolitana:hover,
.ohiggins:hover,
.maule:hover,
.nuble:hover,
.biobio:hover,
.araucania:hover,
.los-rios:hover,
.los-lagos:hover,
.aisen:hover,
.magallanes:hover {
  transform: scale(1.1);
}

.tooltip-svg {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 20px 20px;
  border-radius: 10px;
  font-size: 12px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1000;
  transition: opacity 0.2s ease;
  opacity: 0;
}

.custom-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  top: 0;
  left: 0;
  height: 30px;
  width: 30px;
  background-color: #eee;
  transition: transform 0.2s ease-in-out;
}

.custom-checkbox-container:hover input ~ .checkmark {
  transform: scale(1.2);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox-container {
  display: block;
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 20px;
  user-select: none;
}

/* Estado deseleccionado: imagen genérica */
.custom-checkbox-container[data-type="hallazgo"] .checkmark {
  background-image: url("../img/icon-map-unselected.png");
}
.custom-checkbox-container[data-type="memorial"] .checkmark {
  background-image: url("../img/icon-map-unselected.png");
}
.custom-checkbox-container[data-type="recinto"] .checkmark {
  background-image: url("../img/icon-map-unselected.png");
}

/* Estado seleccionado: imagen específica */
.custom-checkbox-container[data-type="hallazgo"] input:checked ~ .checkmark {
  background-image: url("../img/icon-map-hallazgo.png");
}
.custom-checkbox-container[data-type="memorial"] input:checked ~ .checkmark {
  background-image: url("../img/icon-map-memorial.png");
}
.custom-checkbox-container[data-type="recinto"] input:checked ~ .checkmark {
  background-image: url("../img/icon-map-recinto.png");
}

.container-search {
  position: absolute;
  z-index: 9999;
  padding-right: 54px;
}

#searchInput {
  height: 44px;
}
#searchInput::placeholder {
  text-align: center;
}
#searchResults {
  margin-bottom: 0;
  text-transform: uppercase;
  font-size: 15px;
  max-height: 524px;
  overflow-y: auto;
}
#searchResults::-webkit-scrollbar {
  width: 6px;
}

#searchResults::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

/* Modal de detalle */
.modal-detalle {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  position: relative;
  width: 90%;
  max-width: 900px;
  height: 80vh;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.modal-contenido iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-cerrar {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 10;
  border: 1px solid black;
  border-radius: 20px;
  padding: 0 12px;
  background: #eef;
}
