
/* =========================================================
   X-NOX V11.5 · FX LAYER
   Solo efectos visuales. No modifica textos, precios, enlaces,
   imágenes, datos de país ni lógica comercial.
   ========================================================= */
#xnox-access-home{
  --fx-dur:.72s;
  --fx-stagger:90ms;
  --fx-distance:60px;
  --fx-ease:var(--ease,cubic-bezier(.16,1,.3,1));
  --fx-parallax-y:0px;
}

/* K · Contención, progreso, botones y sombra de header */
#xnox-access-home :is(.xn11-hero,.xn11-section,.xn11-sale,.xn11-certification,.xn11-social-proof,.xn11-category-showcase,.xn11-experience,.xn11-faq-section,.xn11-final){overflow-x:clip}
#xnox-access-home .xn11-fx-progress{position:fixed;z-index:2147482500;top:0;left:0;width:100%;height:3px;pointer-events:none;transform:scaleX(0);transform-origin:0 50%;background:var(--orange);opacity:.95}
#xnox-access-home .xn11-header::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:18px;pointer-events:none;box-shadow:0 11px 24px rgba(7,21,39,.15);opacity:0;transition:opacity .28s ease}
#xnox-access-home .xn11-header.xn11-fx-scrolled::after{opacity:1}
#xnox-access-home .xn11-btn:hover{transform:translateY(-3px)}
#xnox-access-home .xn11-btn:active{transform:translateY(0) scale(.97)}

/* Estado oculto SOLO cuando JS confirma que la capa FX está activa. */
#xnox-access-home.xn11-motion.xn11-fx-ready [data-xn11-fx]{opacity:0;transform:var(--fx-from,translate3d(0,18px,0));transition:opacity var(--fx-dur) var(--fx-ease),transform var(--fx-dur) var(--fx-ease);transition-delay:calc(var(--i,0) * var(--fx-stagger))}
#xnox-access-home.xn11-motion.xn11-fx-ready [data-xn11-fx].xn11-fx-in{opacity:1;transform:var(--fx-to,none)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-fx-pending{will-change:transform,opacity}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-fx-title.xn11-fx-pending{will-change:transform,opacity,filter}

/* A · Títulos fantasma + alternancia lateral */
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-fx-title{opacity:0;transform:translate3d(var(--fx-x,-60px),0,0);filter:blur(12px);letter-spacing:.015em;transition:opacity var(--fx-dur) var(--fx-ease),transform var(--fx-dur) var(--fx-ease),filter .65s var(--fx-ease);transition-delay:calc(var(--i,0) * var(--fx-stagger))}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-fx-title.xn11-fx-in{opacity:1;transform:none;filter:blur(0);letter-spacing:inherit}
#xnox-access-home .xn11-eyebrow::before{transform-origin:0 50%}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-eyebrow.xn11-fx-title::before{transform:scaleX(0);opacity:.35;transition:transform .56s var(--fx-ease),opacity .4s ease;transition-delay:calc((var(--i,0) * var(--fx-stagger)) + 120ms)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-eyebrow.xn11-fx-title.xn11-fx-in::before{transform:scaleX(1);opacity:1}

/* A · Typewriter del H1. Se aplica una sola vez y luego se restaura el HTML original. */
#xnox-access-home #xn11-main-title.xn11-fx-typewriter{position:relative}
#xnox-access-home #xn11-main-title.xn11-fx-typewriter .xn11-fx-char{display:inline-block;white-space:pre;opacity:0;transform:translate3d(0,.13em,0);transition:opacity .055s linear,transform .14s var(--fx-ease);transition-delay:calc(var(--char-i) * 18ms)}
#xnox-access-home #xn11-main-title.xn11-fx-typewriter.xn11-fx-typing .xn11-fx-char{opacity:1;transform:none}
#xnox-access-home #xn11-main-title.xn11-fx-typewriter::after{content:"";display:inline-block;width:.08em;height:.86em;margin-left:.06em;vertical-align:-.06em;background:var(--soft);transform-origin:50% 50%;animation:xn11FxCursor .68s steps(1,end) infinite}
@keyframes xn11FxCursor{50%{opacity:0}}

/* D · Hero escalonado y visual */
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-fx-hero-eyebrow{--fx-from:translate3d(0,18px,0)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-fx-hero-copy{--fx-from:translate3d(-30px,0,0)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-fx-hero-actions{--fx-from:translate3d(0,20px,0)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-fx-hero-trust{--fx-from:translate3d(0,16px,0)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-fx-hero-visual{--fx-from:translate3d(54px,0,0) rotate(2.2deg) scale(.96);--fx-to:translate3d(0,0,0) rotate(0) scale(1)}
#xnox-access-home .xn11-fx-hero-visual.xn11-fx-in .xn11-hero-mockup{animation:xn11FxHeroFloat 6s ease-in-out 1.05s infinite}
#xnox-access-home .xn11-hero::after{transform-origin:center;animation:xn11FxHeroHalo 18s ease-in-out infinite}
@keyframes xn11FxHeroFloat{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-8px,0)}}
@keyframes xn11FxHeroHalo{0%,100%{transform:rotate(0deg) scale(1);opacity:.72}50%{transform:rotate(8deg) scale(1.035);opacity:1}}
#xnox-access-home .xn11-stat.xn11-fx-in strong{animation:xn11FxStatPop .52s var(--fx-ease) both}
@keyframes xn11FxStatPop{0%{transform:scale(.75);opacity:.25}70%{transform:scale(1.08);opacity:1}100%{transform:scale(1);opacity:1}}

/* B · Cursos destacados */
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-course[data-xn11-fx="course"]{opacity:0;transform:scale(.86);transition:opacity .62s var(--fx-ease),transform .68s var(--fx-ease);transition-delay:calc(var(--i,0) * 90ms)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-course[data-xn11-fx="course"].xn11-fx-in{opacity:1;transform:scale(1)}
#xnox-access-home .xn11-course[data-xn11-fx="course"].xn11-fx-in:hover{transform:translate3d(0,-6px,0);border-color:rgba(255,116,23,.68);box-shadow:0 16px 31px rgba(7,21,39,.11)}
#xnox-access-home .xn11-course-image img{transition:transform .45s var(--fx-ease)}
#xnox-access-home .xn11-course:hover .xn11-course-image img{transform:scale(1.05)}
#xnox-access-home .xn11-course-buttons button.xn11-fx-pulse{animation:xn11FxButtonPulse .58s var(--fx-ease) 1}
@keyframes xn11FxButtonPulse{0%,100%{transform:scale(1)}52%{transform:scale(1.08)}}

/* C · Carruseles 3D de categorías.
   IMPORTANTE: no tocamos transform/opacity de .xn11-category-card para respetar data-xn11-slot. */
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-category-block[data-xn11-fx="category-block"]{opacity:0;transform:translate3d(0,24px,0);transition:opacity .68s var(--fx-ease),transform .68s var(--fx-ease)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-category-block[data-xn11-fx="category-block"].xn11-fx-in{opacity:1;transform:none}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-category-block .xn11-category-block-head{opacity:0;transform:translate3d(0,18px,0);transition:opacity .55s var(--fx-ease),transform .55s var(--fx-ease)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-category-block.xn11-fx-in .xn11-category-block-head{opacity:1;transform:none}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-category-block .xn11-category-card>*{opacity:0;transform:translate3d(0,28px,0) scale(.96);transition:opacity .58s var(--fx-ease),transform .65s var(--fx-ease);transition-delay:calc(140ms + (var(--card-i,0) * 120ms))}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-category-block.xn11-fx-in .xn11-category-card>*{opacity:1;transform:none}
#xnox-access-home .xn11-category-block.xn11-fx-in .xn11-category-symbol{animation:xn11FxSymbolPop .65s var(--fx-ease) calc(180ms + (var(--card-i,0) * 120ms)) both}
@keyframes xn11FxSymbolPop{0%{transform:scale(.65) rotate(-8deg);opacity:.25}66%{transform:scale(1.13) rotate(4deg);opacity:1}100%{transform:scale(1) rotate(0);opacity:1}}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-category-showcase-foot{opacity:0;transform:translate3d(0,16px,0);transition:opacity .55s var(--fx-ease),transform .55s var(--fx-ease)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-category-showcase.xn11-fx-categories-done .xn11-category-showcase-foot{opacity:1;transform:none}

/* E · Oferta / precio: entrada y glow de una sola vez */
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-sale-summary[data-xn11-fx="sale-card"]{opacity:0;transform:scale(.9) translate3d(0,18px,0);transition:opacity .68s var(--fx-ease),transform .72s var(--fx-ease)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-sale-summary[data-xn11-fx="sale-card"].xn11-fx-in{opacity:1;transform:none}
#xnox-access-home .xn11-sale-summary{position:relative;isolation:isolate}
#xnox-access-home .xn11-sale-summary::after{content:"";position:absolute;z-index:-1;inset:-9px;border:1px solid rgba(255,173,109,.7);border-radius:20px;box-shadow:0 0 34px rgba(255,116,23,.33);opacity:0;transform:scale(.94);pointer-events:none}
#xnox-access-home .xn11-sale-summary.xn11-fx-in::after{animation:xn11FxGlow 1.15s var(--fx-ease) .18s 1 both}
@keyframes xn11FxGlow{0%{opacity:0;transform:scale(.94)}45%{opacity:.95;transform:scale(1.025)}100%{opacity:0;transform:scale(1.07)}}

/* E · Shine discreto de botones de compra */
#xnox-access-home [data-xn11-buy],#xnox-access-home .xn11-btn-orange{position:relative;overflow:hidden;isolation:isolate}
#xnox-access-home [data-xn11-buy]::after,#xnox-access-home .xn11-btn-orange::after{content:"";position:absolute;z-index:2;top:-35%;bottom:-35%;left:-45%;width:24%;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(255,255,255,.48),transparent);transform:translate3d(-220%,0,0) skewX(-18deg);animation:xn11FxShine 5.2s ease-in-out 2s infinite}
@keyframes xn11FxShine{0%,72%{transform:translate3d(-220%,0,0) skewX(-18deg);opacity:0}76%{opacity:.75}89%{opacity:.75}94%,100%{transform:translate3d(760%,0,0) skewX(-18deg);opacity:0}}

/* F · Certificación / diploma */
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-cert-copy[data-xn11-fx="cert-copy"]{opacity:0;transform:translate3d(-52px,0,0);transition:opacity var(--fx-dur) var(--fx-ease),transform var(--fx-dur) var(--fx-ease)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-cert-copy[data-xn11-fx="cert-copy"].xn11-fx-in{opacity:1;transform:none}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-diploma[data-xn11-fx="diploma"]{opacity:0;transform:perspective(1100px) translate3d(52px,0,0) rotateY(-12deg) scale(.94);transform-origin:50% 50%;transition:opacity .76s var(--fx-ease),transform .82s var(--fx-ease)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-diploma[data-xn11-fx="diploma"].xn11-fx-in{opacity:1;transform:perspective(1100px) translate3d(0,0,0) rotateY(0) scale(1)}

/* G · Beneficios, pasos y herramientas */
#xnox-access-home.xn11-motion.xn11-fx-ready :is(.xn11-benefit,.xn11-step)[data-xn11-fx="side-card"]{opacity:0;transform:translate3d(var(--fx-x,-44px),0,0);transition:opacity .66s var(--fx-ease),transform .7s var(--fx-ease);transition-delay:calc(var(--i,0) * var(--fx-stagger))}
#xnox-access-home.xn11-motion.xn11-fx-ready :is(.xn11-benefit,.xn11-step)[data-xn11-fx="side-card"].xn11-fx-in{opacity:1;transform:none}
#xnox-access-home .xn11-benefit.xn11-fx-in .xn11-benefit-icon{animation:xn11FxIconPop .62s var(--fx-ease) calc(120ms + (var(--i,0) * var(--fx-stagger))) both}
#xnox-access-home .xn11-step.xn11-fx-in .xn11-step-number{animation:xn11FxIconPop .56s var(--fx-ease) calc(100ms + (var(--i,0) * var(--fx-stagger))) both}
@keyframes xn11FxIconPop{0%{transform:scale(0);opacity:0}68%{transform:scale(1.15);opacity:1}100%{transform:scale(1);opacity:1}}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-tools-ticker[data-xn11-fx="tools"] .xn11-tool{opacity:0;transform:scale(.9);transition:opacity .5s var(--fx-ease),transform .55s var(--fx-ease);transition-delay:calc(var(--tool-i,0) * 70ms)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-tools-ticker[data-xn11-fx="tools"].xn11-fx-in .xn11-tool{opacity:.76;transform:scale(1)}

/* H · Reseñas: animamos la fila, nunca el track para conservar xn11ReviewDriftV113 */
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-review-row[data-xn11-fx="review-row"]{opacity:0;transform:translate3d(var(--fx-x,-54px),0,0);transition:opacity .72s var(--fx-ease),transform .78s var(--fx-ease)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-review-row[data-xn11-fx="review-row"].xn11-fx-in{opacity:1;transform:none}

/* I · Demo / acceso / comunidad */
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-experience[data-xn11-fx="experience"] .xn11-experience-copy{opacity:0;transform:translate3d(var(--fx-copy-x,-52px),0,0);transition:opacity .72s var(--fx-ease),transform .78s var(--fx-ease)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-experience[data-xn11-fx="experience"] .xn11-experience-figure{opacity:0;transform:translate3d(var(--fx-figure-x,52px),0,0) scale(.94);transition:opacity .76s var(--fx-ease),transform .82s var(--fx-ease)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-experience[data-xn11-fx="experience"].xn11-fx-in :is(.xn11-experience-copy,.xn11-experience-figure){opacity:1;transform:none}
#xnox-access-home .xn11-experience-figure{position:relative;isolation:isolate}
#xnox-access-home .xn11-experience-figure::after{content:"";position:absolute;z-index:-1;inset:8%;border-radius:18px;box-shadow:0 22px 46px rgba(7,21,39,.17);opacity:0;transform:scale(.9);pointer-events:none;transition:opacity .7s var(--fx-ease),transform .8s var(--fx-ease)}
#xnox-access-home .xn11-experience.xn11-fx-in .xn11-experience-figure::after{opacity:1;transform:scale(1.06)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-experience-points>*{opacity:0;transform:translate3d(0,14px,0);transition:opacity .48s var(--fx-ease),transform .52s var(--fx-ease);transition-delay:calc(360ms + (var(--point-i,0) * 110ms))}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-experience.xn11-fx-in .xn11-experience-points>*{opacity:1;transform:none}

/* J · FAQ y cierre */
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-final[data-xn11-fx="final"]{opacity:1!important;transform:none!important;transition:none!important}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-faq details[data-xn11-fx="faq-item"]{opacity:0;transform:translate3d(0,20px,0);transition:opacity .56s var(--fx-ease),transform .6s var(--fx-ease);transition-delay:calc(var(--i,0) * 75ms)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-faq details[data-xn11-fx="faq-item"].xn11-fx-in{opacity:1;transform:none}
#xnox-access-home .xn11-faq details>div{transform-origin:50% 0}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-final[data-xn11-fx="final"] .xn11-final-grid{opacity:0;transform:scale(.955) translate3d(0,18px,0);transition:opacity .78s var(--fx-ease),transform .82s var(--fx-ease)}
#xnox-access-home.xn11-motion.xn11-fx-ready .xn11-final[data-xn11-fx="final"].xn11-fx-in .xn11-final-grid{opacity:1;transform:none}
#xnox-access-home .xn11-final [data-xn11-buy]::before{content:"";position:absolute;z-index:-1;inset:-5px;border:1px solid rgba(255,173,109,.65);border-radius:13px;opacity:0;transform:scale(.96);pointer-events:none}
#xnox-access-home .xn11-final.xn11-fx-in [data-xn11-buy]::before{animation:xn11FxFinalPulse 3.8s var(--fx-ease) 1.1s infinite}
@keyframes xn11FxFinalPulse{0%,70%,100%{opacity:0;transform:scale(.97)}82%{opacity:.65;transform:scale(1.035)}}

/* K · Parallax: solo transform; JS actualiza --fx-parallax-y */
#xnox-access-home .xn11-fx-parallax{transform:translate3d(0,var(--fx-parallax-y,0px),0);will-change:transform}

/* Móvil: distancias más cortas y entradas verticales. */
@media(max-width:819px){
  #xnox-access-home{--fx-distance:24px;--fx-stagger:70ms}
  #xnox-access-home.xn11-motion.xn11-fx-ready .xn11-fx-title,
  #xnox-access-home.xn11-motion.xn11-fx-ready :is(.xn11-benefit,.xn11-step)[data-xn11-fx="side-card"],
  #xnox-access-home.xn11-motion.xn11-fx-ready .xn11-review-row[data-xn11-fx="review-row"],
  #xnox-access-home.xn11-motion.xn11-fx-ready .xn11-cert-copy[data-xn11-fx="cert-copy"],
  #xnox-access-home.xn11-motion.xn11-fx-ready .xn11-diploma[data-xn11-fx="diploma"]{transform:translate3d(0,20px,0) scale(.98)}
  #xnox-access-home.xn11-motion.xn11-fx-ready .xn11-fx-title.xn11-fx-in,
  #xnox-access-home.xn11-motion.xn11-fx-ready :is(.xn11-benefit,.xn11-step)[data-xn11-fx="side-card"].xn11-fx-in,
  #xnox-access-home.xn11-motion.xn11-fx-ready .xn11-review-row[data-xn11-fx="review-row"].xn11-fx-in,
  #xnox-access-home.xn11-motion.xn11-fx-ready .xn11-cert-copy[data-xn11-fx="cert-copy"].xn11-fx-in,
  #xnox-access-home.xn11-motion.xn11-fx-ready .xn11-diploma[data-xn11-fx="diploma"].xn11-fx-in{transform:none}
  #xnox-access-home.xn11-motion.xn11-fx-ready .xn11-fx-hero-visual{--fx-from:translate3d(0,24px,0) scale(.97);--fx-to:none}
  #xnox-access-home.xn11-motion.xn11-fx-ready .xn11-experience[data-xn11-fx="experience"] :is(.xn11-experience-copy,.xn11-experience-figure){transform:translate3d(0,22px,0) scale(.985)}
  #xnox-access-home.xn11-motion.xn11-fx-ready .xn11-experience[data-xn11-fx="experience"].xn11-fx-in :is(.xn11-experience-copy,.xn11-experience-figure){transform:none}
  #xnox-access-home .xn11-fx-parallax{transform:none!important;will-change:auto}
}

/* Reduced motion: nada se oculta, nada se mueve. */
@media(prefers-reduced-motion:reduce){
  #xnox-access-home .xn11-fx-progress{display:none!important}
  #xnox-access-home.xn11-motion.xn11-fx-ready [data-xn11-fx],
  #xnox-access-home.xn11-motion.xn11-fx-ready .xn11-fx-title,
  #xnox-access-home.xn11-motion.xn11-fx-ready .xn11-category-block .xn11-category-block-head,
  #xnox-access-home.xn11-motion.xn11-fx-ready .xn11-category-block .xn11-category-card>*,
  #xnox-access-home.xn11-motion.xn11-fx-ready .xn11-experience[data-xn11-fx="experience"] :is(.xn11-experience-copy,.xn11-experience-figure),
  #xnox-access-home.xn11-motion.xn11-fx-ready .xn11-experience-points>*,
  #xnox-access-home.xn11-motion.xn11-fx-ready .xn11-final[data-xn11-fx="final"] .xn11-final-grid{opacity:1!important;transform:none!important;filter:none!important;transition:none!important;animation:none!important;will-change:auto!important}
  #xnox-access-home .xn11-eyebrow::before{transform:none!important;opacity:1!important;transition:none!important}
  #xnox-access-home :is(.xn11-hero::after,.xn11-hero-mockup,.xn11-course-buttons button,.xn11-category-symbol,.xn11-benefit-icon,.xn11-step-number,.xn11-sale-summary::after,.xn11-final [data-xn11-buy]::before,[data-xn11-buy]::after,.xn11-btn-orange::after,.xn11-ticker-flow,.xn11-ribbon-flow,.xn11-review-track){animation:none!important}
  #xnox-access-home .xn11-fx-parallax{transform:none!important;will-change:auto!important}
}
