* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #ffffff, #e9ecef);
  color: #333;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
header {
  background: #43a047;
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
}
header img { height: 50px; }
nav a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
  transition: color 0.3s;
}
nav a:hover, nav a.active { color: #c8e6c9; }

section {
  padding: 100px 20px;
  text-align: center;
}
h1, h2 { color: #2e7d32; margin-bottom: 10px; }
p { max-width: 700px; margin: 0 auto 20px; line-height: 1.6; }

.btn {
  background: #43a047;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
}
.btn:hover { background: #2e7d32; }

#inicio {
  background: url('Imagenes/Logo.jpeg') center/cover no-repeat fixed;
  height: 100vh;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}
#inicio .overlay {
  background: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 12px;
}


.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.clases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}
.clase {
  position: relative;
  background: white;
  border: 2px solid #43a047;
  border-radius: 12px;
  padding: 30px 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.clase:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.clase::after {
  content: attr(data-info);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(67,160,71,0.95);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  padding: 10px;
}
.clase:hover::after { opacity: 1; }

.entrenadores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}
.entrenador {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 10px;
  text-align: center;
  transition: transform 0.3s;
}
.entrenador:hover { transform: scale(1.05); }
.entrenador img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}
.entrenador h3 { margin-top: 10px; color: #2e7d32; }
.entrenador p { color: #555; font-size: 14px; }

.carrusel-3d {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  height: 400px;
  overflow: hidden;
}
.carrusel-3d .slide {
  position: absolute;
  transition: transform 1s, opacity 1s;
}
.carrusel-3d img {
  width: 500px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

footer {
  background: #43a047;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  font-size: 24px;
  border-radius: 50%;
  padding: 12px 16px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 9999;
}
@media (max-width: 768px) {
  header { flex-direction: column; }
  nav { display: flex; flex-wrap: wrap; justify-content: center; }
  nav a { margin: 5px; }
  .carrusel-3d img { width: 90%; height: 200px; }
}
