.sections-testimoniales {
  padding: 3rem 0;
  background: #f9f9f9;
}

/* Header de la sección testimoniales */
.testimonial-header {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 2.2rem auto;
  text-align: center;
}
.testimonial-title-section {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.testimonial-desc-section {
  color: #222;
  font-size: 1.13rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}
/* Grid para testimoniales */
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  padding-bottom: 18px;
}
.testimonial-arrow {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0, 60, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 260px;
    max-width: 440px;
    flex: 1 1 260px;
    box-sizing: border-box;
    overflow: hidden;
    border: 2px solid #e0eaff;
    padding: 18px 10px 18px 10px;
    transition: box-shadow 0.3s cubic-bezier(.4,0,.2,1), transform 0.3s cubic-bezier(.4,0,.2,1);
  }

.testimonial-card:hover {
    box-shadow: 0 12px 32px rgba(0, 60, 255, 0.18), 0 2px 8px rgba(0, 60, 255, 0.10);
    transform: translateY(-8px) scale(1.03);
    border-color: #0074d9;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
  }

.testimonial-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}
.testimonial-carousel {
  display: flex;
  align-items: center;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
}

.testimonial-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 60, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 360px;
  max-width: 400px;
  flex: 0 0 360px;
  scroll-snap-align: center;
  overflow: hidden;
  border: 2px solid #e0eaff;
  padding: 18px 10px 18px 10px;
}

.testimonial-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin: 32px auto 0 auto;
  border: 4px solid #0074d9;
  background: #e0eaff;
}

.testimonial-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 24px 24px 24px;
}

.testimonial-title {
  color: #0074d9;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.testimonial-description {
  color: #222;
  font-size: 1rem;
  margin-bottom: 16px;
  text-align: center;
}

.testimonial-name {
  color: #003cff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
}

/* Carrusel flechas */
.testimonial-arrow {
  background: transparent;
  border: none;
  width: 24px;
  height: 56px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  padding: 0;
  transition: width 0.2s, background 0.2s;
}


.testimonial-arrow:hover {
  width: 40px;
  background: rgba(0, 60, 255, 0.08);
}

/* Posicionamiento de flechas */
#testimonial-prev {
  left: -30px;
}


#testimonial-next {
  right: -30px;
}

/* Flechas como líneas verticales */
.testimonial-arrow span {
  display: block;
  width: 4px;
  height: 32px;
  background: linear-gradient(180deg, #0074d9 0%, #003cff 100%);
  border-radius: 2px;
  transition: height 0.2s;
}
.testimonial-arrow:hover span {
  height: 48px;
}

@media (max-width: 700px) {
  .testimonial-header {
    max-width: 95vw;
    margin-bottom: 1.2rem;
  }
  .testimonial-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto ;
    scroll-snap-type: x mandatory ;
    width: 100vw ;
    max-width: 100vw ;
    gap: 30px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: auto;
    height: auto;
    padding: 18px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    justify-content: unset;
  }
  .testimonial-card {
    min-width: 90vw;
    max-width: 95vw;
    flex-direction: column;
    align-items: center;
  }
  .testimonial-content {
    padding: 16px 8px 8px 8px;
  }
  .testimonial-photo {
    margin: 16px auto;
  }
  .testimonial-progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 0 0;
    gap: 8px;
  }
  .testimonial-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dbeafe;
    transition: background 0.2s;
  }
  .testimonial-progress-dot.active {
    background: #0074d9;
  }
}