html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #0b0b0b;
  color: white;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: rgb(24, 24, 24);
  position: fixed;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

.logo {
  color: rgb(220, 0, 0);
  font-size: 28px;
  font-weight: 800;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 500;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("img/fondosg4k.jpg") center/cover;
}

.hero-content h1 {
  font-size: 150px;
  color: rgb(220, 0, 0);
  margin: 0;
}

.hero-content h2 {
  font-size: 45px;
  margin-top: 10px;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-red {
  background: red;
  border: none;
  padding: 15px 35px;
  color: white;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.btn-red:hover {
  transform: scale(1.05);
  background: #cc0000;
}

.btn-white {
  background: white;
  color: black;
  border: none;
  padding: 15px 35px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

section {
  padding: 10px 60px;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.beneficios-grid {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.card {
  background: #111;
  padding: 30px;
  border-radius: 10px;
  flex: 1;
  border: 1px solid #333;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  border-color: red;
}

.horarios {
  text-align: center;
  background: #111;
  border-radius: 10px;
  padding: 30px;
  margin: 0 60px;
}

.horarios p {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.planes {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.plan {
  background: #111;
  padding: 40px 30px;
  flex: 1;
  min-width: 250px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid #333;
  position: relative;
}

.plan.popular {
  border: 2px solid red;
}

.popular-label {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: red;
  color: white;
  padding: 5px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
}

.precios h2 {
  color: rgb(255, 255, 255);
  text-align: center;
  
}

.precio {
  color: red;
  font-size: 28px;
  font-weight: 600;
}

.caracteristicas {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
}

.caracteristicas li {
  margin: 10px 0;
  font-size: 0.95rem;
}

.otros-accesos {
  margin-top: 50px;
  text-align: center;
  background: #111;
  padding: 40px;
  border-radius: 10px;
}

.accesos-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.acceso-item {
  font-size: 1.2rem;
  font-weight: 600;
}

.acceso-item span {
  color: red;
  margin-left: 10px;
  font-size: 1.5rem;
}

.coaches {
  text-align: center;
}

.coaches-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.coach-card {
  position: relative;
  width: 350px;
  height: 450px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.coach-card:hover {
  transform: scale(1.03);
}

.coach-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.coach-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 20px;
  text-align: left;
}

.coach-info h3 {
  color: red;
  font-size: 1.8rem;
  margin: 0 0 5px;
}

.coach-info p {
  margin: 0;
  font-size: 1rem;
  color: #ddd;
}

.nota {
  color: #aaa;
  font-style: italic;
  margin-top: 20px;
}

.tienda .productos {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

.producto {
  background: #111;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #333;
  width: 180px;
  text-align: center;
  transition: transform 0.3s;
}

.producto:hover {
  transform: translateY(-5px);
  border-color: red;
}

.producto img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 5px;
}

.producto h4 {
  color: red;
  margin: 10px 0 5px;
  font-size: 1.1rem;
}

.producto p {
  margin: 0;
  font-size: 0.9rem;
  color: #ccc;
}

.ubicacion iframe {
  border-radius: 10px;
  margin-bottom: 30px;
}

.ubicacion-detalles {
  background: #111;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #333;
  max-width: 600px;
  margin: 0 auto;
}

.direccion h3 {
  color: red;
  margin-top: 0;
}

.rating {
  color: #ffb400;
  font-weight: 600;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.contacto-info {
  background: #111;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #333;
}

.links-rapidos {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.links-rapidos li {
  background: #222;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: 600;
  color: red;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contacto-form input,
.contacto-form textarea {
  padding: 15px;
  border: none;
  border-radius: 5px;
  background: #222;
  color: white;
  font-family: 'Poppins', sans-serif;
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
  color: #888;
}

.contacto-form button {
  padding: 15px;
  background: red;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
}

footer {
  background: black;
  padding: 60px 60px 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo h3 {
  color: red;
  margin-top: 0;
}
.social-icons a {
  background: #222;
  padding: 10px; /* Padding para darles espacio a los íconos */
  border-radius: 5px;
  margin-right: 10px;
  display: inline-flex; /* Centra la imagen perfectamente */
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s; /* Transición suave */
}
.social-icons a:hover {
  background: red; /* Se pinta de rojo Sandow al pasar el mouse */
  transform: translateY(-3px); /* Se levanta un poquito */
}

/* Controla que la imagen SVG no se desborde */
.social-icons a img {
  display: block;
  width: 24px;
  height: 24px;
}

.footer-copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #222;
  color: #888;
}

/* ===== BIBLIOTECA DE MOVIMIENTOS ===== */
/* --- NUEVO DISEÑO GRID PARA BIBLIOTECA DE MOVIMIENTOS --- */
.biblioteca {
  text-align: center;
  background: #000000;
}
/* Contenedor de los botones */
.musculos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
}

/* Estilo base de los botones */
.musculo-btn {
  background-color: #111;
  border: 2px solid #333;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 25px;
  border-radius: 8px; /* Bordes ligeramente redondeados */
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  /* Esta transición crea una animación súper suave con un ligero efecto de rebote */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Efecto al pasar el cursor (Hover) */
.musculo-btn:hover {
  border-color: red;
  background-color: #1a1a1a;
  transform: translateY(-4px); /* Se levanta un poco */
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3); /* Brillo rojo suave */
}

/* Efecto cuando el botón está seleccionado (Activo) */
.musculo-btn.active {
  background-color: red;
  border-color: red;
  color: white;
  transform: translateY(-4px) scale(1.05); /* Se levanta y crece un poquito */
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.6); /* Brillo rojo más intenso */
}
.musculo-detalle {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px; /* Un poco más redondo */
  padding: 30px;
  margin-top: 40px;
  text-align: left;
  max-width: 1100px; /* Un poco más ancho para acomodar el video al lado */
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5); /* Sombra para darle profundidad */
}

/* Contenedor principal de la grilla */
.detalle-grid-container {
  display: flex;
  flex-direction: column;
  gap: 25px; /* Espacio entre la fila de arriba y la de abajo */
}

/* --- FILA SUPERIOR (Info y Video) --- */
.grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Divide exactamente en 50% y 50% en PC */
  gap: 30px;
  align-items: start;
}

.musculo-titulo {
  color: red;
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.info-principal p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.subtitulo-lista {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.lista-ejercicios-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-ejercicios-grid li {
  margin: 10px 0;
  padding-left: 20px;
  position: relative;
  color: #ddd;
  font-size: 0.95rem;
}

.lista-ejercicios-grid li::before {
  content: "•";
  color: red;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* El Video a la derecha */
.video-grid-container {
  width: 100%;
  height: 300px; /* Altura fija para que cuadre con el texto */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  border: 1px solid #333;
}

.video-grid-container iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- FILA INFERIOR (Tips y Errores) --- */
.grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Divide 50% y 50% en PC */
  gap: 30px;
}

.tips-box, .errores-box {
  background: #1a1a1a; /* Fondo un poco más claro que la tarjeta base */
  padding: 20px;
  border-radius: 8px;
  border-top: 3px solid #333; /* Borde sutil arriba */
}

/* El título de "Tips" y "Errores" como en tu imagen */
.tips-box h4, .errores-box h4 {
  color: red;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.lista-tips {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-tips li {
  margin: 8px 0;
  padding-left: 15px;
  position: relative;
  color: #bbb;
  font-size: 0.85rem;
  line-height: 1.4;
}

.lista-tips li::before {
  content: "•";
  color: white; /* Punto blanco como en tu boceto */
  position: absolute;
  left: 0;
}

/* --- RESPONSIVIDAD PARA CELULARES --- */
/* Si la pantalla es pequeña, se apilan uno sobre otro */
@media (max-width: 992px) {
  .grid-top, .grid-bottom {
    grid-template-columns: 1fr; /* Se hace una sola columna */
    gap: 20px;
  }
  
  .video-grid-container {
    height: 250px;
    margin-top: 20px;
  }
}

/* ===== CALCULADORAS FITNESS (Diseño Dashboard) ===== */

.calculadoras {
  text-align: center;
  background: #0b0b0b;
}


/* Tarjeta principal (Fondo gris oscuro) */
.calculadora-card {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  max-width: 1200px; /* Expandido para pantallas grandes */
  margin: 0 auto;
}

/* El Grid que separa formulario de info/video */
.calc-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Mitad y mitad en PC */
  gap: 40px;
  align-items: start;
}

/* --- Panel Izquierdo: Formulario --- */
.calc-titulo {
  color: red;
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
}

.inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  color: #ccc;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px;
  background: #222;
  border: 1px solid #444;
  border-radius: 6px;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: red;
}

.input-group:not(.inputs-row .input-group) {
  margin-bottom: 20px;
}

/* Fila para poner el botón y el resultado lado a lado */
.acciones-row {
  display: flex;
  gap: 15px;
  align-items: stretch;
  margin-top: 25px;
}

.calculadora-card .btn-red {
  flex: 1; /* Ocupa la mitad del espacio */
  padding: 14px;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  background: red;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.calculadora-card .btn-red:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

.resultado {
  flex: 1.5; /* Ocupa un poco más de espacio que el botón */
  background: #1a1a1a;
  padding: 10px 15px;
  border-radius: 6px;
  border-left: 4px solid red;
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-align: center;
}

/* --- Panel Derecho: Información y Video --- */
.explicacion {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  border-top: 3px solid red;
  margin-bottom: 20px;
}

.explicacion h4 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  color: red;
}

.explicacion p {
  margin: 0;
  color: #bbb;
  font-size: 0.9rem;
  line-height: 1.6;
}

.calc-video-container {
  width: 100%;
  aspect-ratio: 16 / 9; /* Esto hace que el video mantenga siempre el formato de YouTube sin importar lo ancho que se haga */
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.calc-video-container iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Responsividad para Celulares --- */
@media (max-width: 992px) {
  .calc-grid-container {
    grid-template-columns: 1fr; /* Colapsa a una sola columna */
    gap: 30px;
  }
  
  .acciones-row {
    flex-direction: column; /* Apila el botón y el resultado */
  }
  
  .resultado {
    min-height: 50px;
  }
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  line-height: 60px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: background-color 0.3s;
}

.whatsapp-float:hover {
  background-color: #128C7E;
}

/* Testimonios */
.testimonios {
  text-align: center;
  background: #111;
}

.testimonios .intro {
  color: #aaa;
  margin-bottom: 40px;
}

.testimonios-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.testimonio-card {
  transition: transform 0.3s ease;
}

.testimonio-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 2px solid red;
}

.testimonio-card:hover {
  transform: translateY(-5px);
  border-color: red;
}

.testimonio-card p {
  font-style: italic;
  color: #ccc;
}

.testimonio-card h4 {
  margin-top: 15px;
  color: red;
}

.estrellas {
  color: #ffb400;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* Transformaciones */
.transformaciones {
  text-align: center;
  background: #0b0b0b;
}

.transformaciones-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.transformacion-card {
  background: #111;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #333;
  transition: transform 0.3s ease;
}

.transformacion-card:hover {
  transform: translateY(-10px);
  border-color: red;
}

.imagenes {
  display: flex;
  gap: 10px;
}

.imagenes img {
  width: 140px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.transformacion-card p {
  margin-top: 10px;
  color: red;
  font-weight: 600;
}

/* Ubicación */
.ubicacion {
  padding: 80px 60px;
  text-align: center;
}

.ubicacion h2 {
  margin-bottom: 40px;
}

.ubicacion-contenedor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.mapa-col iframe {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.info-col {
  background: #111;
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  border: 1px solid #333;
}

.info-col h3 {
  color: red;
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 10px;
}

.direccion-texto {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #ddd;
}

.rating {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffb400;
  margin-bottom: 20px;
}

.rating span {
  font-size: 0.9rem;
  color: #aaa;
  font-weight: normal;
}

.contacto-directo p {
  margin: 8px 0;
  color: #ccc;
}

.contacto-directo strong {
  color: red;
}

/* Botones de compra en tienda */
.producto .btn-comprar {
  background: red;
  border: none;
  padding: 8px 15px;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.3s, transform 0.2s;
  margin-top: 10px;
  width: 100%;
  text-align: center;
}

.producto .btn-comprar:hover {
  background: #cc0000;
  transform: scale(1.02);
}

/* Botones de pago MercadoPago */
.plan .btn-pago {
  background: #009ee3;
  border: none;
  padding: 12px 20px;
  color: white;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  width: 100%;
  margin-top: 15px;
  font-size: 0.9rem;
}

.plan .btn-pago:hover {
  background: #0073b7;
  transform: scale(1.02);
}

.nota-pago {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 10px;
  text-align: center;
}

.acceso-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-pago-acceso {
  background: #009ee3;
  border: none;
  padding: 6px 12px;
  color: white;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 0.8rem;
  width: 100px;
}

.btn-pago-acceso:hover {
  background: #0073b7;
}

html {
  scroll-padding-top: 80px;
}

/* Menú hamburguesa */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  margin-right: 20px;
}

/* Botón volver arriba */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99;
  transition: background 0.3s;
}

.back-to-top:hover {
  background: #cc0000;
}

/* ===== MEDIA QUERIES (RESPONSIVE) ===== */
@media (max-width: 768px) {
  
  .menu-toggle {
    display: block;
  }
  /* --- AJUSTES DEL HERO PARA CELULAR --- */
  .hero-content {
    margin-top: 40px; /* Empuja el texto hacia abajo para que la cinta de frases no lo tape */
  }

  .hero-content h1 {
    font-size: 60px; /* Reducido de 150px a 60px para que quepa en la pantalla */
    line-height: 1;
    margin-bottom: 10px;
  }

  .hero-content h2 {
    font-size: 24px; /* Reducido de 45px a 24px */
  }

  .hero-content p {
    font-size: 15px;
    padding: 0 20px; /* Agrega un pequeño margen lateral para que el texto no toque los bordes del teléfono */
  }
  header {
    justify-content: space-between;
    align-items: center;
    padding: 20px;
  }
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgb(24, 24, 24);
    position: absolute;
    top: 70px;
    left: 0;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  }
  nav.active {
    display: flex;
  }
  nav a {
    margin: 10px 20px;
    text-align: center;
  }
  .beneficios-grid,
  .planes,
  .coaches-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  section {
    padding: 40px 20px;
  }
  .horarios {
    margin: 0 20px;
  }
  /* Coaches cards en móvil: ajuste para que no se recorten las imágenes */
  .coach-card {
    width: 100%;
    height: auto;
  }
  .coach-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  /* Resto de estilos móviles */
  .detalle-contenido {
    grid-template-columns: 1fr;
  }
  .video-container {
    grid-column: span 1;
  }
  .video-container iframe {
    height: 250px;
  }
  .musculo-btn {
    font-size: 1.2rem;
    padding: 15px 25px;
    min-width: 140px;
  }
  .calculadoras-grid {
    grid-template-columns: 1fr;
  }
  .ubicacion-contenedor {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ubicacion {
    padding: 60px 20px;
  }
  .mapa-col iframe {
    height: 220px;
  }
  .info-col {
    padding: 20px;
  }
  .back-to-top {
    bottom: 90px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  /* Calculadoras: botones del menú */
  .calculadora-btn {
    font-size: 1rem;
    padding: 12px 20px;
    min-width: 120px;
  }

  
}

/* ===== CALCULADORAS CON MENÚ (estilo general, no solo móvil) ===== */
.calculadoras-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}

.calculadora-btn {
  background: #111;
  border: 2px solid #333;
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.calculadora-btn:hover {
  border-color: red;
  transform: translateY(-5px);
  background: #1a1a1a;
}

.calculadora-btn.active {
  border-color: red;
  background: red;
  color: black;
}

.calculadora-contenedor {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== TIENDA: ESTILOS MÓVIL (horizontal) ===== */
@media (max-width: 768px) {
  .producto {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    width: 100%;
    background: #111;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    text-align: left;
    border: 1px solid #333;
  }

  .producto img {
    width: 100%;
    height: auto;
    object-fit: contain;
    grid-row: span 4;
    border-radius: 8px;
  }

  .producto h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    grid-column: 2;
  }

  .producto .descripcion {
    display: none;
  }

  .producto .precios,
  .producto .info-adicional {
    display: block;
    grid-column: 2;
  }

  .precios {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
  }

  .precio-original {
    font-size: 0.9rem;
    color: #aaa;
    text-decoration: line-through;
  }

  .precio-descuento {
    background: #e67e22;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
  }

  .precio-producto {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffb400;
    margin: 0;
  }

  .info-adicional {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0;
  }

  .envio-gratis {
    font-size: 0.7rem;
    color: #4caf50;
    font-weight: 600;
    white-space: normal;
  }

  .badge {
    background: #839aa7;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
  }

  .producto .btn-comprar {
    grid-column: 2;
    margin-top: 8px;
    background: #009ee3;
    border: none;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    width: 100%;
  }

  .producto .btn-comprar:hover {
    background: #0073b7;
  }
}

/* ===== TIENDA: ESTILOS ESCRITORIO (vertical con precios, badges y botón azul) ===== */
@media (min-width: 992px) {
  .biblioteca .musculo-detalle,
  .calculadora-contenedor,
  .tienda .productos {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

.calculadora-card {
    max-width: 100%; /* Deja que abarque todo el contenedor de 1200px */
    padding: 40px; /* Le da más espacio interior (aire) para que luzca premium */
  }

  .detalle-columna {
    max-width: 800px;
    margin: 0 auto;
  }

  .video-container iframe {
    max-width: 800px;
    margin: 0 auto;
    display: block;
  }

  .video-container {
    grid-column: unset;
    margin: 20px 0 30px;
  }

  .tienda .productos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }

  .producto .precios,
  .producto .info-adicional {
    display: block;
  }

  .producto {
    width: 240px;
    padding: 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: space-between;
  }

  .producto img {
    height: 200px;
    margin-bottom: 8px;
  }

  .producto h4 {
    margin: 0;
    font-size: 1.2rem;
  }

  .producto .descripcion {
    display: block;
    font-size: 0.9rem;
    color: #ccc;
    margin: 4px 0;
  }

  .precios {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 6px 0;
  }

  .precio-original {
    font-size: 0.9rem;
    color: #aaa;
    text-decoration: line-through;
  }

  .precio-descuento {
    background: #e67e22;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
  }

  .precio-producto {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffb400;
    margin: 0;
    width: 100%;
  }

  .info-adicional {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0;
  }

  .envio-gratis {
    font-size: 0.8rem;
    color: #4caf50;
    font-weight: 600;
  }

  .badge {
    background: #839aa7;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
  }

  .producto .btn-comprar {
    background: #009ee3;
    border: none;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    width: 100%;
    margin-top: auto;
  }

  .producto .btn-comprar:hover {
    background: #0073b7;
  }

  .musculo-detalle {
    padding: 40px;
  }

  .detalle-header h3 {
    text-align: center;
  }

  .musculo-btn {
    font-size: 1.4rem;
    padding: 18px 35px;
  }
}

/* Estilos para la explicación dentro de las calculadoras */
.explicacion {
  margin-top: 20px;
  padding: 12px;
  background: #1a1a1a;
  border-radius: 8px;
  border-left: 4px solid red;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ddd;
}

.explicacion h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: red;
  display: flex;
  align-items: center;
  gap: 6px;
}

.explicacion p {
  margin: 0;
}

/* Centrado y ancho controlado para las secciones de precios */
.planes,
.otros-accesos {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Oscurecimiento del fondo hero */
.hero {
  position: relative;
  background: url("img/fondosg4k.jpg") center/cover;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55); /* Ajusta la opacidad aquí (0 = transparente, 1 = negro total) */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* ===== INSTALACIONES (CARRUSEL 3D) ===== */
.instalaciones {
  text-align: center;
  background: #0b0b0b;
  overflow: hidden; /* Evita que el efecto 3D cree scroll horizontal en celulares */
}

.instalaciones .intro {
  color: #aaa;
  margin-bottom: 40px;
}

.swiper {
  width: 100%;
  padding-top: 40px;
  padding-bottom: 60px;
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  height: 380px; /* Solo dictamos la altura para celulares */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  border: 2px solid #333;
  transition: border-color 0.3s;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que la foto llene la tarjeta sin deformarse */
}

/* Resalta la foto que está al frente con el borde rojo */
.swiper-slide-active {
  border-color: red;
}

/* Personalización de las flechas y puntitos para Sandow Gym */
.swiper-button-next,
.swiper-button-prev {
  color: red !important;
}

.swiper-pagination-bullet {
  background: #fff !important;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: red !important;
  opacity: 1;
}

/* Ajusta el tamaño de la tarjeta para PC y Tablets */
@media (min-width: 768px) {
  .swiper-slide {
    height: 450px;
  }
}
.links-rapidos a:hover {
  text-decoration: underline;
  color: red;
}

/* --- ESTILOS DE LA MARQUESINA HORIZONTAL DE FRASES --- */

.contenedor-gym-frases {
  background-color: rgba(11, 11, 11, 0.7); /* Ligeramente transparente para que se luzca la foto del fondo */
  width: 100%; /* Ocupa todo el ancho de la pantalla */
  padding: 10px 0;
  border-top: 2px solid red; /* Líneas rojas estilo Sandow */
  border-bottom: 0px solid red;
  
  /* --- LA MAGIA PARA QUE NO SE ESCONDA --- */
  position: absolute; 
  top: 72px; /* Esta es la altura aproximada de tu header. Si ves que se encima un poco o queda hueco, cambia este número a 75px o 70px */
  left: 0;
  z-index: 998; /* Justo debajo de tu menú que tiene z-index: 1000 */
  
  display: flex;
  align-items: center;
}

/* Ocultamos el título porque en este diseño horizontal no lo necesitamos */
.titulo-frases {
  display: none; 
}

/* El contenedor que oculta el texto que sale de la pantalla */
.marquesina-frases {
  width: 100%;
  overflow: hidden;
  white-space: nowrap; /* Obliga a que todo el texto esté en una sola línea */
  display: flex;
}

/* La pista larga que contiene todas las frases alineadas horizontalmente */
.pista-frases {
  display: inline-flex;
  align-items: center;
  /* 60s es la velocidad, ajústalo si lo quieres más rápido o lento */
  animation: scroll-horizontal-frases 80s linear infinite; 
}

/* Pausar al pasar el mouse */
.pista-frases:hover {
  animation-play-state: paused;
}

/* El estilo de cada frase */
.frase-item {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
  margin: 0;
  padding: 0 40px; /* Separación entre cada frase */
  position: relative;
}

/* Agregamos un pequeño punto rojo de separación entre cada frase usando CSS */


/* --- LA ANIMACIÓN CLAVE (AHORA EN HORIZONTAL) --- */
@keyframes scroll-horizontal-frases {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Se mueve el 50% porque tienes las frases duplicadas en el HTML */
    transform: translateX(-50%);
  }
}

/* SOLUCIÓN PARA IPHONE - CARRUSEL 3D */
.swiper-slide {
  /* Obliga a Safari a usar la tarjeta gráfica para el 3D */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  
  /* Soluciona el problema del border-radius que a veces corta la imagen en iOS */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

/* Asegura que la imagen llene la tarjeta sin deformarse */
.swiper-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}