/* Reseteo básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  color: #ffffff;
  background-color: #0b132b;
  /* overflow-x: hidden; */
}

/* Regla global responsiva para imágenes */
img {
  max-width: 100%;
  height: auto;
}

/* Variables de color según la captura */
:root {
  --primary-yellow: #facc15; /* Amarillo brillante del botón */
  --primary-green-hover: #63b922;
  --cyan-accent: #00d2d3; /* Cian de la marca */
  --bg-overlay: linear-gradient(
    130deg,
    rgba(20, 50, 135, 0.7) 0%,
    rgba(10, 110, 150, 0.6) 100%
  );
}

.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Ruta de la imagen de fondo */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 50px;

  /* Crea una máscara de recortes que mantiene la imagen contenida dentro de la sección */
  clip-path: inset(0 0 0 0);
}

/* Capa fija de la imagen de fondo */
.hero::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-overlay), url("assets/heroe1.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
  will-change: transform;
}

/* ---------------- HEADER & NAV ---------------- */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-block;
  position: relative;
  z-index: 10; /* Mantiene el logo por encima de otros elementos */
}

.logo-img {
  height: 140px; /* Tamaño grande para destacar la figura del logo */
  width: auto;
  display: block;
  margin-bottom: -65px; /* Cancela la altura sobrante para que no empuje la barra */
  filter: drop-shadow(
    0 5px 10px rgba(0, 0, 0, 0.5)
  ); /* Sombra para separarlo del fondo */
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05); /* Sutil animación al pasar el cursor */
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 22px;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--cyan-accent);
}

/* Botón Hamburguesa (Móvil) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  width: 26px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---------------- HERO SECTION ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* Imagen de fondo en CSS con el overlay gradiente azul/cian */
  background:
    var(--bg-overlay),
    url("assets/heroe1.webp") no-repeat center center/cover;
  padding-top: 100px;
  padding-bottom: 50px;
}

.hero-content {
  max-width: 600px;
}

/* Tagline superior */
.hero-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.accent-bar {
  width: 35px;
  height: 4px;
  background-color: var(--primary-yellow);
  border-radius: 2px;
}

.tagline-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.text-white {
  color: #ffffff;
}

.text-cyan {
  color: var(--cyan-accent);
}

/* Título Principal */
.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  margin-bottom: 25px;
}

.title-main {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.title-sub {
  font-size: 4rem;
  font-weight: 300; /* Peso liviano para contrastar */
}

/* Línea divisora */
.hero-divider {
  width: 100%;
  max-width: 480px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.35);
  margin-bottom: 25px;
}

/* Subtítulo */
.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 35px;
  max-width: 520px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Botón con bordes redondeados */
.btn-primary {
  display: inline-block;
  background-color: var(--primary-yellow);
  color: #000000;
  padding: 14px 38px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid #ffffff;
  border-radius: 25px; /* Bordes redondeados suaves y modernos */
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(118, 210, 45, 0.3);
}

.btn-primary:hover {
  background-color: var(--cyan-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(118, 210, 45, 0.45);
}

/* ---------------- SECCIÓN SOBRE MÍ / QUIEN SOY ---------------- */
.about {
  position: relative;
  z-index: 10;
  padding: 100px 0;

  /* Imagen de fondo con overlay oscuro */
  background-image:
    linear-gradient(rgba(9, 19, 40, 0.88), rgba(7, 80, 238, 0.88)),
    url("assets/fondo-quien-soy.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columnas de igual ancho */
  gap: 50px;
  align-items: center;
}

/* Contenedor de la imagen */
.about-image-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.about-img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-img {
  transform: scale(1.03); /* Efecto de zoom suave al pasar el ratón */
}

/* Textos de la sección */
.about-content {
  color: #ffffff;
}

.about-title {
  font-size: 3.8rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 12px;
}

.about-divider {
  width: 55px;
  height: 3px;
  background-color: var(--primary-yellow);
  margin-bottom: 25px;
}

.about-subtitle {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #d1d5db;
  font-weight: 300;
}

/* ---------------- SECCIÓN ENTRENAMIENTOS ---------------- */
.workouts {
  position: relative;
  padding: 120px 0 100px;
  clip-path: inset(0 0 0 0); /* Vuelve a abrir la ventana fija de parallax */
}

/* Reutilización de la capa fija con el fondo original */
.workouts::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-overlay), url("assets/heroe3.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
  will-change: transform;
}

/* Título principal de Entrenamientos */
.workouts-main-title {
  font-size: 3.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 50px;
  line-height: 1;
}

/* Rejilla de 2 columnas */
.workouts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 45px 60px;
}

.workout-item {
  display: flex;
  flex-direction: column;
}

.workout-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.workout-schedule {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-yellow);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.workout-description {
  font-size: 1rem;
  line-height: 1.65;
  color: #e2e8f0;
  font-weight: 300;
}

/* ---------------- SECCIÓN PLANES Y COSTOS ---------------- */
.pricing {
  background-color: #091328;
  /* Simula la textura punteada fina del fondo */
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.08) 1.2px,
    transparent 0
  );
  background-size: 20px 20px;
  padding: 100px 0;
  position: relative;
  z-index: 10;
  color: #ffffff;
}

.pricing-main-title {
  font-size: 3.8rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1;
}

.pricing-title-divider {
  width: 50px;
  height: 3px;
  background-color: #ffffff;
  margin: 0 auto 60px;
}

/* Marco exterior punteado */
.pricing-wrapper {
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr; /* Columna central ligeramente más ancha */
  align-items: stretch;
}

.pricing-card {
  padding: 50px 35px;
  display: flex;
  flex-direction: column;
}

/* Tarjeta destacada verde (PLAN PREMIUM) */
/* Insignia "MÁS POPULAR" */
.popular-badge {
  align-self: flex-start;
  background-color: #facc15; /* Amarillo de alta visibilidad */
  color: #091328;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Tarjeta destacada central */
.pricing-card.featured {
  background: linear-gradient(145deg, #76d22d 0%, #5cb81f 100%);
  color: #091328; /* Texto azul oscuro para legibilidad 100% clara sobre verde */
  padding: 60px 35px;
  margin: -25px 0; /* Eleva la tarjeta sobre el marco */
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(118, 210, 45, 0.35); /* Resplandor (glow) verde alrededor */
  position: relative;
  z-index: 2;
}

.pricing-card.featured .pricing-card-divider {
  background-color: rgba(9, 19, 40, 0.35);
}

.pricing-price {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}

.pricing-plan-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.pricing-card-divider {
  width: 40px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.5);
  margin-bottom: 30px;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-list li {
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 400;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-icon {
  font-size: 0.9rem;
  font-weight: 900;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Banner aclaratorio inferior */
.pricing-info-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  margin-top: 50px;
}

.info-icon {
  margin-bottom: -6px;
  fill: #ffffff;
}

.pricing-info-banner p {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  max-width: 900px;
  line-height: 1.4;
}

/* Responsivo para celulares y tablets */
@media (max-width: 992px) {
  .about {
    padding: 60px 0;
  }

  .about-container {
    grid-template-columns: 1fr; /* Se pasa a 1 sola columna */
    gap: 35px;
  }

  .about-title {
    font-size: 2.8rem;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background-color: rgba(11, 19, 43, 0.98);
    backdrop-filter: blur(10px);
    padding: 90px 30px;
    transition: right 0.3s ease;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 20px;
  }

  .mobile-menu-btn {
    display: flex;
    z-index: 101;
  }

  .title-main,
  .title-sub {
    font-size: 3rem;
  }
  .about {
    padding: 60px 0;
  }

  .about-container {
    grid-template-columns: 1fr; /* Se pasa a 1 sola columna */
    gap: 35px;
  }

  .about-title {
    font-size: 2.8rem;
  }

  .workouts {
    padding: 80px 0 60px;
  }

  .workouts-main-title {
    font-size: 2.8rem;
    margin-bottom: 35px;
  }

  .workouts-grid {
    grid-template-columns: 1fr; /* Pasa a 1 columna en pantallas pequeñas */
    gap: 35px;
  }

  .workout-title {
    font-size: 1.4rem;
  }
  .pricing-wrapper {
    border: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pricing-card {
    padding: 40px 25px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 4px;
  }

  .pricing-card.featured {
    margin: 0;
  }

  .pricing-main-title {
    font-size: 2.8rem;
  }

  .pricing-info-banner p {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .title-main,
  .title-sub {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .tagline-text {
    font-size: 1.2rem;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }
  .logo-img {
    height: 70px; /* Tamaño grande para destacar la figura del logo */
    width: auto;
    display: block;
    margin-bottom: -65px; /* Cancela la altura sobrante para que no empuje la barra */
    filter: drop-shadow(
      0 5px 10px rgba(0, 0, 0, 0.5)
    ); /* Sombra para separarlo del fondo */
    transition: transform 0.3s ease;
  }
}
