/*
  CSS - Página Nosotros CrossFit VNG 
*/

/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #111;
  background: #fff;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  border-radius: 1rem;
}

/* HERO */

.ns-hero {
  width: 100%;
  height: 100vh;
  background-image: url('../img/box.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ns-hero__overlay {
  position: absolute; /* Se coloca encima de la imagen */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.85)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.ns-hero__content {
  text-align: center;
  color: white;
  max-width: 800px;
}

.ns-hero__content h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-top: 5rem;
  margin-bottom: 1rem;
  position: relative;
}

.ns-hero__content h1::after {
  content: '';
  display: block;
  width: 300px;
  height: 4px;
  margin: 1rem auto 2rem;
  background: linear-gradient(to right, #9c0303, #6b6b6c);
  border-radius: 2px;
}

.ns-hero__sub {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: #f0f0f0;
}

/* BLOQUES DE CONTENIDO */
.ns-section {
  width: 100%;
  padding: 5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  background: #fff;
  border-bottom: 1px solid #e4e4e4;
}

.ns-bloque {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* .ns-bloque--reverse {
  flex-direction: column-reverse;
} */

.ns-bloque__img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

.ns-bloque__texto {
  text-align: left;
}

.ns-bloque__texto h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
}

.ns-bloque__texto h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #ff3c00, #000);
  margin-top: 0.5rem;
  border-radius: 10px;
}

.ns-bloque__texto p {
  font-size: 1.1rem;
  color: #444;
  margin-top: 0.8rem;
  max-width: 95%;
}

/* CTA FINAL */

.ns-cta {
  width: 100%;
  overflow-x: hidden;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem 3rem;
}

.ns-cta__box {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.ns-cta__box h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
  /* padding-bottom: 2rem; */
  position: relative;
  line-height: 1.3;
}

.ns-cta__box h2::after {
  content: '';
  display: block;
  width: clamp(120px, 25vw, 230px);
  height: 4px;
  margin: 2rem auto 2rem;
  background: linear-gradient(to right, #ab0101, #c0c0c0);
  border-radius: 2px;
}

.ns-cta__box p {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: #ccc;
  margin-bottom: 3rem;
  line-height: 1.6;
  padding-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: linear-gradient(to right, #ff0000, #7a0000);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  border: none;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  background: linear-gradient(to right, #7a0000, #ff0000);
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}

/* RESPONSIVE */

/* Estilos para pantallas medianas y grandes */
@media (min-width: 768px) {
  .ns-bloque {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .ns-bloque--reverse {
    flex-direction: row-reverse;
  }

  .ns-bloque__img,
  .ns-bloque__texto {
    flex: 1;
  }

  .ns-bloque__texto p {
    font-size: 1.05rem;
    margin-top: 0.5rem;
    max-width: 95%;
  }
}

/* Ajustes para pantallas grandes */
@media (min-width: 1200px) {
  .ns-section {
    padding: 6rem 0;
  }

  .ns-cta {
    padding: 7rem 0;
  }
}

/* Estilos móviles refinados (por defecto) */
.ns-section {
  padding: 4rem 1rem;
  gap: 3rem;
}

.ns-bloque {
  gap: 1.5rem;
}

.ns-bloque__texto h2 {
  margin-bottom: 0.8rem;
}

.ns-bloque__texto p {
  font-size: 1rem;
  margin-top: 0.5rem;
}

.ns-cta__box p {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .ns-hero__overlay {
    padding: 1.5rem;
  }

  .ns-hero__content h1 {
    margin-top: 3rem;
  }

  .ns-hero__sub {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .ns-hero {
    height: 90vh;
  }

  .ns-hero__content h1 {
    font-size: 2.2rem;
    margin-top: 2rem;
  }

  .ns-hero__content h1::after {
    width: 120px;
    margin: 0.8rem auto 1.5rem;
  }

  .ns-hero__sub {
    font-size: 0.95rem;
  }
}
