* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: white;
  color: black;
}

/* Header */
.hero {
  background: linear-gradient(135deg, #1c1c1c, #555);
  color: white;
  text-align: center;
  padding: 100px 20px;
  animation: headerBrillo 5s ease-in-out infinite alternate;
}

@keyframes headerBrillo {
  0% { background: linear-gradient(135deg, #1c1c1c, #555); }
  50% { background: linear-gradient(135deg, #222, #777); }
  100% { background: linear-gradient(135deg, #1c1c1c, #555); }
}

.hero .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: white;
  color: black;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Secciones */
.servicios, .ejercicios, .precios, .galeria, .testimonios, .cta {
  padding: 60px 20px;
  text-align: center;
}

/* Cards de servicios, planes y testimonios */
.cards, .cards-testimonios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.card, .plan, .card-testimonio {
  border: 2px solid black;
  padding: 20px 25px;
  min-width: 150px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .plan:hover, .card-testimonio:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Ejercicios */
.ejercicios ul {
  list-style: none;
  margin-top: 20px;
}

.ejercicios li {
  margin: 10px 0;
}

/* Tabla de precios */
.tabla {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.plan {
  width: 180px;
  padding: 25px;
}

/* Galería de fotos */
.fotos {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.fotos img {
  width: 280px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid black;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.fotos img:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Slider manual de testimonios */
.slider-testimonios {
  display: flex;
  overflow-x: auto; /* permite deslizar horizontalmente */
  gap: 20px;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.slider-testimonios::-webkit-scrollbar {
  height: 8px;
}

.slider-testimonios::-webkit-scrollbar-thumb {
  background: black;
  border-radius: 4px;
}

.card-testimonio p {
  font-style: italic;
  margin-bottom: 15px;
}

.card-testimonio h4 {
  font-weight: bold;
  font-size: 0.9rem;
}

.estrellas {
  color: gold;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* CTA final */
.cta {
  background: black;
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.cta .btn {
  background: white;
  color: black;
}

/* WhatsApp fijo */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: black;
  color: white;
  padding: 15px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
}

/* Footer */
footer {
  background: black;
  color: white;
  text-align: center;
  padding: 15px;
}

/* Responsive */
@media (max-width: 600px) {
  .cards, .tabla, .cards-testimonios, .fotos {
    flex-direction: column;
    align-items: center;
  }
  .hero {
    padding: 70px 15px;
  }
}

.slider-testimonios {
  display: flex;
  overflow-x: auto; /* permite deslizar horizontalmente */
  gap: 20px;
  padding: 20px 10px;
  scroll-snap-type: x mandatory; /* para que cada card "encaje" al deslizar */
}

.slider-testimonios::-webkit-scrollbar {
  height: 8px;
}

.slider-testimonios::-webkit-scrollbar-thumb {
  background: black;
  border-radius: 4px;
}

/* Cada card encaja al deslizar */
.card-testimonio {
  flex: 0 0 300px; /* ancho fijo */
  scroll-snap-align: start; /* encaja al inicio al deslizar */
  background: white;
  border: 2px solid black;
  padding: 25px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-testimonio:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.card-testimonio p {
  font-style: italic;
  margin-bottom: 15px;
}

.card-testimonio h4 {
  font-weight: bold;
  font-size: 0.9rem;
}

.estrellas {
  color: gold;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Responsive: que ocupe casi toda la pantalla en móvil */
@media (max-width: 600px) {
  .slider-testimonios {
    padding: 20px 0;
  }
  .card-testimonio {
    flex: 0 0 80%; /* ocupa el 80% del ancho del celular */
  }
}