/* IMPULSO · capa de movimiento (agencia). Solo transform, opacity, clip-path y filter. */

/* ---------- Hero: titular por líneas + palabra que rota ---------- */
.hero h1 .ln{display:block;overflow:visible clip;padding-bottom:.1em;margin-bottom:-.1em}
.hero h1 .ln > span{display:inline-block}
.ready .hero-copy > h1{animation:none}
.ready .hero h1 .ln > span{animation:lineUp 900ms var(--ease-out) both}
.ready .hero h1 .ln:nth-child(2) > span{animation-delay:110ms}
.ready .hero h1 .ln:nth-child(3) > span{animation-delay:200ms}
.ready .hero-copy > :nth-child(2){animation-delay:320ms}
.ready .hero-copy > :nth-child(3){animation-delay:400ms}
.ready .hero-copy > :nth-child(4){animation-delay:470ms}
@keyframes lineUp{from{transform:translateY(125%)}}

.hero h1 .ln > .rot{display:inline-grid;vertical-align:top}
.rot .w{grid-area:1/1;font-style:normal;color:var(--tq);transition:transform 700ms var(--ease-out),opacity 450ms ease}
.rot .w:not(.is){opacity:0;transform:translateY(100%)}
.rot .w.out{opacity:0;transform:translateY(-100%)}
.rot .w:nth-child(2){color:#c9a2ff}
.rot .w:nth-child(4){color:#c9a2ff}

/* ---------- Escena: las tarjetas llegan una a una ---------- */
.ready .scene{animation:sceneFade 600ms ease both}
@keyframes sceneFade{from{opacity:0}}
.ready .browser{animation:float 7s ease-in-out infinite,cardIn 900ms var(--ease-out) 180ms backwards}
.ready .phone{animation:float 7s ease-in-out -2s infinite,cardIn 900ms var(--ease-out) 300ms backwards;--from:48px 10px}
.ready .crm{animation:float 7s ease-in-out -4s infinite,cardIn 900ms var(--ease-out) 400ms backwards;--from:0 48px}
.ready .ads{animation:float 7s ease-in-out -1s infinite,popIn 600ms var(--ease-out) 620ms backwards}
@keyframes cardIn{from{opacity:0;translate:var(--from,-40px 24px);scale:.94}}
@keyframes popIn{from{opacity:0;scale:.9}}

/* La web de ejemplo cambia de estilo con cada palabra: "así puede quedar tu página" */
.browser .site{transition:filter 700ms ease}
.browser .bar span{display:inline-block;transition:opacity 180ms ease,transform 220ms var(--ease-out)}
.browser .bar span.swap{opacity:0;transform:translateY(-4px)}
.scene[data-t="1"] .site{filter:hue-rotate(-60deg) saturate(1.1)}
.scene[data-t="2"] .site{filter:hue-rotate(110deg)}
.scene[data-t="3"] .site{filter:hue-rotate(200deg) saturate(1.15)}

/* ---------- Títulos de sección: palabras que suben desde una máscara ---------- */
.split .wd{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.08em;margin-bottom:-.08em}
.split .wd > span{display:inline-block;transform:translateY(110%);transition:transform 800ms var(--ease-out) var(--wd,0ms)}
.split.on .wd > span{transform:none}
.ready .head.rv.has-split{opacity:1;transform:none}
.ready .head.rv.has-split > p{opacity:0;transform:translateY(12px);transition:opacity 600ms var(--ease-out) 260ms,transform 700ms var(--ease-out) 260ms}
.ready .head.rv.has-split.in > p{opacity:1;transform:none}

/* ---------- Fotos: se descubren de abajo hacia arriba ---------- */
.ready .pq-media.rv{opacity:1;transform:none}
.ready .reveal-img{clip-path:inset(100% 0 0 0 round 20px);scale:1.12;transition:clip-path 1000ms var(--ease-out) var(--d,0ms),scale 1300ms var(--ease-out) var(--d,0ms)}
.ready .reveal-img.in{clip-path:inset(0 0 0 0 round 20px);scale:1}
.cta-photo{will-change:auto}
.ready .pq-chip{opacity:0;scale:.9;transition:opacity 400ms ease 650ms,scale 500ms var(--ease-out) 650ms}
.ready .pq-media.in .pq-chip{opacity:1;scale:1}

/* ---------- Cifras de los planes ---------- */
.vol b{font-variant-numeric:tabular-nums}

/* ---------- Pestañas: cambio rápido, sin cascada ---------- */
.panel{animation-duration:240ms}

/* ---------- Botones magnéticos (solo con ratón) ---------- */
.mag{transition:transform 160ms var(--ease-out),translate 450ms var(--ease-out),box-shadow 220ms ease,background-color 200ms ease,color 200ms ease}
.mag.tracking{transition:transform 160ms var(--ease-out),translate 120ms linear,box-shadow 220ms ease,background-color 200ms ease,color 200ms ease}

@media (prefers-reduced-motion: reduce){
  .rot .w:not(.is){display:none}
  .split .wd > span{transform:none}
  .ready .reveal-img,.ready .pq-chip,.ready .head.rv.has-split > p{clip-path:none;scale:1;opacity:1;transform:none}
}
.hero h1{font-size:clamp(42px,5.5vw,84px)}
