#et-main-area{
  padding-top: 0px;
  overflow: hidden;
}
.carousel-container {
  width: 100%;
  height: 370px;
  position: relative;
  overflow: visible;
}
.carousel-item {
  position: absolute;
  aspect-ratio: 1/1;
  width: 35%;
  height: auto;
  perspective: 1000px;
  cursor: pointer;
  transition: all 0.5s ease;
}
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.carousel-item:hover .card-inner {
  transform: rotateY(180deg);
}
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  border-radius: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.card-front {
  background-color: #ffffff;
}
.card-back {
  background-color: #f8f8f8;
  transform: rotateY(180deg);
  font-size: 16px;
  padding: 20px 32px;
  box-sizing: border-box;
}
.carousel-item.active {
  z-index: 2;
  transform: translateX(-50%) scale(1);
  opacity: 1;
  left: 50%;
}
.carousel-item.prev {
  z-index: 1;
  transform: translateX(-150%) scale(0.8);
  opacity: 0.6;
  left: 50%;
}
.carousel-item.next {
  z-index: 1;
  transform: translateX(50%) scale(0.8);
  opacity: 0.6;
  left: 50%;
}
.carousel-item.inactive {
  z-index: 0;
  transform: translateX(-50%) scale(0.6);
  opacity: 0.3;
  left: 50%;
}
.nav-dots {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.nav-dot {
  border: 0px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.nav-dot.active {
  background-color: #333;
}

@media (max-width: 768px) {
  .carousel-container {
    height: 320px;
  }
  .carousel-item {
    aspect-ratio: 1/1;
    height: 250px;
    width: auto;
  }
  .carousel-item.active {
    transform: translateX(-50%) scale(1);
  }
  .carousel-item.prev {
    transform: translateX(-120%) scale(0.8);
  }
  .carousel-item.next {
    transform: translateX(30%) scale(0.8);
  }
}
:root{
  --cardslider-back-color: #cb4158;
}
.carousel-container .background .card-front,
.carousel-container .background .card-back{
  background-color: var(--cardslider-back-color);
  color: white;
  fill: white;
}

.card-inner .card-front{
  display: flex;
  flex-direction: column;
  svg{
    width: 30%;
  }
  h3{
    color: white;
    font-size: 23px;
    padding-inline: 10%;
    text-wrap: pretty;
  }
}

.card-inner .card-back{
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  h3{
    color: white;
    font-size: 23px;
  }
  p{
    font-size: 21px;
    font-weight: 500;
  }
  a{
    color: var(--cardslider-back-color);
    background-color: white;
    padding: 5px 30px;
    border-radius: 50px;
  }
}

.carousel-item .card-back{
  a:after{
    content: "DETALLES";
  }
}

.carousel-item.active .card-back{
  a:after{
    content: "DETALLES";
  }
}

@media screen and (max-width: 768px){
  .card-inner .card-front{
    h3{
      font-size: 20px;
    }
  }
  .card-inner .card-back{
    padding: 17px 20px;
    h3{
      font-size: 19px;
    }
    p{
      font-size: 16px;
    }
  }
}

@media screen and (max-width: 1024px) {
  .card-inner .card-front{
    h3{
      font-size: 20px;
    }
  }
  .card-inner .card-back{
    padding: 13px 14px;
    h3{
      font-size: 19px;
    }
    p{
      font-size: 16px;
    }
  }
}