:root{--wine:#8a5db1;--wine-dark:#5f3c83;--wine-mid:#9f72c6;--ivory:#fffafd;--paper:#f8f1ff;--blush:#eee4f8;--rose:#c9a9e6;--gold:#c89a55;--ink:#3b3045}
.envelope-screen{background:radial-gradient(ellipse at 50% 34%,#c9a9e6 0,#9b73c0 37%,#704796 69%,#43285f 100%)}
.envelope-screen:before{background:radial-gradient(circle at 50% 41%,#f4eaff55 0,transparent 42%),radial-gradient(circle at 18% 18%,#e7d7f633 0,transparent 28%),linear-gradient(150deg,#ffffff10,transparent 55%,#1f0d342b);background-size:auto;opacity:1}
.seal-fabi{background:transparent;border-radius:50%;box-shadow:none;clip-path:none}
.seal-fabi:before{display:none}.seal-fabi:after{display:none}.seal-fabi img{width:100%;height:100%;object-fit:contain;position:relative;z-index:2;filter:drop-shadow(0 10px 10px #25103978)}
.letter-butterfly{filter:drop-shadow(7px 10px 8px #3e182838)}
.wine-petal{display:none}
.reading-progress span{background:linear-gradient(90deg,#d477ca,#d8b77d)}
.hero{background:radial-gradient(circle at 50% 35%,#fff 0,#fffafd 45%,#f2e4f2 100%)}
.portrait-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(145deg,#f5dcf2,#ddb3dc);color:#842781}
.portrait-placeholder:after{content:'';position:absolute;inset:26px;border:1px solid #ffffff85;border-radius:130px 130px 6px 6px}
.portrait-placeholder span{font:400 38px/1.05 var(--script);position:relative;z-index:2}
.portrait-placeholder small{margin-top:8px;font:600 10px/1.4 var(--sans);letter-spacing:.18em;text-transform:uppercase;position:relative;z-index:2}
.portrait-fabiana{background:radial-gradient(circle at 50% 25%,#f9f2ff 0,#e8d9f5 56%,#caa9e2 100%)}
.portrait-fabiana img{width:100%;height:100%;object-fit:contain!important;object-position:center bottom!important;position:relative;z-index:1;filter:drop-shadow(0 14px 18px #4d2e6035)}
.portrait-fabiana:before{z-index:2;pointer-events:none}
.invitation-note{margin-top:38px!important;font-size:15px}
.burgundy{background:radial-gradient(circle at top,#b84db0,var(--wine-dark))}
.detail-card{background:linear-gradient(180deg,#fff,#fdf8fc)}
.entry-requirement{margin:34px auto 0;padding:22px 18px;border-top:1px solid #b69a726b;border-bottom:1px solid #b69a726b;display:flex;justify-content:center;align-items:center;gap:12px}
.entry-requirement span{color:var(--wine);font-size:24px}.entry-requirement p{margin:0;font-weight:500}
.share-photos{background:radial-gradient(circle at 50% 35%,#fff,#f9eef8)}
.camera-orbit i{background:#b69a72}
.blush{background:linear-gradient(155deg,#f7e9f5,#efdcef)}
.reserved{border-color:#b69a726b}
.fabiana-swatches{display:flex;flex-wrap:nowrap;justify-content:center;gap:8px;width:100%;margin:auto}
.fabiana-swatches i{width:38px;height:38px;flex:0 0 38px}
.powered-strip{background:#171217}
.fabiana-music{right:14px;bottom:16px;border-color:#eadcf680;background:#5f3c83ed;color:#fff;padding:9px 13px 9px 11px;box-shadow:0 10px 28px #2c163f66;cursor:pointer}
.fabiana-music[hidden]{display:none}.fabiana-music .music-icon{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#ffffff18;font-size:14px;flex:0 0 auto}
.fabiana-music .music-label{max-width:180px;display:flex;flex-direction:column;align-items:flex-start;line-height:1.25;letter-spacing:.02em;text-transform:none}
.fabiana-music .music-label strong{font:500 10px var(--sans);white-space:nowrap}.fabiana-music .music-label small{font:400 8px var(--sans);opacity:.75;white-space:nowrap}
.fabiana-music:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* Faroles cálidos: reinterpretación original de una noche encantada. */
.floral,.ambient-flowers,.ambient-flower{display:none!important}
.opening-lanterns,.ambient-lanterns{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.opening-lanterns{z-index:1}.opening-lanterns i,.floating-lantern{display:block;width:9px;height:15px;border-radius:70% 42% 68% 45%;background:radial-gradient(circle at 38% 68%,#fff9ce 0 14%,#ffc45f 32%,#f18344 64%,#c65042 100%);position:absolute;filter:drop-shadow(0 0 5px #ffd47a) drop-shadow(0 0 13px #f29b5290);transform:rotate(45deg)}
.opening-lanterns i:before,.floating-lantern:before{content:'';position:absolute;inset:-8px;border-radius:50%;background:radial-gradient(circle,#ffd77650 0,transparent 66%);filter:blur(3px);animation:flameGlow 1.35s ease-in-out infinite alternate}
.opening-lanterns i:after,.floating-lantern:after,.lantern-scene i:after{content:'';position:absolute;right:-8px;top:-3px;width:4px;height:4px;border-radius:50%;background:#fff7c8;box-shadow:0 0 4px 1px #fff,0 0 11px 4px #ffd27b;animation:lanternSparkle 1.9s ease-in-out infinite}
@keyframes flameGlow{from{opacity:.55;scale:.88}to{opacity:1;scale:1.08}}@keyframes lanternSparkle{0%,100%{opacity:.18;transform:scale(.45) rotate(0)}48%{opacity:1;transform:scale(1.35) rotate(45deg)}}
.opening-lanterns i{bottom:-4%;animation:lanternRise 13s ease-in infinite;opacity:.66}.opening-lanterns i:nth-child(1){left:8%;animation-delay:-2s;scale:.72}.opening-lanterns i:nth-child(2){left:24%;animation-delay:-8s;scale:.48}.opening-lanterns i:nth-child(3){left:46%;animation-delay:-5s;scale:.62}.opening-lanterns i:nth-child(4){left:68%;animation-delay:-11s;scale:.52}.opening-lanterns i:nth-child(5){left:86%;animation-delay:-4s;scale:.82}.opening-lanterns i:nth-child(6){left:57%;animation-delay:-1s;scale:.38}
@keyframes lanternRise{0%{transform:translate3d(0,8vh,0);opacity:0}14%{opacity:.7}55%{transform:translate3d(20px,-52vh,0)}100%{transform:translate3d(-8px,-118vh,0);opacity:0}}
.ambient-lanterns{position:fixed;z-index:8}.ambient-lanterns:after{content:'';position:absolute;left:9%;top:18%;width:3px;height:3px;border-radius:50%;background:#fff9cf;box-shadow:15vw 11vh 0 #f8dd9d,34vw -8vh 0 #fff,49vw 24vh 0 #ffd991,67vw 4vh 0 #fff3bc,82vw 31vh 0 #ffe7a2,9vw 57vh 0 #fff,29vw 72vh 0 #ffd991,55vw 62vh 0 #fff6cb,75vw 81vh 0 #f8dd9d;filter:drop-shadow(0 0 5px #ffe39a);animation:skyTwinkle 2.8s ease-in-out infinite alternate}.floating-lantern{bottom:-25px;opacity:.3;animation:ambientLanternRise 15s ease-in infinite}.l1{left:5%;animation-delay:-3s;scale:.62}.l2{left:21%;animation-delay:-13s;scale:.38}.l3{left:44%;animation-delay:-7s;scale:.5}.l4{left:66%;animation-delay:-16s;scale:.42}.l5{left:83%;animation-delay:-9s;scale:.68}.l6{left:94%;animation-delay:-1s;scale:.34}@keyframes ambientLanternRise{0%{transform:translate3d(0,6vh,0) rotate(42deg);opacity:0}15%{opacity:.34}48%{transform:translate3d(13px,-45vh,0) rotate(48deg)}78%{transform:translate3d(-7px,-77vh,0) rotate(43deg)}100%{transform:translate3d(8px,-112vh,0) rotate(48deg);opacity:0}}@keyframes skyTwinkle{from{opacity:.22;transform:scale(.75)}to{opacity:.9;transform:scale(1.2)}}
.lantern-scene{position:absolute;z-index:0;pointer-events:none}.lantern-scene i{position:relative;display:inline-block;width:54px;height:78px;margin:12px;opacity:.84;background:url('assets/lantern-lilac-v2.webp') center/contain no-repeat;filter:drop-shadow(0 0 7px #ffd47a) drop-shadow(0 0 18px #f29b5275)}.lantern-scene i:before{content:'';position:absolute;inset:18% 12% 12%;border-radius:50%;background:radial-gradient(circle,#fff8c7aa 0,#ffb34a44 38%,transparent 72%);filter:blur(5px);animation:flameGlow 1.35s ease-in-out infinite alternate}.lantern-scene-finale{inset:auto 0 8% 0;text-align:center}.lantern-scene-finale i{margin:20px 42px}.lantern-scene-finale i:nth-child(even){scale:.66;translate:0 -55px}.lantern-scene-finale i:nth-child(3){scale:1.12}.lantern-countdown{inset:5% 3% auto auto;width:220px}.lantern-countdown i:nth-child(2){scale:.68;translate:0 48px}.lantern-countdown i:nth-child(3){scale:.45;translate:-12px 8px}.lantern-countdown i:nth-child(4){scale:.8;translate:18px 76px}
.lilac-flower{position:absolute;z-index:0;width:min(310px,30vw);height:auto;pointer-events:none;filter:drop-shadow(0 12px 20px #44265d22);opacity:.68}.flower-hero-top{right:-90px;top:-45px;transform:rotate(9deg)}.flower-hero-side{left:-105px;bottom:-70px;transform:scaleX(-1) rotate(-8deg)}.flower-left{left:-110px;top:12%;transform:scaleX(-1) rotate(-6deg)}.flower-right{right:-115px;bottom:5%;transform:rotate(7deg)}.flower-soft{opacity:.46}.section>.reveal,.section>.narrow,.section>.share-card{position:relative;z-index:1}
.hero{background:radial-gradient(circle at 50% 35%,#fff 0,#fcf8ff 48%,#eadcf6 100%)}.burgundy{background:radial-gradient(circle at 50% 18%,#9c73c2,var(--wine-dark))}.blush{background:linear-gradient(155deg,#f2e9fa,#e7d8f4)}
@media(max-width:680px){.portrait-placeholder span{font-size:34px}.entry-requirement{align-items:flex-start;text-align:left}.lilac-flower{width:190px;opacity:.48}.flower-hero-top{right:-105px;top:-20px}.flower-hero-side{left:-118px;bottom:-35px}.flower-left{left:-125px;top:9%}.flower-right{right:-128px;bottom:2%}.flower-soft{opacity:.3}.lantern-countdown{right:-45px;top:2%;scale:.72}.lantern-scene-finale i{margin:16px 18px}.floating-lantern{opacity:.22}}

/* Sobre lila aterciopelado con relieve sutil y sello floral. */
.envelope-back,.envelope-flap,.envelope-side,.envelope-pocket{
  background-color:#b88ad0;
  background-image:
    radial-gradient(circle at 24% 18%,#ead9f2aa 0,transparent 30%),
    repeating-radial-gradient(ellipse at 45% 42%,#fff1 0 1px,#4d315514 1px 3px),
    linear-gradient(138deg,#d7b9e4 0,#b789cc 46%,#9263ad 100%);
  box-shadow:inset 1px 1px 0 #f4eafb80,inset -2px -2px 7px #5633674d;
}
.envelope-flap:before,.envelope-side:before,.envelope-pocket:before{
  background:linear-gradient(120deg,#fff8 0,transparent 40%,#4d31552b 77%,#fff4 100%);
}
.envelope-back:after{background:radial-gradient(ellipse at 50% 18%,#fff6,transparent 42%);border-color:#69477838}
.seal-flower{width:122px;height:122px;border-radius:48% 52% 46% 54%/52% 46% 54% 48%;color:#6d467d;background:radial-gradient(circle at 38% 28%,#e7d1ef 0,#c69cda 38%,#a876c0 74%,#8e5ca8 100%);box-shadow:inset 0 0 0 5px #dabce7,inset 0 0 0 8px #8d5da64f,0 12px 19px #3f224e70;filter:none}
.seal-flower:before{inset:12%;border:2px solid #79508d;border-radius:50%;box-shadow:inset 0 0 5px #fff7;animation:none}
.seal-flower:after{content:'';position:absolute;inset:-5px;border-radius:47% 53% 45% 55%;box-shadow:inset 0 0 0 2px #e5cfee55;transform:rotate(11deg)}
.seal-flower svg{position:relative;z-index:2;width:62%;height:62%;filter:drop-shadow(1px 1px 0 #f4e9f6)}

/* Flor y mariposa: la mariposa llega suavemente y permanece junto a la flor. */
.letter-flower-scene{position:relative;display:block;width:clamp(190px,30vw,270px);height:clamp(170px,27vw,240px);margin-bottom:-12px}
.letter-flower{position:absolute;left:50%;bottom:-6%;width:68%;height:100%;object-fit:contain;transform:translateX(-50%);filter:drop-shadow(0 13px 15px #4b2e602a)}
.letter-butterfly{display:none!important}
.wind-petals{position:absolute;z-index:3;left:51%;top:29%;width:1px;height:1px;pointer-events:none}
.wind-petals i{position:absolute;width:12px;height:20px;border-radius:80% 18% 75% 22%;background:linear-gradient(145deg,#d8baff 0,#a870d1 55%,#754895 100%);box-shadow:inset 2px 1px 3px #fff8,0 3px 7px #4b2e6030;opacity:0;transform-origin:50% 90%}
.wind-petals i:nth-child(1){--dx:118px;--dy:-55px;--r:240deg;--s:.72;animation-delay:1.38s}
.wind-petals i:nth-child(2){--dx:156px;--dy:-18px;--r:330deg;--s:.54;animation-delay:1.55s}
.wind-petals i:nth-child(3){--dx:198px;--dy:-74px;--r:410deg;--s:.64;animation-delay:1.76s}
.wind-petals i:nth-child(4){--dx:236px;--dy:8px;--r:520deg;--s:.46;animation-delay:1.92s}
.wind-petals i:nth-child(5){--dx:278px;--dy:-42px;--r:610deg;--s:.58;animation-delay:2.08s}
.wind-petals i:nth-child(6){--dx:318px;--dy:20px;--r:690deg;--s:.4;animation-delay:2.26s}
.wind-petals i:nth-child(7){--dx:172px;--dy:35px;--r:370deg;--s:.48;animation-delay:1.68s}
.wind-petals i:nth-child(8){--dx:246px;--dy:-98px;--r:560deg;--s:.36;animation-delay:2.18s}
.wind-petals i:nth-child(9){--dx:302px;--dy:-16px;--r:650deg;--s:.44;animation-delay:2.42s}
.envelope-screen.opening .wind-petals i{animation-name:petalWind;animation-duration:2.05s;animation-timing-function:cubic-bezier(.22,.55,.35,1);animation-fill-mode:both}
@keyframes petalWind{0%{opacity:0;transform:translate(0,0) rotate(0) scale(var(--s))}12%{opacity:.82}42%{transform:translate(calc(var(--dx)*.38),calc(var(--dy)*.28 + 18px)) rotate(calc(var(--r)*.34)) scale(var(--s))}72%{opacity:.72;transform:translate(calc(var(--dx)*.72),calc(var(--dy)*.78 - 10px)) rotate(calc(var(--r)*.72)) scale(calc(var(--s)*.9))}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--r)) scale(calc(var(--s)*.65))}}
@media(max-width:680px){.fabiana-swatches{gap:5px}.fabiana-swatches i{width:32px;height:32px;flex-basis:32px}.letter-flower-scene{width:200px;height:172px}.seal-flower{width:108px;height:108px}}

/* Material y profundidad reconstruidos desde la referencia del sobre. */
.envelope-back,.envelope-flap,.envelope-side,.envelope-pocket{
  background-color:#cfb2c7;
  background-image:linear-gradient(135deg,#fff6 0,transparent 32%,#6f526525 100%),url('assets/envelope-lilac-velvet-v2.webp');
  background-size:cover,cover;background-position:center;
  box-shadow:inset 1px 1px 1px #fff9,inset -5px -7px 12px #644a5a4d,0 3px 7px #4f354643;
}
.envelope-flap{filter:brightness(1.035);box-shadow:inset 0 2px 2px #fff9,inset 0 -10px 18px #72546638,0 12px 22px #442d3c50}
.envelope-side-left{filter:brightness(.97);box-shadow:inset 5px 2px 8px #fff5,inset -11px -5px 18px #62465745,8px 3px 14px #4b33443f}
.envelope-side-right{filter:brightness(.94);box-shadow:inset -4px 2px 7px #fff4,inset 12px -5px 18px #60425348,-8px 3px 14px #4b33443f}
.envelope-pocket{filter:brightness(.9);box-shadow:inset 0 -3px 8px #573c4d50,inset 0 7px 12px #fff3,0 -8px 15px #4932414d}
.envelope-flap:before,.envelope-side:before,.envelope-pocket:before{background:linear-gradient(122deg,#fff5 0,transparent 42%,#4d35452e 76%,#fff2 100%)}
.envelope-back:after{background:radial-gradient(ellipse at 44% 15%,#fff7,transparent 48%);border-color:#76586c38}
.seal-flower{width:132px;height:132px;background:none!important;border-radius:0!important;box-shadow:none!important;filter:none!important}
.seal-flower:before,.seal-flower:after{display:none!important}
.seal-flower img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 12px 10px #3c283753) drop-shadow(0 2px 1px #fff5)}

/* Dos pétalos se desprenden desde zonas distintas, sin pausas en el recorrido. */
.wind-petals{inset:0;left:0;top:0;width:100%;height:100%;overflow:visible}
.wind-petals i{width:12px;height:23px;opacity:0;transform-origin:50% 92%;will-change:transform,opacity}
.wind-petals i:nth-child(1){left:31%;top:22%;animation-delay:1.48s}
.wind-petals i:nth-child(2){left:67%;top:33%;width:11px;height:21px;animation-delay:1.82s}
.envelope-screen.opening .wind-petals i{animation:petalDrift 2.25s cubic-bezier(.22,.48,.32,1) both}
.envelope-screen.opening .wind-petals i:nth-child(2){animation-name:petalDriftSecond}
@keyframes petalDrift{0%{opacity:.1;transform:translate3d(0,0,0) rotate(-16deg) scale(.82)}10%{opacity:.88}38%{transform:translate3d(38px,-20px,0) rotate(82deg) scale(.76)}70%{opacity:.68;transform:translate3d(91px,-36px,0) rotate(196deg) scale(.67)}100%{opacity:0;transform:translate3d(160px,-66px,0) rotate(332deg) scale(.5)}}
@keyframes petalDriftSecond{0%{opacity:.1;transform:translate3d(0,0,0) rotate(12deg) scale(.74)}10%{opacity:.82}38%{transform:translate3d(32px,7px,0) rotate(96deg) scale(.69)}70%{opacity:.62;transform:translate3d(83px,-5px,0) rotate(212deg) scale(.6)}100%{opacity:0;transform:translate3d(151px,-28px,0) rotate(352deg) scale(.44)}}
.petal-gap{position:absolute;z-index:2;width:10px;height:20px;border-radius:80% 18% 75% 22%;background:radial-gradient(ellipse at 65% 35%,#6c408a 0,#8c5aaa 48%,transparent 73%);opacity:0;pointer-events:none}
.petal-gap-left{left:31%;top:22%;transform:rotate(-16deg)}.petal-gap-right{left:67%;top:33%;transform:rotate(12deg)}
.envelope-screen.opening .petal-gap{animation:revealPetalGap .42s ease-out 1.55s both}.envelope-screen.opening .petal-gap-right{animation-delay:1.89s}
@keyframes revealPetalGap{from{opacity:0;scale:.55}to{opacity:.42;scale:1}}
@media(max-width:680px){.seal-flower{width:116px;height:116px}}

/* V10: las uniones reciben luz y sombra según la solapa que queda encima. */
.envelope-flap{
  filter:brightness(1.035) drop-shadow(0 9px 7px #4b334752) drop-shadow(0 2px 1px #fff7);
  box-shadow:inset 0 3px 4px #fff9,inset 0 -15px 20px #62465735;
}
.envelope-side-left{
  filter:brightness(.98) drop-shadow(9px 3px 7px #4b33474d) drop-shadow(2px 0 1px #fff5);
  box-shadow:inset 7px 0 11px #fff5,inset -15px 0 22px #62465742;
}
.envelope-side-right{
  filter:brightness(.945) drop-shadow(-9px 3px 7px #422b3d57) drop-shadow(-2px 0 1px #fff4);
  box-shadow:inset -7px 0 11px #fff4,inset 16px 0 23px #5b3e514a;
}
.envelope-pocket{
  filter:brightness(.89) drop-shadow(0 -10px 8px #3f29394f) drop-shadow(0 -2px 1px #fff3);
  box-shadow:inset 0 -12px 19px #4f354854,inset 0 14px 24px #fff3;
}
.seal-flower img{filter:drop-shadow(0 13px 11px #33213962) drop-shadow(-2px -2px 1px #fff6)}

/* Los pétalos flotan de forma independiente durante toda la escena interior. */
.wind-petals i:nth-child(1){left:29%;top:23%;animation-delay:1.34s!important}
.wind-petals i:nth-child(2){left:69%;top:35%;animation-delay:1.88s!important}
.envelope-screen.opening .wind-petals i:nth-child(1){animation:petalLevitateOne 3.35s cubic-bezier(.3,.08,.24,1) both}
.envelope-screen.opening .wind-petals i:nth-child(2){animation:petalLevitateTwo 2.82s cubic-bezier(.27,.1,.22,1) both}
@keyframes petalLevitateOne{
  0%{opacity:0;transform:translate3d(0,0,0) rotate(-18deg) scale(.82)}
  8%{opacity:.88;transform:translate3d(3px,-5px,0) rotate(-8deg) scale(.82)}
  29%{transform:translate3d(21px,-26px,0) rotate(48deg) scale(.78)}
  52%{transform:translate3d(50px,-17px,0) rotate(116deg) scale(.72)}
  76%{opacity:.68;transform:translate3d(87px,-45px,0) rotate(205deg) scale(.64)}
  100%{opacity:0;transform:translate3d(137px,-65px,0) rotate(310deg) scale(.48)}
}
@keyframes petalLevitateTwo{
  0%{opacity:0;transform:translate3d(0,0,0) rotate(15deg) scale(.72)}
  9%{opacity:.8;transform:translate3d(-2px,-4px,0) rotate(25deg) scale(.72)}
  33%{transform:translate3d(16px,8px,0) rotate(83deg) scale(.68)}
  58%{transform:translate3d(42px,-8px,0) rotate(151deg) scale(.61)}
  82%{opacity:.58;transform:translate3d(76px,2px,0) rotate(236deg) scale(.54)}
  100%{opacity:0;transform:translate3d(116px,-21px,0) rotate(327deg) scale(.42)}
}
.petal-gap-left{left:29%;top:23%}.petal-gap-right{left:69%;top:35%}
.envelope-screen.opening .petal-gap-left{animation:revealPetalGap .48s ease-out 1.48s both}
.envelope-screen.opening .petal-gap-right{animation:revealPetalGap .48s ease-out 2.02s both}

.envelope-seams{position:absolute;inset:0;z-index:7;overflow:hidden;border-radius:30px;pointer-events:none;opacity:.82;transition:opacity .42s ease 1.18s}
.envelope-seams svg{display:block;width:100%;height:100%;overflow:visible}
.envelope-seams path{fill:none;vector-effect:non-scaling-stroke}
.seam-shadow{stroke:#543c4c;stroke-linecap:round;filter:drop-shadow(2px 3px 3px #412c3d70)}
.seam-top-left{stroke-width:1.4;opacity:.48}.seam-top-right{stroke-width:1.75;opacity:.62}.seam-bottom-left{stroke-width:2.1;opacity:.72}.seam-bottom-right{stroke-width:1.25;opacity:.46}
.seam-light{stroke:#fff;stroke-width:.72;opacity:.43;transform:translate(-.55px,-.55px)}
.seam-light-soft{stroke-width:.5;opacity:.27;transform:translate(.45px,.45px)}
.envelope-screen.opening .envelope-seams{opacity:0}
.envelope-back,.envelope-flap,.envelope-side,.envelope-pocket{background-blend-mode:soft-light,normal;}

/* V11: las líneas estructurales desaparecen antes de abrir las solapas. */
.envelope-screen.opening .envelope-seams{opacity:0!important;visibility:hidden!important;transition:none!important}
.envelope-screen.opening .envelope-flap,.envelope-screen.opening .envelope-side,.envelope-screen.opening .envelope-pocket{filter:none!important;box-shadow:none!important}

/* Vuelo con corriente y volteo de perspectiva, inspirado en pétalos reales al viento. */
.wind-petals i{offset-rotate:0deg;animation-timing-function:linear!important}
.wind-petals i:nth-child(1){offset-path:path('M 0 0 C 10 -18 20 -30 37 -27 C 58 -23 61 -49 86 -55 C 108 -61 124 -48 151 -73');animation-delay:1.12s!important}
.wind-petals i:nth-child(2){offset-path:path('M 0 0 C 16 12 28 1 39 10 C 54 23 69 3 84 7 C 102 12 112 -8 132 -17');animation-delay:1.69s!important}
.envelope-screen.opening .wind-petals i:nth-child(1){animation-name:petalWindReference;animation-duration:3.56s;animation-fill-mode:both}
.envelope-screen.opening .wind-petals i:nth-child(2){animation-name:petalWindReferenceTwo;animation-duration:2.96s;animation-fill-mode:both}
@keyframes petalWindReference{
  0%{offset-distance:0%;opacity:0;transform:rotateZ(-18deg) rotateY(0deg) scale(.8)}
  7%{opacity:.9;transform:rotateZ(-8deg) rotateY(25deg) scale(.8)}
  20%{transform:rotateZ(22deg) rotateY(78deg) scale(.77)}
  35%{transform:rotateZ(58deg) rotateY(148deg) scale(.73)}
  51%{transform:rotateZ(105deg) rotateY(224deg) scale(.68)}
  68%{transform:rotateZ(151deg) rotateY(302deg) scale(.62)}
  84%{opacity:.68;transform:rotateZ(201deg) rotateY(382deg) scale(.55)}
  100%{offset-distance:100%;opacity:0;transform:rotateZ(258deg) rotateY(472deg) scale(.44)}
}
@keyframes petalWindReferenceTwo{
  0%{offset-distance:0%;opacity:0;transform:rotateZ(16deg) rotateY(0deg) scale(.7)}
  8%{opacity:.82;transform:rotateZ(8deg) rotateY(34deg) scale(.7)}
  24%{transform:rotateZ(-18deg) rotateY(108deg) scale(.68)}
  41%{transform:rotateZ(25deg) rotateY(188deg) scale(.63)}
  59%{transform:rotateZ(70deg) rotateY(272deg) scale(.59)}
  78%{opacity:.61;transform:rotateZ(126deg) rotateY(364deg) scale(.52)}
  100%{offset-distance:100%;opacity:0;transform:rotateZ(191deg) rotateY(470deg) scale(.42)}
}

/* V12: portada tipográfica, gama lila clara e indicación de desplazamiento. */
.envelope-screen{background:radial-gradient(ellipse at 50% 34%,#e5d7f1 0,#c4a4dc 40%,#946db4 72%,#654580 100%)}
.envelope-screen:before{background:radial-gradient(circle at 50% 41%,#fff9 0,transparent 43%),radial-gradient(circle at 18% 18%,#f4eaff55 0,transparent 30%),linear-gradient(150deg,#ffffff1c,transparent 55%,#3e245226);opacity:1}
.burgundy{background:radial-gradient(circle at 50% 18%,#cdb5df 0,#a783c1 54%,#7c5b9a 100%)}
.hero-inner{display:flex;flex-direction:column;align-items:center}
.hero-xv{margin:0;color:#79509c;font-size:clamp(22px,4vw,31px);letter-spacing:.3em}
.hero-xv span{font-size:1.9em;color:#70458f}
.hero h1{font-size:clamp(92px,19vw,142px);line-height:.78;margin:31px 0 19px;color:#744797;text-shadow:0 8px 24px #68417c1f}
.hero-gerbera{width:clamp(145px,23vw,205px);height:clamp(140px,21vw,185px);margin:-8px auto 4px;position:relative}
.hero-gerbera:before{content:'';position:absolute;inset:23% 12% 7%;border-radius:50%;background:radial-gradient(circle,#c7a4e04a,transparent 70%);filter:blur(10px)}
.hero-gerbera img{position:relative;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 14px 16px #50306030)}
.scroll-down-cue{position:fixed;z-index:14;left:50%;bottom:25px;width:48px;height:48px;margin-left:-24px;padding:0;border:0;background:transparent;border-radius:0;color:#fff;cursor:pointer;opacity:0;box-shadow:none;backdrop-filter:none;mix-blend-mode:difference;filter:drop-shadow(0 2px 2px #0005);transition:opacity .35s ease,transform .35s ease;animation:scrollCueFloat 1.9s ease-in-out infinite}
.scroll-down-cue[hidden]{display:none!important}
.invitation-ready .scroll-down-cue{opacity:.9}
.scroll-down-cue svg{display:block;width:100%;height:100%;overflow:visible}.scroll-down-cue path{fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.scroll-down-cue.is-hidden{opacity:0;transform:translateY(12px);pointer-events:none;animation:none}
@keyframes scrollCueFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(7px)}}
.finale>.reveal{z-index:2}.lantern-scene-finale{inset:0;opacity:.72}.lantern-scene-finale i{position:absolute;margin:0!important}.lantern-scene-finale i:nth-child(1){left:7%;bottom:13%;scale:.82}.lantern-scene-finale i:nth-child(2){left:22%;bottom:4%;scale:.52;translate:0 0}.lantern-scene-finale i:nth-child(3){right:7%;bottom:14%;scale:.88}.lantern-scene-finale i:nth-child(4){right:22%;bottom:4%;scale:.5;translate:0 0}.lantern-scene-finale i:nth-child(5){left:50%;bottom:-2%;scale:.42;translate:-50% 0;opacity:.48}
.finale p,.finale>div>span,.finale small{color:#fff;text-shadow:0 2px 12px #4b2d665c}.finale .final-name{color:#fff6ff;text-shadow:0 4px 22px #4a2a646b}
@media(max-width:680px){.hero h1{font-size:clamp(84px,25vw,112px)}.hero-gerbera{width:155px;height:145px}.scroll-down-cue{bottom:16px;width:42px;height:42px;margin-left:-21px}.lantern-scene-finale i:nth-child(1){left:2%}.lantern-scene-finale i:nth-child(3){right:2%}.lantern-scene-finale i:nth-child(2){left:14%}.lantern-scene-finale i:nth-child(4){right:14%}}

/* V13: apertura directa a la portada, sin tarjeta intermedia. */
.envelope .invitation-letter{display:none!important}

/* Faroles finales 50% mayores, distribuidos fuera de la columna del texto. */
.lantern-scene-finale i:nth-child(1){left:7%;top:11%;bottom:auto;scale:1.23}
.lantern-scene-finale i:nth-child(2){left:16%;bottom:5%;scale:.78;translate:0 0}
.lantern-scene-finale i:nth-child(3){right:7%;top:12%;bottom:auto;scale:1.32}
.lantern-scene-finale i:nth-child(4){right:16%;bottom:5%;scale:.75;translate:0 0}
.lantern-scene-finale i:nth-child(5){left:50%;bottom:-3%;scale:.63;translate:-50% 0;opacity:.48}
@media(max-width:680px){.lantern-scene-finale i:nth-child(1){left:1%;top:8%;scale:1.05}.lantern-scene-finale i:nth-child(3){right:1%;top:9%;scale:1.12}.lantern-scene-finale i:nth-child(2){left:8%;bottom:5%;scale:.68}.lantern-scene-finale i:nth-child(4){right:8%;bottom:5%;scale:.66}.lantern-scene-finale i:nth-child(5){scale:.55}}

/* V15: el sobre permanece centrado y la portada se revela mientras sus cuatro partes se abren. */
.envelope-screen{
  overflow:hidden;
  background:transparent!important;
  will-change:opacity,visibility;
}
.envelope-screen:before{
  background:radial-gradient(ellipse at 50% 34%,#e5d7f1 0,#c4a4dc 40%,#946db4 72%,#654580 100%)!important;
  opacity:1;
  transition:opacity .82s cubic-bezier(.32,0,.2,1);
}
.envelope-screen.open:before{opacity:0}
.envelope-screen.opening>.eyebrow,.envelope-screen.opening>.open-copy,.envelope-screen.opening .opening-lanterns{opacity:0;transition:opacity .35s ease}
.envelope-screen.opening .envelope{
  animation:none!important;
  transform:translate(-50%,-50%)!important;
  transform-origin:50% 50%;
}
.envelope-back{transition:opacity 1.22s cubic-bezier(.32,0,.2,1) .12s}
.envelope-screen.opening .envelope-back{opacity:0}
.envelope-portal{
  position:absolute;
  z-index:1;
  left:50%;top:50%;
  width:100vw;height:100svh;
  transform:translate(-50%,-50%);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  background:transparent;
  opacity:0;
  transition:opacity 1.05s ease .16s;
}
.envelope-portal:before{
  content:'';position:absolute;inset:0;z-index:0;
  background:radial-gradient(circle at 50% 35%,#fff 0,#fcf8ff 48%,#eadcf6 100%);
  opacity:1;transition:opacity .62s ease;
}
.envelope-screen.opening .envelope-portal{opacity:1}
.envelope-portal .hero-inner{position:relative;z-index:2;width:min(650px,100%);display:flex;flex-direction:column;align-items:center;justify-content:center}
.envelope-portal .portal-name{font:400 clamp(92px,19vw,142px)/.78 var(--script);margin:31px 0 19px;color:#744797;text-shadow:0 8px 24px #68417c1f}
.envelope-portal .eyebrow,.envelope-portal .surname,.envelope-portal .hero-time{display:block}
.envelope-portal .flower-hero-top,.envelope-portal .flower-hero-side{position:absolute}
.envelope-screen.open{transform:none;opacity:1;visibility:visible;transition:none}
.envelope-screen.open .envelope{
  width:100vw;height:100svh;border-radius:0;box-shadow:none;
  transition:width .82s cubic-bezier(.22,.61,.36,1),height .82s cubic-bezier(.22,.61,.36,1),border-radius .72s ease,box-shadow .45s ease;
}
/* La misma portada permanece visible hasta que la capa del sobre termina de salir.
   Así no existe un instante intermedio vacío ni un intercambio perceptible de posición. */
.envelope-screen.open .envelope-portal,
.envelope-screen.finished .envelope-portal{opacity:1}
.envelope-screen.finished{opacity:0;visibility:hidden;transition:opacity .48s ease,visibility .48s}
#content.invite-entering{
  opacity:0;
  transform:none;
  transform-origin:50% 42vh;
  filter:none;
  transition:opacity 1.48s cubic-bezier(.22,.61,.36,1),transform 1.58s cubic-bezier(.16,.72,.22,1);
}
#content.invite-entering.invite-visible{opacity:1;transform:none;filter:none}
.hero .reveal{opacity:1;transform:none;transition:none}
.envelope-back,.envelope-flap,.envelope-side,.envelope-pocket,.seal{
  -webkit-backface-visibility:hidden;backface-visibility:hidden;
  will-change:transform,opacity;transform-style:preserve-3d;
}
.hero .surname,.envelope-portal .surname{font-size:13px;line-height:1.4;letter-spacing:.27em;font-weight:600;margin:0}
.countdown .eyebrow.light{color:#4d2b67;opacity:1;text-shadow:0 1px 0 #fff9}
@media(max-width:680px){.envelope-portal .portal-name{font-size:clamp(84px,25vw,112px)}}
@media(prefers-reduced-motion:reduce){
  .envelope-screen.opening .envelope{animation:none!important;transform:translate(-50%,-50%)!important}
  #content.invite-entering{transform:none;transition:opacity .65s ease}
}

/* V20: cada bloque funciona como una lámina vertical completa. */
html{scroll-snap-type:y proximity;scroll-padding-top:0}
#content>.section{
  width:100%;
  height:100svh;
  min-height:100svh;
  scroll-snap-align:start;
  scroll-snap-stop:always;
}
#content>.section.short,#content>.finale{height:100svh;min-height:100svh}

/* V24: la portada se revela dentro del sobre; el lila permanece solo alrededor. */
html{scrollbar-gutter:stable}
.envelope-portal{display:flex!important}
.envelope-screen:before{
  opacity:1;
  transition:none!important;
}
.envelope-screen.opening:before{opacity:1}
.envelope-screen.open:before{opacity:1}
.envelope-screen.opening .envelope{
  background:transparent!important;box-shadow:none!important;filter:none!important;
}
.envelope-screen.open .envelope{
  width:min(380px,84vw);height:min(680px,82svh);
  border-radius:34px;box-shadow:none;
  transition:none!important;
}
.envelope-screen.finished{
  opacity:1!important;visibility:hidden;pointer-events:none;
  transition:visibility 0s linear!important;
}
#content.invite-entering,#content.invite-entering.invite-visible{
  opacity:1!important;transform:none!important;filter:none!important;transition:none!important;
}
.hero .hero-inner{opacity:1!important;transform:none!important;transition:none!important}
.fabiana-music{
  opacity:0;contain:layout paint;
  transition:opacity .42s ease,box-shadow .25s ease!important;
}
.invitation-ready .fabiana-music{opacity:1}
.scroll-down-cue{contain:layout paint}
