* {
  margin: 0;
  padding: 0 auto;
  border: 0 auto;
  position: relative;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.img-container {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 20% 20% 20% 20% 20%;
  grid-gap: 20px;
  position: relative;
  width: 100%;
  height: 300vh;
  margin-top: 10px;
}
figure.snip0015 {
  font-family: "Poppins", sans-serif;
  color: #fff;
  position: relative;
  overflow: hidden;
  height: 100%;
  margin-left: 10px;
  margin-right: 10px;
  background: #000000;
  text-align: center;
}
figure.snip0015 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
figure.snip0015 img {
  opacity: 1;
  width: 100%;
  height: 100%;
  -webkit-transition: opacity 0.35s;
  transition: opacity 0.35s;
}

figure.snip0015 h3 {
  word-spacing: -0.15em;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 8vw;
  text-align: center;
  top: 50%;
  -webkit-text-stroke: 2px black;
  color: white;
}
/* figure.snip0015 .corporal {
  font-size: 1.8vw;
  position: absolute;
  text-align: center;
  top: 50%;
} */

figure.snip0015 figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 3em 3em;
  width: 100%;
  height: 100%;
}
figure.snip0015 figcaption::before {
  position: absolute;
  top: 50%;
  right: 30px;
  bottom: 50%;
  left: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  content: "";
  opacity: 0;
  background-color: #ffffff;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  -webkit-transition-delay: 0.6s;
  transition-delay: 0.6s;
}
figure.snip0015 h2,
figure.snip0015 p {
  color: white;
  margin: 0 0 3px;
  opacity: 0;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, -webkit-transform 0.35s, -moz-transform 0.35s, -o-transform 0.35s, transform 0.35s;
}
figure.facial p {
  font-size: 3vw;
  line-height: 2.4vh;
}
figure.snip0015 p {
  font-size: 6vw;
}
figure.snip0015 h2 {
  word-spacing: -0.15em;
  font-weight: 300;
  text-transform: uppercase;
  -webkit-transform: translate3d(0%, 50%, 0);
  transform: translate3d(0%, 50%, 0);
  -webkit-transition-delay: 0.3s;
  transition-delay: 0.3s;
}
figure.snip0015 h2 span {
  font-weight: 800;
}
figure.snip0015 p {
  /* font-size: 1.65vh; */
  font-weight: 100;
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}
figure.snip0015 a {
  font-weight: 100;
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
  text-decoration: none;
  color: #ffffff;
}
figure.snip0015:hover img {
  opacity: 0.35;
}
figure.snip0015:hover figcaption h2 {
  opacity: 1;
  -webkit-transform: translate3d(0%, 0%, 0);
  transform: translate3d(0%, 0%, 0);
  -webkit-transition-delay: 0.3s;
  transition-delay: 0.3s;
}
figure.snip0015:hover figcaption p {
  opacity: 0.9;
  -webkit-transition-delay: 0.6s;
  transition-delay: 0.6s;
}
figure.snip0015:hover figcaption a {
  opacity: 0.9;
  -webkit-transition-delay: 0.6s;
  transition-delay: 0.6s;
}
figure.snip0015:hover figcaption::before {
  background: rgba(255, 255, 255, 0);
  top: 30px;
  bottom: 30px;
  opacity: 1;
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}
figure.snip0015:hover figcaption h3 {
  display: none;
}
/*
****************************************************************************
***********************************tablet***********************************
****************************************************************************
*/

@media (min-width: 768px) {
  .img-container {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 1fr 1fr 1fr;
    grid-column-gap: 0;
    grid-row-gap: 30px;
    position: relative;
    width: 100%;
    height: 150vh;
    margin-top: 10px;
    /*   margin-left: 10%;
    margin-right: 10%; */
  }
  figure.snip0015 {
    font-family: "Poppins", sans-serif;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
    height: 100%;
    background: #000000;
    text-align: center;
  }
  figure.snip0015 p {
    font-size: 3.5vw;
    line-height: 2.5vh;
  }
  figure.facial p {
    color: red;
    font-size: 2.9vw;
    line-height: 2vh;
  }
  figure.snip0015 h2 {
    font-size: 4vh;
  }
  figure.snip0015 h3 {
    word-spacing: -0.15em;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 4vw;
    text-align: center;
    top: 50%;
    -webkit-text-stroke: 2px black;
    color: white;
  }
}


/*
****************************************************************************
*******************************Escritorio***********************************
****************************************************************************
*/

@media (min-width: 1025px) {
  a {
    text-decoration: none;
  }
  .img-container {
    display: grid;
    grid-template-columns: 20% 20% 20% 20% 20%;
    grid-template-rows: 100%;
    grid-column-gap: 0;
    grid-row-gap: 30px;
    position: relative;
    width: 80%;
    height: 70vh;
    margin: 0 auto;
    margin-top: 10px;
  }
  .main-servicios {
    text-align: center;
    color: white;
    padding-bottom: 30px;
    font-size: 1.5vw;
  }
  figure.snip0015 {
    font-family: "Poppins", sans-serif;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
    height: 100%;
    background: #000000;
    text-align: center;
  }
  figure.snip0015 * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  figure.snip0015 img {
    opacity: 1;
    width: 100%;
    height: 100%;
    -webkit-transition: opacity 0.35s;
    transition: opacity 0.35s;
  }
  figure.snip0015 figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 3em 3em;
    width: 100%;
    height: 100%;
  }
  figure.snip0015 figcaption::before {
    position: absolute;
    top: 50%;
    right: 30px;
    bottom: 50%;
    left: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    content: "";
    opacity: 0;
    background-color: #ffffff;
    -webkit-transition: all 0.4s;
    transition: all 0.4s;
    -webkit-transition-delay: 0.6s;
    transition-delay: 0.6s;
  }
  figure.snip0015 h2,
  figure.snip0015 p {
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, -webkit-transform 0.35s, -moz-transform 0.35s, -o-transform 0.35s, transform 0.35s;
    line-height: 100%;
    text-align: center;
  }
  figure.snip0015 h2 {
    font-size: 1.8vw;
    margin-bottom: 15px;
  }
  figure.snip0015 p {
    font-size: 1vw;
    line-height: 3vh;
  }
  figure.snip0015 p span{
    left: -5%;
  }
  figure.facial p {
    font-size: 1vw;
    line-height: 2.2vh;
    /* word-wrap: break-word; */
  }
  figure.facial p span {
    font-size: 1vw;
    line-height: 2.2vh;
    /* word-wrap: break-word; */
    color: red;
  }
  figure.snip0015 h2 {
    word-spacing: -0.15em;
    font-weight: 300;
    text-transform: uppercase;
    -webkit-transform: translate3d(0%, 50%, 0);
    transform: translate3d(0%, 50%, 0);
    -webkit-transition-delay: 0.3s;
    transition-delay: 0.3s;
  }
  figure.snip0015 h2 span {
    font-weight: 800;
  }
  figure.snip0015 p {
    font-weight: 100;
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
  }
  figure.snip0015 a {
    font-weight: 100;
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
    text-decoration: none;
    color: #ffffff;
  }
  figure.snip0015:hover img {
    opacity: 0.35;
  }
  figure.snip0015:hover figcaption h2 {
    opacity: 1;
    -webkit-transform: translate3d(0%, 0%, 0);
    transform: translate3d(0%, 0%, 0);
    -webkit-transition-delay: 0.3s;
    transition-delay: 0.3s;
  }
  figure.snip0015:hover figcaption p {
    opacity: 0.9;
    -webkit-transition-delay: 0.6s;
    transition-delay: 0.6s;
  }
  figure.snip0015:hover figcaption a {
    opacity: 0.9;
    -webkit-transition-delay: 0.6s;
    transition-delay: 0.6s;
  }
  figure.snip0015:hover figcaption::before {
    background: rgba(255, 255, 255, 0);
    top: 30px;
    bottom: 30px;
    opacity: 1;
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
  }
  figure.snip0015:hover figcaption h3 {
    display: none;
  }

  figure.snip0015 h3 {
    word-spacing: -0.15em;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 2vw;
    text-align: center;
    top: 50%;
    -webkit-text-stroke: 1px black;
    color: white;
  }
  figure.snip0015 .corporal {
    left: -20%;
  }
}


/* Grand desktop */

@media (min-width: 1441px) {
  figure.facial p {
    font-size: 1vw;
  }
  figure.snip0015 .corporal {
    left: -5%;
  }
}

@supports (object-fit: cover) {
  figure.snip0015 img {
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
}
