: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;
  --titulos: 33px;
  --margenes: 60px;
  --espacios: 10px;
  --espacios-contenido: 45px;
}

.main-img {
  width: 100%;
  height: 500px;
  background: url(../images/barnices/barnices.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: 46%;
  display: block;
}

.cuadros {
  width: 95%;
  margin: auto;
  grid-gap: 15px;
  padding: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  overflow: hidden;

}

.cuadros img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 0.5s;
}

.cuadros .imagen {
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);


}

.cuadros .imagen:hover img {
  transform: scale(1.1);
}

.cuadros .imagen:hover .overlay {
  height: 100%;
  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: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);

}

.overlay>p {
  display: block;
  position: absolute;
  top: 60%;
  right: 29%;
  text-align: center;
  font-size: 25px;
  color: rgba(5, 5, 4, .78);
}




.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: 100%;
  vertical-align: top;
  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);
}

.part2 h1 {
  color: rgba(5, 5, 4, .78);
  font-size: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);

}

@media screen and (max-width:760px) {
  .textos>h1 {
    font-size: 3em;
  }

  .textos>h2 {
    font-size: 1.2em;

  }

  h3 {
    font-size: 1.6em;
  }

  .linea {
    width: 50%;

  }
  
  .overlay >p{
    font-size: 1.3em;

  }
}

@media screen and (max-width:580px){
  .textos>h1 {
    font-size: 2em;
}

.textos>h2 {
    font-size:1em;
    


}

h3 {
  font-size:1.4em;
}
.overlay>p {
  display: block;
  position: absolute;
  top: 60%;
  right:35%;
  text-align: center;
  font-size: 1.4em;
  color: rgba(5, 5, 4, .78);
}



 
  .deco{
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
   
  }

  .deco img{
    width:180px;
    max-height:200px;


  }

}