.dm-flip-card {
  position:relative; 
  width: 100%;
  height: 400px;
  background: transparent;
  transform-style: preserve-3d;
  perspective: 2000px;
}

.dm-front-card {
  position:absolute;
  height:100%;
  width:100%;
  backface-visibility: hidden;
  transition: transform 1s;
  background-color: #281937;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*Just overlay color of front image*/
.dm-front-card:after {
  content: '';
  position:absolute;
  height:100%;
  width:100%;
  background: #1B0036;
  top: 0;
  left: 0;
  opacity: 0.1;
}

.dm-back-card {
  position: absolute;
  height: 100%;
  width: 100%;
  background: orange;
  backface-visibility: hidden;
  transform: rotateY(180deg); /* 180deg to flip direction */
  transition: transform 1s;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}

/* Para todos los elementos, la rotación será horizontal */
.dm-flip-card:hover .dm-front-card {
  transform: rotateY(-180deg); /* 180deg to flip direction */
}

.dm-flip-card:hover .dm-back-card {
  transform: rotateY(0deg);
}

/* Para el último elemento (last-card), rotación vertical (de arriba a abajo) */
/* .dm-flip-card:last-child .dm-front-card {
  transform: rotateX(0deg);
}

.dm-flip-card:last-child .dm-back-card {
  transform: rotateX(180deg);
}

.dm-flip-card:last-child:hover .dm-front-card {
  transform: rotateX(180deg);
}

.dm-flip-card:last-child:hover .dm-back-card {
  transform: rotateX(0deg);
} */
