/* Estilos para el componente Testimonials */
.testimonials-section {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../img/pattern-bg.png');
  background-size: cover;
  opacity: 0.1;
  z-index: -1;
}

.testimonials-section .section-header h2 {
  color: var(--text-light);
}

.testimonials-section .subheader-line {
  background-color: var(--accent-color);
}

.testimonials-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.testimonials-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
}

/* Carrusel de testimonios */
.testimonials-carousel {
  display: flex;
  margin: 10px auto 30px;
  position: relative;
  z-index: 1;
  transition: transform 0.5s ease-in-out;
  /* Las propiedades de ancho se establecerán mediante JavaScript */
}

.testimonial-card {
  /* Las propiedades flex se establecerán mediante JavaScript */
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
  border: 3px solid var(--primary-dark);
  position: relative;
  box-sizing: border-box;
  min-width: 0; /* Evita que las tarjetas se expandan más allá de su contenedor */
  display: flex;
  flex-direction: column;
  transition: all 0.5s ease;
}

/* Efecto de esquinas de pixel */
.pixel-corners {
  clip-path: 
    polygon(
      0px 4px,
      4px 4px,
      4px 0px,
      calc(100% - 4px) 0px,
      calc(100% - 4px) 4px,
      100% 4px,
      100% calc(100% - 4px),
      calc(100% - 4px) calc(100% - 4px),
      calc(100% - 4px) 100%,
      4px 100%,
      4px calc(100% - 4px),
      0px calc(100% - 4px)
    );
}

.testimonial-quote {
  margin-bottom: 20px;
  position: relative;
  flex-grow: 1;
}

.testimonial-quote i {
  font-size: 2rem;
  color: var(--accent-color);
  opacity: 0.7;
  margin-bottom: 15px;
  display: block;
}

.testimonial-quote p {
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: auto; /* Empuja el autor al fondo de la tarjeta */
}

.testimonial-author img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  margin-right: 20px;
  border: 3px solid var(--primary-dark);
  background-color: var(--primary-light);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.author-info h4 {
  margin: 0 0 5px;
  font-weight: 600;
  color: var(--accent-tertiary);
  font-family: 'Press Start 2P', cursive;
  font-size: 0.9rem;
}

.author-info p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.testimonial-rating {
  color: var(--accent-tertiary);
  font-size: 0.9rem;
}

/* Controles del carrusel */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.carousel-control {
  background-color: transparent;
  border: 3px solid var(--primary-color);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.carousel-control:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 3px 6px 0 rgba(0, 0, 0, 0.2);
}

.carousel-dots {
  display: flex;
  margin: 0 20px;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 0;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-dark);
}

.dot.active {
  background-color: var(--accent-color);
  transform: scale(1.2);
}

/* CTA de testimonios */
.testimonial-cta {
  text-align: center;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-cta p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--accent-tertiary);
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
}

.testimonial-cta .btn-pixel {
  background-color: var(--accent-color);
  color: var(--text-light);
  padding: 12px 25px;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: 3px solid var(--primary-dark);
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.testimonial-cta .btn-pixel:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 4px 7px 0 rgba(0, 0, 0, 0.2);
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividad */
@media (max-width: 768px) {
  .testimonial-card {
    padding: 20px;
  }
  
  .testimonial-quote p {
    font-size: 1rem;
  }
  
  .testimonial-author img {
    width: 60px;
    height: 60px;
  }
  
  .author-info h4 {
    font-size: 0.8rem;
  }
  
  .testimonial-cta p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-author img {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .carousel-control {
    width: 35px;
    height: 35px;
  }
} 