/* client-voices.css - Nueva sección de testimonios rediseñada */

.client-voices {
  position: relative;
  padding: 120px 0;
  background: #f8fafc;
  overflow: hidden;
}

.client-voices::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(96, 165, 250, 0.02) 100%);
  pointer-events: none;
}

.client-voices-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Header Section */
.voices-header {
  text-align: center;
  margin-bottom: 4rem;
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-icon {
  font-size: 1rem;
}

.voices-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: #1e293b;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.title-highlight {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.voices-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 3rem;
}

/* Stats Cards */
.client-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 600;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

/* Featured Testimonial */
.featured-testimonial {
  grid-row: span 1;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.testimonial-card.featured {
  padding: 3rem;
  min-height: 500px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.quote-mark {
  font-size: 4rem;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1;
  font-family: Georgia, serif;
}

.company-logo {
  width: 60px;
  height: 60px;
}

.logo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
}

.testimonial-quote {
  font-size: 1.375rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 2rem;
  font-weight: 500;
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.rating-stars {
  display: flex;
  gap: 0.25rem;
}

.star {
  color: #fbbf24;
  font-size: 1.25rem;
}

.rating-value {
  font-weight: 700;
  color: #374151;
  font-size: 1.125rem;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.client-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-info h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.client-role {
  font-size: 0.875rem;
  color: #6366f1;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.client-company {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* Secondary Testimonials */
.secondary-testimonials {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial-card.compact {
  padding: 1.5rem;
  min-height: auto;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar.small {
  width: 40px;
  height: 40px;
}

.client-info.compact h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.125rem;
}

.client-info.compact p {
  font-size: 0.75rem;
  color: #64748b;
}

.rating-mini {
  margin-left: auto;
}

.stars-mini {
  color: #fbbf24;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .voices-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .client-voices {
    padding: 80px 0;
  }
  
  .client-voices-container {
    padding: 0 1rem;
  }
  
  .client-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .voices-title {
    font-size: 2rem;
  }
  
  .testimonial-card.featured {
    padding: 2rem;
  }
  
  .testimonial-quote {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .testimonial-card,
  .testimonial-card.compact {
    padding: 1.25rem;
  }
  
  .card-footer {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .rating-mini {
    margin-left: 0;
  }
}

/* Animaciones y efectos especiales */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Animaciones específicas para elementos */
.client-voices-header {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de contadores */
.stat-number {
    transition: all 0.3s ease;
    will-change: contents;
}

/* Hover mejorado para tarjetas */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(79, 172, 254, 0.2),
        0 15px 12px rgba(0, 0, 0, 0.05);
}