/* ===== ESTILOS DE TESTIMONIOS ===== */

.testimonials-section {
  padding: 5rem 0;
  background-color: var(--gray-50);
  position: relative;
  overflow: hidden;
}

.dark-theme .testimonials-section {
  background-color: var(--gray-800);
}

/* Fondo decorativo opcional */
.testimonials-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Encabezado de la sección */
.testimonials-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.testimonials-subtitle {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.testimonials-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--gray-900);
}

.dark-theme .testimonials-title {
  color: var(--white);
}

.testimonials-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.dark-theme .testimonials-description {
  color: var(--gray-400);
}

/* Contenedor de testimonios */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Tarjeta de testimonio */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.dark-theme .testimonial-card {
  background: var(--gray-800);
  border-color: var(--gray-700);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Icono de comillas */
.testimonial-quote {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.1;
  line-height: 1;
  font-family: Georgia, serif;
}

/* Contenido del testimonio */
.testimonial-content {
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gray-700);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.dark-theme .testimonial-content {
  color: var(--gray-300);
}

/* Pie del testimonio */
.testimonial-footer {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* Avatar del autor */
.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
  border: 3px solid var(--primary);
  padding: 2px;
  background: var(--white);
}

.dark-theme .testimonial-avatar {
  background: var(--gray-800);
}

/* Información del autor */
.testimonial-author {
  flex: 1;
}

.testimonial-name {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.dark-theme .testimonial-name {
  color: var(--white);
}

.testimonial-role {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.dark-theme .testimonial-role {
  color: var(--gray-400);
}

/* Calificación */
.testimonial-rating {
  display: flex;
  margin-top: 0.5rem;
}

.testimonial-rating i {
  color: var(--yellow-400);
  font-size: 1rem;
  margin-right: 0.25rem;
}

/* Variante con fondo de color */
.testimonial-card.primary-bg {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
}

.testimonial-card.primary-bg .testimonial-content,
.testimonial-card.primary-bg .testimonial-name,
.testimonial-card.primary-bg .testimonial-role {
  color: white;
}

.testimonial-card.primary-bg .testimonial-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* Variante con borde izquierdo */
.testimonial-card.border-left {
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Variante con imagen de fondo */
.testimonial-bg {
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
  color: white;
  border: none;
  overflow: hidden;
}

.testimonial-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.testimonial-bg .testimonial-content,
.testimonial-bg .testimonial-name,
.testimonial-bg .testimonial-role {
  color: white;
  position: relative;
  z-index: 1;
}

/* Slider de testimonios */
.testimonials-slider {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.testimonial-slide {
  padding: 0 1rem;
  transition: transform 0.3s ease;
}

/* Flechas de navegación */
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 10;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.dark-theme .testimonial-arrow {
  background: var(--gray-800);
  border-color: var(--gray-700);
}

.testimonial-arrow:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.testimonial-arrow.prev {
  left: -25px;
}

.testimonial-arrow.next {
  right: -25px;
}

/* Puntos de navegación */
.testimonial-dots {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark-theme .testimonial-dot {
  background: var(--gray-600);
}

.testimonial-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* Testimonio grande centrado */
.testimonial-centered {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-centered .testimonial-content {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.testimonial-centered .testimonial-footer {
  justify-content: center;
  flex-direction: column;
  border: none;
  padding-top: 0;
}

.testimonial-centered .testimonial-avatar {
  margin: 0 auto 1rem;
  width: 80px;
  height: 80px;
}

.testimonial-centered .testimonial-rating {
  justify-content: center;
  margin-top: 1rem;
}

/* Testimonio con logo de empresa */
.testimonial-with-logo .testimonial-footer {
  justify-content: space-between;
  align-items: center;
}

.testimonial-logo {
  max-width: 120px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.testimonial-card:hover .testimonial-logo {
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .testimonials-title {
    font-size: 2rem;
  }
  
  .testimonials-description {
    font-size: 1rem;
  }
  
  .testimonial-arrow.prev {
    left: 10px;
  }
  
  .testimonial-arrow.next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 3rem 0;
  }
  
  .testimonials-header {
    margin-bottom: 3rem;
  }
  
  .testimonials-title {
    font-size: 1.75rem;
  }
  
  .testimonial-card {
    padding: 2rem 1.5rem;
  }
  
  .testimonial-content {
    font-size: 1rem;
  }
  
  .testimonial-avatar {
    width: 50px;
    height: 50px;
  }
  
  .testimonial-name {
    font-size: 1rem;
  }
  
  .testimonial-role {
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-title {
    font-size: 1.5rem;
  }
  
  .testimonial-arrow {
    width: 40px;
    height: 40px;
  }
  
  .testimonial-arrow.prev {
    left: 5px;
  }
  
  .testimonial-arrow.next {
    right: 5px;
  }
  
  .testimonial-centered .testimonial-content {
    font-size: 1.1rem;
  }
}
