/* =========================================================
   HERO · NEXUS ECOSYSTEM
   Imagen izquierda · Texto derecha · Diseño premium
   ========================================================= */

/* =========================================================
   HERO · CONTENEDOR
   ========================================================= */

.nx-hero{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  padding: 76px 0 72px;
}

/* =========================================================
   HERO · EFECTOS DE FONDO
   ========================================================= */
.nx-hero::before,
.nx-hero::after{
  content:"";
  position:absolute;
  width: 620px;
  height: 620px;
  border-radius: 999px;
  filter: blur(58px);
  opacity: .55;
  pointer-events:none;
  z-index: 0;
}

.nx-hero::before{
  top: -240px;
  left: -220px;
  background: radial-gradient(circle at 30% 30%, rgba(20,90,220,.40), transparent 62%);
}

.nx-hero::after{
  bottom: -280px;
  right: -260px;
  background: radial-gradient(circle at 40% 40%, rgba(60,150,255,.34), transparent 64%);
}

/* =========================================================
   HERO · LAYOUT
   ========================================================= */
.nx-hero__inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.18fr .92fr;
  align-items: center;
  gap: 56px;
}

/* =========================================================
   HERO · IMAGEN
   ========================================================= */

.nx-hero__left{
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.nx-hero__right{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

/* =========================================================
   HERO · TÍTULO
   ========================================================= */
.nx-hero__title{
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: clamp(42px, 4.2vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: rgba(11,18,32,.95);
}

.nx-hero__title span{
  display: block;
}

.nx-hero__titleGrad{
  display: block;
  margin-top: 4px;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(20,90,220,1), rgba(60,140,255,1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   HERO · TEXTO ROTATIVO
   ========================================================= */

#nxHeroRotatingText{
  display: inline-block;
  min-height: 1.1em;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity .25s ease,
    transform .35s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}

#nxHeroRotatingText.is-leaving{
  opacity: 0;
  transform: translateY(-16px);
}

#nxHeroRotatingText.is-entering{
  opacity: 0;
  transform: translateY(16px);
}

/* =========================================================
   HERO · SUBTÍTULO
   ========================================================= */
.nx-hero__subtitle{
  margin: 18px 0 0;
  max-width: 520px;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: rgba(11,18,32,.68);
}

/* =========================================================
   HERO · CTA OCULTO
   ========================================================= */
.nx-hero__ctaRow{
  display: none;
}

/* =========================================================
   HERO · MOCKUP PRINCIPAL
   ========================================================= */
.nx-heroMock{
  position: relative;
  width: min(760px, 100%);
  border-radius: 34px;
  overflow: hidden;
  padding: 3px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.90) 0%,
    rgba(180,210,255,.72) 20%,
    rgba(120,170,255,.42) 45%,
    rgba(255,255,255,.14) 72%,
    rgba(255,255,255,.55) 100%
  );
  box-shadow:
    0 28px 88px rgba(11,18,32,.14),
    0 10px 26px rgba(80,120,220,.10);
  animation: nxFloat 6.5s ease-in-out infinite;
  transform-origin: center;
}

.nx-heroMock::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 34px;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.26),
      rgba(255,255,255,0) 28%
    );
  z-index: 1;
}

.nx-heroMock:hover{
  animation-play-state: paused;
  transform: translateY(-5px);
  box-shadow:
    0 38px 110px rgba(11,18,32,.18),
    0 12px 34px rgba(80,120,220,.14);
}

.nx-heroMock__img{
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 31px;
  background: rgba(255,255,255,.88);
}

/* =========================================================
   HERO · ANIMACIONES
   ========================================================= */
@keyframes nxFloat{
  0%{ transform: translateY(0); }
  50%{ transform: translateY(-7px); }
  100%{ transform: translateY(0); }
}

/* =========================================================
   HERO · ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce){
  .nx-heroMock{
    animation: none;
  }

  #nxHeroRotatingText{
    transition: none;
  }
}

/* =========================================================
   HERO · RESPONSIVE
   ========================================================= */
@media (max-width: 1100px){
  .nx-hero__inner{
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .nx-hero__title{
    font-size: clamp(38px, 4.1vw, 56px);
  }
}

@media (max-width: 980px){
  .nx-hero{
    padding: 64px 0 64px;
  }

  .nx-hero__inner{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nx-hero__left{
    order: 1;
    justify-content: center;
  }

  .nx-hero__right{
    order: 2;
    align-items: flex-start;
  }

  .nx-heroMock{
    width: 100%;
  }

  .nx-hero__title{
    font-size: clamp(36px, 8vw, 52px);
  }

  .nx-hero__subtitle{
    max-width: 100%;
    font-size: 15px;
  }
}

@media (max-width: 640px){
  .nx-hero{
    padding: 54px 0 56px;
  }

  .nx-hero__inner{
    gap: 22px;
  }

  .nx-hero__title{
    font-size: 34px;
    line-height: 1.04;
    letter-spacing: -0.045em;
  }

  .nx-hero__titleGrad{
    margin-top: 2px;
  }

  #nxHeroRotatingText{
    min-height: 1.08em;
  }

  .nx-hero__subtitle{
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.6;
  }

  .nx-heroMock{
    border-radius: 26px;
    padding: 2px;
  }

  .nx-heroMock__img{
    border-radius: 24px;
  }
}
