﻿/* NexEmu — inicio, arriba de WebEngine */
.nexemu {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
}

@media (min-width: 768px) {
  .nexemu { padding: 5.5rem 0 4.5rem; }
}

.nexemu__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.nexemu__fallback {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0, 102, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 45% at 80% 20%, rgba(204, 51, 255, 0.28), transparent 50%),
    #050508;
}

.nexemu__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.72) 45%, rgba(0, 0, 0, 0.9) 100%),
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.nexemu__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 40% at 20% 80%, rgba(0, 204, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 40% 35% at 85% 20%, rgba(204, 51, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.nexemu__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}

.nexemu__badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 204, 255, 0.4);
  background: rgba(0, 0, 0, 0.35);
  color: var(--cyan, #00ccff);
  font-size: 0.72rem;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nexemu__title {
  margin: 0 0 0.9rem;
  color: #fff;
}

.nexemu__kicker {
  display: block;
  margin-bottom: 0.4rem;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(232, 234, 237, 0.62);
}

.nexemu__headline {
  display: block;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: clamp(1.85rem, 4.6vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.045em;
}

.nexemu__lead {
  color: #c8ccd4;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.nexemu__offer {
  position: relative;
  margin: 0.35rem auto 0.85rem;
  padding: 0;
  max-width: 38rem;
  border: 0;
  background: none;
  box-shadow: none;
}

.nexemu__offer-shine {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}

.nexemu__offer-eyebrow {
  display: inline-block;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 204, 255, 0.85);
}

.nexemu__offer-hook {
  position: relative;
  display: inline-block;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: clamp(1.55rem, 4.2vw, 2.55rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.04em;
  background-image: linear-gradient(
    100deg,
    #00ccff 0%,
    #5adfff 22%,
    #ffffff 38%,
    #cc33ff 58%,
    #00ccff 78%,
    #7a5cff 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(0, 204, 255, 0.35));
  animation: nexemu-signal 4.2s ease-in-out infinite;
}

.nexemu__offer-hook::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #00ccff, #cc33ff, transparent);
  transform: translateX(-50%);
  animation: nexemu-underline 2.8s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(0, 204, 255, 0.55);
}

.nexemu__offer-rest {
  display: block;
  max-width: 32rem;
  margin-top: 0.35rem;
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(232, 234, 237, 0.82);
}

.nexemu__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.nexemu__hint {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.nexemu__hint code {
  color: #00ccff;
  font-size: 0.78rem;
}

/* â€”â€” Stage carousel (estilo nexarclient, brand Nexar) â€”â€” */
.nexemu-stage {
  --stage-w: 100%;
  position: relative;
  z-index: 1;
  width: var(--stage-w);
  margin: 2.6rem auto 0;
}

.nexemu-stage__viewport {
  position: relative;
  height: clamp(340px, 44vw, 560px);
  perspective: 1600px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
}

.nexemu-stage__shade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(120px, 18vw, 260px);
  z-index: 6;
  pointer-events: none;
}

.nexemu-stage__shade--left {
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 42%,
    transparent 100%
  );
}

.nexemu-stage__shade--right {
  right: 0;
  background: linear-gradient(
    270deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 42%,
    transparent 100%
  );
}

.nexemu-stage__slide {
  position: absolute;
  top: 46%;
  left: 50%;
  width: min(820px, 68%);
  margin: 0;
  transform: translate(-50%, -50%) scale(0.55);
  opacity: 0;
  filter: brightness(0.45);
  z-index: 1;
  pointer-events: none;
  transition: transform 0.65s cubic-bezier(0.22, 0.8, 0.28, 1), opacity 0.65s ease, filter 0.65s ease;
}

.nexemu-stage__slide.is-active {
  z-index: 4;
  opacity: 1;
  filter: none;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.nexemu-stage__slide.is-prev,
.nexemu-stage__slide.is-next {
  z-index: 2;
  opacity: 1;
  filter: brightness(0.78) saturate(0.9);
  pointer-events: auto;
  cursor: pointer;
}

.nexemu-stage__slide.is-prev {
  transform: translate(-50%, -50%) translateX(-68%) scale(0.7) rotateY(26deg);
}

.nexemu-stage__slide.is-next {
  transform: translate(-50%, -50%) translateX(68%) scale(0.7) rotateY(-26deg);
}

.nexemu-stage__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0.65rem;
  background: radial-gradient(120% 90% at 50% 42%, #12182a 0%, #07090f 70%);
  border: 1px solid rgba(0, 204, 255, 0.28);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(204, 51, 255, 0.12);
}

.nexemu-stage__frame::before {
  content: '';
  position: absolute;
  top: -35%;
  left: -20%;
  z-index: 2;
  width: 40%;
  height: 170%;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(0, 204, 255, 0.14) 45%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(204, 51, 255, 0.14) 55%,
    transparent 100%
  );
  opacity: 0;
  transform: translateX(-40%) skewX(-12deg);
}

.nexemu-stage__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 36px 10px rgba(0, 0, 0, 0.42);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.38)),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(0, 204, 255, 0.08) 48%,
      rgba(204, 51, 255, 0.1) 52%,
      transparent 100%
    );
  background-size: 100% 100%, 100% 220%;
  background-position: 0 0, 0 -120%;
  background-repeat: no-repeat;
}

.nexemu-stage__slide.is-active .nexemu-stage__frame {
  border-color: rgba(0, 204, 255, 0.55);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(0, 204, 255, 0.22);
  animation: nexemu-frame-glow 2.8s ease-in-out infinite;
}

.nexemu-stage__slide.is-active .nexemu-stage__frame::before {
  opacity: 1;
  animation: nexemu-frame-shine 3.2s ease-in-out infinite;
}

.nexemu-stage__slide.is-active .nexemu-stage__frame::after {
  box-shadow: inset 0 0 28px 6px rgba(0, 0, 0, 0.28);
  animation: nexemu-frame-scan 3.4s ease-in-out infinite;
}

.nexemu-stage__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 1;
}

.nexemu-stage__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  text-align: center;
  color: rgba(232, 234, 237, 0.55);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  background:
    linear-gradient(135deg, rgba(0, 204, 255, 0.08), rgba(204, 51, 255, 0.08));
}

.nexemu-stage__placeholder strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #00ccff;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nexemu-stage__slide figcaption {
  margin-top: 0.7rem;
  text-align: center;
  font-family: var(--font-display, 'Orbitron', sans-serif);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #00ccff;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nexemu-stage__slide.is-active figcaption {
  opacity: 1;
}

.nexemu-stage__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.55rem;
}

.nexemu-stage__btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0, 204, 255, 0.4);
  background: rgba(0, 0, 0, 0.55);
  color: #e8eaed;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nexemu-stage__btn:hover {
  border-color: rgba(0, 204, 255, 0.85);
  box-shadow: 0 0 16px rgba(0, 204, 255, 0.28);
}

.nexemu-stage__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.nexemu-stage__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(138, 164, 192, 0.4);
  cursor: pointer;
}

.nexemu-stage__dots button[aria-current='true'] {
  background: #00ccff;
  box-shadow: 0 0 10px rgba(0, 204, 255, 0.7);
}

@keyframes nexemu-signal {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes nexemu-underline {
  0%, 100% { width: 28%; opacity: 0.55; }
  50% { width: 72%; opacity: 1; }
}

@keyframes nexemu-frame-glow {
  0%, 100% {
    box-shadow:
      0 34px 70px rgba(0, 0, 0, 0.7),
      0 0 22px rgba(0, 204, 255, 0.18);
  }
  50% {
    box-shadow:
      0 34px 70px rgba(0, 0, 0, 0.7),
      0 0 36px rgba(204, 51, 255, 0.28),
      0 0 48px rgba(0, 204, 255, 0.2);
  }
}

@keyframes nexemu-frame-shine {
  0%, 15% { transform: translateX(-80%) skewX(-12deg); opacity: 0; }
  35% { opacity: 1; }
  70%, 100% { transform: translateX(320%) skewX(-12deg); opacity: 0; }
}

@keyframes nexemu-frame-scan {
  0%, 100% { background-position: 0 0, 0 -130%; }
  45%, 55% { background-position: 0 0, 0 130%; }
}

@media (max-width: 900px) {
  .nexemu-stage__viewport {
    height: 340px;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%
    );
  }

  .nexemu-stage__slide {
    width: 86%;
  }

  .nexemu-stage__slide.is-prev,
  .nexemu-stage__slide.is-next {
    opacity: 0;
    pointer-events: none;
  }

  .nexemu-stage__shade {
    width: clamp(48px, 12vw, 90px);
  }
}

@media (max-width: 640px) {
  .nexemu__offer-hook { font-size: 1.35rem; }
  .nexemu__offer-rest { font-size: 0.92rem; }
  .nexemu-stage__viewport { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-new-badge { animation: none; }
  .nexemu__offer-hook,
  .nexemu__offer-hook::after { animation: none; }
  .nexemu-stage__slide { transition: none; }
  .nexemu-stage__slide.is-active .nexemu-stage__frame,
  .nexemu-stage__slide.is-active .nexemu-stage__frame::before,
  .nexemu-stage__slide.is-active .nexemu-stage__frame::after { animation: none; }
}
