/* html, body {
  margin: 0;
  padding: 0;
  height: 100%;
} */

/* html, body {
  margin: 0;
  padding: 0;
  height: 100%;
} */

.hero {
  width: 100vw;
  height: 70vh; /* reduce altura al 70% */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Ajuste para que la imagen de fondo inicie desde el tope real */
  margin-top: -70px; /* igual a la altura del header */
  padding-top: 170px; /* altura del header + padding original */
  padding-right: 40px;
  padding-bottom: 40px;
  padding-left: 40px;
  position: relative;
  box-sizing: border-box;
}

.hero-bg-wrapper {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.hero-bg {
  position: relative;
  width: 100%;
  min-height: unset;
  height: auto;
  background: linear-gradient(to right, white 50%, transparent 50%), url('') no-repeat;
  background-size: 100% 100%, 50% 100%;
  background-position: left top, right top;
  max-width: 100vw;
}

.hero__content {
  max-width: 45vw; /* Limita el ancho para que se mantenga en la mitad izquierda */
  padding-top: 60px;
  padding-bottom: 20px;
  padding-left: 0;
  margin-left: 0;
}

.hero__content h1 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-color);
}

.hero__content h2 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-color);
  max-width: 45vw; /* Mantiene el texto en la mitad izquierda */
  width: 100%;
  display: block;
  word-break: normal;
  margin: 0;
}

.social-icons {
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-icons a {
  color: var(--text-color);
  font-size: 20px;
  text-decoration: none;
}

.membership {
  background: var(--primary-color);
  text-align: left;
  padding: 60px 40px;
  border-top-right-radius: 50vh; /* curva menos pronunciada en escritorio, ahora 50vh */
  margin-top: 0; /* Evita que tape el texto del hero */
  position: relative;
  z-index: 2;
  border-top-left-radius: 0;
  overflow: hidden;
  padding-bottom: 0 !important; /* elimina espacio inferior en desktop, pegado al footer */
  margin-bottom: 0 !important; /* asegura que no haya margen inferior */
}

.membership h2 {
  font-size: 28px;
  color: var(--text-white);
  margin-bottom: 40px;
  font-weight: 600;
  max-width: 85vw;
  width: 100%;
  display: block;
  margin-left: 0;
  margin-right: auto;
  background: none !important; /* elimina fondo blanco si lo hubiera */
  color: var(--text-white) !important; /* asegura color blanco */
}

@media (max-width: 768px) {
  .hero {
    background-size: cover;
    background-position: center;
    flex-direction: column;
    text-align: center;
    padding: 120px 20px 40px;
    height: auto;
    min-height: unset;
  }

  .hero-bg {
    background: url('') no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  .hero__content {
    padding-top: 80px;
    padding-bottom: 10px;
    max-width: 90vw;
  }

  .hero__content h2 {
    max-width: 90vw;
  }

  .membership {
    padding-bottom: 40px !important; /* restaura padding en mobile/tablet si se requiere */
    margin-bottom: 0 !important;
  }
}

@media (max-width: 600px) {
  .membership {
    border-top-right-radius: 50vw; /* curva original en mobile */
  }
}