/* ===============================================
   GCLA - Sección de Testimonios
   Componente Modular - Casos de Éxito B2B
   =============================================== */

/* Contenedor Principal */
.testimonials-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  padding: 60px 0;
  overflow: hidden;
}

/* Badge de la sección */
.testimonials-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

/* Swiper de testimonios */
.testimonials-swiper {
  width: 100%;
  height: auto;
  padding: 20px 0 60px 0;
  position: relative;
}

.testimonials-swiper .swiper-wrapper {
  align-items: stretch;
}

.testimonials-swiper .swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* Tarjetas de testimonio */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  height: 100%;
  border: 1px solid rgba(245, 158, 11, 0.1);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F59E0B, #D97706);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #F59E0B;
}

/* Header del testimonio */
.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-avatar-placeholder {
  color: white;
  font-size: 24px;
  font-weight: 700;
}

.testimonial-info h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 4px;
}

.testimonial-info .position {
  font-size: 14px;
  color: #6B7280;
  font-weight: 500;
}

.testimonial-info .company {
  font-size: 14px;
  color: #F59E0B;
  font-weight: 600;
}

/* Rating */
.testimonial-rating {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.testimonial-rating .stars {
  color: #F59E0B;
  font-size: 16px;
  margin-right: 8px;
}

.testimonial-rating .roi {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contenido del testimonio */
.testimonial-content {
  font-size: 16px;
  color: #4B5563;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  font-size: 48px;
  color: #F59E0B;
  position: absolute;
  top: -10px;
  left: -10px;
  font-family: serif;
  opacity: 0.3;
}

/* Footer del testimonio */
.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #E5E7EB;
}

.testimonial-date {
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 500;
}

.testimonial-verified {
  display: flex;
  align-items: center;
  color: #10B981;
  font-size: 12px;
  font-weight: 600;
}

.testimonial-verified i {
  margin-right: 4px;
}

/* Controles de navegación */
.testimonials-swiper .swiper-button-prev,
.testimonials-swiper .swiper-button-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.testimonials-swiper .swiper-button-prev:hover,
.testimonials-swiper .swiper-button-next:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.testimonials-swiper .swiper-button-prev::after,
.testimonials-swiper .swiper-button-next::after {
  font-size: 18px;
  color: #F59E0B;
  font-weight: 900;
}

.testimonials-swiper .swiper-button-prev {
  left: 20px;
}

.testimonials-swiper .swiper-button-next {
  right: 20px;
}

/* Paginación */
.testimonials-swiper .swiper-pagination {
  bottom: 20px;
  position: relative;
  margin-top: 20px;
}

.testimonials-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(245, 158, 11, 0.3);
  opacity: 1;
  transition: all 0.3s ease;
}

.testimonials-swiper .swiper-pagination-bullet-active {
  background: #F59E0B;
  transform: scale(1.2);
}

/* Estadísticas de éxito */
.success-stats {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 2px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  padding: 40px;
  margin-top: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.success-stats .row {
  justify-content: center;
  align-items: center;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 900;
  color: #10B981;
  margin-bottom: 8px;
  line-height: 1;
  text-align: center;
}

.stat-label {
  font-size: 14px;
  color: #6B7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .testimonials-section {
    padding: 40px 0;
  }
  
  .testimonial-card {
    padding: 24px 20px;
    max-width: 350px;
  }
  
  .testimonial-avatar {
    width: 50px;
    height: 50px;
  }
  
  .testimonial-avatar-placeholder {
    font-size: 20px;
  }
  
  .testimonial-info h4 {
    font-size: 16px;
  }
  
  .testimonial-content {
    font-size: 15px;
  }
  
  .testimonials-swiper .swiper-button-prev,
  .testimonials-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
  }
  
  .testimonials-swiper .swiper-button-prev {
    left: 10px;
  }
  
  .testimonials-swiper .swiper-button-next {
    right: 10px;
  }
  
  .success-stats {
    padding: 30px 20px;
  }
  
  .stat-number {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .testimonials-badge {
    padding: 10px 20px;
    font-size: 12px;
  }
  
  .testimonial-card {
    padding: 20px 16px;
    max-width: 300px;
  }
  
  .testimonial-header {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-avatar {
    margin-right: 0;
    margin-bottom: 12px;
  }
  
  .testimonial-content {
    font-size: 14px;
  }
  
  .testimonials-swiper .swiper-button-prev,
  .testimonials-swiper .swiper-button-next {
    width: 35px;
    height: 35px;
  }
  
  .testimonials-swiper .swiper-button-prev::after,
  .testimonials-swiper .swiper-button-next::after {
    font-size: 14px;
  }
  
  .success-stats {
    padding: 24px 16px;
  }
  
  .stat-number {
    font-size: 24px;
  }
}

/* Modo de alto contraste */
@media (prefers-contrast: high) {
  .testimonial-card {
    border-width: 2px;
    border-color: #F59E0B;
  }
  
  .testimonial-rating .roi {
    background: #059669;
  }
}

/* Reducir animaciones para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
  .testimonial-card,
  .testimonials-swiper .swiper-button-prev,
  .testimonials-swiper .swiper-button-next {
    transition: none;
  }
  
  .testimonial-card:hover {
    transform: none;
  }
}