body,h1,h2,h3,h4,h5,h6 {font-family: "Lato", sans-serif;}
body, html {
  height: 100%;
  color: #030303;
  line-height: 1.8;
}

.centered-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 8%;
}

/* Create a Parallax Effect */
.bgimg-1, .bgimg-2, .bgimg-3 {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* First image (Logo. Full height) */
.bgimg-1 {
  background-image: url('puente.png');
  min-height: 100%;
 

}

/* Second image (Portfolio) */
.bgimg-2 {
  background-image: url("porta2.jpg");
  min-height: 400px;
}

/* Third image (Contact) */
.bgimg-3 {
  background-image: url("foto2.png");
  min-height: 400px;
}

.w3-wide {letter-spacing: 10px;}
.w3-hover-opacity {cursor: pointer;}


/* Estilos del portafolio----------------------------------------------------- */

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.gallery div {
  margin: 15px;
  text-align: center;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 10px;
  max-width: 220px;
  position: relative;
}
.gallery img {
  width: 100%;
  height: 150px;/* importante aca pones el alto de las imagenes  para cambiar tamaño de img */
  border-radius: 8px;
  cursor: pointer; /* Cambia el cursor al pasar por encima */
}
.icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
}
.icon img {
  width: 24px;
  height: 24px;
}
h3 {
  font-size: 1.2em;
  margin: 10px 0 5px;
  color: #007BFF;
}
p {
  font-size: 0.9em;
  color: #555;
}


/* Estilos para el modal */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 8px;
  max-width: 600px;
  text-align: center;
  position: relative;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.modal img, .modal video {
  width: 100%; /* La imagen y el video en el modal ocupan el 100% */
  height: auto;
  border-radius: 8px;
}

/* Flechas de navegación */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 10px;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 10px;
  border-radius: 3px 0 0 3px;
}

/* Estilos del portafolio----------------------------------------------------- */

/* Estilos del segundo portafolio----------------------------------------------------- */
/* Estilos específicos para el segundo portafolio */


/* Estilos específicos del modal para el segundo portafolio */



/* Turn off parallax scrolling for tablets and phones */
@media only screen and (max-device-width: 800px) {
  .bgimg-1, .bgimg-2, .bgimg-3 {
    background-attachment: scroll;
    min-height: 400px;
  }
}