/* GENERAL */
* { font-family: 'Poppins', sans-serif; }
html, body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow-x: hidden;
}

#videoFondo {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* antes -10 */
  filter: brightness(0.5);
}
/* ❌ BOTÓN DE CERRAR PANEL */
.btn-cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
  z-index: 10;
}

.btn-cerrar:hover {
  color: #d4af37;
  transform: scale(1.2);
}


/* 🌀 LOADER */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.loader-overlay.oculto { opacity: 0; pointer-events: none; }

/* 🌟 NAVBAR */
.navbar {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.titulo-brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: #d4af37;
}
.subtitulo-brand {
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.9;
}
.logo-flotante {
  animation: flotar 4s ease-in-out infinite;
}
@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* 🗺️ MAPA */
.contenedor-mapa {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}
.tarjeta-mapa {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 90%;
  max-width: 1000px;
  height: 75vh;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}
#map {
  width: 100%;
  height: 100%;
  border-radius: 18px;
}

/* 📋 PANEL DE INFORMACIÓN */
#infoPanel {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 950px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px;
  display: none;
  color: #fff;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

/* 🖼️ CARRUSEL */
.carousel-item img {
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s;
}
.carousel-item img:hover { transform: scale(1.03); }

/* 🔍 LIGHTBOX */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 5000;
}
#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 25px #d4af37;
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
  .tarjeta-mapa { height: 65vh; width: 95%; }
  .titulo-brand { font-size: 1.1rem; }
  .subtitulo-brand { font-size: 0.8rem; }
  .carousel-item img { height: 180px; }
}


/* 🧾 DESCRIPCIÓN CON SCROLL */
#infoDescripcion {
  max-height: 150px; /* Altura visible antes del scroll */
  overflow-y: auto;  /* Permite desplazamiento vertical */
  padding-right: 10px;
  margin-top: 10px;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* ✨ Scroll personalizado */
#infoDescripcion::-webkit-scrollbar {
  width: 6px;
}
#infoDescripcion::-webkit-scrollbar-thumb {
  background-color: #d4af37;
  border-radius: 10px;
}
#infoDescripcion::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}
#infoPanel {
  max-height: 70vh;
  overflow-y: auto;
}
/* 🌙 Navbar PHYART */
.navbar {
  background: rgba(13, 26, 47, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.8rem 1.5rem;
}

.titulo-brand {
  font-size: 1.3rem;
  color: #fdd835; /* dorado */
  letter-spacing: 1px;
}

.subtitulo-brand {
  font-size: 0.85rem;
  color: #ffffff;
}

/* ✨ Botón Volver al sitio */
.btn-volver {
  background: transparent;
  color: #fdd835;
  border: 2px solid #fdd835;
  border-radius: 8px;
  padding: 6px 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-volver:hover {
  background: #0d1a2f;
  color: #fdd835;
  border-color: #0d1a2f;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.btn-volver i {
  transition: transform 0.3s ease;
}

.btn-volver:hover i {
  transform: translateX(-4px);
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .btn-volver {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

  .titulo-brand {
    font-size: 1.1rem;
  }

  .subtitulo-brand {
    font-size: 0.8rem;
  }
}
/* 🦶 Footer tipo barra negra */
.footer-barra {
  width: 100%;
  background-color: #000;
  color: #fff;
  padding: 15px 20px;
  border-top: 3px solid #d4af37;
  position: relative;
  z-index: 10;
}

.footer-barra .titulo-footer {
  font-weight: 700;
  font-size: 1.3rem;
  color: #fdd835;
}

.footer-barra .subtitulo-footer {
  font-weight: 500;
  font-size: 0.95rem;
  color: #ccc;
}

/* 🧭 Íconos */
.iconos-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.iconos-footer a {
  margin: 0 8px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.iconos-footer a:hover {
  transform: scale(1.1);
}

.icono-footer {
  width: 32px;
  height: 32px;
  filter: brightness(1) invert(0);
  transition: filter 0.3s ease;
}

.icono-footer:hover {
  filter: brightness(1.6);
}

/* 📱 Responsive - centrado total en teléfonos */
@media (max-width: 768px) {
  .footer-barra {
    text-align: center;
    padding: 20px 10px;
  }

  .footer-barra .texto-footer {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .footer-barra .titulo-footer {
    font-size: 1.1rem;
  }

  .footer-barra .subtitulo-footer {
    font-size: 0.85rem;
  }

  .iconos-footer {
    justify-content: center; /* ✅ Centra los íconos en móviles */
    width: 100%;
    margin-top: 10px;
  }

  .icono-footer {
    width: 28px;
    height: 28px;
  }
}

/* 📱 Ajuste especial para móviles pequeños */
@media (max-width: 576px) {
  .btn-volver {
    font-size: 0.8rem;         /* 🔹 Texto más pequeño */
    padding: 4px 10px;         /* 🔹 Menor espacio interno */
    border-width: 1.5px;       /* 🔹 Borde más fino */
  }

  .btn-volver i {
    font-size: 0.85rem;        /* 🔹 Ícono más pequeño */
    margin-right: 4px;
  }

  .navbar .titulo-brand {
    font-size: 1rem;           /* 🔹 También reducimos título */
  }

  .navbar .subtitulo-brand {
    font-size: 0.7rem;
  }
}
/* 🌀 Loader limpio con texto blanco y GIF más grande */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-overlay.oculto {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-img {
  width: 200px;     /* 🔹 Aumenta el tamaño del GIF */
  height: auto;
}

#porcentajeCarga {
  font-size: 1.8rem; /* 🔹 Un poco más grande el número */
  color: #fff;
  font-weight: 600;
  margin-top: 12px;
}

.loader-text p {
  font-size: 1.2rem;
  color: #fff;
  margin-top: 4px;
  letter-spacing: 1px;
}

/* 🔵 NAVBAR */
    .navbar {
      background-color: #4F46E5;
      box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    .navbar-brand img {
      height: 45px;
    }
    .navbar-nav .nav-link {
      color: white;
      font-weight: 600;
      margin: 0 12px;
      transition: 0.3s;
      position: relative;
    }
    .navbar-nav .nav-link:hover {
      color: #39E991;
    }
    .navbar-nav .nav-link.active {
      color: #39E991;
    }
    .navbar-nav .nav-link.active::after {
      content: "";
      position: absolute;
      bottom: -6px;
      left: 0;
      width: 100%;
      height: 3px;
      background: #39E991;
      border-radius: 2px;
    }

    
.section-title {
  font-weight: 800;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: -70px;
  color: #39E991;
  position: relative;
  display: block;
}

.section-title i {
  display: block;
  margin: 0 auto 15px auto;
  color: white;
  background-color: #39E991;
  padding: 18px;
  border-radius: 50%;
  font-size: 28px;
  width: 65px;
  height: 65px;
  line-height: 30px;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #39E991;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* 🌿 Animación principal del título verde */
.anim-titulo-verde {
  color: #39E991;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: movimientoSuave 3s ease-in-out infinite;
  display: inline-block;
  text-shadow: 0 0 10px rgba(57, 233, 145, 0.5);
}

/* 💫 Movimiento suave */
@keyframes movimientoSuave {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-4px);
  }
  50% {
    transform: translateY(2px);
  }
  75% {
    transform: translateY(-3px);
  }
}

/* ✨ Ícono con brillo animado */
.icono-verde {
  color: #39E991;
  animation: brilloVerde 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px #39E991);
  margin-right: 8px;
}

@keyframes brilloVerde {
  0% {
    opacity: 0.8;
    filter: drop-shadow(0 0 5px #39E991);
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 20px #39E991);
  }
}

/* 📱 Ajuste responsive */
@media (max-width: 768px) {
  .anim-titulo-verde {
    font-size: 1.6rem;
  }
  .icono-verde {
    font-size: 1.3rem;
  }
}
