/* Neon FX 2 · estados iniciales (solo con JS activo) y efectos CSS */
html { scroll-behavior: smooth; }
.fx-js:not(.fx-done) .fx-reveal,
.fx-js:not(.fx-done) .fx-zoom { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fx-js .fx-reveal, .fx-js .fx-zoom, .fx-js .fx-stagger > *, .fx-js .fx-stagger > .e-con-inner > * { opacity: 1 !important; transform: none !important; }
  .fx-js .fx-mask { clip-path: none !important; }
  .fx-js .fx-wi { transform: none !important; }
  .fx-marquee-track, .fx-energy::before, .fx-hero-on { animation: none !important; }
}

/* Barra de progreso */
.fx-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 99999; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #FF3B0A, #FF6A00, #FF8A00); box-shadow: 0 0 12px rgba(255,106,0,.7); pointer-events: none; }

/* Titulares palabra por palabra */
.fx-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.fx-wi { display: inline-block; will-change: transform; }

/* Parallax */
.fx-parallax { overflow: hidden; }
.fx-parallax img { will-change: transform; transform: scale(1.18); }
.fx-parallax-bg { background-position: center var(--fx-py, 50%) !important; }

/* Hero: zoom lento del fondo */
.fx-hero-on { background-size: 112% auto !important; animation: fx-kenburns 18s ease-in-out infinite alternate; }
@media (max-width: 1024px) { .fx-hero-on { background-size: cover !important; animation: none; } }
@keyframes fx-kenburns { from { background-size: 112% auto; } to { background-size: 124% auto; } }

/* Tarjetas */
.fx-hover-lift { transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s cubic-bezier(.22,1,.36,1); }
.fx-hover-lift:hover { transform: translateY(-8px); box-shadow: 0 24px 50px -20px rgba(255,106,0,.55); }
.fx-hover-lift img { transition: transform .8s cubic-bezier(.22,1,.36,1); }
.fx-hover-lift:hover img { transform: scale(1.06); }

.fx-glow { position: relative; isolation: isolate; }
.fx-glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,106,0,.28), transparent 55%);
  box-shadow: inset 0 0 0 1px rgba(255,106,0,.55); transition: opacity .35s; }
.fx-glow:hover::after { opacity: 1; }

.fx-tilt { transform-style: preserve-3d; perspective: 900px; will-change: transform; }

/* Marquee de logos o frases */
.fx-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fx-marquee, .fx-marquee > .e-con-inner { flex-wrap: nowrap !important; }
.fx-marquee-track { display: flex; flex-wrap: nowrap; align-items: center; gap: 64px; width: max-content; animation: fx-marquee 28s linear infinite; }
.fx-marquee-track > * { flex: 0 0 auto !important; width: auto !important; max-width: none !important; }
.fx-marquee:hover .fx-marquee-track { animation-play-state: paused; }
@keyframes fx-marquee { to { transform: translateX(-50%); } }

/* Trazos de energía de marca en el fondo de una sección */
.fx-energy { position: relative; overflow: hidden; }
.fx-energy::before { content: ""; position: absolute; inset: -50% -20%; z-index: 0; pointer-events: none; opacity: .55;
  background: repeating-linear-gradient(115deg, transparent 0 140px, rgba(255,106,0,.35) 141px 143px, transparent 144px 300px);
  animation: fx-energy 9s linear infinite; }
.fx-energy > * { position: relative; z-index: 1; }
@keyframes fx-energy { to { transform: translateX(300px); } }

/* Trazo de energía bajo un titular */
.fx-trazo .elementor-heading-title { position: relative; display: inline-block; }
.fx-trazo .elementor-heading-title::after {
  content: ""; position: absolute; left: 0; bottom: -.18em; height: .14em; width: 100%;
  background: linear-gradient(90deg, #FF3B0A, #FF6A00, #FF8A00);
  clip-path: polygon(0 60%, 100% 0, 96% 100%, 0 100%);
  transform-origin: left; transform: scaleX(0); transition: transform .9s cubic-bezier(.22,1,.36,1) .3s;
}
.fx-trazo.fx-in .elementor-heading-title::after { transform: scaleX(1); }

/* Texto con degradado naranja */
.fx-gradient-text .elementor-heading-title, .fx-gradient-text p {
  background: linear-gradient(90deg, #FF3B0A, #FF6A00, #FF8A00);
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
/* Texto con contorno */
.fx-outline .elementor-heading-title { color: transparent !important; -webkit-text-stroke: 1.5px rgba(255,255,255,.55); }

/* ===== Neon FX 2.1 ===== */
/* Galería en movimiento: dos filas en sentidos opuestos */
.fx-gallery { display: grid; gap: 16px; overflow: hidden; padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.fx-gallery-row { display: flex; gap: 16px; width: max-content; animation: fx-marquee 60s linear infinite; }
.fx-gallery-row.is-reverse { animation-direction: reverse; animation-duration: 70s; }
.fx-gallery:hover .fx-gallery-row { animation-play-state: paused; }
.fx-gallery figure { position: relative; margin: 0; flex: none; height: clamp(170px, 22vw, 290px); aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; isolation: isolate; }
.fx-gallery figure.is-tall { aspect-ratio: 4 / 5; }
.fx-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.22,1,.36,1), filter .5s; filter: saturate(.9) brightness(.85); }
.fx-gallery figure::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: box-shadow .4s; }
.fx-gallery figure:hover img { transform: scale(1.08); filter: saturate(1.1) brightness(1); }
.fx-gallery figure:hover::after { box-shadow: inset 0 0 0 2px #FF6A00, 0 0 40px rgba(255,106,0,.35); }
.fx-gallery figcaption { position: absolute; left: 14px; bottom: 12px; z-index: 2; font: 600 12px/1 'Barlow', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  padding: 7px 11px; border-radius: 999px; background: rgba(9,10,12,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.fx-gallery figure:hover figcaption { opacity: 1; transform: none; }

/* Tarjetas con ícono flotante */
.fx-card { position: relative; }
.fx-card > .fx-badge, .fx-card > .e-con-inner > .fx-badge { position: absolute !important; top: 16px; right: 16px; left: auto !important; z-index: 3; width: auto !important; margin: 0 !important; }
.fx-badge .elementor-icon { display: grid !important; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-size: 22px !important;
  background: rgba(9,10,12,.72) !important; color: #FF6A00 !important; border: 1px solid rgba(255,106,0,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .3s, color .3s, transform .45s cubic-bezier(.22,1,.36,1); }
.fx-badge .elementor-icon svg { width: 22px; height: 22px; fill: currentColor; }
.fx-card:hover .fx-badge .elementor-icon { background: #FF6A00 !important; color: #090A0C !important; transform: rotate(-8deg) scale(1.08); }

/* Ícono sobre cifras */
.fx-stat-ico .elementor-icon { display: grid !important; place-items: center; width: 58px; height: 58px; border-radius: 50%; font-size: 24px !important; color: #FF6A00 !important;
  background: rgba(255,106,0,.1); border: 1px solid rgba(255,106,0,.35); box-shadow: 0 0 0 0 rgba(255,106,0,.45); animation: fx-pulse 2.8s ease-out infinite; }
.fx-stat-ico .elementor-icon svg { width: 24px; height: 24px; fill: currentColor; }
@keyframes fx-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,106,0,.45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(255,106,0,0); } }

/* Palabras que rotan */
.fx-words { font: 600 clamp(15px, 1.4vw, 19px)/1.3 'Barlow', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.fx-words-box { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.3em; color: #FF6A00; }
.fx-words-box b { grid-area: 1 / 1; font-weight: 700; transform: translateY(110%); opacity: 0; transition: transform .6s cubic-bezier(.22,1,.36,1), opacity .4s; }
.fx-words-box b.is-on { transform: none; opacity: 1; }
.fx-words-box b.is-out { transform: translateY(-110%); opacity: 0; }

/* Indicador para bajar */
.fx-scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font: 600 11px/1 'Barlow', sans-serif; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.7); text-decoration: none; }
.fx-scroll-cue i { position: relative; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; }
.fx-scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #FF6A00; animation: fx-cue 1.8s cubic-bezier(.22,1,.36,1) infinite; }
@keyframes fx-cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* Brillo que cruza un botón */
.fx-shine .elementor-button { position: relative; overflow: hidden; }
.fx-shine .elementor-button::before { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: fx-shine 3.8s ease-in-out infinite; }
@keyframes fx-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
  .fx-gallery-row, .fx-stat-ico .elementor-icon, .fx-scroll-cue i::after, .fx-shine .elementor-button::before { animation: none !important; }
}
.fx-words { text-align: center; }
.fx-scroll-wrap { display: flex; justify-content: center; margin-top: 28px; }

/* ===== Neon FX 2.2 (ideas tomadas de Hadkaur) ===== */
/* Titular apilado con palabra en contorno */
.fx-stack .elementor-heading-title { line-height: .88 !important; letter-spacing: .01em; }
.fx-outline-word { color: transparent !important; -webkit-text-stroke: 2px #FF6A00; }
@media (max-width: 767px) { .fx-outline-word { -webkit-text-stroke-width: 1.5px; } }
/* Tarjetas numeradas 01-06 */
.fx-num-wrap { counter-reset: fxn; }
.fx-num { counter-increment: fxn; }
.fx-num .elementor-widget-heading .elementor-heading-title::before { content: counter(fxn, decimal-leading-zero); display: block; margin-bottom: 6px;
  font: 400 clamp(44px, 4vw, 64px)/1 'Anton', sans-serif; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.6); transition: -webkit-text-stroke-color .3s, color .3s; }
.fx-num:hover .elementor-widget-heading .elementor-heading-title::before { color: #FF6A00; -webkit-text-stroke-color: #FF6A00; }
