@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@200&display=swap');
body {
  font-family:'Raleway', sans-serif;
  margin: 0;
  padding: 0;
  color: rgba(255,255,255,.8);
}
/* Loader (pantalla de carga) */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #fff;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Desvanecer el loader */
.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out;
  pointer-events: none;
}

/*Main*/
.contenedor {
  display: flex;
  height:100vh;
}
#panel {
  background-color: rgb(17,27,34);
  width: 29%;
  overflow-y: scroll;
}
#panel::-webkit-scrollbar {
  display: none;
}
#visor {
  width: 71%;
}
.map {
  width: 100%;
  height: 100vh;
}
  
/* Estilos en pantallas pequeñas (modo responsive) */
@media (max-width: 768px) {
  .contenedor {
      flex-direction: column;
  }

  #panel {
      width: 100%;
      height: 70vh; /* Por defecto 70% */
  }

  #visor {
      width: 100%;
      height: calc(30vh - 5px); /* 30% restante */
  }

  #divisor {
      width: 100%;
      height: 5px; /* Mantiene altura mínima */
      position: relative;
      cursor: ns-resize;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  #divisor::before {
      content: "≡"; /* Icono de arrastrar */
      font-size: 18px;
      color: white;
      width: 30px;
      height: 30px;
      background: #555;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%; /* Hace que sea un círculo */
      box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
      user-select: none;
      font-weight: bold;
  }

  #divisor:hover::before {
      background: #333; /* Cambia color al pasar el mouse */
  }
}
