/* TuAula — animaciones de la app (v2, 11-nov-2026: portadas reales con visos y animación encima; ícono en la bienvenida).
   Las carga index.html; la lógica está en assets/js/fx.js. Todo lo que oculta contenido depende de clases que pone fx.js, así que si el JS falla la app se ve completa. */

@property --fx-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------- Portada: carrusel ---------- */
.fx-hero-col { display: grid; gap: 10px; min-width: 0; justify-items: center; }
.fx-hero-col > .hero-figure { justify-self: stretch; margin-inline: auto; }
.hero-figure.fx-car { perspective: 1400px; isolation: isolate; background: var(--card); }
.fx-on .hero-figure.fx-car { animation: fx-card-in 1s .05s both cubic-bezier(.2, .8, .2, 1); }
.fx-slide { position: absolute; inset: 0; display: block; transition: transform .85s cubic-bezier(.7, 0, .2, 1), opacity .6s ease, filter .6s ease; backface-visibility: hidden; transform-origin: 50% 50%; }
.fx-slide:not(.on) { opacity: 0; transform: translateX(38%) rotateY(-32deg) scale(.86); filter: blur(6px); pointer-events: none; }
.fx-slide.from-left:not(.on) { transform: translateX(-38%) rotateY(32deg) scale(.86); }
.fx-slide.out { transform: translateX(-38%) rotateY(32deg) scale(.86); }
.fx-slide.out-right { transform: translateX(38%) rotateY(-32deg) scale(.86); }
.fx-reduce .fx-slide { transition: opacity .25s; transform: none !important; filter: none !important; }

.fx-cs { text-decoration: none; color: var(--ink); background: var(--card); display: flex; flex-direction: column; }
.fx-cs .fx-cover { flex: 1 1 58%; min-height: 0; border-radius: 0; }
.fx-cbody { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; background: var(--card); position: relative; }
.fx-cbody::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 4px; background: linear-gradient(90deg, var(--c), #5eead4); }
.fx-meta { font: 600 .74rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink); }
.fx-ct { font: 700 clamp(1.35rem, 5.4vw, 1.75rem)/1.1 var(--font-head); letter-spacing: -.02em; }
.fx-cd { color: var(--ink-2); font-size: .93rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fx-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 12px 18px; border-radius: 14px; background: var(--teal); color: #fff; font: 600 .98rem/1 var(--font-head); box-shadow: 0 4px 0 #087575; }
:root[data-theme="dark"] .fx-cta { color: #04223a; }
.fx-cta svg { width: 18px; height: 18px; transition: transform .25s; }
.fx-cs:hover .fx-cta svg { transform: translateX(4px); }
.fx-cs.on .fx-cover .big { animation: fx-pop .8s .25s both cubic-bezier(.3, 1.6, .5, 1), fx-hover-y 5s 1.1s ease-in-out infinite; }
.fx-cs.on .fx-cover > img { animation: fx-zoom 7s ease-out both; }
.fx-cs.on .fx-meta { animation: fx-rise .5s .3s both; }
.fx-cs.on .fx-ct { animation: fx-rise .6s .4s both; }
.fx-cs.on .fx-cd { animation: fx-rise .6s .52s both; }
.fx-cs.on .fx-cta { animation: fx-rise .6s .64s both, fx-pulse 2.6s 1.6s ease-in-out infinite; }
.fx-cs.on .fx-chip { animation: fx-rise .5s .2s both; }

/* Diapositiva con imagen propia (panel → Carrusel de portada) */
.fx-is { display: block; background: #0b1a2c; color: #fff; text-decoration: none; overflow: hidden; }
.fx-is .fx-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.fx-is.on .fx-bg { animation: fx-zoom 7s ease-out both; }
.fx-ibody { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: 70px 20px 22px; background: linear-gradient(transparent, rgba(4, 20, 42, .82) 62%); }
.fx-is .fx-ct { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.fx-is .fx-cd { color: rgba(255, 255, 255, .9); }
.fx-is.on .fx-ct { animation: fx-rise .6s .3s both; }
.fx-is.on .fx-cd { animation: fx-rise .6s .42s both; }
.fx-is.on .fx-cta { animation: fx-rise .6s .54s both, fx-pulse 2.6s 1.6s ease-in-out infinite; }
.fx-is:hover .fx-cta svg { transform: translateX(4px); }

.fx-bars { position: absolute; z-index: 4; left: 12px; right: 12px; top: 10px; display: flex; gap: 3px; pointer-events: none; }
.fx-bars i { flex: 1; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .35); overflow: hidden; box-shadow: 0 0 0 .5px rgba(11, 37, 69, .15); }
.fx-bars b { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.hero-figure.fx-car::after { content: ""; position: absolute; z-index: 3; inset: 0 0 auto; height: 44px; pointer-events: none; background: linear-gradient(rgba(4, 20, 42, .35), transparent); }
.fx-paused .fx-bars b { opacity: .6; }

.fx-nav { position: absolute; z-index: 5; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(11, 37, 69, .45); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s, transform .25s; }
.fx-nav svg { width: 20px; height: 20px; }
.fx-nav.prev { left: 10px; transform: translateX(-6px); }
.fx-nav.next { right: 10px; transform: translateX(6px); }
.hero-figure.fx-car:hover .fx-nav, .fx-nav:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .fx-nav { opacity: .85; transform: none; width: 34px; height: 34px; margin-top: -17px; } }
.fx-count { display: flex; gap: 8px; align-items: baseline; justify-content: center; min-height: 1.4em; font-size: .85rem; color: var(--ink-3); text-align: center; max-width: 100%; }
.fx-count b { font-family: var(--font-head); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }

/* ---------- Portada animada (cuando no hay imagen del curso) ---------- */
.fx-cover { position: relative; display: block; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 95% at 85% 0%, color-mix(in srgb, var(--c) 50%, #fff) 0%, var(--c) 42%, color-mix(in srgb, var(--c) 45%, #04142a) 100%); }
.fx-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; animation: fx-fade .6s both; }
/* Con imagen: la foto queda abajo y encima siguen el velo del color del curso, los visos, la cuadrícula,
   el anillo y el ícono (en la esquina superior derecha, para no tapar a la persona) */
.fx-cover.has-img > img { z-index: 0; object-position: 50% 28%; }
.pro-welcome .pw-img { object-position: 50% 26%; } /* que se vea la cara en pantallas horizontales */
.fx-cover.has-img::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 38%, transparent) 0%, transparent 42%, transparent 58%, color-mix(in srgb, var(--c) 40%, rgba(4, 20, 42, .55)) 100%); }
.fx-cover.has-img .fx-art { z-index: 1; }
.fx-cover.has-img .fx-art .g { opacity: .45; }
.fx-cover.has-img .fx-art .orb { mix-blend-mode: screen; opacity: .55; }
.fx-cover.has-img .fx-art .orb.o2 { mix-blend-mode: multiply; opacity: .45; }
.fx-cover.has-img .fx-art .scan { background: linear-gradient(transparent, rgba(255, 255, 255, .3), transparent); mix-blend-mode: screen; }
.fx-cover.has-img .fx-art::after { content: ""; position: absolute; inset: -20% -60%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .38) 50%, transparent 58%); transform: translateX(-60%); animation: fx-sheen 6s ease-in-out infinite; }
.fx-cover.has-img .fx-art .mini { opacity: .28; }
.fx-cover.has-img .fx-art .m3 { opacity: .18; }
.fx-cover.has-img .fx-art .big { left: auto; right: 16px; top: 16px; margin: 0; width: 52px; height: 52px; border-radius: 16px;
  background: color-mix(in srgb, var(--c) 62%, rgba(255, 255, 255, .1)); border-color: rgba(255, 255, 255, .5); }
.fx-cover.has-img .fx-art .big svg { width: 28px; height: 28px; }
.fx-cover.has-img .fx-art .ring { left: auto; right: 2px; top: 2px; margin: 0; width: 80px; height: 80px; }
.fx-cs .fx-cover.has-img .fx-art .big { right: 24px; top: 24px; width: 78px; height: 78px; border-radius: 22px; }
.fx-cs .fx-cover.has-img .fx-art .big svg { width: 42px; height: 42px; }
.fx-cs .fx-cover.has-img .fx-art .ring { right: 3px; top: 3px; width: 120px; height: 120px; }
@keyframes fx-sheen { 0%, 50% { transform: translateX(-60%); } 85%, 100% { transform: translateX(60%); } }

/* Bienvenida al curso con imagen: ícono animado sobre la foto, junto al título */
.pw-badge { display: none; }
.pro-welcome.has-img .pw-badge { position: relative; display: grid; place-items: center; width: 84px; height: 84px; margin: 0 0 18px; }
.pw-badge .pwb-ico { position: relative; z-index: 1; width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; color: #fff;
  background: color-mix(in srgb, var(--c) 62%, rgba(255, 255, 255, .14)); border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(8px);
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .4);
  animation: pw-ico 1s var(--e-spring, cubic-bezier(.3, 1.6, .5, 1)) .15s both, fx-hover-y 4s 1.2s ease-in-out infinite; }
.pw-badge svg { width: 44px; height: 44px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }
.pw-badge .pwb-ring { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55);
  transform: translate(-50%, -50%) scale(.8); opacity: 0; animation: pwb-ring 2.4s ease-out infinite; }
.pw-badge .pwb-ring.r2 { animation-delay: .6s; }
.pw-badge .pwb-ring.r3 { animation-delay: 1.2s; }
@keyframes pwb-ring { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.8); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.3); } }
.pro-welcome.has-img .pw-art::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(110% 70% at 85% 0%, color-mix(in srgb, var(--c) 42%, transparent), transparent 62%); }
.pro-welcome.has-img .pw-art::after { content: ""; position: absolute; inset: 0 -50%; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .26) 50%, transparent 58%); transform: translateX(-70%); animation: pw-sheen 2.2s .5s ease-in-out both; }
@keyframes pw-sheen { from { transform: translateX(-70%); } to { transform: translateX(70%); } }
@media (min-width: 760px) {
  .pro-welcome.has-img .pw-badge, .pw-badge .pwb-ico, .pw-badge .pwb-ring { width: 100px; height: 100px; }
  .pw-badge .pwb-ico { border-radius: 30px; }
  .pw-badge svg { width: 52px; height: 52px; }
}
.fx-chip { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: #3c4f6b; font: 700 .72rem/1.2 var(--font-head); backdrop-filter: blur(6px); }
.fx-chip.live { background: rgba(227, 246, 234, .95); color: #1e7d48; }
.fx-cs .fx-chip { top: 24px; bottom: auto; }
.fx-art { position: absolute; inset: 0; }
.fx-art .g { position: absolute; inset: -26px; background-image: linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 50%, #000, transparent 80%); mask-image: radial-gradient(70% 80% at 70% 50%, #000, transparent 80%); animation: fx-grid 9s linear infinite; }
.fx-art .orb { position: absolute; width: 46%; aspect-ratio: 1; right: -8%; top: -20%; border-radius: 50%; background: rgba(255, 255, 255, .28); filter: blur(28px); animation: fx-orb 8s ease-in-out infinite alternate; }
.fx-art .orb.o2 { width: 34%; left: -8%; right: auto; top: auto; bottom: -24%; background: rgba(4, 20, 42, .35); animation-duration: 10s; }
.fx-art .ring { position: absolute; left: 50%; top: 52%; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .45); animation: fx-orbit 18s linear infinite; }
.fx-art .ring i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff; top: -5px; left: 50%; margin-left: -4px; }
.fx-art .ring i + i { top: auto; bottom: 14px; left: 6px; width: 6px; height: 6px; opacity: .7; }
.fx-art .big { position: absolute; left: 50%; top: 52%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); box-shadow: 0 18px 30px -16px rgba(4, 20, 42, .7), inset 0 1px 0 rgba(255, 255, 255, .4); animation: fx-hover-y 5s ease-in-out infinite; }
.fx-art .big svg { width: 40px; height: 40px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }
.fx-art .mini { position: absolute; color: #fff; opacity: .2; }
.fx-art .mini svg { width: 100%; height: 100%; }
.fx-art .m1 { width: 34px; height: 34px; left: 16%; bottom: 14%; transform: rotate(-14deg); }
.fx-art .m2 { width: 24px; height: 24px; right: 13%; top: 18%; transform: rotate(12deg); }
.fx-art .m3 { width: 46px; height: 46px; right: 6%; bottom: -6%; transform: rotate(-8deg); opacity: .12; }
.fx-art .scan { position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(transparent, rgba(255, 255, 255, .18), transparent); animation: fx-scan 4.5s ease-in-out infinite; }
.fx-cs .fx-art .ring { width: 210px; height: 210px; margin: -105px 0 0 -105px; }
.fx-cs .fx-art .big { width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 32px; }
.fx-cs .fx-art .big svg { width: 62px; height: 62px; }
.fx-cs .fx-art .m1 { width: 54px; height: 54px; } .fx-cs .fx-art .m3 { width: 80px; height: 80px; }

/* ---------- Tarjetas de curso con volteo ---------- */
.subject.fx-flip { padding: 0; background: none; border: 0; box-shadow: none; overflow: visible; perspective: 1400px; min-height: 0; display: block; }
.subject.fx-flip:hover { transform: none; }
.fx-in3d { display: grid; height: 100%; transform-style: preserve-3d; transition: transform .85s cubic-bezier(.35, 1.35, .45, 1); }
.fx-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius, 18px); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; position: relative; }
.fx-back { transform: rotateY(180deg); padding: 16px; gap: 8px; }
.fx-back::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--c), #5eead4); }
.fx-back .fx-desc { font-size: .86rem; color: var(--ink-2); margin: 0; line-height: 1.45; }
@media (hover: hover) and (pointer: fine) { .subject.fx-flip:hover .fx-in3d { transform: rotateY(180deg); } }
.subject.fx-flip.fx-flipped .fx-in3d, .subject.fx-flip:focus-visible .fx-in3d { transform: rotateY(180deg); }
.subject.fx-flip:focus-visible { outline: none; }
.subject.fx-flip:focus-visible .fx-back { outline: 3px solid var(--teal); outline-offset: 2px; }
.fx-front .fx-cover { flex: 1 0 auto; min-height: 128px; }
.fx-fbody { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.fx-ft { font: 700 1.05rem/1.2 var(--font-head); letter-spacing: -.01em; }
.fx-frow { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--ink-3); }
.fx-turn { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 6px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--teal-ink); font: 600 .74rem/1 var(--font-head); cursor: pointer; background: var(--card); }
.fx-turn svg { width: 14px; height: 14px; transition: transform .5s; }
.fx-turn em { font-style: normal; }
.subject.fx-flip:hover .fx-turn svg { transform: rotate(180deg); }
.fx-bturn { position: absolute; top: 12px; right: 12px; padding: 6px; }
@media (hover: hover) and (pointer: fine) { .fx-bturn { display: none; } }
.subject.soon .fx-cover { filter: saturate(.55); }
.fx-reduce .fx-in3d, .fx-reduce .fx-back { transform: none !important; }
.fx-reduce .fx-face { transition: opacity .2s; }
.fx-reduce .fx-back { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .fx-reduce .subject.fx-flip:hover .fx-back { opacity: 1; } .fx-reduce .subject.fx-flip:hover .fx-front { opacity: 0; } }
.fx-reduce .subject.fx-flip.fx-flipped .fx-back { opacity: 1; }
.fx-reduce .subject.fx-flip.fx-flipped .fx-front { opacity: 0; }

/* ---------- Entradas ---------- */
.fx-on .fx-rv { opacity: 0; transform: translateY(34px) scale(.96); filter: blur(5px); transition: opacity .7s ease var(--fx-d, 0s), transform .9s cubic-bezier(.2, .8, .2, 1) var(--fx-d, 0s), filter .7s ease var(--fx-d, 0s); }
.fx-on .fx-rv.fx-v { opacity: 1; transform: none; filter: none; }
.fx-on .fx-plan.fx-rv { transform: perspective(1000px) translateY(60px) rotateX(20deg); }
.fx-on .fx-plan.fx-rv.fx-v { transform: none; }

.fx-split { perspective: 900px; }
.fx-split .fx-w { display: inline-block; }
.fx-split .fx-wi { display: inline-block; opacity: 0; transform: translateY(.6em) rotateX(-75deg); transform-origin: 50% 100%; filter: blur(6px); transition: opacity .6s ease, transform .9s cubic-bezier(.2, .85, .25, 1), filter .6s ease; transition-delay: calc(.08s + var(--i) * 60ms); }
.fx-split.fx-go .fx-wi { opacity: 1; transform: none; filter: none; }

.fx-on .filters .filter { animation: fx-rise .45s calc(var(--k, 0) * 45ms) both; }
.fx-on .perks li { opacity: 0; transform: translateX(-18px); transition: opacity .45s ease calc(var(--k) * 80ms), transform .45s ease calc(var(--k) * 80ms); }
.fx-on .perks.fx-v li { opacity: 1; transform: none; }
.fx-on .perks li svg { transform: scale(0) rotate(-90deg); transition: transform .45s cubic-bezier(.3, 1.7, .5, 1) calc(.15s + var(--k) * 80ms); }
.fx-on .perks.fx-v li svg { transform: none; }

/* Plan destacado: borde que gira y cinta con brillo */
.fx-on .plan.featured.fx-plan { isolation: isolate; }
.fx-on .plan.featured.fx-plan::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 1;
  background: conic-gradient(from var(--fx-a), transparent 0 60%, #5eead4 75%, #6c5fff 85%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: fx-angle 4s linear infinite; }
.fx-on .plan .ribbon { overflow: hidden; z-index: 2; }
.fx-on .plan .ribbon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%); transform: translateX(-120%); animation: fx-shine 3.5s 1.5s ease-in-out infinite; }
.fx-on .plan .price { font-variant-numeric: tabular-nums; }

.fx-spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--teal) 15%, transparent), transparent 70%); }
.fx-spot:hover::after { opacity: 1; }

/* ---------- Keyframes ---------- */
@keyframes fx-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fx-card-in { from { opacity: 0; transform: perspective(1400px) translateY(30px) rotateX(12deg) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes fx-pop { 0% { transform: scale(0) rotate(-20deg); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes fx-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes fx-pulse { 0%, 100% { box-shadow: 0 4px 0 #087575, 0 0 0 0 color-mix(in srgb, var(--teal) 50%, transparent); } 50% { box-shadow: 0 4px 0 #087575, 0 0 0 9px transparent; } }
@keyframes fx-shine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes fx-grid { to { transform: translate(26px, 26px); } }
@keyframes fx-orb { to { transform: translate(-40px, 30px) scale(1.2); } }
@keyframes fx-orbit { to { transform: rotate(360deg); } }
@keyframes fx-hover-y { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
@keyframes fx-scan { 0%, 30% { top: -40%; } 70%, 100% { top: 110%; } }
@keyframes fx-angle { to { --fx-a: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .fx-art *, .fx-art::after, .fx-cs.on *, .fx-is.on *, .pw-badge *, .pro-welcome .pw-art::after { animation: none !important; }
  .pro-welcome .pw-art::after { display: none; }
  .pw-badge .pwb-ring { display: none; }
}

/* ---------- Fondo animado de toda la app (assets/js/bg.js) ---------- */
/* La red de nodos y el resplandor van fijos detrás de todo el contenido. Si alguna pantalla tuviera un fondo sólido propio, la red no se vería ahí. */
.bg-glow { position: fixed; inset: -10% -5%; z-index: -1; pointer-events: none;
  background: radial-gradient(420px 420px at 78% 26%, color-mix(in srgb, var(--teal) 22%, transparent), transparent 70%),
              radial-gradient(360px 360px at 12% 14%, rgba(108, 95, 255, .12), transparent 70%),
              radial-gradient(380px 380px at 60% 92%, color-mix(in srgb, var(--teal) 14%, transparent), transparent 70%);
  animation: bg-drift 14s ease-in-out infinite alternate; }
.bg-net { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .85; }
.bg-on #view { background: transparent; }
@keyframes bg-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-30px, 20px, 0); } }
@media (prefers-reduced-motion: reduce) { .bg-glow, .bg-net { display: none; } }
