/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #f5f5f5;
  color: #333;
}

/* Contenedor principal */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 0;
}

/* Hero */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
              url('gimnasio_portada.jpg') center/cover no-repeat;
  color: white;
  padding: 6rem 0;
  text-align: center;
}


.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: auto;
  margin-bottom: 2rem;
}

/* Botón principal de llamada a acción */
.cta-button {
  background-color: #e60023;
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  cursor: pointer;
}



.cta-button:hover {
  background-color: #c5001e;
}

/* Botón fijo para regresar al inicio */
#btn-regresar {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #e60023;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(230,0,35,0.5);
  transition: background-color 0.3s, transform 0.3s;
  z-index: 1000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

#btn-regresar:hover {
  background-color: #c5001e;
  transform: scale(1.1);
}

/* Section titles */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #e60023;
}

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}


.service-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #e60023;
}

.btn-container {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  margin-top: 1.5rem; /* Espacio arriba */
}

.info-button {
  background-color: #e60023;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.info-button:hover {
  background-color: #c5001e;
}

/* Entrenadores */
.trainers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.trainer-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  gap: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  align-items: flex-start;
}

.trainer-image {
  font-size: 3rem;
}

.trainer-info h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #e60023;
}

.trainer-specialty {
  font-weight: bold;
  margin: 0.2rem 0;
}

/* Membresías */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.plan-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.featured {
  border: 2px solid #e60023;
  background-color: #ffe6eb;
}

.plan-price {
  font-size: 2rem;
  margin: 1rem 0;
  color: #e60023;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin: 1rem 0;
  padding: 0;
}

.plan-features li {
  padding: 0.3rem 0;
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info h3,
.contact-form h3 {
  margin-bottom: 2rem;
  color: #e60023;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Footer */
footer {
  background-color: #222;
  color: white;
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: #e60023;
  margin-bottom: 1rem;
}

.social-links a {
  margin-right: 0.5rem;
  font-size: 1.5rem;
  text-decoration: none;
  color: white;
}

footer p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ccc;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .trainers-grid,
  .services-grid,
  .plans-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }
}
