/* General */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* Mapa ocupa toda la pantalla */
#map {
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  height: 100vh;
}

/* Botón para activar geolocalización */
#geo-btn {
  font-family: 'Montserrat', sans-serif;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  font-size: 16px;
  z-index: 1000;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* Mensaje de error */
#geo-msg {
  font-family: 'Montserrat', sans-serif;
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  color: red;
  background-color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 1000;
}

/* Leyenda visual */
#legend {
  font-family: 'Montserrat', sans-serif;
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: white;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  font-size: 14px;
  line-height: 1.6;
  z-index: 1000;
}

#legend h4 {
  font-family: 'Montserrat', sans-serif;
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: bold;
}

.legend-color {
  font-family: 'Montserrat', sans-serif;
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 50%;
}

.legend-color.blue {
  background-color: #007bff;
}

.legend-color.green {
  background-color: #3f3;
}

.legend-icon {
  font-family: 'Montserrat', sans-serif;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}
.leyenda-movil {
  font-family: 'Montserrat', sans-serif;
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: white;
  border: 1px solid #ccc;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 999;
  max-width: 90%;
}

.leyenda-movil .color-box {
  font-family: 'Montserrat', sans-serif;
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 3px;
}

/*
.leyenda-movil .azul { background-color: blue; }
.leyenda-movil .verde { background-color: green; }
.leyenda-movil .rojo { background-color: red; }
.leyenda-movil .celeste { background-color: #00bcd4; }
*/

.leyenda-movil span{
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 15px;
  text-decoration: underline;
}

.leyenda-space {
  height:15px;
}

/* Leaflet override's */ 
.content-text .title{  
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3em;
  padding: 0px;
  font-weight: bold;
}

.content-text p a {
  font-family: 'Montserrat', sans-serif;
  color: #0043a8;
}

.leaflet-popup-content .content-text{
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  width: 69%;
  display: inline-block;
}

.leaflet-popup-content .content-img{
  font-family: 'Montserrat', sans-serif;
  width: 29%;
  display: inline-block;
}

.centered {
  display: flex;
  align-items: center;
}

.centered img {
  margin-right: 8px;
}


.contenido-pagina{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: 100%;
  font-family: sans-serif;
}

.container {
  background-color: #c9a250;
  background-image: url("images/fondo.png");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.advertencia {
  position: relative;
  max-width: 220px;
}

.advertencia img {
  width: 100%;
  height: auto;
  display: block;
}

.mensaje {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  font-weight: bold !important;
  font-size: 17px;
  color: white;
}

.contenedor-boton {
margin-top: 30px;
}

.boton {
  display: inline-block;
  background-color: white;
  color: #bb8b1e;
  font-weight: 600 !important;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 15px;
  box-shadow: 0 4px 0 #b08944;
  transition: all 0.2s ease;
  font-size: 20px;
}

.boton:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}


.montserrat-font {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* Color de fondo de los botones */
.leaflet-control-zoom a {
  background-color: #3B1818; /* verde */
  color: white;
}

/* Cambio de color al pasar el ratón */
.leaflet-control-zoom a:hover {
  background-color: #3B1818;
}


@media (max-width: 480px) {
  .container {
      background-size: contain;
      min-height: 100vh;  
      padding: 20px;
      padding-bottom: 35%;
  }
}