/* ========================================================= */
/* INDEX - CrossFit VNG | Diseño modular de nivel élite      */
/* ========================================================= */

/* Hero principal */
.ix2 {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* margin-top: 2.2rem; */
}

.ix2-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  filter: brightness(0.4);
  z-index: 1;
}

.ix2-overlay {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 0 1rem;
  width: 100%;
}

.ix2-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 1rem;
}

.ix2 h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.5px;
  color: #fffefe;
}

.ix2 h1::after {
  content: '';
  width: 160px;
  height: 4px;
  background: linear-gradient(to right, #ff4c4c, #707070);
  display: block;
  margin: 2rem auto 2rem;
  border-radius: 2px;
}

.ix2-sub {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  color: #fff;
}

.ix2-cta {
  margin-top: 2.5rem;
  z-index: 2;
}

/* Filosofía */
.ix3 {
  background-color: #fff;
  color: #111;
  padding: 3rem 2rem;
}

.ix3-inner {
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
  padding-inline: 1rem;
}

.ix3 h2 {
  font-size: 2.3rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #cd212a, #000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.ix3 h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #cd212a, #000);
  display: block;
  margin: 2rem auto 0;
  border-radius: 2px;
}

.ix3 p {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.75;
  text-align: center;
  color: #333;
}

/* Diferenciales */
.ix4 {
  background: #f4f4f4;
  padding: 3rem 2rem;
}

.ix4-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.ix4 h2 {
  font-size: 2.25rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  background: linear-gradient(to right, #cd212a, #000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 3rem;
}

.ix4 h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #cd212a, #000);
  display: block;
  margin: 2rem auto 0;
  border-radius: 2px;
}

.ix4-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ix4-list li {
  background: #fff;
  padding: 1.75rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.ix4-list li:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.icon-wrap {
  font-size: 2.25rem;
  color: #cd212a;
  margin-bottom: 1rem;
}

/* Clases */

.ix5 {
  padding: 60px 20px;
  background-color: #f7f8fa;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  text-align: center;
}

.ix5 h2 {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  color: #111;
  margin: 0 auto 40px;
  display: inline-block;
}

.ix5 h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #cd212a, #000);
  display: block;
  margin: 2rem auto 0;
  border-radius: 2px;
}

.ix5 h2::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -15px;
  right: -15px;
  bottom: -10px;
  background: linear-gradient(45deg, #b2bec3, #74b9ff);
  z-index: -1;
  animation: moverCuadrado 6s infinite alternate;
  border-radius: 12px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

@keyframes moverCuadrado {
  from {
    transform: translate(-15px, -10px);
  }
  to {
    transform: translate(15px, 10px);
  }
}

.ix5-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 50px;
}

.ix5-card {
  display: block;
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, background 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.ix5-card:hover {
  background: linear-gradient(150deg, #cdcfcf, #f73803, rgb(16, 16, 16));
  box-shadow: 0 8px 20px rgba(0, 127, 195, 0.2);
  transform: scale(1.02);
  color: white;
}

.ix5-card:hover h3,
.ix5-card:hover p {
  color: white;
}

.ix5-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 15px;
}

.ix5-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ix5-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
  color: #222;
  transition: color 0.3s ease;
}

.ix5-card p {
  font-size: 1rem;
  color: #666;
  font-family: 'Inter', sans-serif;
  transition: color 0.3s ease;
}

/* CTA final */
.ix6 {
  background: linear-gradient(to right, #2a2a2a, #000);
  color: #fff;
  padding: 5.5rem 2rem;
  text-align: center;
}

.ix6-inner {
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.ix6 h2 {
  font-size: 2.2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.ix6 h2::after {
  content: '';
  width: 160px;
  height: 4px;
  background: linear-gradient(to right, #cd212a, #575656);
  display: block;
  margin: 2rem auto 0;
  border-radius: 2px;
}

.ix6 p {
  margin-top: 1rem;
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 720px;
  margin-inline: auto;
}

.ix6-cta {
  margin-top: 2.5rem;
}

/* Mapa */
.ix7 {
  background: #fff;
  padding: 0;
}

.ix7-inner {
  width: 100%;
  margin: 0;
  text-align: center;
}

.ix7 h2 {
  font-size: 2.2rem;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 2rem;
  background: linear-gradient(to right, #cd212a, #000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-top: 2rem;
}

.ix7 h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #cd212a, #000);
  display: block;
  margin: 2rem auto 0;
  border-radius: 2px;
}

.ix7-map iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.ix7-address {
  margin-top: 2rem;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  padding-bottom: 5rem;
}

/* ESTILO BOTON */

.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 */

@media (max-width: 768px) {
  .ix2 {
    height: 65vh;
    padding-top: 4rem;
  }

  .ix2-inner {
    padding: 0 1rem;
  }

  .ix2 h1 {
    font-size: 2.1rem;
    line-height: 1.25;
    margin-bottom: 1.2rem;
  }

  .ix2 h1::after {
    width: 140px;
    height: 4px;
    margin: 1.5rem auto 0;
  }

  .ix2-sub {
    font-size: 1.05rem;
    margin-top: 1rem;
  }

  .ix2-bg {
    transform: scale(1.2); /* Aumenta el tamaño visual de la imagen */
    transform-origin: center center; /* Centra el zoom */
  }

  .ix2-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
  }

  .ix2-cta .btn {
    font-size: 1rem;
    padding: 0.9rem 1.6rem;
    width: auto;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .ix2 {
    height: 58vh;
    padding-top: 3.5rem;
  }

  .ix2-inner {
    padding: 0 1rem;
  }

  .ix2 h1 {
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .ix2 h1::after {
    width: 100px;
    height: 3px;
    margin: 1.2rem auto 0;
  }

  .ix2-sub {
    font-size: 1rem;
    margin-top: 0.8rem;
  }

  .ix2-cta {
    margin-top: 1.8rem;
    display: flex;
    justify-content: center;
  }

  .ix2-cta .btn {
    font-size: 0.95rem;
    padding: 0.85rem 1.4rem;
    width: auto;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .ix3 {
    padding: 2.5rem 1.5rem;
  }

  .ix3-inner {
    padding: 0 0.5rem;
    text-align: left;
  }

  .ix3 h2 {
    font-size: 1.9rem;
    text-align: left;
  }

  .ix3 h2::after {
    margin: 1.5rem 0 0;
  }

  .ix3 p {
    font-size: 1.05rem;
    line-height: 1.65;
    text-align: left;
    margin-bottom: 2rem;
  }
}

/* FILOSOFIA */

@media (max-width: 480px) {
  .ix3 {
    padding: 1rem 1rem;
  }

  .ix3 h2 {
    font-size: 1.6rem;
  }

  .ix3 h2::after {
    width: 40px;
    height: 3px;
    margin: 1.2rem 0 0;
  }

  .ix3 p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* RESPONSIVE DIFERENCIALES */

@media (max-width: 600px) {
  .ix4 h2 {
    font-size: 1.7rem;
    margin-bottom: 2rem;
    padding-top: -2rem;
  }

  .ix4 h2::after {
    margin: 1.5rem auto 0;
    width: 50px;
    height: 3px;
  }
}

@media (max-width: 1024px) {
  .ix4-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ix4-list {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVE CLASES */

@media (max-width: 600px) {
  .ix5 h2 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
  }

  .ix5 h2::after {
    width: 50px;
    height: 3px;
    margin: 1.5rem auto 0;
  }

  .ix5 h2::before {
    top: -8px;
    left: -10px;
    right: -10px;
    bottom: -8px;
  }
}

@media (max-width: 992px) {
  .ix5-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ix5-grid {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVE CTA */

@media (max-width: 600px) {
  .ix6 h2 {
    margin-top: 1rem;
  }

  .ix6 {
    padding-top: 3rem;
  }
}

/* RESPONSIVE MAP */

@media (max-width: 600px) {
  .ix7 h2 {
    font-size: 1.9rem;
    padding-top: 2rem;
    margin-bottom: 1.5rem;
  }

  .ix7 h2::after {
    margin: 1.5rem auto 0;
  }
}
