.containerS {
  position: relative;
  width: 90%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-template-rows: auto;
  grid-gap: 0 40px;
  margin-bottom: 1px;
  left: 5%;
}

.containerS .box {
  position: relative;
  height: 350px;
  background: #1a1919f6;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #000;
  margin-bottom: 25px;
}

.containerS .box:before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: #fff;
  /* bordes*/
  transform: skew(2deg, 2deg);
  z-index: -1;
}

.containerS .box:nth-child(1):before {
  background: linear-gradient(315deg, #0767c0, #0767c0);
}

.containerS .box:nth-child(2):before {
  background: linear-gradient(315deg, #0767c0, #0767c0);
}

.containerS .box:nth-child(3):before {
  background: linear-gradient(315deg, #0767c0, #0767c0);
}

.containerS .box:nth-child(4):before {
  background: linear-gradient(315deg, #0767c0, #0767c0);
}

.containerS .box:nth-child(5):before {
  background: linear-gradient(315deg, #0767c0, #0767c0);
}

.containerS .box:nth-child(6):before {
  background: linear-gradient(315deg, #0767c0, #0767c0);
}

.containerS .box:nth-child(7):before {
  background: linear-gradient(315deg, #0767c0, #0767c0);
}

.containerS .box:nth-child(8):before {
  background: linear-gradient(315deg, #8a8547, #8a8547);
}

.containerS .box:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.content {
  position: relative;
  padding: 20px;
  transform: translateY(30px);
}

.content img {
  position: absolute;
  width: 70px;
  height: 70px;
  opacity: 20%;
  top: -60px;
  right: 20px;
  margin: 0;
  padding: 0;
  font-size: 10em;
  color: rgba(255, 255, 255, 0.05);
  transition: 0.5s;
}

.box:hover .content img {
  top: -95px;
  opacity: 100%;
}

.box .content h3 {
  margin: 0 0 10px;
  padding: 0;
  font-size: 24px;
  color: #fff;
}

.box .content p {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 16px;
}

.box .content a {
  position: relative;
  margin: 20px 0 0;
  padding: 10px 20px;
  text-decoration: none;
  border: 1px solid #fff;
  display: inline-block;
  color: #fff;
  transition: 0.5s;
  transform: translateY(-40px);
  opacity: 0;
  visibility: hidden;
}

.box:hover .content a {
  transform: translateY(20px);
  opacity: 1;
  visibility: visible;
}

.box .content a:hover {
  color: #000;
  background: #fff;
}

.containerS .box:hover:before {
  background: linear-gradient(315deg, #09eea2, #e4fd06);
}
