/* ========================================
   Testimonials Scroll
   ======================================== */
.testimonials-scroll {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 0;
  margin: 2rem 0;
  border-radius: 14px;
  padding: 0 0 2rem 0rem;
}
.testimonials-scroll.resenya {
    padding: 0px;
    margin: 0 0 2rem 0;
}

.testimonials-scroll::-webkit-scrollbar {
  display: none;
}

.testimonials-scroll.resenya .testimonial-card{
  flex: 0 0 calc(100% - 0px);
}

/* Cards solapadas */
.testimonials-scroll .testimonial-card {
  flex: 0 0 calc(100% - 60px);
  scroll-snap-align: start;
  box-shadow: 2px 2px 4px #049EC5;
  background: linear-gradient(135deg, #049ec5, #60d6b6);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  margin-right: 5px;
  position: relative;
  z-index: 1;
  transition: z-index 0s, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
  cursor: pointer;
}

.testimonials-scroll .testimonial-card:last-child {
  margin-right: 0;
}

.testimonials-scroll .testimonial-card:hover {
  z-index: 10;
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Z-index escalonado */
.testimonials-scroll .testimonial-card:nth-child(1) { z-index: 8; }
.testimonials-scroll .testimonial-card:nth-child(2) { z-index: 7; }
.testimonials-scroll .testimonial-card:nth-child(3) { z-index: 6; }
.testimonials-scroll .testimonial-card:nth-child(4) { z-index: 5; }
.testimonials-scroll .testimonial-card:nth-child(5) { z-index: 4; }
.testimonials-scroll .testimonial-card:nth-child(6) { z-index: 3; }
.testimonials-scroll .testimonial-card:nth-child(7) { z-index: 2; }
.testimonials-scroll .testimonial-card:nth-child(8) { z-index: 1; }

/* Source */
.testimonials-scroll .testimonial-card__source {
  font-family: var(--font-secondary);
  color: #212529;
  margin-bottom: 0.5rem;
  font-size: 24px;
  line-height: 1.6rem;
  font-weight: bold;
}

/* Texto */
.testimonials-scroll .testimonial-card__text {
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.55;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonials-scroll .testimonial-card__text p {
  color: inherit;
  font-size: 15px;
  line-height: 1.6rem;
  margin: 0;
}

/* Logo */
.testimonials-scroll .testimonial-card__logo {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.testimonials-scroll .testimonial-card__logo img {
  max-width: 160px;
  max-height: 52px;
  object-fit: contain;
  opacity: 1.85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  transition: transform .12s ease, background .12s ease;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .testimonials-scroll {
    padding: 1.25rem 1rem;
  }

  .testimonials-scroll .testimonial-card {
    flex: 0 0 calc(100% - 40px);
    padding: 1.15rem;
    min-height: 200px;
    margin-right: 10px;
  }

  .testimonials-scroll .testimonial-card__text {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .testimonials-scroll .testimonial-card {
    flex: 0 0 calc(100% - 30px);
    margin-right: 10px;
  }
}
