/* Efectos premium de las demos (ver fx-pro.js) */
/* Velo de partículas */
.cloak-on{position:relative;isolation:isolate}
.cloak-cv{position:absolute;inset:-6px;width:calc(100% + 12px);height:calc(100% + 12px);z-index:3;touch-action:pan-y;cursor:grab;border-radius:14px}
.cloak-on:not(.cloak-open)>:not(.cloak-cv):not(.cloak-hint){filter:blur(3px)}
.cloak-on>*{transition:filter .8s ease}
.cloak-hint{position:absolute;left:50%;top:50%;translate:-50% -50%;z-index:4;display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:99px;background:rgba(255,255,255,.92);color:#2f3b2f;font:600 .78rem/1 var(--body,system-ui);letter-spacing:.04em;white-space:nowrap;pointer-events:none;box-shadow:0 6px 18px rgba(0,0,0,.12);transition:opacity .4s}
.cloak-hint i{width:18px;height:18px;border-radius:50%;border:1.5px solid currentColor;position:relative;animation:cloakSwipe 1.8s ease-in-out infinite}
.cloak-hint i::after{content:"";position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px;border-radius:50%;background:currentColor}
@keyframes cloakSwipe{0%,100%{translate:-6px 0}50%{translate:6px 0}}
.cloak-touched .cloak-hint,.cloak-open .cloak-hint{opacity:0}

/* Pila de fotos */
.pile-on{display:grid!important;grid-template-columns:1fr!important;max-width:300px;margin-inline:auto!important;padding:10px 0 24px;user-select:none;-webkit-user-select:none}
.pile-on>*{grid-area:1/1;translate:0 calc(var(--pi,0) * 9px);scale:calc(1 - var(--pi,0) * .045);transition:translate .45s cubic-bezier(.2,.8,.2,1),scale .45s cubic-bezier(.2,.8,.2,1),rotate .45s cubic-bezier(.2,.8,.2,1),opacity .3s;touch-action:pan-y;cursor:grab}
.pile-on>.pile-hide{opacity:0;pointer-events:none}
.pile-on>.pile-drag{transition:none;cursor:grabbing}
.pile-on>.pile-fly{opacity:0;transition:translate .36s ease-in,rotate .36s ease-in,opacity .36s ease-in}
.pile-on>:not(.pile-top) img{pointer-events:none}
.pile-on img{-webkit-user-drag:none}
.pile-bar{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:6px}
.pile-bar button{width:42px;height:42px;border-radius:50%;border:1px solid currentColor;background:transparent;color:inherit;font-size:1.4rem;line-height:1;cursor:pointer}
.pile-n{min-width:64px;text-align:center;font-size:.9rem;letter-spacing:.06em;opacity:.8}

/* Deseos con globos */
.wish-sky{position:relative;height:340px;margin:24px auto 18px;max-width:560px;border-radius:24px;overflow:hidden}
.wish{position:absolute;left:var(--x);top:var(--y);width:31%;max-width:150px;translate:-50% 0;display:flex;flex-direction:column;align-items:center;animation:wishBob 5s ease-in-out var(--d,0s) infinite}
.wish svg{width:38px;height:auto;filter:drop-shadow(0 6px 10px rgba(0,0,0,.25))}
.wish p{margin-top:-4px;padding:6px 8px;border-radius:10px;background:#fff;color:#111;font:600 .72rem/1.25 var(--body,system-ui);text-align:center;border:var(--wish-bd,0);box-shadow:var(--wish-sh,0 4px 12px rgba(0,0,0,.18));max-width:100%;overflow-wrap:anywhere}
.wish.rise{animation:wishRise 1.6s cubic-bezier(.2,.8,.2,1) both,wishBob 5s ease-in-out 1.6s infinite}
@keyframes wishBob{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-10px) rotate(2deg)}}
@keyframes wishRise{from{transform:translateY(260px) scale(.6);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}
.shake{animation:shake .4s}
@keyframes shake{25%{translate:-6px 0}75%{translate:6px 0}}

/* Botón líquido */
.liquid{position:relative;overflow:hidden;isolation:isolate}
.liquid::before{content:"";position:absolute;left:var(--lx,50%);top:var(--ly,50%);width:260%;aspect-ratio:1;translate:-50% -50%;scale:0;z-index:-1;border-radius:41% 59% 62% 38%/46% 40% 60% 54%;background:var(--liq,#ff5fa8);transition:scale .6s cubic-bezier(.2,.8,.2,1);animation:liqSpin 5s linear infinite}
.liquid:hover::before,.liquid:focus-visible::before{scale:1}
.liquid:hover,.liquid:focus-visible{color:var(--liq-ink,inherit)}
@keyframes liqSpin{to{rotate:360deg}}

/* Avión de papel */
.plane-fly{position:fixed;z-index:9999;width:32px;height:32px;color:#111;pointer-events:none;animation:planeFly 1.2s cubic-bezier(.45,0,.2,1) forwards}
.plane-fly svg{width:100%;height:100%}
@keyframes planeFly{0%{transform:translate(0,0) rotate(0) scale(.6);opacity:0}15%{opacity:1;transform:translate(-14px,6px) rotate(-8deg) scale(1)}100%{transform:translate(46vw,-70vh) rotate(18deg) scale(.7);opacity:0}}
.plane-sent{position:relative}
@media (prefers-reduced-motion:reduce){.wish,.wish.rise,.liquid::before,.cloak-hint i{animation:none}.pile-on>*{transition:none}}
