@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

:root {
  --space-section: 6rem;
  --space-block: 1.25rem;
}

body, html {
  font-family: 'Lato', sans-serif;
  background-color: white;
  color: #323B4E;
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Esquinas rectas (90 grados) globales para todos los elementos */
*, *::before, *::after, button, img, div, iframe, input, select, .modal-content, .scroll-arrow-btn, .chip, .scard, .dgcard {
  border-radius: 0 !important;
}

/* Clase para la imagen física insertada en los transectos */
.fondo-transecto {
  width: 100%;
  height: auto;
  display: block;
  margin: 75px 0 0 0; /* Espacio para el header fijo de 75px */
  padding: 0;
  filter: grayscale(0%) !important;
  transition: none !important;
}

/* Botón flotante de flecha animada para auto-scroll */
.scroll-arrow-btn {
  position: fixed;
  bottom: 85px;
  right: 25px;
  z-index: 998;
  background-color: rgba(1, 169, 157, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
  animation: bounce 2s infinite;
}

.scroll-arrow-btn:hover {
  background-color: #01857c;
  transform: scale(1.1);
}

.scroll-arrow-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* Fondo blanco para la sección */
.index-container {
 background-color: transparent !important;
  width: 100%; 
 height: 100vh;
margin: 0 auto;
  padding: 0;
  margin-bottom: -241px !important;

}

.index-container-arriba {
  background-color: transparent;
  width: 100%;
  margin: 0 auto !important;
  /* Alineamos el título a la izquierda */
  padding: 0 !important;
  
}

.logo-oasis {
  text-align: left;
}

.logo-oasis img {
  width: 40%;
  height: auto;
  display: inline-block;
  padding-top: 4%;
}



.index-container-abajo {
  background-color: white;
  width: 100%;
  margin: 0 auto !important;
  padding: 0 !important ;
  margin-top: 0 !important; /* Asegura que no haya margen adicional en la parte inferior */
  height: auto !important;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  top: 0;
}



/* Contenedor del cuadrado dividido en 6 */
.image-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 10px;
  height: 70%;
}

/* Cada imagen del cuadrado que actúa como botón */
.image-item {
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: filter 0.3s ease;
  cursor: pointer;
}

/* Fondo de la imagen 1 */
.bg-11 {
  background-image: url('../img/lagunaMirador_Panorama-1paralaxsi.jpg');
}

/* Fondo de la imagen 2 */
.bg-22 {
  background-image: url('../img/laGallina.jpg');
}

/* Fondo de la imagen 3 */
.bg-33 {
  background-image: url('../img/transectoSal.jpg');
}

/* Fondo de la imagen 4 */
.bg-44 {
  background-image: url('../img/transecto6_Panorama_part1.jpg');
}

/* Fondo de la imagen 5 */
.bg-55 {
  background-image: url('../img/guatita2.jpg');
}

.bg-66 {
  background-image: url('../img/salarLagunaCentro_maricunga.jpg');
}

/* Fondo de la imagen 7 - Laguna Verde */
.bg-77 {
  background-image: url('../img/TransectoLaguna-Verde.jpg');
}

/* Título principal */
.titulo{
  width:50% !important!;
  padding-bottom:2px;
  padding-top: 4%;
}

.titulo img {
width:30% !important;
}

.titulo h1 {
  width:20% !important;
  text-align: left;
  font-size: 2rem; /* Ajusta el tamaño del título */
  margin: 0;
  padding-left: 0px; /* Añadir espacio a la izquierda */
  padding-top: 6%;
  line-height: 0.5; 
  padding-bottom: 1px !important;
}

.titulo p {
  width:80% !important;
  text-align: left;
  font-size: 0.8rem; /* Ajusta el tamaño del título */
  margin: 0;
  padding-left: 0px; /* Añadir espacio a la izquierda */
  padding-bottom: 1%;

}

.titulo h3 {
  font-size: 0.8rem !important;
  color: #323B4E;
  margin-right: 0px; /* Alinea el texto a la derecha */
  line-height: 1; 
  font-weight: lighter !important;
  bottom: 0 !important;
}

/* Sección de bajada (texto debajo del grid de imágenes) */
.bajada {
  text-align: right;
  margin-top: 0px !important;
  padding-top: 0px !important;
  line-height: 1; 
}

.bajada h3 {
  font-size: 0.7rem;
  color: #323B4E;
  margin-right: 0px; /* Alinea el texto a la derecha */
  line-height: 1; 
  font-weight: lighter !important;
}

.bajada h4 {
  font-size: 0.7rem;
  color: #323B4E;
  margin-right: 0px; /* Alinea el texto a la derecha */
  line-height: 1; 
  font-weight: bold !important;
}

/* Contenedor de botones (Footer) */
.white-row {
  background-color: white;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.button-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  padding: 0;
  margin: 0 auto !important;
  background-color: white;
}

.button {
  padding: 22px 20px;
  font-size: 1rem;
  font-weight: 400;
  background-color: white;
  color: #323B4E;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  width: 100%;
}

.button:hover {
  background-color: #f0f0f0;
  color: #01A99D;
}

/* Responsive */
@media (max-width: 600px) {
  .button-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .button {
    padding: 12px 5px;
    font-size: 0.8rem;
  }
}



.infoScroll {
  width: 100%;
  margin: 0 auto !important;
  height: 75px !important;
  background-color: white !important;
  box-sizing: border-box;
  top: 0;
  left: 0;
  position: fixed;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.infoScroll-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.infoScroll-logo img {
  max-height: 55px !important;
  width: auto !important;
  max-width: 260px !important;
  display: block;
  transition: opacity 0.2s ease;
}

.infoScroll-logo:hover img {
  opacity: 0.7;
}

.infoScroll p {
  text-align: center;
  margin: 0 auto !important;
  font-size: 0.85rem;
  color: #323B4E;
  font-weight: 400;
}

/* Grilla de 6 cuadraditos de 10x10px en el header alineados a la derecha */
.header-transects-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 20px;
  flex-shrink: 0;
}

.header-sq {
  width: 10px;
  height: 10px;
  border: none !important;
  display: block;
  background-color: #dcdcdc !important;
  transition: background-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

/* Colores de la paleta asignados al Hover y cuando está Seleccionado (Activo) */
.header-sq:nth-child(1):hover, .header-sq:nth-child(1).active { background-color: #00a99d !important; transform: scale(1.2); }
.header-sq:nth-child(2):hover, .header-sq:nth-child(2).active { background-color: #a98743 !important; transform: scale(1.2); }
.header-sq:nth-child(3):hover, .header-sq:nth-child(3).active { background-color: #343b4d !important; transform: scale(1.2); }
.header-sq:nth-child(4):hover, .header-sq:nth-child(4).active { background-color: #FF7BAC !important; transform: scale(1.2); }
.header-sq:nth-child(5):hover, .header-sq:nth-child(5).active { background-color: #00a99d !important; transform: scale(1.2); }
.header-sq:nth-child(6):hover, .header-sq:nth-child(6).active { background-color: #a98743 !important; transform: scale(1.2); }

  

h3, h4, bajada {
  display: inline;
}

/* Estilo del modal */
/* Modal de DESCRIPCIÓN */


#descriptionModal {
  display: none ;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

#descriptionModal .modal-content {
  background-color: white;
  padding: 14px;
  width: 80%;
  max-width: 900px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0px;
  position: relative;
  border-radius: 2px;
top: -4%; /* Ajusta este valor según lo que necesites */
  left: 0%;
}

/* Botón de cerrar */
#closeDescriptionModal {
  position: absolute;
  top: 10px;
  right: 20px;
  background-color: transparent !important;
  border: none !important;
  font-size: 14px !important;
  font-weight: bold;
  cursor: pointer;
}

.closeDescriptionModal {
  position: absolute;
  top: 10px;
  right: 20px;
  background-color: transparent !important;
  border: none !important;
  font-size: 14px !important;
  font-weight: bold;
  cursor: pointer;
}

/* Columnas del modal */
#descriptionModal .modal-column {
  flex: 1;
}

/* Imagen */
#descriptionModal .modal-column img {
  width: 85%;
  height: auto;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  #descriptionModal .modal-content {
    flex-direction: column;
  }
}

/* Modal de UBICACIÓN */
#locationModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

#locationModal .modal-content {
  background-color: white;
  padding: 20px;
  width: 80%;
  max-width: 1000px;
  position: relative;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  top: -4%; /* Ajusta este valor según lo que necesites */
  left: 0%;
}
}

/* Botón de cerrar */
#closeLocationModal {
  position: absolute;
  top: 10px;
  right: 20px;
  background-color: transparent;
  border: none;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

/* Iframe */
#locationModal iframe {
  width: 100%;
  height: 720px;
  border: none;
}

/* Responsive */
@media (max-width: 768px) {
  #locationModal .modal-content {
    width: 95%;
  }
  #locationModal iframe {
    height: 400px;
  }
}

/* Modal de COMPOSICIÓN */
#compositionModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

#compositionModal .modal-content {
  background-color: white;
  padding: 30px;
  width: 90%;
  max-width: 1100px;
  min-height: 520px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* Columnas */
#compositionModal .modal-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

/* Botones dentro del modal de Composición */
#compositionModal .modal-column .button-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  width: 100%;
}

#compositionModal .modal-column .button-group button {
  padding: 18px 24px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #343b4d;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

#compositionModal .modal-column .button-group button:hover {
  background-color: #01A99D;
  color: white;
  border-color: #01A99D;
}

#compositionModal .modal-column img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#compositionModal h2 {
  margin: 0 0 10px 0;
  color: #01A99D;
  font-size: 1.6rem;
}



/* Responsive */
@media (max-width: 768px) {
  #compositionModal .modal-content {
    flex-direction: column;
  }
}

/* Modal de IMÁGENES (Galería) */
#imagesModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

#imagesModal .modal-content {
  background-color: white;
  padding: 20px;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 8px;
}

#closeImagesModal {
  position: absolute;
  top: 15px;
  right: 25px;
  background-color: white !important;
  border: none !important;
  font-size: 20px !important;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  #imagesModal .modal-content {
    width: 95%;
    padding: 15px;
  }
}

.descripcionContent {
  margin-right:5%;
}
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.tab-button {
  background: #ddd;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.tab-button.active {
  background: #666;
  color: white;
}

.tab-content {
  display: flex;
  justify-content: center;
}

.tab-content iframe {
  width: 100%;
  height: 400px; /* Ajusta según necesites */
}

.texto h2 {
    width: 100%;
    font-weight: normal !important;
    font-size: 1.0rem !important;
    color: #323B4E;
    margin: 0 0 var(--space-block) 0;
}

.negrita {
font-weight: bold !important;
}

.iframe-container {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 550px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  background: none;
}

.iframe-container iframe {
  width: 100%;
  height: 724px !important;
  border: none;
  display: block;
}

/* Mensaje de advertencia para móviles en mapas de Earth Engine */
@media (max-width: 768px) {
  .iframe-container iframe[src*="earthengine.app"] {
    display: none !important;
  }
  
  .iframe-container:has(iframe[src*="earthengine.app"]) {
    min-height: 250px;
  }

  .iframe-container:has(iframe[src*="earthengine.app"])::before {
    display: flex;
    align-items: center;
    justify-content: center;
    content: "Para interactuar con el mapa satelital, por favor ingresa desde una pantalla de mayor tamaño (Tablet o Computador).";
    width: 100%;
    height: 250px;
    background-color: #f1f3f5;
    color: #343b4d;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    border: 2px dashed #01A99D;
    border-radius: 8px;
    box-sizing: border-box;
  }
}



/* GLightbox: siempre en color, sin hover */
.glightbox-container img,
.gslide-image img,
.gslide img {
  filter: grayscale(0%) !important;
  transition: none !important;
}

.imagen-padding {
  margin-bottom: var(--space-block);
}

.imagen-padding img {
  width: 100%;
  height: auto;
  display: block;
}

.contenedor-botones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 5% 10%;
  justify-items: center;
}

.boton-mapa {
  width: 35%;
  padding: 10px;
  font-size: 16px;
  background-color: #444; /* gris oscuro */
  color: white;
  border: none; /* sin borde exterior */
  border-radius: 0; /* borde cuadrado */
  cursor: pointer;
  transition: background-color 0.3s;
}

.boton-mapa:hover {
  background-color: #222; /* más oscuro al pasar el mouse */
}
.titulo1 h1 {
  font-size: 1.25rem;
  font-weight: bold;
  text-align: left !important;
  margin: 0 0 var(--space-block) 0;
}

/* Responsivo: para pantallas pequeñas */
@media (max-width: 600px) {
  .titulo1 h1 {
    font-size: 1.1rem;
  }
}

/* Para pantallas grandes */
@media (min-width: 1200px) {
  .titulo1 h1 {
    font-size: 1.5rem;
  }
}
#indicebody {
  padding: 0 8% !important;
  margin: 0 auto !important;
  max-width: 1400px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  display: block !important;
}

@media (max-width: 768px) {
  #indicebody {
    padding: 0 4% !important;
  }
}

.tabla-indices {
  padding: 5% 10%;
  font-family: sans-serif;
  text-align: center;
}

.tabla-indices h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.tabla-indices table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 0.95rem;
  border: none !important;
}

.tabla-indices th,
.tabla-indices td {
  border: none !important;
  padding: 12px 16px;
}

.tabla-indices th {
  font-weight: bold;
  background-color: #ebedf2 !important;
  color: #323B4E;
}

.tabla-indices tr:nth-child(even) {
  background-color: #f7f8fb !important;
}

.tabla-indices tr:nth-child(odd) {
  background-color: #ffffff !important;
}

/* Filas clickeables en Tabla de Índices de Teledetección */
.tabla-indices tr.fila-indice {
  cursor: pointer !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

/* Fila NDWI activa por defecto (Turquesa) */
.tabla-indices tr.fila-indice#fila-ndwi.active,
.tabla-indices tr.fila-indice#fila-ndwi:hover {
  background-color: #00a99d !important;
  color: #ffffff !important;
}

/* Fila NDVI activa (Ocre Tierra) */
.tabla-indices tr.fila-indice#fila-ndvi.active,
.tabla-indices tr.fila-indice#fila-ndvi:hover {
  background-color: #a98743 !important;
  color: #ffffff !important;
}

/* Fila SMI activa (Azul Roca) */
.tabla-indices tr.fila-indice#fila-ndsi.active,
.tabla-indices tr.fila-indice#fila-ndsi:hover {
  background-color: #343b4d !important;
  color: #ffffff !important;
}

/* Fila STI activa (Rosa) */
.tabla-indices tr.fila-indice#fila-si.active,
.tabla-indices tr.fila-indice#fila-si:hover {
  background-color: #FF7BAC !important;
  color: #ffffff !important;
}

.tabla-indices tr.fila-indice.active td {
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .tabla-indices table {
    font-size: 0.9rem;
  }
}

.contenedor-botones2 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 5% 10%;
  text-align: center;
}

.footer {
  background-color: white;
  color:#323B4E;
  text-align: center;
  padding: 30px 10%;
  font-size: 0.9rem;
  border-top: 1px solid #323B4E;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.footer-logo {
  max-height: 50px;
  height: auto;
}

.footer-logo.secundaria {
  max-height: 40px;
  opacity: 0.8; /* UDD un poco más tenue para darle prioridad visual a ANID */
}

.footer-oasis img {
  max-height: 50px;
}

.row {
  padding-bottom: 0;
  margin-bottom: var(--space-section);
}

.row:last-of-type {
  margin-bottom: 0;
}

.botones-tematicos {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px; /* Reducimos el gap para que quepan mejor */
  padding: 5% 5%;
  flex-wrap: wrap; /* Permitimos que bajen en móviles si es estrictamente necesario, pero en escritorio cabrán */
  overflow: hidden;
}

.boton-tema {
  width: 22%;
  min-width: 120px;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  height: auto;
  font-size: 1.2rem;
  font-weight: bold;
  color: transparent;
  border: none;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.boton-tema:hover {
  filter: grayscale(0%);
}

/* Fondo inicial: imagen */
.boton-tema.eco {
  background-image: url('../img/botonEco.png');
}

.boton-tema.micro {
  background-image: url('../img/boton_mocoSal.jpg');
}

.boton-tema.geo {
  background-image: url('../img/piedrasGeo.jpg');
}

.boton-tema.tele {
  background-image: url('../img/teledeteccion.jpg');
}

/* Hover: foto a color + texto blanco con resaltado plano */
.boton-tema span {
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 4px;
}

.boton-tema.eco:hover {
  color: white;
}
.boton-tema.eco:hover span {
  background-color: #01A99D;
}

.boton-tema.micro:hover {
  color: white;
}
.boton-tema.micro:hover span {
  background-color: #F288A4;
}

.boton-tema.geo:hover {
  color: white;
}
.boton-tema.geo:hover span {
  background-color: #AA8744;
}

.boton-tema.tele:hover {
  color: white;
}
.boton-tema.tele:hover span {
  background-color: #343b4d;
}

#main-header #logo.appLogo img {
    display: none !important;
}

#main-header {
  display: none !important;
}
.footer-oasis {
    background-color: #ffffff;
    padding: 30px 0;
    font-family: sans-serif;
    text-align: center;
  }

  .footer-oasis .footer-text {
    background-color: #343b4d;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 20px;
  }

  .footer-oasis .footer-columns {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .footer-oasis .logos-left {
    flex: 1 1 70%;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .footer-oasis .logo-row {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 40px;
    width: 100%;
  }

  .footer-oasis .logo-row img {
    height: 45px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .footer-oasis .logo-row a.logos-smi img {
    height: 25px; /* Reducimos la altura específicamente de la SMI para que su tipografía se vea equilibrada con el resto */
    margin-top: 10px; /* Para centrarlo un poco verticalmente respecto a los otros de 45px */
  }

  .footer-oasis .logo-placeholder {
    width: 150px;
    height: 50px;
    opacity: 0;
    display: none;
  }

  .footer-oasis .logo-anid {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .footer-oasis .logo-anid img {
    max-height: 150px;
    object-fit: contain;
  }

  @media (max-width: 900px) {
    .footer-oasis .logo-row {
      flex-wrap: wrap;
      gap: 20px;
    }
  }

  @media (max-width: 768px) {
    .footer-oasis .footer-columns {
      flex-direction: column;
      align-items: center;
      gap: 30px;
    }

    .logo-oasis {
      text-align: center;
      margin-top: 20px;
    }
    .logo-oasis img {
      width: 50% !important;
      padding-top: 4% !important;
    }
  }

/* Map and popup styles extracted from index2.html */
#map { 
  height: 550px; 
  width: 100%; 
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  z-index: 1;
  border: none;
}

#map:hover {
  filter: none;
}

.titulo1 h1 {
  color: #343b4d; /* Azul Roca */
}

.leaflet-popup-content-wrapper {
  border-radius: 4px;
  font-family: sans-serif;
}

.popup-title {
  color: #343b4d;
}

/* GLightbox: imágenes siempre en color dentro del visor */
.glightbox-container img,
.gslide-image img {
  filter: grayscale(0%) !important;
  transition: none !important;
}


/* Menu de Navegacion de Disciplinas (Colores Oficiales de Paleta OASIS) */
.nav-menu {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  border-bottom: 2px solid #eaeaea !important;
  padding: 0 !important;
  margin: 0 auto 30px auto !important;
  gap: 30px !important;
  flex-wrap: wrap !important;
  box-sizing: border-box !important;
}

.nav-item {
  text-decoration: none !important;
  color: #343b4d !important;
  font-weight: bold !important;
  font-size: 0.95rem !important;
  padding: 12px 6px !important;
  position: relative !important;
  transition: color 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

.nav-item::after {
  content: '' !important;
  position: absolute !important;
  width: 0% !important;
  height: 3px !important;
  bottom: -2px !important;
  left: 0 !important;
  transition: width 0.3s ease, background-color 0.3s ease !important;
}

.nav-item:hover::after, .nav-item.active::after {
  width: 100% !important;
}

/* Ecología y Socio-Ecología (#01A99D - Turquesa) */
.nav-item.nav-eco:hover, .nav-item.nav-eco.active {
  color: #01A99D !important;
}
.nav-item.nav-eco::after {
  background-color: #01A99D !important;
}

/* Microbiología (#F288A4 - Rosa) */
.nav-item.nav-micro:hover, .nav-item.nav-micro.active {
  color: #F288A4 !important;
}
.nav-item.nav-micro::after {
  background-color: #F288A4 !important;
}

/* Geociencias (#AA8744 - Ocre Tierra) */
.nav-item.nav-geo:hover, .nav-item.nav-geo.active {
  color: #AA8744 !important;
}
.nav-item.nav-geo::after {
  background-color: #AA8744 !important;
}

/* Ciencia de Datos Ambientales (#343b4d - Azul Roca) */
.nav-item.nav-tele:hover, .nav-item.nav-tele.active {
  color: #343b4d !important;
}
.nav-item.nav-tele::after {
  background-color: #343b4d !important;
}

@media (max-width: 768px) {
  .nav-menu {
    gap: 15px !important;
  }
  .nav-item {
    font-size: 0.85rem !important;
    padding: 8px 4px !important;
  }
}
