.innova-masonry {
  background-color: transparent;
  color: white;
}

.innova-masonry p {
  color: #fff !important;
}

.innova-masonry .masonry-grid {
  display: grid;
  max-width: 1520px;
  margin: 0 auto;
  padding: 4rem 2rem;
  grid-template-columns: repeat(12, 1fr);
  max-width: 100%;
}
.masonry-content {
  grid-column: span 12;
}

.innova-masonry .masonry {
  max-width: 100%;
  grid-column: span 12;
  display: grid;
  padding-top: 3rem;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
}

.masonry .masonry-element {
  grid-column: span 6;
  position: relative;
  min-height: 150px;
  overflow: hidden;
}

.img-mr {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.img-mr img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.overlay-mr {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  opacity: 0;
  background-color: rgba(64, 63, 75, 0.5);
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 1, 1);
}

.line-mr {
  position: absolute;
  height: calc(100% - 30px);
  width: calc(100% - 30px);
  border: 1px solid white;
  opacity: 0;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);
  z-index: 3;
  transition: all 0.3s cubic-bezier(0.4, 0, 1, 1);
}

.text-normal-mr {
  position: relative;
  z-index: 4;
  color: white;
  opacity: 0;
  transform: translateX(20px);
  height: 100%;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 1, 1);
}

.text-normal-mr p {
  margin-top: 0;
  font-weight: 500;
  letter-spacing: 1.7px;
  font-size: 8px !important;
  text-transform: uppercase;
}

.content-text-mr {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.content-text-mr h5 {
  width: 80%;
}
.content-text-mr p {
  font-family: var(--fuente-principal);
  font-style: normal;
  width: 77%;
  margin-bottom: 0;
  font-size: 0.8rem;
  text-align: right;
}

.masonry > .masonry-element:hover .overlay-mr {
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 1, 1);
}

.masonry > .masonry-element:hover .line-mr {
  opacity: 1;
  left: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 1, 1);
}

.masonry > .masonry-element:hover .text-normal-mr {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 1, 1);
}

@media only screen and (min-width: 25em) {
  /* small 400px */
}

@media only screen and (min-width: 38em) {
  /* medium 608px */

  .masonry .masonry-element {
    min-height: 225px;
  }
}

@media only screen and (min-width: 48em) {
  /* medium 768px */

  .masonry .masonry-element {
    min-height: 300px;
  }

  .innova-masonry .masonry {
    gap: 2rem;
  }
}

@media only screen and (min-width: 61.938em) {
  /* large 991px*/
}

@media only screen and (min-width: 64em) {
  /* medium 1024px */

  .text-normal-mr p {
    margin-top: 0;
    font-weight: 500;
    letter-spacing: 1.7px;
    font-size: 11px !important;
    text-transform: uppercase;
  }
}

@media only screen and (min-width: 75em) {
  /*  large 1200px */

  .innova-masonry h2 {
    margin-top: 0;
  }

  .masonry h5 {
    font-size: 1.2rem;
  }
  .masonry-grid {
    max-width: 1350px !important;
    padding: 6rem 0rem !important;
    gap: 0 3.5rem;
  }

  .masonry-grid .masonry-content {
    grid-column: span 3;
  }

  .innova-masonry .masonry {
    max-width: 100%;
    grid-column: span 9;
    display: grid;
    height: 490px;
    padding-top: 0;
    gap: 2rem;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
  }

  .masonry .masonry-element {
    min-height: unset;
  }

  .masonry .masonry-element:nth-child(1) {
    grid-column: 1 / 4;
    grid-row: 1 / 7;
  }

  .masonry .masonry-element:nth-child(2) {
    grid-column: 4 / 7;
    grid-row: 1 / 13;
  }

  .masonry .masonry-element:nth-child(3) {
    grid-column: 7 / 13;
    grid-row: 1 / 7;
  }

  .masonry .masonry-element:nth-child(4) {
    grid-column: 1 / 4;
    grid-row: 7 / 13;
  }
  .masonry .masonry-element:nth-child(5) {
    grid-column: 7 / 13;
    grid-row: 7 / 13;
  }
}

@media only screen and (min-width: 90em) {
  /* extra large 1440px */
}
