body, html {
  font-family: 'Lato', sans-serif;
  background-color: white;
  color: #323B4E;
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto; /* Permite que la imagen de fondo se desplace con el contenido */
  overflow-x: hidden; /* Evita desplazamiento horizontal */
  box-sizing: border-box;
}

/* Imagen de fondo 1 */
.bg-1 {
  background-image: url('https://jdelafuentec.github.io/web/lagunaMirador_Panorama-1paralaxsi.jpg');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
  background-attachment: scroll;
}

/* Imagen de fondo 2 */
.bg-2 {
  background-image: url('https://jdelafuentec.github.io/web/laGallina.jpg'); /* Cambia esta URL */
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
  background-attachment: scroll;
}

/* Imagen de fondo 3 */
.bg-3 {
  background-image: url('https://jdelafuentec.github.io/web/transectoSal.jpg'); /* Cambia esta URL */
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
  background-attachment: scroll;
}
/* Imagen de fondo 3 */
.bg-4 {
  background-image: url('https://jdelafuentec.github.io/web/transecto6_Panorama_part1.jpg'); /* Cambia esta URL */
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
  background-attachment: scroll;
}
/* Imagen de fondo 3 */
.bg-5 {
  background-image: url('https://jdelafuentec.github.io/web/guatita2.jpg'); /* Cambia esta URL */
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
  background-attachment: scroll;
}

.content {
  height: auto; /* Se adapta al contenido */
  min-height: 14000px; /* Altura mínima para que mantenga su tamaño inicial en pantallas grandes */
  margin: 0 !important;
  padding: 0 !important;
  background-color: transparent; /* Sin fondo */
}
.content1 {
  height: 8000px; /* Garantiza que no haya altura fija */
  margin: 0 !important; /* Sin márgenes adicionales */
  padding: 0 !important; /* Sin relleno interno */
  background-color: transparent; /* Esto reemplaza a 'none' */
}
.content2 {
  height: 10300px; /* Garantiza que no haya altura fija */
  margin: 0 !important; /* Sin márgenes adicionales */
  padding: 0 !important; /* Sin relleno interno */
  background-color: transparent; /* Esto reemplaza a 'none' */
}

/* Pantallas grandes */
@media (min-width: 1200px) {
  .content {
    height: auto; /* Mantiene el contenido visible */
    min-height: 14000px; /* Respeta la altura inicial de la imagen */
  }
  .content1 {
    height: auto; /* Mantiene el contenido visible */
    min-height: 8000px; /* Respeta la altura inicial de la imagen */
  }
  .content2 {
    height: auto; /* Mantiene el contenido visible */
    min-height: 13000px; /* Respeta la altura inicial de la imagen */
  }
}

/* Pantallas medianas (tabletas) */
@media (max-width: 1199px) and (min-width: 768px) {
  .content {
    height: auto; /* Altura dinámica según el contenido */
    min-height: 6000px; /* Ajusta el mínimo para tabletas */
  }
   .content1 {
    height: auto; /* Mantiene el contenido visible */
    min-height: 4000px; /* Respeta la altura inicial de la imagen */
  }
  .content2 {
    height: auto; /* Mantiene el contenido visible */
    min-height: 6000px; /* Respeta la altura inicial de la imagen */
  }
}

/* Pantallas pequeñas (móviles) */
@media (max-width: 767px) {
  .content {
    height: auto; /* Adapta la altura al contenido */
    min-height: 3500px; /* Un mínimo más pequeño para pantallas pequeñas */
  }
  .content1 {
    height: auto; /* Mantiene el contenido visible */
    min-height: 2000px; /* Respeta la altura inicial de la imagen */
  }
  .content2 {
    height: auto; /* Mantiene el contenido visible */
    min-height: 3000px; /* Respeta la altura inicial de la imagen */
  }
}




/* Fondo blanco para la sección */
.index-container {
 background-color: transparent !important;
  width: 100%; 
 height: 100vh; /* Ajusta la altura de la grilla automáticamente */
margin: 0 auto; /* Centra horizontalmente */
  padding: 0; /* Sin relleno interno */
  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;
  
}



.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 5 */
.image-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columnas de igual tamaño */
  grid-gap: 10px; /* Espacio entre las imágenes */

  height: 70%; /* Altura del cuadrado */
  
}

/* Cada imagen del cuadrado que actúa como botón */
.image-item {
  height: 100%;
  background-size: cover; /* Ajusta la imagen al tamaño del contenedor */
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%); /* Poner las imágenes en blanco y negro por defecto */
  transition: filter 0.3s ease; /* Transición suave para el cambio de color */
  cursor: pointer; /* Cambia el cursor a un puntero para que parezca un botón */
}

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

/* Fondo de la imagen 2 */
.bg-22 {
  background-image: url('https://jdelafuentec.github.io/web/laGallina.jpg');
}

/* Fondo de la imagen 3 */
.bg-33 {
  background-image: url('https://jdelafuentec.github.io/web/transectoSal.jpg');
}

/* Fondo de la imagen 4 */
.bg-44 {
  background-image: url('https://jdelafuentec.github.io/web/transecto6_Panorama_part1.jpg');
}

/* Fondo de la imagen 5 */
.bg-55 {
  background-image: url('https://jdelafuentec.github.io/web/guatita2.jpg');
}

/* Efecto al pasar el mouse (se ponen a color) */
.image-item:hover {
  filter: grayscale(0%); /* Elimina el filtro de blanco y negro */
}

/* 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 */
/* Contenedor de botones */

.white-row {
    bottom: 0; /* Stick to the bottom */
 background-color: white; /* white background */
    height:9% !important;
  width: 100%; /* Full width */
  
  box-sizing: border-box; /* Ensure padding is included in the width */
  text-align: center; /* Center the text */
  position: fixed; /* Fix the footer to the bottom of the page */
  bottom: 0; /* Align to the bottom */
  left: 0; /* Ensure it spans the full width */
  z-index: 999; /* Make sure the footer stays on top of other content */
}
/* Contenedor de botones */
.button-container {
  display: grid;
  
  grid-template-columns: repeat(3, 1fr); /* Por defecto, 3 botones en una fila */
  gap: 10px;
  width: 100%;
  padding: 0 ;
  margin: 0 auto !important;
  position: relative;
  background-color: white;
}

/* Estilo de los botones */
.button {
  padding: 25px 30px;
  font-size: 1rem;
  background-color: white;
  color: black;
  border: none;
  border-radius: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%; /* Los botones ocupan todo el ancho de su celda */
}

.button:hover {
  background-color: lightgrey;
}

/* Media Queries para pantallas más pequeñas */

/* Móviles: Pantallas pequeñas */
@media (max-width: 600px) {
  .button-container {
    grid-template-columns: 1fr; /* En móviles, todos los botones se apilan en una columna */
    gap: 10px;
    padding: 0px;
  }
.white-row {
    bottom: 0;
    background-color: white;
    height: 15% !important;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999;
}
  .button {
    width: 100%; /* Los botones ocupan todo el ancho disponible */
    padding: 0px;
    font-size: 1rem;
  }
}

/* Tabletas: Pantallas medianas */
@media (max-width: 1024px) {
  .button-container {
    grid-template-columns: 1fr; /* En tabletas, los botones se apilan en una columna */
    gap: 10px;
    padding: 0;
  }

  .button {
    width: 100%; /* Los botones ocupan todo el ancho disponible */
    padding: 0px;
    font-size: 1rem;
  }
  .white-row {
    bottom: 0;
    background-color: white;
    height: 15% !important;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999;
}
}

/* Pantallas grandes (escritorios) */
@media (min-width: 1200px) {
  .button-container {
    grid-template-columns: repeat(3, 1fr); /* En pantallas grandes, 3 botones en una fila */
    gap: 0px;
    padding: 0;
  }

  .button {
    width: 100%; /* Los botones ocupan todo el ancho de su celda */
    padding: 29px 30px;
    font-size: 1rem;
  }
}



.infoScroll{
  width:100%;
  margin: 0 auto !important;
  height: 30px !important;
  background-color: white !important;
  box-sizing: border-box;
  top: 0;
  position: fixed;
  z-index: 999;

}

.infoScroll p {
 text-align: center;
  margin: 0 auto !important;
  font-size: 0.8rem;
  color: #323B4E;
  padding: 1% !important;
}

  

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: 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%;
  align-items: center;
    justify-content: space-between;
}
}

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

/* Columnas */
#compositionModal .modal-column {
  flex: 1;
display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribuye los elementos */
  height: 100%;
  margin:2%;
}

/* Botones dentro del modal */
#compositionModal .modal-column .button-group {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

#compositionModal .modal-column .button-group button {
    padding: 30px;
    border: none;
    cursor: pointer;
    background-color: white;
    color: black;
    font-size: 16px;
    border-radius: 0;
}

#compositionModal .modal-column .button-group button:hover {

  background-color: lightgrey;
  color: #323B4E;

}

#compositionModal .modal-column img {
  width: 85%;
  height: auto;
  display: block;
  margin-left: auto;
}
#compositionModal h2 {
    padding-bottom: 15%;
    margin: 0 auto;
}



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

.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;
}

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

.iframe-container {
  width:100%;
}

.iframe-container iframe {
  width: 100%;
  height: 724px !important;
  border: none;
  display: 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;  /* equivalente a 20px si el root es 16px */
  font-weight: bold;
  text-align: left !important;
  margin: 1.25rem 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 12%;
  margin: 0;
  box-sizing: border-box;

}

.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: 1rem;
}

.tabla-indices th,
.tabla-indices td {
  border: 1px solid #323B4E;
  padding: 10px;
}

.tabla-indices th {
  font-weight: bold;
  background-color: #eee;
}

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

@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;
}

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

.boton-mapa:hover {
  background-color: #222;
}
.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 */
}
.row {
  padding-bottom: 4%;
}

.botones-tematicos {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 5% 10%;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.boton-tema {
  width: 300px;
  height: 300px;
  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;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Fondo inicial: imagen */
.boton-tema.eco {
  background-image: url('https://jdelafuentec.github.io/web/botonEco.png');
}

.boton-tema.micro {
  background-image: url('https://jdelafuentec.github.io/web/boton_mocoSal.jpg');
}

.boton-tema.geo {
  background-image: url('https://jdelafuentec.github.io/web/piedrasGeo.jpg');
}

/* Hover: color de fondo + texto visible */
.boton-tema.eco:hover {
  background-color: #01A99D;
  background-image: none;
  color: white;
}

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

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

#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: wrap;
    gap: 30px;
  }

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

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

  .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: 768px) {
    .footer-oasis .footer-columns {
      flex-direction: column;
      align-items: center;
      gap: 30px;
    }

    .footer-oasis .logo-row {
      justify-content: center;
      gap: 20px;
    }
    a.logos-smi img {
    width: 50% !important;
}
    .logos-smi img {
  transform: scale(0.5) !important;
  transform-origin: center;
}

    .logo-oasis {
  text-align: center;
  margin-top: 20px;
}

.logo-oasis img {
    width:50% !important;
    padding-top:4% !important;
}
