:root{--lunaria-paper:url(/assets/invitaciones/planetas/envelope-paper.webp);--lunaria-meet:51%;--lunaria-linea:rgba(91,115,139,.45)}html.envelope-pending,html.envelope-pending body{overflow:hidden}html:not(.envelope-pending) .lunaria-envelope-overlay{display:none}.lunaria-envelope-overlay{position:fixed;inset:0;z-index:10000;overflow:hidden;background:#e7e3d9;transition:opacity .9s ease}.lunaria-envelope-overlay.envelope-exit{opacity:0;pointer-events:none}.lunaria-envelope{position:absolute;inset:0;perspective:1600px}.lunaria-back{position:absolute;inset:0;background:linear-gradient(145deg,#c6cdd0aa,#ddd6c999),var(--lunaria-paper) center / cover;box-shadow:inset 0 0 100px #555b6526}.lunaria-flap{position:absolute;inset:0;transform-origin:var(--hinge);transition:transform 1.15s cubic-bezier(.45,0,.2,1),opacity .9s ease;will-change:transform,opacity}.lunaria-flap:before{content:"";position:absolute;inset:0;clip-path:var(--shape);background-image:var(--light),var(--lunaria-paper);background-size:100% 100%,cover;background-position:center,var(--grain-position,center)}.flap-left{--shape:polygon(0 0,53% 51%,0 100%);--hinge:0% 50%;--light:linear-gradient(100deg,#fffaf173,#e6dfcf9e 90%);--grain-position:20% 10%;z-index:2;filter:drop-shadow(2px 0 1px #6e665e24) drop-shadow(8px 0 12px #5a53491c)}.flap-right{--shape:polygon(100% 0,100% 100%,47% 51%);--hinge:100% 50%;--light:linear-gradient(255deg,#f8f2e88c,#d7d0c4b0);--grain-position:80% 20%;z-index:3;filter:drop-shadow(-2px 0 1px #6e665e24) drop-shadow(-8px 0 12px #5a53491c)}.flap-bottom{--shape:polygon(0 100%,0 98%,50% 46%,100% 98%,100% 100%);--hinge:50% 100%;--light:linear-gradient(0deg,#eee7da88,#fffaf070 70%,#c9bfae8c);--grain-position:50% 90%;z-index:4;filter:drop-shadow(0 -1px 1px #fff9eb) drop-shadow(0 -4px 4px #71655526)}.flap-top{--shape:polygon(0 0,100% 0,100% 1%,51% 53%,50% 53.5%,49% 53%,0 1%);--hinge:50% 0%;--light:linear-gradient(165deg,#fffdf580,#f1e9da8c 65%,#d8cebd99);--grain-position:50% 0%;z-index:5;filter:drop-shadow(0 1px 1px #86756255) drop-shadow(0 7px 7px #67533b2e)}.flap-top.is-open{transform:rotateX(155deg);opacity:0}.flap-bottom.is-open{transform:translateY(85%) rotateX(-35deg);opacity:0}.flap-left.is-open{transform:translate(-90%) rotateY(-35deg);opacity:0}.flap-right.is-open{transform:translate(90%) rotateY(35deg);opacity:0}.lunaria-envelope:after{content:"";position:absolute;inset:0;z-index:6;pointer-events:none;background:radial-gradient(ellipse at 28% 14%,#fff9e929,transparent 65%),radial-gradient(ellipse at 50% 50%,transparent 30%,#5b514611 100%)}.lunaria-seal-wrapper{position:absolute;left:50%;top:var(--lunaria-meet);width:clamp(170px,24vw,214px);aspect-ratio:1;transform:translate(-50%,-50%);z-index:10;border:0;padding:0;background:transparent;color:#526374;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .5s ease,opacity .5s ease}.lunaria-seal-img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(1px 2px 1px #27374455) drop-shadow(3px 9px 7px #3d495b40);transition:transform .3s ease,filter .3s ease}.lunaria-seal-wrapper:hover .lunaria-seal-img{transform:rotate(-3deg) scale(1.035);filter:drop-shadow(1px 3px 1px #27374455) drop-shadow(4px 13px 9px #3d495b40)}.lunaria-seal-wrapper.seal-hide{transform:translate(-50%,-55%) rotate(-9deg) scale(1.15);opacity:0;pointer-events:none}.lunaria-tooltip{position:absolute;left:50%;bottom:calc(100% - 9px);transform:translate(-50%);padding:8px 17px;border:1px solid #fffdf1cc;border-radius:30px;background:#fffdf2b8;box-shadow:0 3px 12px #6e63500d;font:13px Georgia,Times New Roman,serif;letter-spacing:1px;white-space:nowrap;animation:lunaria-breathe 2.8s ease-in-out infinite}@keyframes lunaria-breathe{0%,to{transform:translate(-50%)}50%{transform:translate(-50%,-4px)}}.lunaria-seal-wrapper:focus-visible{outline:none}.lunaria-seal-wrapper:focus-visible .lunaria-seal-img{outline:2px solid var(--lunaria-linea);outline-offset:-18px;border-radius:50%}@media(prefers-reduced-motion:reduce){.lunaria-flap,.lunaria-envelope-overlay,.lunaria-seal-wrapper,.lunaria-seal-img{transition:none}.lunaria-tooltip{animation:none}}
