.main-cont {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-container {
  max-width: 1120px;
  width: 100%;
}

.slide-content {
  margin: 0 40px;
  overflow: hidden;
  border-radius: 25px;
  padding: 3.5rem 1.5rem;
}

.card {
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  /* background-color: #242943; */
  /* background: linear-gradient(
      180deg,
      rgba(22, 24, 30, 0) 0%,
      rgba(22, 24, 30, 0.3) 65.28%
    ),
    linear-gradient(0deg, rgba(22, 24, 30, 0.4), rgba(22, 24, 30, 0.4)); */
  opacity: 0.75;
  margin-bottom: 2rem;
}

.card:hover {
  transform: scale(1.05);
  transition: scale 0.5s ease;
  opacity: 1;
}

.image-content,
.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
}

.card-content {
  border-radius: 5px;
  /* Extra room at the bottom so the photo (2/3 inside on hover) never touches
     the review on narrow cards (BL-008) */
  padding-bottom: calc(10px + 1.25rem);
}

.image-content {
  position: relative;
  row-gap: 5px;
  padding: 0 0;
}

/* Decorative layer that was never visible (0px tall); hidden now that the photo
   is positioned against the card */
.overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

/* The photo is positioned against the card (not .image-content) so on hover its
   center can land exactly on the card's bottom edge, whatever the card height (BL-008) */
.card {
  position: relative;
}

.image-content {
  position: static !important;
}

.card-image {
  position: absolute;
  top: 97px;
  left: 50%;
  margin-left: -39px; /* 78px box: 72px + 3px padding per side */
  z-index: 1;

  display: flex;
  justify-content: center;
  align-items: center;

  height: 72px;
  width: 72px;
  border-radius: 50%;
  /* background-color: #FFF; */
  padding: 3px;
}

.card:hover .card-image {
  /* 2/3 of the (scaled) photo stays inside the card and 1/3 peeks below its
     bottom edge. ~95px of travel in 0.8s keeps the original speed of ~119px/s */
  transition: top 0.8s ease, transform 0.8s ease, opacity 0.2s ease;
  top: calc(100% - 55px);
  transform: scale(1.2);
}

.card-image .card-img {
  width: 96%;
  height: 96%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(0, 0, 0, 0.1);
}

.name {
  margin: 0;
  margin-top: 20px;
  color: white;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 2rem;
}

/* Role: slight accent so it stands apart from the name (BL-008) */
.card-subtitle {
  color: #9bf1ff;
  font-size: 0.8em;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.card:hover .card-subtitle {
  transition: opacity 0.5s ease;
  opacity: 0;
}

.description {
  transform: translateY(200%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.4s ease;
  margin-top: 0.5rem;
  font-size: 16px;
  text-align: center;
}

.card:hover .description {
  transform: translateY(-25%);
  opacity: 1;
  transition: transform 0.5s ease, opacity 2s ease;
}

.swiper-navBtn {
  color: #fff;
  transition: color 0.3s ease;
}

.swiper-navBtn:hover {
  color: #9bf1ff;
}

.swiper-navBtn::before,
.swiper-navBtn::after {
  font-size: 35px;
}

.swiper-button-next {
  right: 0;
  top: 46%;
}

.swiper-button-prev {
  left: 0;
  top: 46%;
}

.swiper-pagination-bullet {
  background-color: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: #fff;
}

@media screen and (max-width 768px) {
  .slide-content {
    margin: 0 10px;
  }

  .swiper-navBtn {
    display: none;
  }

}

.name a {
  color: inherit;
  border-bottom: none;
}

.name a:hover {
  color: #9bf1ff;
}

/* Respaldo del límite de ~110 caracteres: toda reseña ocupa una caja fija de
   4 líneas (16px × 1.65), así todas las tarjetas tienen la misma geometría */
.description {
  min-height: 6.6em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

/* The review font scales with the card width, so every review keeps its fixed
   4-line box on narrow carousel layouts too; wide cards stay at 16px (BL-008) */
.card {
  container-type: inline-size;
}

.card .description {
  font-size: clamp(12px, 5.05cqi, 16px);
}

