/* Valido · efectos 2026 (owner 25 nov: "efectos nuevos que no tengamos, todos"). El mismo archivo en VE y VI.
   Todo se apaga con "reducir movimiento". Lo de mouse solo en compu (hover + puntero fino). */
:root{--vfx-oro:#e2c477;--vfx-oro2:#fff3cf}
/* 9 · barra de progreso dorada */
.vfx-prog{position:fixed;inset:0 0 auto 0;height:2px;z-index:2147483600;pointer-events:none;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,#8a6a2a,var(--vfx-oro),var(--vfx-oro2),var(--vfx-oro));box-shadow:0 0 10px rgba(226,196,119,.55)}
@supports (animation-timeline:scroll()){.vfx-prog{animation:vfxProg linear both;animation-timeline:scroll(root)}@keyframes vfxProg{to{transform:scaleX(1)}}}
/* 11 · grano de película */
html.vfx body::after{content:"";position:fixed;inset:-50%;z-index:2147483500;pointer-events:none;opacity:.055;mix-blend-mode:overlay;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");animation:vfxGrano 1.2s steps(6) infinite}
@keyframes vfxGrano{0%{transform:translate(0,0)}20%{transform:translate(-3%,2%)}40%{transform:translate(2%,-3%)}60%{transform:translate(-2%,3%)}80%{transform:translate(3%,1%)}100%{transform:translate(0,0)}}
/* 1 · brillo de oro que barre los títulos (en las <em> doradas) */
.vfx-sheen{background-image:linear-gradient(100deg,var(--vfx-c,var(--vfx-oro)) 0%,var(--vfx-c,var(--vfx-oro)) 42%,var(--vfx-oro2) 50%,var(--vfx-c,var(--vfx-oro)) 58%,var(--vfx-c,var(--vfx-oro)) 100%);background-size:260% 100%;background-position:100% 0;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:vfxSheen 6.5s ease-in-out infinite}
@keyframes vfxSheen{0%,55%{background-position:100% 0}85%,100%{background-position:0 0}}
/* 3 · títulos que aparecen como en los créditos · 4 · la letra gana peso al entrar */
.vfx-line{clip-path:inset(0 0 100% 0);transform:translateY(.35em);transition:clip-path 1.1s cubic-bezier(.2,.75,.15,1),transform 1.1s cubic-bezier(.2,.75,.15,1),font-weight 1.6s ease,font-variation-settings 1.6s ease}
.vfx-line.vfx-in{clip-path:inset(-0.2em -0.2em -0.3em -0.2em);transform:none}
.vfx-peso{font-variation-settings:"wght" 200}
.vfx-peso.vfx-in{font-variation-settings:"wght" 340}
/* 2 · las pinturas y fotos se mueven con el scroll (CSS nativo) */
@supports (animation-timeline:view()){.vfx-par{animation:vfxPar linear both;animation-timeline:view();animation-range:entry 0% exit 100%;will-change:transform}@keyframes vfxPar{from{transform:translateY(-3.5%) scale(1.07)}to{transform:translateY(3.5%) scale(1.07)}}}
/* 5 · luz que sigue al cursor · 6 · inclinación 3D */
.vfx-card{position:relative;transform-style:preserve-3d;transition:transform .5s cubic-bezier(.2,.8,.2,1),box-shadow .5s}
.vfx-card::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .35s;background:radial-gradient(420px circle at var(--vfx-x,50%) var(--vfx-y,50%),rgba(226,196,119,.18),rgba(226,196,119,.05) 35%,transparent 60%);mix-blend-mode:screen}
.vfx-card.vfx-hot::after{opacity:1}
.vfx-card.vfx-hot{box-shadow:0 24px 60px rgba(0,0,0,.45),0 0 0 1px rgba(226,196,119,.25)}
/* 7 · botones magnéticos */
.vfx-mag{transition:transform .35s cubic-bezier(.2,.8,.2,1)}
/* 8 · contadores */
.vfx-num{font-variant-numeric:tabular-nums}
/* 10 · el logo viaja entre páginas (transiciones que ya tenemos, ahora con nombre) */
.vfx-logo{view-transition-name:vfx-logo}
::view-transition-group(vfx-logo){animation-duration:.6s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
@media (prefers-reduced-motion:reduce){.vfx-prog,html.vfx body::after,.vfx-sheen,.vfx-par{animation:none!important}.vfx-line{clip-path:none!important;transform:none!important;transition:none!important}.vfx-card,.vfx-mag{transition:none!important;transform:none!important}html.vfx body::after{display:none}}
@media print{.vfx-prog,html.vfx body::after{display:none}}
