.block-pre-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 80%), 1fr));
  grid-gap: 1em;
  max-width: 85%;
  margin: 0 auto;
  padding-bottom: 58px;
}

.flip-card-front img {
  width: 245px;
  height: 245px;
}

.flip-card-back p:first-child {
  text-align: center;
  margin-top: 1em;
  line-height: 2em;
  font-size: 16px;
  font-weight: normal;
}

.flip-card-back p:last-child {
  text-align: center;
  margin-top: 1em;
  font-size: 14px;
}

.flip-card-back p:last-child a {
  text-decoration: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: normal;
}

.flip-card-back p:last-child a span {
  color: #fff;
  border: 1px solid #fff;
  padding: 10px;
  border-radius: 5px;
}

.flip-card {
  background-color: transparent;
  width: 250px;
  height: 250px;
  border: 1px solid var(--primary-color);
  border-radius: 15px;
  margin: 25px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  backface-visibility: hidden; /*nuevo para efecto 3d*/
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
  border: 0px solid var(--primary-color);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 99.9%;
  height: 99.9%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 15px;
  transform-style: preserve-3d;
}

.flip-card-front {
  background-color: #fff;
  color: black;
  border-radius: 15px;
}

.flip-card-back {
  background-color: var(--primary-color);
  color: white;
  transform: rotateY(180deg);
  padding: 15px;
}

.dashboard-icon {
    color: var(--primary-color-light);
    font-size: 90px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 33%;
    filter: drop-shadow(0 4px 2px rgba(45, 31, 23, 0.3));
}