 /*<!-- style.css -->
 Estilos base de la página */
body {
  margin: 0;
  overflow-x: hidden;           /* Oculta el scroll horizontal */
  background:  #77d7cd;         /* Color de fondo principal (azul verdoso) */
  font-family: 'Quicksand', sans-serif;
  -webkit-touch-callout: none;  /* Deshabilita selección de texto en móviles */
  -webkit-user-select: none;
  user-select: none;
  
  min-height: 100vh;            /* Altura mínima igual al viewport */
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 1.5rem;
  right: 1rem;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #9AE2D9;
}

/* Contenedor de la barra de navegación superior */
.nav-container {
  background:#19535A ;          /* Color oscuro para contraste */
  position: relative;           /* Permite posicionamiento absoluto de hijos */
  height: 22vh;                 /* 23% de la altura de la pantalla */
  max-height: 22vh;             /* Fija altura máxima */
  display: flex;
  flex-direction: column;       /* Apila elementos verticalmente */
  align-items: center;
  justify-content: flex-start;  /* Alinea contenido en la parte superior */
  overflow: hidden;  
  padding-top: 10px; /* Espacio superior para logo y menú */
  justify-content: center; /* Centrar contenido verticalmente */           /* Oculta cualquier contenido que sobresalga */
}

/* Logo en la barra de navegación */
.nav-logo {
  position: absolute;
  top: 20%; 
  left: 1rem;
  width: 160px !important; /* Aumenta el tamaño forzadamente */
  height: auto !important; /* Mantiene la proporción */
  max-width: none !important; /* Elimina restricciones de tamaño */
  max-height: none !important;
  transform: none;
  
}

.nav-logo2{
  position: absolute;
  top: 70%!important; 
  left: 1rem;
  width: 360px !important; /* Aumenta el tamaño forzadamente */
  height: auto !important; /* Mantiene la proporción */
  max-width: none !important; /* Elimina restricciones de tamaño */
  max-height: none !important;
  transform: none;
  align-items: center;
}
.menu-button {
  display: none; /* Oculta en escritorio */
}

/* Botón de menú hamburguesa */


/* Subtítulo debajo del logo */
.subtitle {
  margin-top: 50%;
  color: #ffffff;
  padding: 8px 20px; /* Añadimos padding interno */
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0;
  position: relative;
  background: rgba(255, 255, 255, 0.141); /* Aumentamos opacidad a 30% */
  border-radius: 24px; /* Bordes más redondeados */
  border: 2px solid rgba(255, 255, 255, 0.5); /* Borde más visible */
  backdrop-filter: blur(4px); /* Aumentamos desenfoque */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada */
  display: inline-block; /* Para que no ocupe todo el ancho */
  white-space: nowrap; /* Evita salto de línea */
  z-index: 2; /* Aseguramos que esté por encima de otros elementos */
}
.loading {
  
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FA716A;
  font-size: 1.5rem;
  background: rgba(25, 83, 90, 0.9);
  z-index: 1001;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-align: center;
}
/* Instrucciones para el usuario */
.instructions {
  margin-top: -2% !important ;             /* Espaciado desde el subtítulo */
  color: #fff;                 /* Texto blanco */
  font-size: 1.rem;           /* Tamaño legible */
  align-items: center;         /* Centrado interno */
  justify-content: center;
  padding: 0 8px;
  text-align: center;
  display: flex; /* Usamos flex para alinear */
  margin-bottom: 25% !important;
  gap: 8px;
}
.symbol {
  display: inline-flex;
  align-items: center;
  vertical-align: middle; /* Alineación vertical precisa */
}

.symbol img {
  width: 30px;
  height: 30px;
  margin-top: -2px; /* Ajuste fino de posición */
}
/* Contenedor principal de Realidad Aumentada */
#ar-container {
  
  position: relative;
  margin-top: 5px !important;/* Subir el contenedor */
  width: 90%;                  /* Ancho relativo a la pantalla */
  height: 70vh;                /* 70% de la altura visible */
  margin: calc(80px + 2rem - 15%) auto 0; /* Margen superior complejo para centrado */
  border-radius: 15px;         /* Bordes redondeados */
  overflow: hidden;            /* Oculta contenido que sobresale */
  background: transparent;     /* Fondo invisible */
  z-index: 0; 
  padding-bottom: 15px !important;                 /* Capa base */
}



/* Estilos del menú móvil */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: #9AE2D9;
  color: #19535A;
  font-family: 'bd-supper', sans-serif;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: opacity 0.3s ease;
}

.mobile-menu.hidden {
  display: none;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse; /* Esto invierte el orden: logo a la derecha */
}

.menu-logo {
  height: 50px;
  margin-left: auto; /* asegura que quede a la derecha */
}

.close-button {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  margin-right: auto; /* asegura que quede a la izquierda */
}

.close-button img {
  width: 100%;
  height: auto;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: #9AE2D9;
  color: #19535A;
  font-family: 'bd-supper', sans-serif;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: opacity 0.3s ease;
}

.mobile-menu.hidden {
  display: none;
}

.menu-header {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  flex-direction: row; 
  padding: 0 0.5rem;
}

.menu-logo {
  height: 50px;
}

.close-button {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.close-button img {
  width: 100%;
  height: auto;
}

/* Estilo de enlaces */
.menu-links {
  list-style: none;
  margin-top: 2rem;
  padding: 0;
  font-size: 1.7rem; /* Más grande */
  font-weight: bold; /* En negrita */
  font-family: 'bd-supper', sans-serif;
}
.menu-links a,
.menu-links span {
  color: #19535A;
  text-decoration: none;
  display: block;
  font-size: inherit;
  font-weight: inherit;
}

.menu-links li {
  margin-bottom: 1rem;
}



/* Submenú */
.submenu-items {
  padding-left: 1rem;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.submenu-items li {
  margin-bottom: 0.5rem;
}

footer::after {
  content: '';
  display: block;
  height: 0;
  background: none;
}
/* Estilos para el footer */
footer {
  margin-top: auto;
  background: #19535A;
  padding: 40px 20px 20px;
  position: relative;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.alianzaBio {
  font-family: 'Poppins', sans-serif;
   font-weight: bold;
  color: #ffffff;
  font-size: 1.8rem;
  width: 100%;
  right: 3rem;
  text-align: center;
  margin: 0 8% 20px 0;
  position: relative;
  z-index: 1;
}

.image-Container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem auto;
  max-width: 1000px;
}

.image-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 80%;
}

.image-item img {
  max-width: 80px;
  height: auto;
  flex: 1 1 calc(25% - 1rem); /* 4 logos por fila con espacio entre ellos */
}

.ConoceAB {
  color: #77d7cd;
  width: 80%;
  text-align: left;
  margin: 20px auto;
  line-height: 1.5;
  padding: 15px;
  display: block;
  text-decoration: none; /* Quita subrayado */
  font-weight: bold; /* Opcional, si quieres que sea en negrita */
}

.ConoceAB:hover {
  text-decoration: none; /* Efecto al pasar el mouse */
}

/* Posicionamiento de la imagen */
.alianzaBioIMG {
  position: relative; /* Cambio de absolute a relative */
  align-items: center;
  justify-content: center;
  transform: none;
  max-width: 250px;
  height: auto;
  right: 4rem;
  display: block;
  z-index: 1;
}

.Ecos {
  font-family: 'Poppins', sans-serif;
  color: #9b9b98;
  font-size: 1rem;
  width: 100%;
  text-align: center;
  margin-top: auto;
  padding: 20px 0 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}



/* Mensaje de carga */
.loading {
  position: fixed;             /* Posicionamiento fijo en pantalla */
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centrado perfecto */
  color: #FA716A;              /* Color de advertencia */
  font-size: 1.5rem;
  background: rgba(25, 83, 90, 0.9); /* Fondo semitransparente */
  z-index: 1001;               /* Por encima de todo */
}

/* Sección de información de especies */
.info-section {
  background:  #77d7cd;  /* Fondo oscuro semitransparente */
  font-family: 'bd-supper', sans-serif;
  color:  #19535A;
  backdrop-filter: blur(5px);  /* Efecto de desenfoque */
  padding: 15px;
  text-align: center;
  align-items: center;
  justify-content: center;
  display: none;               /* Oculto inicialmente */
  flex-direction: column;      /* Elementos apilados */
  gap: 15px;                   /* Espaciado entre elementos */
  z-index: 1000;               /* Capa alta pero debajo del loading */
  position: relative; /* Añade esto para contexto de posicionamiento */
  margin-bottom: 25px;
}

.info-section i {
  font-style: italic;
  /* Opcional: otros estilos */
}

/* Indicador de scroll animado */
.scroll-indicator {
  position: absolute; /* Cambiado de fixed a absolute */
  top: -40px; /* Posición sobre el info-section */
  left: 50%;
  transform: translateX(-50%);
  display: none;
  padding: 12px 25px; /* Caja más ancha */
  background: #77d7cd; 
  border-radius: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1002;
}

/* Flecha animada del indicador de scroll */
.arrow {
  width: 20px;
  height: 20px;
  border-left: 4px solid #19535A;;  /* Crea forma de flecha */
  border-bottom: 4px solid #19535A;;
  transform: rotate(-45deg);       /* Rota para apuntar hacia abajo */
  animation: bounce 1.5s infinite; /* Animación constante */
}

/* Animación de rebote para la flecha */
@keyframes bounce {
  0%, 100% { 
    transform: translateY(0) rotate(-45deg); 
    opacity: 1;
  }
  50% { 
    transform: translateY(-7px) rotate(-45deg); /* Movimiento hacia arriba */
    opacity: 0.7;
  }
}

/* Media queries para responsive design */
@media (max-width: 768px) {
  /* Ajustes para tablets */
  #ar-container {
    height: 45vh;              /* Reduce altura del contenedor AR */
  }
   .nav-container {
    height: 25vh;               /* Más espacio vertical */
    padding-top: 15px;
  }
  
  .subtitle {
    margin-top: 35%;
    padding: 12px 25px;
    font-size: 1.3rem;
    border-radius: 25px; /* Reducimos bordes para móvil */
    backdrop-filter: blur(3px);
  }
  
  .instructions {
    margin-top: 3%;
    margin-bottom: 10%;
    
  }
    .nav-links {
    display: none; /* Oculta menú en móviles */
  }
  .menu-button {
  position: absolute;
  top: 18%;
  bottom: 15%;
  right: 1rem;
  transform: none;
  background: transparent;
  border: none;
  width: 180px;
  height: auto;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease; /* Animación al interactuar */
}

.menu-button img {
  width: 120%;
  height: 120%;
 /* Mantiene la proporción de la imagen */
  filter: brightness(0) invert(1); /* Convierte el ícono a blanco */
}

/* Efecto hover para mejor interactividad */
.menu-button:hover img {
  transform: scale(1.1);
}
}

/* Media Queries para todo el proyecto */
@media (max-width: 1440px) {
  /* Desktop grandes */
  .nav-logo { width: 140px; }
  .menu-button { width: 50px; height: 50px; }
}

@media (max-width: 1200px) {
  .nav-container { height: 25vh; }
  .subtitle { font-size: 1.3rem; }
  #ar-container { height: 65vh; }
}

@media (max-width: 992px) {
  /* Tablets horizontales */
  .nav-logo { width: 120px; top: 10%; }
  .menu-button { width: 45px; height: 45px; }
  .subtitle { margin-top: 35%; }
  footer { min-height: 50vh; }
}

@media (max-width: 768px) {
  /* Tablets verticales */
  .nav-container { height: 28vh; padding: 15px; }
  .nav-logo { width: 100px; }
  .menu-button { width: 40px; height: 40px; }
  .subtitle { 
    margin-top: 40%;
    font-size: 1.2rem;
    padding: 10px 25px;
  }
  #ar-container { height: 55vh; }
  .instructions { margin-bottom: 15%; }
  
  /* Footer */
  footer { padding: 30px 15px; }
  .image-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  /* Phablets */
  .nav-container { height: 30vh; }
  .subtitle { margin-top: 45%; font-size: 1.1rem; }
  .instructions { font-size: 0.95rem; }
  #ar-container { height: 50vh; }
  
  /* Footer */
  .image-item img { width: 80px; }
}

@media (max-width: 480px) {
  /* Móviles grandes */
  .nav-container { height: 32vh; }
  .nav-logo { width: 90px; }
  .menu-button { width: 35px; height: 35px; }
  .subtitle { 
    margin-top: 50%;
    font-size: 1rem;
    padding: 8px 20px;
  }
  #ar-container { height: 45vh; }
  
  /* Footer */
  footer { min-height: 60vh; }
  .alianzaBio { font-size: 1.2rem; }
}

@media (max-width: 375px) {
  /* Móviles medianos */
  .nav-container { height: 35vh; }
  .subtitle { margin-top: 55%; font-size: 0.95rem; }
  .instructions { font-size: 0.9rem; }
  
  /* Footer */
  .image-item img { width: 70px; }
}

@media (max-width: 320px) {
  /* Móviles pequeños */
  .nav-container { height: 38vh; }
  .nav-logo { width: 80px; }
  .subtitle { margin-top: 60%; font-size: 0.9rem; }
  
  /* Footer */
  .image-item img { width: 60px; }
  .Ecos { font-size: 0.8rem; }
}

@media (orientation: landscape) and (max-height: 500px) {
  /* Modo horizontal */
  .nav-container { height: 40vh; }
  #ar-container { height: 70vh; }
  footer { min-height: 80vh; }
}