: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/triplay/triplay.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: 30px;
  font-weight: 300;
  color: rgb(239, 165, 0);

}

.main-img p {
  text-align: right;
  font-size: 12px;
  margin-top: 5px;
}

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: 50%;
  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%;
  vertical-align: top;
  height: 300px;
  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: 1.5s ease;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.overlay>h1 {
  color: rgba(5, 5, 4, .78);
  display: block;
  margin:auto 0;
  font-size:30px;
  line-height: 150px;
  
}
.overlay .h1{
  
    height: 150px;
    width: 279px;
    text-align: center;
}
.overlay .triplay1{
  width: 375px;
  height:80px;
 
  text-align: center;
}
.overlay .triplay {
  text-align: center;
  margin: auto;
  font-size: 1.1em;
  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(110px, 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);
}

/*.overlay>p {
  display: block;
  position: absolute;
  top: 65%;
  left: 29%;
  text-align: center;
  font-size: 25px;
  color: rgba(5, 5, 4, .78);
}*/

.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: 70%;

  }

  .overlay>h1 {
    font-size: 1.5em;
  }

}

@media screen and (max-width:580px) {
  .textos>h1 {
    font-size: 2em;
  }

  .textos>h2 {
    font-size: 3em;



  }

  h3 {
    font-size: 1.4em;
  }

  .overlay .h1{
    
  }

  .overlay>h1 {
    
    height: 179px;
    width: 279px;
    font-size:1.5em;
    text-align: center;
  }
  


  .deco {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

  }

  .deco img {
    width: 180px;
    max-height: 200px;


  }

}