@font-face {
      font-family: 'AllRoundGothicW01-Bold';
      src: url('./fuentes/AllRoundGothicW01-Bold.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
    }

    @font-face {
      font-family: 'AllRoundGothicW01-Book';
      src: url('./fuentes/AllRoundGothicW01-Book.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
    }

    @font-face {
      font-family: 'AllRoundGothicW01-Medium';
      src: url('./fuentes/AllRoundGothicW01-Medium.ttf') format('truetype');
      font-weight: normal;
      font-style: normal;
    }


* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: "AllRoundGothicW01-Book", sans-serif; }
/* header { background: #0b6e4f; color: #fff; padding: 10px 14px; text-align: center; } */
h1 { margin: 0; font-size: 18px; }
main { height: calc(100% - 92px); } /* espacio para header + footer */
#map { width: 100%; height: 100vh; }

.leaflet-layerstree-header-name {
font-family: "AllRoundGothicW01-Book", sans-serif !important;
font-size: 0.9rem;
}
/*conos de tel y wats*/
.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Teléfono */
.phone-icon {
  background-image: url("data:image/svg+xml,%3Csvg fill='%23007bff' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.62 10.79a15.053 15.053 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 011 1V21a1 1 0 01-1 1C10.07 22 2 13.93 2 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.46.57 3.58a1 1 0 01-.25 1.01l-2.2 2.2z'/%3E%3C/svg%3E");
}

/* WhatsApp */
.whatsapp-icon {
  background-image: url("data:image/svg+xml,%3Csvg fill='%2325D366' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.52 3.48A11.86 11.86 0 0012.05 0C5.4 0 .04 5.37.04 12c0 2.11.55 4.17 1.59 5.99L0 24l6.2-1.62A11.93 11.93 0 0012.05 24c6.65 0 12.01-5.37 12.01-12 0-3.2-1.25-6.2-3.54-8.52zM12.05 21.82c-1.81 0-3.58-.49-5.12-1.42l-.37-.22-3.68.96.98-3.59-.24-.37A9.77 9.77 0 012.27 12c0-5.39 4.39-9.77 9.78-9.77 2.61 0 5.06 1.02 6.9 2.87A9.7 9.7 0 0121.82 12c0 5.39-4.39 9.82-9.77 9.82zm5.39-7.33c-.29-.15-1.7-.84-1.96-.94-.26-.1-.45-.15-.64.15-.19.29-.74.94-.91 1.14-.17.19-.34.22-.63.07-.29-.15-1.22-.45-2.32-1.43-.86-.76-1.44-1.7-1.61-1.99-.17-.29-.02-.45.13-.6.13-.13.29-.34.44-.51.15-.17.2-.29.29-.49.1-.19.05-.37-.02-.52-.07-.15-.64-1.54-.88-2.12-.23-.56-.47-.49-.64-.5h-.55c-.19 0-.5.07-.76.37s-1 1-.97 2.43c.03 1.43 1.03 2.81 1.17 3 .15.19 2.03 3.11 4.92 4.35.69.3 1.23.48 1.65.61.69.22 1.32.19 1.82.12.56-.08 1.7-.69 1.94-1.36.24-.67.24-1.25.17-1.36-.07-.12-.26-.19-.55-.34z'/%3E%3C/svg%3E");
}

/* Popups: diseño con imagen / contenido */
.popup-card {
display: flex;
gap: 10px;
min-width: 180px;
max-width: 320px;
align-items: flex-start;
}


/* Imagen del popup: evitar desbordes y mantener proporción */
.popup-card img,
.popup-img {
width: 110px; /* tamaño preferido */
height: 110px;
min-width: 64px;
flex-shrink: 0; /* evitar que la imagen se reduzca demasiado */
object-fit: cover; /* recortar centrado si es necesario */
border-radius: 6px;
border: 1px solid #ddd;
max-width: 100%; /* seguridad para no desbordar en móviles */
}


.popup-content { line-height: 1.3; overflow-wrap: break-word; text-align: justify; }
.popup-title { font-size: 1.1rem; margin-bottom: 4px; color: #3413ac; font-family: "AllRoundGothicW01-Bold", sans-serif;  }
.popup-desc { margin: 4px 0; color: #181717; font-family: "AllRoundGothicW01-Book", sans-serif; }
.popup-link { margin-top: 6px; display: inline-block; font-size: 20px; font-family: "AllRoundGothicW01-Bold", sans-serif; color: #7817e6; text-decoration: none! important; }
.popup-text { font-size: 1rem; margin-bottom: 4px; color: #2b1285; font-family: "AllRoundGothicW01-Book", sans-serif; text-decoration: none! important; }
.popup-phone { font-size: 1rem; margin-bottom: 4px; color: #06aa76; font-family: "AllRoundGothicW01-Book", sans-serif; }
.popup-mail { font-size: 1rem; margin-bottom: 4px; color: #5306aa; font-family: "AllRoundGothicW01-Book", sans-serif; }


/* Asegurar que la caja del popup no exceda el ancho permitido */
.leaflet-popup-content-wrapper {
max-width: 440px; /* evita que el contenido se haga muy ancho */
}


/* Ajuste del control de árbol */
.leaflet-control-layers-tree {
  
  max-height: 55vh;
  overflow: auto;
}


/* Mobile adjustments */
@media (max-width: 600px) {
.popup-card { min-width: 150px; }
.popup-card img { width: 110px; height: 110px; }
}

.popup-gallery {
  position: relative;
  text-align: center;
}

.popup-gallery img {
  width: 70%;
  border-radius: 6px;
}

.popup-gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.popup-gallery-controls button {
  background: #440dc4;
  color: white;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 4px;
}
/* Aumenta el ancho general del popup */
.leaflet-popup-content {
  width: 320px !important;
}

/* Imagen ocupa todo el ancho disponible */
.popup-gallery img,
.popup-img {
  width: 14vh;
  max-width: 20vh;
  height: 30vh;
  display: block;
  border-radius: 8px;
}

#loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 9999;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  font-family: Arial, sans-serif;
}

#loader img {
  width: 120px;
  height: auto;
  animation: pulse 1.2s infinite ease-in-out;
}

#loader p {
  margin-top: 15px;
  color: #444;
  font-size: 14px;
}

/* Logo fijo clickeable y adaptable */
    #logo {
      position: fixed;
      bottom: 20px;
      left: 20px;
      z-index: 1000;
      width: 100px;      
      opacity: 1;
    }

    #logo img {
      width: 400px;
      height: auto;
      border-radius: 8px;
      background-color: #ffffff98;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0);
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    #logo img:hover {
      transform: scale(1.05);
      opacity: 1;
    }
#loader p {
  margin-top: 15px;
  color: #444;
  font-size: 14px;
}

/* Logo fijo clickeable y adaptable */
    /* #aviso {
      position: fixed;
      bottom: 90px;
      left: 90px;
      z-index: 1000;
      width: 80px;      
      opacity: 1;
    }

    #aviso img {
      width: 800px;
      height: auto;
      border-radius: 8px;
      background-color: #ffffff98;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0);
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    #aviso img:hover {
      transform: scale(1.9);
      opacity: 1;
    } */


/* animación suave */
@keyframes pulse {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

