.testimonios {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 20px;
  text-align: center;
  position: relative;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

.card {
  flex: 0 0 100%; /* Cada card ocupa todo el ancho */
  background: linear-gradient(135deg, #1a1a1a, #292929);
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  color: #ddd;
}

.card p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #eee;
  margin-bottom: 25px;
  font-style: italic;
}

.usuario {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.usuario img {
  width: 65px;
  height: 65px;
  padding: 10px;
  border-radius: 50%;
  border: 3px solid #ff4fa3;
}

.usuario h4 {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
}

.usuario span {
  font-size: 0.95rem;
  color: #aaa;
}


/* Botones */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  transition: background 0.3s;
}

.prev:hover, .next:hover {
  background: #ff4fa3;
}

.prev { left: 15px; }
.next { right: 15px; }

/* Indicadores */
.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #666;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #ff4fa3;
}

.formulario-testimonio {
  margin-top: 40px;
  background: #222;
  padding: 25px;
  border-radius: 15px;
  color: #fff;
}

.formulario-testimonio h3 {
  margin-bottom: 15px;
}

.formulario-testimonio textarea,
.formulario-testimonio input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 10px;
  border: none;
  background: #333;
  color: #eee;
}

.formulario-testimonio button {
  background: #ff4fa3;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}

.formulario-testimonio button:hover {
  background: #ff328e;
}

/* Botón que abre el modal */
.abrir-modal-btn {
  margin-top: 25px;
  background: #ff4fa3;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}

.abrir-modal-btn:hover {
  background: #ff328e;
}

/* Modal */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

/* Contenido del modal */
.modal-contenido {
  background-color: #222;
  margin: 10% auto;
  padding: 30px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 15px;
  color: #fff;
  position: relative;
}

/* Botón de cerrar */
.cerrar-modal {
  color: #fff;
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
}
