/* Motion + Intellio-like palette. Does not redefine marketing layout. */
:root {
  --nx-fx-violet: #6a49f2;
  --nx-fx-indigo: #4f46e5;
  --nx-fx-cyan: #22d3ee;
  --nx-fx-pink: #f472b6;
  --nx-fx-glow: 0 22px 48px rgba(106, 73, 242, 0.22);
}

.nx-fx-statband {
  position: relative;
  overflow: hidden;
  background: #08011d;
  padding: 3.5rem 0;
}
.nx-fx-statband__glow {
  position: absolute;
  inset: -20% 10% auto auto;
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 73, 242, 0.45) 0%, transparent 68%);
  filter: blur(24px);
  pointer-events: none;
  animation: nx-fx-orb 14s ease-in-out infinite;
}
.nx-fx-statband__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .nx-fx-statband__grid { grid-template-columns: 1fr; }
}
.nx-fx-statcard {
  background: linear-gradient(145deg, rgba(28, 16, 68, 0.95) 0%, rgba(8, 1, 29, 0.92) 100%);
  border: 1px solid #3c2a96;
  border-radius: 1.75rem;
  padding: 1.75rem 1.5rem 1.4rem;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 18px rgba(60, 42, 150, 0.28);
  animation: nx-fx-bob 5.2s ease-in-out infinite;
}
.nx-fx-statcard:nth-child(2) { animation-delay: -1.1s; }
.nx-fx-statcard:nth-child(3) { animation-delay: -2.2s; }
.nx-fx-statcard:nth-child(4) { animation-delay: -0.7s; }
.nx-fx-statcard:nth-child(5) { animation-delay: -1.8s; }
.nx-fx-statcard:nth-child(6) { animation-delay: -2.9s; }
.nx-fx-statcard:hover {
  animation: none;
  transform: translateY(-8px);
  border-color: #7c6bff;
  box-shadow: 0 16px 40px rgba(106, 73, 242, 0.45), 0 0 0 1px rgba(124, 107, 255, 0.35);
}
.nx-fx-statcard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}
.nx-fx-statcard__value {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff !important;
  background: none !important;
  -webkit-text-fill-color: #fff;
}
.nx-fx-statcard__icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  animation: nx-fx-icon 3.6s ease-in-out infinite;
}
.nx-fx-statcard__icon--glow {
  box-shadow: 0 0 22px rgba(124, 107, 255, 0.85);
  background: radial-gradient(circle, rgba(106, 73, 242, 0.55) 0%, transparent 72%);
}
.nx-fx-statcard__label {
  margin: 1.1rem 0 0;
  font-size: .92rem;
  line-height: 1.35;
  color: #9a99b0;
  text-align: left;
}
@media (max-width: 640px) {
  .nx-fx-statband { padding: 2.25rem 0; }
}

.nx-fx-page.js-nx-fx main .k-card:not(.plan-card):not(.nx-fx-in),
.nx-fx-page.js-nx-fx main article.rounded-2xl:not(.nx-fx-in) {
  opacity: 1;
}
.nx-fx-page .nx-fx-reveal {
  opacity: 1;
  transform: none;
  animation: none;
}
@keyframes nx-fx-rise {
  to { opacity: 1; transform: translateY(0); }
}

.nx-fx-page .k-card:not(.plan-card),
.nx-fx-page article.rounded-2xl {
  background: linear-gradient(145deg, rgba(28, 16, 68, 0.98) 0%, rgba(8, 1, 29, 0.96) 100%) !important;
  border: 1px solid #3c2a96 !important;
  color: #fff;
  box-shadow: 0 0 18px rgba(60, 42, 150, 0.28);
  opacity: 1 !important;
}
.nx-fx-page .k-card:not(.plan-card) h3,
.nx-fx-page .k-card:not(.plan-card) h2,
.nx-fx-page .k-card:not(.plan-card) .text-slate-900,
.nx-fx-page .k-card:not(.plan-card) .text-gray-900,
.nx-fx-page .k-card:not(.plan-card) .font-bold,
.nx-fx-page article.rounded-2xl h3,
.nx-fx-page article.rounded-2xl h2,
.nx-fx-page article.rounded-2xl .text-slate-900,
.nx-fx-page article.rounded-2xl .text-gray-900,
.nx-fx-page article.rounded-2xl .font-bold {
  color: #fff !important;
}
.nx-fx-page .k-card:not(.plan-card) p,
.nx-fx-page .k-card:not(.plan-card) li,
.nx-fx-page .k-card:not(.plan-card) span,
.nx-fx-page .k-card:not(.plan-card) .text-slate-600,
.nx-fx-page .k-card:not(.plan-card) .text-slate-500,
.nx-fx-page .k-card:not(.plan-card) .text-gray-600,
.nx-fx-page article.rounded-2xl p,
.nx-fx-page article.rounded-2xl .text-slate-600,
.nx-fx-page article.rounded-2xl .text-slate-500 {
  color: #38bdf8 !important;
}
.nx-fx-page .k-card:not(.plan-card) .text-nexos-p {
  color: #f59e0b !important;
}
.nx-fx-page .k-card:not(.plan-card) .text-nexos-s,
.nx-fx-page .k-card:not(.plan-card) a {
  color: #38bdf8 !important;
}
.nx-fx-page .k-card .nx-fx-jornada-num {
  color: #fff !important;
}
.nx-fx-page .k-card:not(.plan-card) .bg-white,
.nx-fx-page .k-card:not(.plan-card) .bg-nexos-mist {
  background: rgba(106, 73, 242, 0.28) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}
.nx-fx-page .k-card:not(.plan-card) .bg-gradient-to-br {
  background: transparent !important;
}
.nx-fx-page .k-card:not(.plan-card) .border-slate-100,
.nx-fx-page .k-card:not(.plan-card) .border-b {
  border-color: rgba(60, 42, 150, 0.45) !important;
}

.nx-fx-page .k-card.k-card--jornada {
  border: 0 !important;
  box-shadow: 0 12px 32px rgba(8, 1, 29, 0.28);
}
.nx-fx-page .k-card.k-card--jornada:hover {
  border: 0 !important;
}
.nx-fx-jornada-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 1rem;
  background: rgba(106, 73, 242, 0.4);
  color: #fff !important;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.nx-fx-page .k-card:not(.plan-card):not(.k-card--jornada):hover,
.nx-fx-page article.rounded-2xl:hover {
  animation: none;
  transform: translateY(-8px);
  opacity: 1 !important;
  border-color: #7c6bff !important;
  background: linear-gradient(145deg, #24145a 0%, #0c0524 100%) !important;
  box-shadow: 0 16px 40px rgba(106, 73, 242, 0.45);
}

.nx-fx-page .k-card [class*="w-14"],
.nx-fx-page .k-card [class*="w-12"] {
  display: inline-flex;
}
@keyframes nx-fx-icon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-6deg); }
}
@keyframes nx-fx-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.nx-fx-page a.rounded-lg,
.nx-fx-page a.rounded-xl,
.nx-fx-page button[type="submit"] {
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}
.nx-fx-page a.rounded-lg:hover,
.nx-fx-page a.rounded-xl:hover,
.nx-fx-page button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.28);
}

.nx-fx-page .nx-fx-count {
  /* keep existing font/color from the page */
  background: none;
  color: inherit;
}

.nx-fx-page [data-nx-count] {
  background-image: linear-gradient(90deg, #6a49f2, #22d3ee, #f472b6);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nx-fx-shine 4s linear infinite;
}
@keyframes nx-fx-shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* User asked to keep the 6-col stats look: numbers stay the original size/weight.
   Gradient only if we didn't restore gray-900 — they wanted original dark numbers.
   Disable gradient on stats — use original colors. */
.nx-fx-page [data-nx-count] {
  background-image: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: inherit;
  animation: none;
}

/* Soft Intellio orbs behind content — decorative, no layout shift */
.nx-fx-page main {
  position: relative;
}
.nx-fx-page main::before,
.nx-fx-page main::after {
  content: "";
  position: absolute;
  width: min(46vw, 380px);
  height: min(46vw, 380px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(70px);
  opacity: 0.35;
  animation: nx-fx-orb 16s ease-in-out infinite;
}
.nx-fx-page main::before {
  top: 8rem;
  right: -8rem;
  background: radial-gradient(circle, #6a49f2 0%, transparent 68%);
}
.nx-fx-page main::after {
  top: 42rem;
  left: -10rem;
  background: radial-gradient(circle, #22d3ee 0%, transparent 70%);
  animation-delay: -7s;
}
.nx-fx-page main > * {
  position: relative;
  z-index: 1;
}
@keyframes nx-fx-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, -6%) scale(1.12); }
}

/* —— GrapesJS / landing blocks (explicit classes only) —— */
.nx-fx-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1b1238 0%, #4f46e5 45%, #22d3ee 140%);
  color: #fff;
  padding: 5rem 0;
}
.nx-fx-hero__inner { position: relative; z-index: 1; text-align: center; }
.nx-fx-kicker {
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .72);
  margin: 0 0 .85rem;
}
.nx-fx-title {
  margin: 0 auto 1rem;
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 18ch;
}
.nx-fx-lead {
  margin: 0 auto 1.75rem;
  max-width: 38rem;
  color: rgba(255, 255, 255, .88);
  font-size: 1.05rem;
}
.nx-fx-grad {
  background: linear-gradient(90deg, #22d3ee, #fff, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nx-fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.nx-fx-orb--a {
  width: 280px; height: 280px; top: -80px; right: 8%;
  background: radial-gradient(circle, rgba(106, 73, 242, 0.7), transparent 70%);
  animation: nx-fx-orb 12s ease-in-out infinite;
}
.nx-fx-orb--b {
  width: 220px; height: 220px; bottom: -60px; left: 10%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.45), transparent 70%);
  animation: nx-fx-orb 16s ease-in-out infinite reverse;
}
.nx-fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.65rem;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, #6a49f2, #22d3ee);
  box-shadow: 0 10px 28px rgba(106, 73, 242, .38);
  transition: transform .28s ease, box-shadow .28s ease;
}
.nx-fx-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(106, 73, 242, .5);
  color: #fff;
}
.nx-fx-btn--light { background: #fff; color: #4f46e5; }
.nx-fx-btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .55);
  box-shadow: none;
}
.nx-fx-btn--amber {
  background: linear-gradient(90deg, #f472b6, #6a49f2);
  color: #fff;
}
.nx-fx-glass,
.nx-fx-card {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(106, 73, 242, .18);
  border-radius: 1.25rem;
  box-shadow: 0 18px 44px rgba(79, 70, 229, .12);
  backdrop-filter: blur(14px);
  transition: transform .35s ease, box-shadow .35s ease;
  animation: nx-fx-bob 5.2s ease-in-out infinite;
}
.nx-fx-glass:hover,
.nx-fx-card:hover {
  animation: none;
  transform: translateY(-10px);
  box-shadow: var(--nx-fx-glow);
}
.nx-fx-marquee {
  overflow: hidden;
  background: linear-gradient(90deg, #1b1238, #4f46e5 40%, #22d3ee);
  color: #fff;
  padding: .85rem 0;
}
.nx-fx-marquee__track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: nx-fx-marquee 28s linear infinite;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  white-space: nowrap;
}
@keyframes nx-fx-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.nx-fx-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  text-align: center;
}
.nx-fx-cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #4f46e5, #22d3ee);
  color: #fff;
  padding: 4rem 1.25rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .nx-fx-statband__glow,
  .nx-fx-statcard,
  .nx-fx-statcard__icon,
  .nx-fx-page .k-card,
  .nx-fx-page article.rounded-2xl,
  .nx-fx-page article.rounded-3xl,
  .nx-fx-page .plan-card,
  .nx-fx-page .k-card .bi,
  .nx-fx-page article .bi,
  .nx-fx-page main::before,
  .nx-fx-page main::after,
  .nx-fx-orb,
  .nx-fx-glass,
  .nx-fx-card,
  .nx-fx-marquee__track {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
