/* Importamos Montserrat desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&display=swap');

:root {
  --color-principal: #d70b08; /* Rojo fuerte */
  --color-fondo: #1E2A39; /* Negro profundo */
  --color-fondo2: #07090d; /* Negro profundo */
  --color-texto: #ffffff; /* Blanco puro */
  --color-secundario: #F4F4F4; /* Gris azulado */
  --color-acento: #172e48; /* Azul oscuro */
  --radius: 12px;
}

/* Reset y fuente */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
}

body {
  background: url('imagenes/black-white-photo-muscular-build-man-using-sports-chalk-while-before-lifting-barbell-weight-training-gym.jpg') center/cover no-repeat fixed;
  color: var(--color-texto);
  line-height: 1.6;
}

/* ================= HEADER ================= */
header {
  background: linear-gradient(90deg, var(--color-fondo2), #07090d);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ================= LOGO ================= */
.logo img {
  height: 90px;
  width: auto;
  transition: transform 0.3s ease;
}

/* ================= NAV ================= */
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

nav a {
  color: var(--color-texto);
  text-decoration: none;
  font-weight: 600;
}

/* ================= BOTÓN HAMBURGUESA ================= */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-texto);
  cursor: pointer;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  header {
    flex-direction: row;          /* 🔥 logo izq, botón der */
    justify-content: space-between;
    padding: 0.8rem 1rem;
  }

  .logo img {
    height: 55px;
  }

  .menu-toggle {
    display: block;               /* 👈 ahora SÍ se ve */
  }

  nav {
    position: absolute;
    top: 100%;                    /* debajo del header */
    left: 0;
    width: 100%;
    background: #07090d;
    display: none;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }

  nav.active {
    display: block;
  }
}

/* SECCIONES */
section {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 2rem;
}

h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-principal);
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 800;
}

p {
  text-align: center;
  color: var(--color-secundario);
  font-weight: 400;
}

/* HISTORIA */
/* VIDEO SUPERIOR */
.historia-video {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto 2rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.historia-video video {
  width: 100%;
  height: auto;
  display: block;
}
.historia p{
  font-size: 1.3em;
}

/* AJUSTE SECCIÓN */
#historia {
  padding-top: 3rem;
}

/* GRID */
.tipos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
}
#tipos {
  width: 100%;
  max-width: 1400px; /* ajustable */
  margin: 0 auto;
  padding: 2rem;
}

/* TARJETA BASE */
.tipo {
  perspective: 1000px;
}

/* FLIP */
.flip-card {
  position: relative;
  width: 90%;
  min-height: 300px;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

/* ROTACIÓN */
.tipo:hover .flip-card {
  transform: rotateY(180deg);
}

/* CARAS */
.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  padding: 1rem;
  border-radius: var(--radius);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-acento);
}

/* FRENTE */
.flip-front {
  background: rgba(255, 255, 255, 0.05);
}

.flip-front img {
  width: 90%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  border: 2px solid var(--color-principal);
}

/* DORSO */
.flip-back {
  background: linear-gradient(160deg, rgba(0,0,0,0.85), rgba(0,0,0,0.65));
  color: #fff;
  transform: rotateY(180deg);
  text-align: center;
}

/* TEXTO */
.tipo h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.flip-back p {
  font-size: 0.95rem;
  line-height: 1.4;
}
.btn-ver-mas {
  margin-top: 1rem;
  padding: 0.6rem 1.6rem;
  background: var(--color-principal);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-ver-mas:hover {
  background: #ff1c1c;
  transform: scale(1.05);
}
@media (max-width: 1024px) {
  .tipos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tipos {
    grid-template-columns: 1fr;
  }
}


/* ENTRENAMIENTOS */
.entrenamientos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.entrenamiento {
  background: linear-gradient(160deg, #111, var(--color-acento));
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.entrenamiento img {
  width: auto;
  border-radius: var(--radius);
  height: 180px;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid var(--color-principal);
}

/* BOTONES */
.btn {
  background: var(--color-principal);
  color: #fff;
  border: none;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}

.btn:hover {
  background: #ff5145;
  box-shadow: 0 0 8px var(--color-principal);
}

/* FOOTER */
footer {
  background: var(--color-acento);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
  color: var(--color-texto);
  border-top: 2px solid var(--color-principal);
}

.redes {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.redes a {
  color: var(--color-principal);
  font-size: 1.5rem;
  transition: 0.3s;
}

.redes a:hover {
  color: #fff;
}


/* Ventana contenedora */
.ventana-tipos {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, var(--color-fondo), var(--color-fondo2));
  border-radius: var(--radius);
  max-width: 1300px;
  margin: auto;
}

#tipos h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 3rem;
  color: var(--color-principal);
  letter-spacing: 2px;
}

/* Grid */
.tipos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* Botón */
.btn-rutina {
  margin-top: 1.2rem;
  padding: 0.7rem 1.5rem;
  background: var(--color-principal);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-rutina:hover {
  background: #ff1e1a;
  transform: scale(1.05);
}

/* Ajuste back para centrar contenido */
.flip-back {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.modal {
  display: none;
  position: fixed;
  top:0; left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal-contenido {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}
.cerrar-modal {
  position: absolute;
  top:10px;
  right:15px;
  font-size: 1.5rem;
  cursor: pointer;
}
/* Precio */
.precio {
  margin: 1.5rem 0;
  font-size: 1.6rem;
}

/* Botones */
.btn-rutina,
.btn-comprar {
  margin-top: 1rem;
  padding: 0.8rem 1.8rem;
  background: var(--color-principal);
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
}

.btn-rutina:hover,
.btn-comprar:hover {
  transform: scale(1.05);
}


/* ===================== */
/* RUTINAS */
/* ===================== */

.rutinas {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 2rem;
}

.rutinas h2 {
  color: var(--color-principal);
  font-size: 2.2rem;
  margin: 4rem 0 2rem;
  text-align: center;
  letter-spacing: 2px;
}

.rutina {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  background: rgba(0, 0, 0, 0.65);
  border-radius: var(--radius);
  overflow: hidden;
}

.rutina.invertida {
  flex-direction: row-reverse;
}

.rutina-texto {
  flex: 1;
  padding: 2rem;
}

.rutina-texto h3 {
  color: var(--color-principal);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.rutina-texto p {
  color: var(--color-secundario);
  font-size: 1rem;
  line-height: 1.6;
}

.rutina-img {
  flex: 1;
}

.rutina-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .rutina,
  .rutina.invertida {
    flex-direction: column;
  }
}
/* ===============================
   CONTENEDOR PRINCIPAL
================================ */
.contacto-wsp {
  max-width: 650px;
  margin: 4rem auto;
  padding: 2rem;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.contacto-wsp h2 {
  text-align: center;
  color: var(--color-principal);
  margin-bottom: 0.5rem;
}

.contacto-wsp p {
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 1.2rem;
}

.contacto-wsp h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1rem;
  color: #fff;
}

/* ===============================
   INPUTS TEXTO
================================ */
.contacto-wsp input,
.contacto-wsp textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
  border-radius: 12px;
  border: none;
  font-size: 0.85rem;
}

.contacto-wsp textarea {
  resize: none;
  min-height: 90px;
}

/* ===============================
   BLOQUE GENERAL
================================ */
.bloque {
  margin-bottom: 1.5rem;
}

/* ===============================
   CONTENEDOR DE OPCIONES
================================ */
.opciones {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* ===============================
   OPCIÓN INDIVIDUAL
================================ */
.opciones label {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;

  width: 100%;
  min-height: 54px;
  padding: 0.7rem 1rem;

  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);

  font-size: 0.9rem;
  color: #fff;
  cursor: pointer;

  transition: all 0.25s ease;
}

/* ===============================
   INPUT IZQUIERDA
================================ */
.opciones input[type="radio"],
.opciones input[type="checkbox"] {
  margin: 0;
  justify-self: start;
  accent-color: var(--color-principal);
}

/* ===============================
   TEXTO
================================ */
.opciones label span {
  line-height: 1.3;
}

/* ===============================
   HOVER
================================ */
.opciones label:hover {
  background: rgba(255,255,255,0.15);
  transform: translateX(3px);
}

/* ===============================
   SELECCIONADO
================================ */
.opciones label:has(input:checked) {
  background: rgba(255, 0, 0, 0.18);
  border-color: var(--color-principal);
}

/* ===============================
   BOTÓN
================================ */
.contacto-wsp button {
  width: 100%;
  padding: 0.9rem;
  margin-top: 1rem;
  background: var(--color-principal);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contacto-wsp button:hover {
  background: #ff1c1c;
  transform: scale(1.05);
}

/* TUTORIAL */
/* VIDEO SUPERIOR */
.tutorial-video {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto 2rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.tutorial-video video {
  width: 100%;
  height: auto;
  display: block;
}
.tutorial p{
  font-size: 1.3em;
}