:root {
  --color1: rgb(239, 165, 0);
  --color2: rgb(5, 5, 4);
  --color3: rgba(183, 118, 0, 0.888);
  --color4: rgb(43, 88, 12);
  --color5: rgb(255, 214, 73);

  --fondo: #efefef;

}

.main-img {
  width: 100%;
  height: 500px;
  background: url(../images/molduras/molduramain.jpg);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;

}

.textos {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  text-align: center;
  z-index: -100;
  background: rgba(0, 0, 0, .688);



}

.textos>h1 {
  font-size:80px;
  color: #efefef;

}

.textos>h2 {
  font-size:20px;
  font-weight: 300;
  color: rgb(239, 165, 0);

}

h3 {
  font-weight: 400;
  text-align: left;
  padding: 10px 0;
  font-size: 33px;
  color: rgb(239, 165, 0);
  margin: 10px 0 0 36px;
}

span{
  font-weight: 400;
  text-align: left;
  font-size: 30px;
  color:var(--color2);

}

.linea {
  background: var(--color4);
  height: 3px;
  width:500px;
  display: block;
}

.cuadros {
  width: 95%;
  margin: auto;
  padding: 40px 0;
  display: flex;
  justify-content: space-evenly;
  align-content: center;
  flex-wrap: wrap;
 
}

.cuadros img {
  max-width:300px;
  max-height:500px;
  object-fit: cover;
  transition: transform 0.5s;
}

.cuadros .imagen {
  max-height:350px;
  max-width:30%;
  display:block;
  margin-bottom:20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);


}

.cuadros .imagen:hover img {
  transform: scale(.9);
}

.cuadros .imagen:hover .overlay {
  height: 28%;
  cursor: pointer;


}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255, 214, 73, .8);
  width: 100%;
  height: 0;
  transition: 1s ease;
  overflow: hidden;
}

.overlay h1 {
  color: rgba(5, 5, 4, .78);
  font-size:1em;
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
  font-weight: 300;
}

.light-box {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, .8);
  transition: transform 0.3s ease-in-out;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0);
}

.flexbox{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  flex-direction: column;
  

}
.flexbox img {
  width: 25vw;
   height:70vh;
   margin:15px auto;
  
  
}

.flexbox p{
  display: block;
  margin: auto;
  width:50vh;
  height:10vh;
  text-align: center;
  font-size: 25px;
  color: var(--color4);
  background:var(--color5);
  
  
  

}

.flexbox .texto{
  background:var(--color5);
  width:60vh;
  height:14vh;
  font-size: 1.3em;
  padding-top: 5px;
 
  
}




.light-box:target {
  transform: scale(1);
}

.close {
  display: block;
  position: absolute;
  top: 40px;
  right: 40px;
  background: var(--color5);
  color: var(--color4);
  text-decoration: none;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 25px;
}


.next {
  display: block;
  background: var(--color5);
  color: var(--color4);
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-decoration: none;
  text-align: center;

}


.deco{
  width: 95%;
  margin: auto;
  grid-gap: 12px;
  padding: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  overflow: hidden;
}
.deco img{
  width:120px;
  height:180px;
  object-fit: cover;
  transition: transform 0.5s;
}

.deco .part2{
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
}
.part2:hover .overlay {
  height: 100%;
  cursor: pointer;


}
.part2:hover img {
  filter: blur(1px);
}



@media screen and (max-width:760px) {
  .textos>h1 {
    font-size: 3em;
}

.textos>h2 {
    font-size:1em;
    


}

h3{
  font-size:1.6em;
}

span{
  font-size:1em;
}
.linea {
  width:80%;

}


.cuadros .imagen {
  
  max-width:47.5%;
  


}

  .close {
    top: 20px;
    right: 20px;
  }
  
  .flexbox img {
    width: 50vw;
     height:70vh;
     margin:15px auto;
    
    
  }
  
  .flexbox p{
   
    font-size:1.2em;
    padding-top: 5px;
   
    
    
    
  
  }
  .flexbox .texto{
   
    font-size: 1.1em;
  
   
    
  }
  

 
 
 


}

@media screen and (max-width:580px){
  .textos>h1 {
    font-size: 2em;
}

.textos>h2 {
    font-size:.8em;
    


}

h3 {
  font-size:1.4em;
}

span{
  font-size:.9em;
}
.linea {
  width:85%;

}

.cuadros .imagen {
  max-width:95%;

}

  .close {
    top: 30px;
    right: 50px;
  }
  .flexbox img {
    width:45vw;
     height:45vh;
     margin:15px auto;
    
    
  }
  
  .flexbox p{
   
    font-size:1.1em;
    padding-top: 5px;
    width: 28vh;
    height: 8vh;
   
    
    
    
  
  }
  .flexbox .texto{
    
    width:40vh;
    height:18vh;
    font-size: 1.1em;
    
   
    
  }
 
  .deco{
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
   
  }

  .deco img{
    width:180px;
    max-height:200px;


  }
  .close {
    top:10px;
    right: 20px;
  }

}