/* ------------------- FONDO Y FUENTE ------------------- */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: url('img/fond0.jpg') no-repeat center/cover fixed;
}


/* ------------------- VISTA MÓVIL ------------------- */
@media screen and (max-width: 768px) {
  .hamburger { display: block; }
  .auth-buttons.desktop { display: none; }
  header { flex-direction: column; align-items: center; }
  header .logo img { height: 100px; margin: 10px 0; }
  .topnav.responsive .menu-icons,
  .topnav.responsive .auth-buttons.mobile {
    display: flex;
    width: 100%;
  }
  .main-content {
    width: 80%;
    text-align: center;
  }
  .progress-road .road {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 15px;
  }
  .topnav.responsive {
    position: relative; /* mantiene el header sobre contenido */
  }
}

/* ------------------- IMAGEN DEL CAMINO (hero) ------------------- */

@media screen and (max-width: 768px) {
  .middle-image-container img {
    width: 95%;
    max-width: 350px;
    margin-top: 20px;
  }
}

/* ------------------- CONTENIDO PRINCIPAL ------------------- */
.main-content {
  background: #fff;
  border-radius: 10px;
  margin: 20px auto;
  padding: 20px;
  text-align: center;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.progress-road {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
}
.road {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 100%;
  justify-items: center;
}

.road-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
  font-weight: bold;
}
.road-point:hover {
  transform: scale(1.1);
}
.point-icon {
  width: 80px;
  height: 220px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 1.5s infinite;
}
.pin-icons {
  max-width: 70%;
  max-height: 70%;
}
.point-icon.red { animation-delay: 0.2s; }
.point-icon.green { animation-delay: 0.4s; }
.point-icon.light-green { animation-delay: 0.6s; }
.point-icon.blue { animation-delay: 0.8s; }
.point-icon.purple { animation-delay: 1s; }

@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ------------------- MODALES ------------------- */
.modal {
  display: none;
  position: fixed;
  left:0; top:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index:1500;
}
.modal-content {
  background-color: #ffffff;
  color: #000000;
  padding: 25px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
  position: relative;
}
.modal-content h2 { font-size: 24px; margin-top: 0; }
.modal-content p { font-size: 16px; color: #000000; }
.modal-content button {
  margin-top: 15px;
  background-color: #fcbd00;
  color: rgb(0, 0, 0);
  padding: 10px 20px;
  border: none;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}
.modal-content button:hover {
  background-color: #ffd000;
}
.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: rgb(255, 7, 7);
}
.close-modal:hover { color: #ffddc1; }

@media screen and (max-width: 768px) {
  .modal-content {
    margin: 15vh auto;
    padding: 20px;
    width: 90%;
    max-width: 320px;
    font-size: 14px;
  }
  .modal-content h2 {
    font-size: 20px;
  }
  .modal-content p {
    font-size: 14px;
  }
  .modal-content button {
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* ------------------- AVATARES Y DIÁLOGOS ------------------- */
#avatar-container-xilo, #avatar-container-gami {
  position: fixed;
  bottom: 20px;
  z-index: 10;
}
#avatar-container-xilo { left: 20px; }
#avatar-container-gami { right: 20px; }
.avatar-xilo, .avatar-gami {
  width: 120px;
  cursor: pointer;
}
.avatar-dialog {
  position: fixed;
  bottom: 140px;
  width: 300px;
  background: rgba(255,255,255,0.9);
  padding: 15px;
  border-radius: 10px;
  display: none;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
#dialogo-xilo { left: 20px; }
#dialogo-gami { right: 20px; }
.dialog-content {
  font-size: 1.2em;
  line-height: 1.5;
}
.close {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 1.5em;
  cursor: pointer;
  color: #333;
}
.close:hover {
  color: #f1c40f;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@media screen and (max-width: 768px) {
  #avatar-container-xilo,
  #avatar-container-gami {
    position: fixed;
    bottom: 10px;
    z-index: 5;
  }

  #avatar-container-xilo {
    left: 10px;
  }

  #avatar-container-gami {
    right: 10px;
  }

  .avatar-xilo,
  .avatar-gami {
    width: 70px; /* tamaño más pequeño */
    height: auto;
  }

  .main-content {
    padding-bottom: 120px; /* espacio extra para evitar que los avatares tapen contenido */
  }
}
/* Texto de puntos en negro */
.road-point p { 
  color: black !important; 
}

/* Avatares fijos sin encimarse */
#avatar-container-xilo, #avatar-container-gami {
  position: fixed; 
  bottom: 10px; 
  z-index: 999;
}
.avatar, .avatar-gami { 
  width: 90px; 
}

/* Menú hamburguesa compacto y alineado */
.menu-icons {
  position: absolute; top: 60px; right: 0;
  width: 200px; background: #000;
  border: 1px solid #f1c40f; border-radius: 6px;
  padding: 10px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: none; flex-direction: column; z-index: 1000;
}

/* Imagen del camino ajustada */
.middle-image-container {
  top: 50%;
  left: 0;
  width: 100%;
  z-index: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 0;
  margin-top: 10px;
}


.middle-image-container img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ------------------- SEÑALADORES EN CAMINO (PINES) ------------------- */
/* ------------------- SEÑALADORES Y PINES ------------------- */
.road {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 100%;
  justify-items: center;
}

.road-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
  font-weight: bold;
  max-width: 140px;
  margin: 12px 8px;
}

.road-point:hover {
  transform: scale(1.08);
}

.road-point p {
  margin: 6px 0 4px;
  font-size: 13px;
  color: black;
  font-weight: 500;
  text-align: center;
}


 .point-icon {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 2;
  padding: 0;
  margin: 0;
  animation: bounce 1.5s infinite;
}

.point-icon img {
  display: block;
  width: auto;
  height: auto;
  background: transparent !important;
}

.point-icon.red { animation-delay: 0.2s; }
.point-icon.green { animation-delay: 0.4s; }
.point-icon.light-green { animation-delay: 0.6s; }
.point-icon.blue { animation-delay: 0.8s; }
.point-icon.purple { animation-delay: 1s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
img {
  background: transparent !important;
}

/* NUEVO FOOTER INTEGRADO DE AVATARES */
.footer-avatares {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 15px 10px 25px;
  background: white;
  border-radius: 0 0 10px 10px;
}

.avatar-contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 100px;
}

.avatar-footer {
  width: 100px;
  height: auto;
  margin-bottom: 5px;
}

.footer-avatares p {
  margin: 0;
  font-size: 13px;
  color: black;
}
