/* FIXQRO · animacion del sitio (propuesta C, version ligera).
   Cada bloque se anima AL ENTRAR en pantalla; no se oculta nada de antemano (ocultar ~90 elementos de golpe
   costaba ~2 s de bloqueo en celulares lentos). Todo vive bajo prefers-reduced-motion:no-preference. */
@media (prefers-reduced-motion:no-preference){
 /* aparicion escalonada: la clase fa-go la pone anim.js cuando el bloque esta por entrar */
 html.fa-on .fa-go{animation:faup .7s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--i,0)*70ms)}
 @keyframes faup{from{opacity:0;translate:0 24px}to{opacity:1;translate:0 0}}
 /* subrayado que se dibuja bajo cada titulo (12 elementos) */
 html.fa-on .fa-h::after{content:"";display:block;height:4px;width:0;margin-top:14px;border-radius:4px;background:var(--accent,currentColor);
  transition:width .9s cubic-bezier(.22,1,.36,1) .25s}
 html.fa-on .fa-h.fa-in::after{width:64px}
 /* las imagenes se asientan al aparecer */
 html.fa-on .fa-go img{animation:fasettle 1.4s cubic-bezier(.22,1,.36,1) both}
 @keyframes fasettle{from{scale:1.1}to{scale:1}}
 /* los iconos de trazo se dibujan */
 html.fa-on .fa-go svg.fa-s path{stroke-dasharray:1;animation:fadraw 1.3s cubic-bezier(.65,0,.35,1) .2s both}
 @keyframes fadraw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
 /* hero: el titular entra palabra por palabra */
 html.fa-on .fa-w{display:inline-block}
 html.fa-on .fx-txt[data-activo="1"] .fa-w{animation:faword .8s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--w)*70ms)}
 @keyframes faword{from{opacity:0;translate:0 .5em;filter:blur(6px)}to{opacity:1;translate:0 0;filter:blur(0)}}
 /* brillo que sigue al cursor en las tarjetas (solo al pasar el raton) */
 html.fa-on article.flex{position:relative}
 html.fa-on article.flex::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;opacity:0;transition:opacity .3s;
  background:radial-gradient(280px circle at var(--mx,50%) var(--my,50%),rgba(255,255,255,.4),transparent 60%)}
 html.fa-on article.flex:hover::after{opacity:1}
 /* barra de progreso de lectura */
 #fa-prog{position:fixed;top:0;left:0;right:0;height:3px;z-index:60;background:var(--accent,#d0213f);transform-origin:0 50%;transform:scaleX(0);pointer-events:none}
}
