@import url("https://fonts.googleapis.com/css2?family=Inconsolata:wght@900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

/* ===== contenedor del mapa ===== */

#container3D canvas {
  width: 100vw !important;
  height: 100vh !important;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

#container3D {
  overflow: hidden;
}

/* ===== barra de progreso ===== */

.progress-bar-container {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  gap: 1rem;
}

.progress-images {
  position: relative;
  width: 40vw;
  height: auto;
  margin-bottom: 1rem;
  overflow: visible;
}

.img-large {
  width: 100%;
  height: auto;
  display: block;
}

.img-float {
  position: absolute;
  width: 12%;
  height: auto;
  pointer-events: none;
  z-index: 2;
}

#progress-bar {
  width: 30%;
  height: 10px;
  appearance: none;
  -webkit-appearance: none;
  z-index: 1000;
}

/* WebKit */
#progress-bar::-webkit-progress-bar {
  background-color: white;
  border: 3px solid black;
  border-radius: 5px;
}

#progress-bar::-webkit-progress-value {
  background-color: green;
  border-radius: 5px;
}

/* Firefox */
#progress-bar::-moz-progress-bar {
  background-color: green;
  border: 3px solid black;
}

/* Responsive ajustes para móviles */
@media (max-width: 768px) {
  .progress-images {
    width: 80vw;
  }

  #progress-bar {
    width: 80%;
    height: 14px;
  }

  .img-float {
    width: 18%;
  }
}



/* ===== Modal de informacion de las actividades ===== */

#info-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(50, 167, 56, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#info-modal-overlay.active {
  display: flex;
}

#info-column {
  background-color: #d0eec3;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 1.5em;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  margin: auto;
  z-index: 1000;
  /* centra vertical si se usa flex */
}

@media (max-width: 767px) {
  #info-column {
    width: 95%;
    max-width: 95%;
    height: auto;
    max-height: 90vh;
  }
}

#info-column img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1em;
  box-shadow: 0 4px #618838;
}

#info-column h2 {
  text-align: center;
}

.date-container {
  margin-top: 1em;
  padding: 1em;
  background-color: #e9ecef;
  border-radius: 8px;
  box-shadow: 0 4px #618838;
}

.event-container {
  margin-top: 1em;
  padding: 1em;
  background-color: #f8f9fa;
  border-radius: 6px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

.time-container {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #555;
}

/* ===== nombre que se muestra encima de los edificios ===== */

.tooltip {
  color: rgb(0, 0, 0);
  background-color: rgba(255, 255, 255, 0.7);
  padding: 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tooltip.show {
  opacity: 1;
}

.tooltip.hide {
  opacity: 0;
}

/* Estilo para cuando no hay actividades */
.inactive-title {
  color: #bbb;
  font-weight: normal;
}

#building-title {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  /* Ajusta el centro relativo a su ancho */
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  display: none;
  /* Comienza oculto */
}

/* ===== barra de navegacion ===== */

.navbar {
  background: #85C44C;
  background: linear-gradient(90deg, rgba(133, 196, 76, 1) 0%, rgba(56, 120, 0, 1) 100%);
  color: white;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  width: 100%;
  z-index: 99;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-title {
  margin: 0;
  font-size: 1.5em;
}

/* ===== BOTÓN EN NAVBAR CON ICONO ===== */

.menu-bars-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.menu-bars-btn:hover {
  transform: scale(1.2);
}

@media (max-width: 767px) {
  .menu-bars-btn .menu-text {
    display: none;
  }
}

/* ===== MODAL GENERAL ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: none;
  justify-content: left;
  align-items: center;
  margin-left: 10px;
  pointer-events: auto;
  /* <--- importante */
}

.modal-content {
  background: #85C44C;
  background: linear-gradient(90deg, rgba(133, 196, 76, 1) 0%, rgb(80, 170, 1) 100%);
  padding: 2rem;
  font-size: 0.9rem;
  border-radius: 10px;
  max-width: 350px;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-height: 80vh;
  overflow-y: auto;
  text-align: center;
  position: relative;
}


/* ===== BOTÓN DE CERRAR (X) ===== */
.close-modal {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.close-modal:hover {
  transform: scale(1.3);
}


/* ===== LISTA DE LUGARES ===== */
.modal-list {
  list-style: none;
  padding: 0;
  margin-top: 0.9rem;
}

.modal-list li {
  margin: 0.7rem 0;
}


/* ===== BOTONES DENTRO DEL MODAL ===== */
.modal-list button {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: none;
  background-color: #ffffff;
  box-shadow: 0 4px #618838;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.modal-list button:hover {
  transform: scale(0.95);
}

.modal.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f0f0f0;
  /* Color de fondo de la pista */
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: #aaa;
  /* Color del scroll */
  border-radius: 10px;
  /* Bordes redondeados */
  border: 2px solid #f0f0f0;
  /* Espaciado */
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background-color: #888;
  /* Color más oscuro al pasar el mouse */
}