/* Sección general */
#testimonios {
  text-align: center;
  padding: 40px 20px;
  background: #f9f9f9;
}

#testimonios h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #222;
}

/* Contenedor de la galería */
.galeria {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contenedor-fotos {
  position: relative;
  min-height: 250px; /* asegura espacio fijo */
}

/* Testimonios con fade */
.contenedor-fotos .testimonio {
  opacity: 0;
  transition: opacity 0.5s ease;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  max-width: 600px;
  margin: 0 auto;
}

.contenedor-fotos .testimonio.activo {
  opacity: 1;
  position: relative;
}

/* Imagen del cliente */
#testimonios img {
  max-width: 120px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #004080; /* azul Yamaha */
  transition: transform 0.4s ease;
}

.contenedor-fotos .testimonio.activo img {
  transform: scale(1.05); /* pequeño zoom al aparecer */
}

/* Texto */
#testimonios blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: #222;
  margin: 15px auto;
  line-height: 1.4;
  max-width: 500px;
}

#testimonios p {
  font-weight: bold;
  color: #555;
}

/* Botones de navegación */
.galeria .prev,
.galeria .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #004080;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  width: 40px;
  height: 40px;
  line-height: 40px;
}

.galeria .prev { left: -20px; }
.galeria .next { right: -20px; }

.galeria .prev:hover,
.galeria .next:hover {
  background: #0066cc;
}