/* Efectos de scroll de la portada. Todo depende de .hm-motion (se omite con "reducir movimiento")
   y usa translate / rotate / scale, que se suman a las transformaciones que ya tiene el diseño. */
.hm-progress{display:none}
.hm-motion .hm-progress{display:block;position:fixed;z-index:200;top:0;left:0;width:100%;height:3px;background:var(--ink);transform-origin:left;scale:var(--page,0) 1;pointer-events:none}

/* La flotación original anima translate y rotate; aquí se rehace con otras propiedades para que el scroll pueda usarlas. */
.hm-motion .hero .phone-frame,.hm-motion .hero .pay-float{animation-name:hm-float}
.hm-motion .hero .tap-float{animation-name:hm-float}
.hm-motion .hero .hero-deco{animation-name:hm-sway}
@keyframes hm-float{0%,100%{margin-top:0}50%{margin-top:-12px}}
@keyframes hm-sway{0%,100%{transform:rotate(13deg)}50%{transform:rotate(22deg)}}

/* Portada: versión ligera (móvil y pantallas bajas) */
.hm-motion:not(.hm-pin) .hero-copy>*{translate:0 calc(var(--p,0) * -40px)}
.hm-motion:not(.hm-pin) .hero-aura{scale:calc(1 + var(--p,0) * .45)}
.hm-motion:not(.hm-pin) .hero .phone-frame{rotate:calc(var(--p,0) * 16deg);translate:0 calc(var(--p,0) * 40px)}
.hm-motion:not(.hm-pin) .hero .pay-float{translate:0 calc(var(--p,0) * -90px)}
.hm-motion:not(.hm-pin) .hero .tap-float{translate:0 calc(var(--p,0) * -150px)}
.hm-motion:not(.hm-pin) .hero .hero-deco{rotate:calc(var(--p,0) * 180deg)}

/* Portada fija: el texto se va, la ilustración llega al centro y sus piezas se abren */
.hm-pin .hero{height:240vh;padding:0;overflow:clip}
.hm-pin .hero-grid{position:sticky;top:var(--hh,84px);height:calc(100vh - var(--hh,84px));height:calc(100svh - var(--hh,84px));min-height:0;align-content:center;--a:clamp(0,calc(var(--p,0) * 2.1),1);--b:clamp(0,calc(var(--p,0) * 2.2 - .75),1)}
.hm-pin .hero-copy>*{opacity:clamp(0,calc(1 - var(--p,0) * 3.4),1);translate:calc(var(--p,0) * -260px) calc(var(--p,0) * -90px)}
.hm-pin .hero-copy>h1{translate:calc(var(--p,0) * -420px) calc(var(--p,0) * -60px)}
.hm-pin .hm-away .hero-copy{pointer-events:none}
.hm-pin .hero-side{transform-origin:center;translate:calc(var(--a) * var(--cx,-300px)) 0;scale:calc(1 + var(--a) * .17)}
.hm-pin .hero-aura{scale:calc(1 + var(--a) * .25 + var(--b) * .35)}
.hm-pin .hero .phone-frame{rotate:calc(var(--a) * 10deg);translate:calc(var(--a) * 30px) 0}
.hm-pin .hero .pay-float{translate:calc(var(--b) * 150px) calc(var(--b) * -45px);rotate:calc(var(--b) * -6deg)}
.hm-pin .hero .tap-float{translate:calc(var(--b) * -360px) calc(var(--b) * -20px);rotate:calc(var(--b) * 4deg)}
.hm-pin .hero .round-sticker{translate:calc(var(--b) * -150px) calc(var(--b) * -40px);rotate:calc(var(--b) * -160deg)}
.hm-pin .hero .hero-deco{translate:calc(var(--b) * 120px) calc(var(--b) * -20px);rotate:calc(var(--p,0) * 220deg)}
@media(max-width:1100px){
 .hm-pin .hero-side{scale:calc(.86 + var(--a) * .17)}
 .hm-pin .hero .pay-float{translate:calc(var(--b) * 70px) calc(var(--b) * -45px)}
 .hm-pin .hero .tap-float{translate:calc(var(--b) * -230px) calc(var(--b) * -20px)}
}

/* Franja de categorías */
.hm-motion .marquee-inner{translate:calc((.5 - var(--p,0)) * 220px) 0}

/* Títulos de sección */
.hm-motion .section-head[data-hm] h2{transform-origin:left bottom;scale:calc(.84 + var(--p,0) * .16);translate:0 calc((1 - var(--p,0)) * 60px)}

/* Productos y soluciones: las tarjetas llegan escalonadas */
.hm-motion .product-card{scale:calc(.88 + var(--p,0) * .12);translate:0 calc((1 - var(--p,0)) * (50px + var(--i,0) * 80px))}
.hm-motion .product-card .pc-art{translate:0 calc((1 - var(--p,0)) * 55px)}
.hm-motion .solution-card{scale:calc(.9 + var(--p,0) * .1);translate:0 calc((1 - var(--p,0)) * (40px + var(--i,0) * 55px))}
.hm-motion .solution-feature{scale:clamp(.88,calc(.8 + var(--p,0) * .55),1)}
.hm-motion .solution-feature .sf-circle{scale:calc(.7 + var(--p,0) * .65)}
.hm-motion .solution-feature .sf-device{translate:0 calc((.5 - var(--p,0)) * 130px)}
.hm-motion .solution-feature .sf-message{translate:calc((.5 - var(--p,0)) * 90px) calc((.5 - var(--p,0)) * 150px)}

/* Asistente: la frase se ilumina y la escena crece */
.hm-motion [data-hm=words] span{opacity:clamp(.13,calc(var(--p,0) * (var(--n) + 3) - var(--i)),1)}
.hm-motion .story-visual{scale:calc(.86 + var(--p,0) * .14)}

/* Pagos protegidos: la sección se abre hasta el ancho completo */
.hm-motion .trust{overflow:clip;--o:clamp(0,calc(var(--p,0) * 3.4),1);clip-path:inset(0 calc((1 - var(--o)) * 4.5%) round calc((1 - var(--o)) * 56px))}
.hm-motion .trust-circle{scale:calc(.6 + var(--p,0) * .75)}
.hm-motion .trust-paper{rotate:calc((.55 - var(--p,0)) * -22deg);translate:0 calc((.5 - var(--p,0)) * 110px)}
.hm-motion .trust-sticker{translate:0 calc((.5 - var(--p,0)) * 210px)}
.hm-motion .trust-steps div{opacity:clamp(.25,calc(var(--p,0) * 11 - 2.4 - var(--s,0)),1)}
.hm-motion .trust-steps div:nth-child(2){--s:.8}
.hm-motion .trust-steps div:nth-child(3){--s:1.6}

/* Dashboard: la pantalla se levanta y las barras crecen */
.hm-motion .dashboard-grid{perspective:1300px;--o:clamp(0,calc(var(--p,0) * 2.6 - .2),1)}
.hm-motion .dash-screen{rotate:1 0 0 calc((1 - var(--o)) * 32deg);scale:calc(.86 + var(--o) * .14)}
.hm-motion .dash-bars i{transform-origin:bottom;scale:1 clamp(.05,calc(var(--p,0) * 5 - 1.1 - var(--s,0)),1)}
.hm-motion .dash-bars i:nth-child(2){--s:.1}
.hm-motion .dash-bars i:nth-child(3){--s:.2}
.hm-motion .dash-bars i:nth-child(4){--s:.3}
.hm-motion .dash-bars i:nth-child(5){--s:.4}
.hm-motion .dash-bars i:nth-child(6){--s:.5}
.hm-motion .dash-bars i:nth-child(7){--s:.6}

/* Cierre */
.hm-motion .internal-end .banner{scale:calc(.82 + var(--p,0) * .18)}
.hm-motion .internal-end .banner h2{translate:0 calc((1 - var(--p,0)) * 60px)}
