/*MAPA*/

#map-template {
  height: 100%;
  width: 100%;
  top: 0vh; /*16vh si es para darle espacio al menu  */
  border-radius: 8px 8px 0 0;
  position: fixed;
}

/* ocultar el control de zoom*/
.leaflet-control-zoom {
  display: none !important;
}
.leaflet-popup-content {
  margin: 0;
  line-height: 1.3;
  font-size: 13px;
  font-size: 1.08333em;
  min-height: 1px;
}
.leaflet-popup-content-wrapper {
  padding: 0;
  text-align: center;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.leaflet-popup-tip {
  width: 14px;
  height: 14px;
  margin: -8px auto 0;
  background: #0b3c4c;
}

.leaflet-popup-tip-container {
  width: 36px;
  height: 18px;
  left: 50%;
  margin-left: -18px;
}

.leaflet-container a.leaflet-popup-close-button {
  top: 10px;
  right: -50px;
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  padding: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  font-size: 26px;
  font-weight: 300;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: #fff;
  background: rgba(8, 44, 56, 0.75);
}


/*MENU LIMPIO*/
#menu-container {
  position: fixed;
  bottom: 2vh;
  left: 20px; /* Margen izquierdo de 20px */
  width: calc(
    100% - 70%
  ); /* Ancho del 100% menos el margen izquierdo y derecho */
  height: 80%; /* Altura inicial del menú, se expandirá al mostrarse */
  background-color: #042a3df0;
  border-radius: 10px;
  z-index: 10;
  overflow: hidden;
  transition: height 0.3s ease-in-out;
  overflow-y: auto;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 400;
}

/* Iconos Font Awesome dentro del menú (el font del contenedor no debe heredarse en <i>) */
#menu-container i[class*="fa-"],
#menu-container i.fas,
#menu-container i.far,
#menu-container i.fab {
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", "FontAwesome";
}

#menu-container i.fas,
#menu-container i.far {
  font-weight: 900;
}

#menu-container i.fab {
  font-weight: 400;
}

#menu-container .menu-subtext,
#menu-container .title p:first-child,
#menu-container #toggle-title .title p:first-child {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
}

#menu-container .menu-subtext {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: -4px 0 12px 4px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#menu-container .menu-subtext-icon {
  width: 12px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: middle;
}

#menu-container button.object,
#menu-container button.object p,
#menu-container .sector-button,
#menu-container .title p:last-child {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  justify-content: center;
}

.padding-box {
  box-sizing: border-box;
  padding: 15px;
  margin-bottom: 2vh;
}

/* Títulos del panel menú mapa */
#menu-container .title p:first-child {
  font-size: 25px;
  font-weight: 700;
  font-family: "Poppins", system-ui, sans-serif;
  margin: 0;
  margin-bottom: 15px;
  color: #fff;
}

#menu-container .title p:last-child {
  font-size: 30px;
  margin-bottom: 30px;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: bold;
}

#menu-container #back-to-menu-principal,
#menu-container #back-to-menu-principals,
#menu-container #back-to-menu-principal-tolva {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 500;
}

#menu-container .glassmorphism-effect p {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 400;
}

#menu-container .glassmorphism-effect p:first-child {
  font-weight: 700;
}

#menu-container .card p {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 400;
}

#menu-container .card > div:first-child p {
  font-weight: 700;
}

.container #confirma-ubicacion,
.container #confirma-ubicacion button {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 400;
}

.sector-button {
  background-color: rgb(155 233 112 / 66%);
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 6px 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Collapse para secciones de información de reciclaje */

#menu-reciclaje .object:after {
  content: '\f078';
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  float: right;
  margin-left: 1em;
  transition: transform 0.3s;
}

#menu-reciclaje .object.active:after {
  transform: rotate(180deg);
}

#menu-reciclaje .main-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
  border-radius: 0 0 8px 8px;
  margin-bottom: 1em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border-top: 1px solid #d0d0d0;
  padding: 0 1em;
}

#menu-reciclaje .main-content.show {
  max-height: 700px; /* Ajusta según el contenido */
  padding: 1em;
  margin-bottom: 1em;
}

/* MENU: lado derecho.. */
.glassmorphism-effect {
  background: rgba(255, 255, 255, 0.785);
  box-shadow: 0 8px 32px 0 rgba(46, 42, 32, 0.37);
  -webkit-backdrop-filter: blur(0.3px);
  backdrop-filter: blur(1px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.main-content > div:nth-child(2) {
  display: block;
  grid-gap: 20px;
}

.card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  height: 100%;
  position: relative;
  width: 100%;
}

.card > div:first-child {
  align-items: center;
  border-radius: 16px;
  display: flex;
  grid-column: 1/5;
  grid-row: 1/2;
  z-index: 1;
  background-color: turquoise;
}

.card > div:first-child p {
  color: #000000;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  padding-right: 30px;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
}

.card > div:last-child {
  border-radius: 16px;
  display: grid;
  grid-column: 2/5;
  grid-row: 1/2;
  justify-content: center;
  z-index: 2;
}

.card > div:last-child p:first-child {
  font-size: 24px;
  font-weight: 600;
  margin: 8px;
}

.card > div:last-child p:last-child {
  margin: 0;
}

.margin-bottom-card {
  margin-bottom: 25px;
}

/* Estilos para el botón de volver al menú principal */
#back-to-menu-principal {
  font-size: 20px;
  cursor: pointer;
  background-color: #727272bd;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  text-align: center;
  margin-right: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease; /* Suaviza las transiciones */
}
#back-to-menu-principal i {
  font-size: 18px;
  transition: transform 0.3s ease; /* Suaviza el efecto de zoom */
}

#back-to-menu-principal:hover i {
  transform: rotate(-20deg); /* Rota ligeramente el icono */
}

#back-to-menu-principals {
  font-size: 20px;
  cursor: pointer;
  background-color: #727272bd;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  text-align: center;
  margin-right: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease; /* Suaviza las transiciones */
}

#back-to-menu-principals i {
  font-size: 18px;
  transition: transform 0.3s ease; /* Suaviza el efecto de zoom */
}

#back-to-menu-principals:hover i {
  transform: rotate(-20deg); /* Rota ligeramente el icono */
}

#back-to-menu-principal-tolva {
  font-size: 20px;
  cursor: pointer;
  background-color: #727272bd;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  text-align: center;
  margin-right: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease; /* Suaviza las transiciones */
}

#back-to-menu-principal-tolva i {
  font-size: 18px;
  transition: transform 0.3s ease; /* Suaviza el efecto de zoom */
}

#back-to-menu-principal-tolva:hover i {
  transform: rotate(-20deg); /* Rota ligeramente el icono */
}

#title-and-back {
  display: flex; /* Habilita flexbox */
  align-items: center; /* Centra verticalmente el contenido */
  gap: 10px; /* Espaciado entre el botón y el título */
  margin-bottom: 20px; /* Separación del resto de los elementos */
}
#toggle-title {
  flex-grow: 1; /* Hace que el título ocupe el espacio restante */
  text-align: left;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

::-webkit-scrollbar {
  width: 13px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #121212;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  height: 50px;
  background: #ffffff;
  border-radius: 12px;
  border:3px solid #121212;
}

::-webkit-scrollbar-thumb:hover {
  background: #e9e9e9;
}
.scroll-up-button {
    position: sticky;
    left: 80%;
    font-size: 20px;
    bottom: 20px;
    right: 20px;
    padding: 12px 16px;
    background-color: #727272bd;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  display: none;
}


/* Camion Recolector */
.info-box {
      display: none;
      z-index: 1200;
      position: absolute;
      top: 70%;
      left: 50%;
      transform: translateX(-30%);
      background: rgba(255,255,255,0.97);
      color: #222;
      border-radius: 14px;
      box-shadow: 0 8px 32px 0 rgba(46, 42, 32, 0.25), 0 2px 8px rgba(0,0,0,0.10);
      padding: 18px 28px 12px 18px;
      max-width: 390px;
      width: 90%;
      box-sizing: border-box;
      transition: max-height 0.3s ease;
      overflow: hidden;
      text-align: left;
    }
.info-box.collapsed {
  top: 85%;
}    
    .toggle-btn {
      position: absolute;
      top: 4px;
      left: 50%;
      transform: translateX(-50%);
      background: #e0e0e0;
      color: #333;
      border: none;
      font-size: 20px;
      border-radius: 18px;
      width: 36px;
      height: 6px;
      cursor: pointer;
      padding: 0;
    }
    .info-box.collapsed .info-content {
      display: none;
    }
    .info-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 5px;
      
    }
    .info-title-status {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      font-size: 1.1rem;
      flex-wrap: wrap;
    }
    .status {
      font-weight: bold;
      font-size: 0.9rem;
      margin-left: 10px;
    }
    .status.en-ruta {
      color: #02a506;
    }
    .status.fuera-de-ruta {
      color: red;
    }
    .close-btn {
      background: #e00f1a;
      border: none;
      color: white;
      font-size: 0.85rem;
      font-weight: bold;
      cursor: pointer;
      padding: 6px 12px;
      border-radius: 8px;
      transition: background 0.3s ease;
      display: block;
      margin: 4px auto 0;
    }
    .close-btn:hover {
      background: #d32f2f;
    }
    .info-content p {
      font-size: 0.95rem;
    }
    .progress-container {
      margin-top: 8px;
    }
    .distance-label {
      font-size: 0.85rem;
      margin-top: 4px;
      text-align: center;
    }
    .progress-bar {
      width: 100%;
      height: 10px;
      background-color: #e0e0e0;
      border-radius: 5px;
      overflow: hidden;
    }
    .progress-fill {
      height: 100%;
      background-color: #dab106;
      width: 60%;
    }
    strong {
      font-weight: bold;
    }

#custom-alert {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.97);
  color: #222;
  width: 30%;
  padding: 18px 28px 18px 18px;
  border-radius: 14px;
  box-shadow: 0 8px 32px 0 rgba(46, 42, 32, 0.25), 0 2px 8px rgba(0, 0, 0, 0.10);
  display: none;
  z-index: 1200;
  transition: box-shadow 0.3s, background 0.3s, top 0.3s;
  animation: fadeInBar 0.5s;
  letter-spacing: 0.01em;
  text-align: center;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  font-size: 18px;
  font-weight: 500;
}

.dias-flex-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    min-width: 0;
    overflow: auto;
    gap: 8px;
}
.dias-flex-container span {
    word-break: break-word;
    flex: 1 1 0;
}

.cardPoint {
  width: min(370px, calc(100vw - 42px));
  margin: -1px;
  border-radius: 18px;
  overflow: hidden;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background: linear-gradient(135deg, #0b3c4c, #0f5c73);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cardPoint-header {
  position: relative;
  margin-bottom: 0;
  padding: 18px 16px 14px 94px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cardPoint-header::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  width: 72px;
  height: 64px;
  background: url('/icons/puntoMovil.webp') center/contain no-repeat;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.25));
}

.cardPoint.cardPoint-tolva .cardPoint-header::before {
  background-image: url('/icons/puntoTolva.webp');
}

.cardPoint.cardPoint-movil .cardPoint-header::before,
.cardPoint.cardPoint-segregada .cardPoint-header::before {
  background-image: url('/icons/puntoMovil.webp');
}

.cardPoint.cardPoint-fijo .cardPoint-header::before {
  background-image: url('/icons/puntoFijo1.webp');
}

.cardPoint-header .info {
  flex-grow: 1;
  text-align: left;
}

.cardPoint-header .info .name {
  margin: 4px 0 0;
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 600;
  line-height: 1.08;
}

.cardPoint-header .info .time {
  font-size: 11px;
  color: rgba(122, 225, 236, 0.95);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.cardPoint-body {
  font-size: 14px;
  width: 100%;
  border-radius: 0;
  background-color: transparent;
  padding: 16px;
}

.cardPoint-body .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(15, 84, 113, 0.5);
  border: 1px solid rgba(118, 186, 206, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.cardPoint-body .row.row-dias .label,
.cardPoint-body .row.row-horario .label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f2fbff;
  font-weight: 700;
}

.cardPoint-body .row.row-dias .label::before,
.cardPoint-body .row.row-horario .label::before {
  content: "\f133";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:#186787;
  border: 1px solid #2a7391;
  color: #68e6b1;
  font-size: 13px;
}

.cardPoint-body .row.row-horario .label::before {
  content: "\f017";
}

.cardPoint-body .row.row-dias .value {
  color: #fff;
  text-align: left;
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: end;
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow: visible;
}

.cardPoint-body .row.row-dias .value .dia-badge {
  background: #ff4d5a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 4px 10px;
  line-height: 1.15;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  flex: 0 0 auto;
}

.cardPoint-body .row.row-horario .value {
  color: #ffffff;
  text-align: right;
  font-size: 15px;
  font-weight: 700;
}

.cardPoint-body .row:last-child {
  margin-bottom: 0;
  background: transparent;
  border: none;
  padding: 0;
}

.cardPoint-body .label {
  color: #f2fbff;
  font-weight: bold;
  font-size: 14px;
}

.cardPoint-body .value {
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  line-height: 1;
}

.buttonCard {
  background: #b8efa1;
  color: #333333;
  border: nonec;
  border: none;
  border-radius: 12px;
  padding: 0;
  width: 70%;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.buttonCard a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 10px;
  color: inherit;
  text-decoration: none;
}

.buttonCard a::before {
  content: "\f3c5";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.7em;
  color: #007bff;
}

.buttonCard:hover {
  transform: translateY(-2px);
}

/* responsive... */
@media (max-width: 1920px) {
  .info-box {
      top: 80%;
    } 
  .info-box.collapsed {
  top: 90%;
}     

}

@media (max-width: 1400px) {
.info-box {
      top: 72%;
    } 
  .info-box.collapsed {
  top: 85%;
}     

}
@media (max-width: 900px) {
  .info-box {
      transform: translateX(-50%);
      top: 70%;
    }   

  .scroll-up-button {
    left: auto;
    position: fixed;
    font-size: 20px;
    bottom: 20px;
    right: 45px;
    padding: 12px 16px;
    background-color: #727272bd;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  }

  #menu-reciclaje .main-content.show {
    max-height: 800px;
  }

  #menu-container {
    position: fixed;
    height: 35vh;
    width: calc(100% - 8%);
    border: 2px solid #66666633;
    bottom: 0;
    z-index: 100; /* Por encima de otros elementos */
    background-color: #042a3d;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, opacity 0.4s ease; /* Transiciones suaves */
  }

  /* Ocultar parcialmente el contenedor */
  #menu-container.oculto {
    transform: translateY(100%);
    opacity: 0;
  }

  /* Estilo del botón */
  #ocultar-menu {
    width: 80px; /* Más ancho para el diseño alargado */
    padding: 1px 15px; /* Ajusta el padding para mayor espacio horizontal */
    border-radius: 20px; /* Alargado, no circular */
    bottom: 34vh; /* Más cerca del fondo */
    font-size: 18px; /* Ajusta el tamaño de fuente si es necesario */
    cursor: pointer;
    background-color: #69676785;
    color: #ff3f81;
    text-align: center;
    position: fixed; /* Fijo para que no desaparezca */
    left: 50%;
    transform: translateX(-50%);
    z-index: 110; /* Asegura que esté por encima del contenedor */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease,
      bottom 0.4s ease;
  }

  /* Efecto al pasar el ratón sobre el botón */
  #ocultar-menu:hover {
    background-color: #5a5a5abd;
    transform: translateX(-50%) scale(1.1);
    transition: all 0.4s ease;
  }

  /* Cuando el menú está oculto, mueve el botón hacia abajo */
  #menu-container.oculto + #ocultar-menu {
    bottom: calc(35vh - 30vh); /* Baja el botón cuando el menú se oculta */
  }
  /* Cambiar el ícono del botón según el estado */
  #menu-container.oculto + #ocultar-menu i::before {
    bottom: calc(35vh + 20px);
    content: "\f062"; /* Ícono de flecha hacia arriba */
  }
  #menu-container:not(.oculto) + #ocultar-menu i::before {
    content: "\f13a "; /* Ícono Bajar Menu */
  }
  #ocultar-menu.tres-puntos {
    width: 45px;
    font-size: 21px;
    cursor: pointer;
    background-color: #727272bd;
    color: #fff;
    padding: 12px;
    border-radius: 50%;
    text-align: center;
    position: fixed; /* Fijo para que no desaparezca */
    bottom: 32vh; /* Justo por encima del menú oculto */
    left: 50%;
    transform: translateX(-50%);
    z-index: 110; /* Asegura que esté por encima del contenedor */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease,
      bottom 0.4s ease;
  }

  /* Animación de aparición del botón */
  #ocultar-menu.appearing {
    animation: fadeIn 0.5s ease forwards;
  }

  /* Keyframes para animar la aparición */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateX(-50%) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) scale(1);
    }
  }
  #custom-alert {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.97);
    color: #222;
    width: 80%;
    padding: 18px 28px 18px 18px;
    border-radius: 14px;
    box-shadow: 0 8px 32px 0 rgba(46, 42, 32, 0.25), 0 2px 8px rgba(0, 0, 0, 0.10);
    display: none;
    z-index: 1200;
    transition: box-shadow 0.3s, background 0.3s, top 0.3s;
    animation: fadeInBar 0.5s;
    letter-spacing: 0.01em;
    text-align: center;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 500;
  }
}
@media (max-width: 650px) {
  /* Contenedor principal del menú */
  #menu-container {
    position: fixed;
    height: 35vh;
    width: 100%;
    left: 0;
    border: 2px solid #66666633;
    bottom: 0;
    z-index: 100; /* Por encima de otros elementos */
    background-color: #042a3d;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, opacity 0.4s ease; /* Transiciones suaves */
  }

  /* Ocultar parcialmente el contenedor */
  #menu-container.oculto {
    transform: translateY(100%);
    opacity: 0;
  }

  /* Estilo del botón */
  #ocultar-menu {
    width: 80px; /* Más ancho para el diseño alargado */
    padding: 1px 15px; /* Ajusta el padding para mayor espacio horizontal */
    border-radius: 20px; /* Alargado, no circular */
    bottom: 32vh; /* Más cerca del fondo */
    font-size: 18px; /* Ajusta el tamaño de fuente si es necesario */
    cursor: pointer;
    background-color: #69676785;
    color: #ff3f81;
    text-align: center;
    position: fixed; /* Fijo para que no desaparezca */
    left: 50%;
    transform: translateX(-50%);
    z-index: 110; /* Asegura que esté por encima del contenedor */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease,
      bottom 0.4s ease;
  }

  /* Efecto al pasar el ratón sobre el botón */
  #ocultar-menu:hover {
    background-color: #5a5a5abd;
    transform: translateX(-50%) scale(1.1);
    transition: all 0.4s ease;
  }

  /* Cuando el menú está oculto, mueve el botón hacia abajo */
  #menu-container.oculto + #ocultar-menu {
    bottom: calc(35vh - 30vh); /* Baja el botón cuando el menú se oculta */
  }
  /* Cambiar el ícono del botón según el estado */
  #menu-container.oculto + #ocultar-menu i::before {
    bottom: calc(35vh + 20px);
    content: "\f062"; /* Ícono de flecha hacia arriba */
  }
  #menu-container:not(.oculto) + #ocultar-menu i::before {
    content: "\f13a "; /* Ícono Bajar Menu */
  }
  #ocultar-menu.tres-puntos {
    width: 45px;
    font-size: 21px;
    cursor: pointer;
    background-color: #727272bd;
    color: #ff3f81;
    padding: 12px;
    border-radius: 50%;
    text-align: center;
    position: fixed; /* Fijo para que no desaparezca */
    bottom: 32vh; /* Justo por encima del menú oculto */
    left: 50%;
    transform: translateX(-50%);
    z-index: 110; /* Asegura que esté por encima del contenedor */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease,
      bottom 0.4s ease;
  }

  /* Animación de aparición del botón */
  #ocultar-menu.appearing {
    animation: fadeIn 0.5s ease forwards;
  }

  /* Keyframes para animar la aparición */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateX(-50%) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) scale(1);
    }
  }
  #custom-alert {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.97);
    color: #222;
    width: 80%;
    padding: 18px 28px 18px 18px;
    border-radius: 14px;
    box-shadow: 0 8px 32px 0 rgba(46, 42, 32, 0.25), 0 2px 8px rgba(0, 0, 0, 0.10);
    display: none;
    z-index: 1200;
    transition: box-shadow 0.3s, background 0.3s, top 0.3s;
    animation: fadeInBar 0.5s;
    letter-spacing: 0.01em;
    text-align: center;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 500;
  }
}

@media (max-width: 480px) {
      .toggle-btn {
        top: 8px;
      }
      .info-box {
        padding: 30px 15px 10px;
        font-size: 0.9rem;
      }
      .info-title-status {
        font-size: 0.95rem;
      }
      .distance-label {
        font-size: 0.95rem;
        margin: 6px 0 0 0;
      }
      .close-btn {
        font-size: 1rem;
        padding: 5px 10px;
        margin: 8px auto 0;
      }
    }