:root{--ink:#603d43;--warm:#9a5f6b;--rose:#d6899f;--rose-dark:#bf5f7e;--gold:#d6ac67;--gold-strong:#e0b75e;--ivory:#fffaf4;--paper:#fff8f2;--text:#6f5358;--script:'Great Vibes','Brush Script MT',cursive;--serif:'Libre Baskerville',Georgia,serif;--sans:'DM Sans',Arial,sans-serif}
*,*::before,*::after{box-sizing:border-box}html,body{width:100%;min-height:100%;margin:0}body{background:#fbeceb;color:var(--ink);font-family:var(--sans);-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.7}[hidden]{display:none!important}
.experience{position:relative;display:flex;align-items:center;justify-content:center;min-height:100vh;min-height:100svh;width:100%;overflow:hidden;padding:12px;background:radial-gradient(ellipse at 50% 6%,#fff7ef 0%,#fdeeee 32%,#f2d9de 100%)}.experience:before{content:"";pointer-events:none;position:absolute;inset:0;background:url('../images/paper-grain.png') repeat;opacity:.35}.experience:after{content:"";pointer-events:none;position:absolute;inset:0;border:1px solid #fff9ee80}
.ambient{position:absolute;inset:0;overflow:hidden;pointer-events:none}.light-aura{position:absolute;width:730px;height:730px;left:50%;top:45%;transform:translate(-50%,-50%);background:radial-gradient(circle,#fffaf2e8 0%,#fff5f1ad 35%,transparent 72%);animation:aura 9s ease-in-out infinite}.cloud{position:absolute;width:570px;height:190px;opacity:.68;background:radial-gradient(ellipse at 22% 75%,#fff9f3 0 19%,transparent 42%),radial-gradient(ellipse at 45% 50%,#fffbf8 0 22%,transparent 50%),radial-gradient(ellipse at 68% 75%,#fff8f4 0 21%,transparent 49%);filter:blur(10px)}.cloud-one{top:4%;left:-210px;animation:drift 22s ease-in-out infinite}.cloud-two{bottom:-50px;right:-210px;animation:drift 26s ease-in-out infinite reverse}.cloud-three{top:38%;right:-430px;opacity:.5;animation:drift 31s ease-in-out infinite}.star{position:absolute;color:#c89c72;opacity:.65;animation:blink 4s ease-in-out infinite}.star-one{top:13%;left:22%;font-size:22px}.star-two{bottom:15%;right:18%;font-size:34px;animation-delay:1s}.star-three{top:48%;right:13%;font-size:15px;animation-delay:2s}.petal{position:absolute;width:12px;height:18px;background:linear-gradient(125deg,#ecc3bf,#fef5e8);border-radius:85% 12% 85% 12%;opacity:.65;animation:petalfall 15s linear infinite}.petal-one{left:15%;top:-10%;animation-delay:-5s}.petal-two{left:80%;top:-10%;animation-delay:-9s;animation-duration:19s}.petal-three{left:55%;top:-10%;animation-delay:-14s;animation-duration:23s}
.stage{position:relative;isolation:isolate;width:min(100%,428px);height:min(825px,calc(100svh - 24px));min-height:min(530px,calc(100svh - 24px));z-index:1;filter:drop-shadow(0 18px 30px #a47e7e35)}.scene{position:absolute;inset:0;overflow:hidden;border-radius:24px;background:linear-gradient(145deg,#fffaf7f8 0%,#fffaf7f2 35%,#fdeff0f2 100%);box-shadow:inset 0 0 0 1px #fff,0 10px 28px #93675a20}.scene-cover:before,.scene-story:before{content:"";position:absolute;inset:8px;border:1px solid #dcbba270;border-radius:18px;pointer-events:none;z-index:4}.scene-cover:after{content:"";position:absolute;inset:15px;border:1px solid #e8d4bd80;border-radius:14px;pointer-events:none;z-index:4}.cover-decoration{position:absolute;left:0;width:100%;height:180px;background-image:url('../images/ornament.svg');background-repeat:no-repeat;background-size:100% auto;opacity:.72;pointer-events:none}.cover-decoration.top{top:-8px}.cover-decoration.bottom{bottom:-11px;transform:rotate(180deg);opacity:.47}
.cover-header{position:absolute;top:8%;width:100%;text-align:center;padding:0 22px;z-index:2}.small-cross{color:#bfa177;font-family:var(--serif);font-size:25px;line-height:1.5;display:block}.eyebrow{text-transform:uppercase;letter-spacing:.28em;font-weight:600;font-size:9.5px;color:#af8b83}.cover-header h1{font:400 clamp(29px,4.5svh,42px)/1.1 var(--serif);letter-spacing:-.03em;margin:8px 0 0;color:#7b4a56}.cover-header h1 em{font:inherit;color:inherit;letter-spacing:inherit;text-shadow:none}.cover-header p{display:none}
.envelope-place{position:absolute;top:33%;height:34%;width:100%;display:grid;place-items:center;z-index:2;perspective:1000px}.envelope-glow{position:absolute;width:95%;aspect-ratio:1;max-width:370px;border-radius:50%;background:radial-gradient(circle,#fff1c9c4 0%,#ffedd989 32%,transparent 70%);filter:blur(18px);animation:glow 6s ease-in-out infinite}.envelope{width:min(76%,320px);aspect-ratio:1.53;position:relative;transform:rotate(-2deg);transform-style:preserve-3d;filter:drop-shadow(0 17px 18px #b58c8d66);transition:transform 1.2s cubic-bezier(.2,.75,.2,1)}.envelope-back{position:absolute;inset:0;z-index:1;border-radius:9px;background:linear-gradient(135deg,#f4dcd2,#fffaf3 51%,#edc8bf);border:1.5px solid #d7ad94}.envelope-letter{position:absolute;top:9%;left:9%;width:82%;height:80%;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(#fffdf9,#fff3ea);box-shadow:0 0 2px #b18e79;border:1px solid #e0c19f;border-radius:4px;transition:transform 1.4s cubic-bezier(.19,.95,.32,1) .6s;transform:translateY(0)}.letter-cross{font-size:23px;color:#c3a274}.letter-name{font:50px/1 var(--script);color:#b97481}.envelope-letter small{font:italic 11px var(--serif);color:#b19582}.envelope-front{position:absolute;inset:0;z-index:4;clip-path:polygon(0 0,50% 53%,100% 0,100% 100%,0 100%);border-radius:8px;background:linear-gradient(144deg,#ffe6db 0%,#fff7ef 47%,#eec6c0 100%);box-shadow:inset 0 -2px 5px #b9867e44}.envelope-front:after{content:"";position:absolute;inset:0;background:linear-gradient(30deg,transparent 49.5%,#d7a99370 50%,transparent 50.5%),linear-gradient(-30deg,transparent 49.5%,#d7a99370 50%,transparent 50.5%)}.envelope-flap{position:absolute;inset:0;z-index:5;clip-path:polygon(0 0,100% 0,50% 57%);background:linear-gradient(#fbe8dc,#efd0c9);border-radius:8px;transform-origin:50% 0%;backface-visibility:visible;transition:transform 1.1s cubic-bezier(.2,.9,.4,1) .2s}.envelope-flap:after{content:"";position:absolute;inset:0;clip-path:polygon(0 0,100% 0,50% 57%);border:2px solid #d4a68b}.envelope-seal{position:absolute;z-index:6;top:44%;left:50%;transform:translate(-50%,-10%);width:56px;height:56px;border-radius:50%;display:grid;place-items:center;border:3px double #ffeac2;background:radial-gradient(circle at 35% 30%,#f6d897,#cc9d56 75%);box-shadow:0 4px 8px #8d63477a,inset 0 0 0 3px #c89455;color:#fff7e6;font-size:25px;text-shadow:0 2px 4px #8b6834;transition:opacity .3s ease}.envelope-bow{position:absolute;z-index:5;top:51%;width:57px;height:30px;border-radius:8px 95% 8px 90%;background:linear-gradient(145deg,#f8b7bc,#d98d9e);filter:drop-shadow(0 3px 3px #b7778459)}.bow-left{left:calc(50% - 70px);transform:rotate(-14deg)}.bow-right{right:calc(50% - 70px);transform:scaleX(-1) rotate(-14deg)}
.scene-cover.unlocking .envelope-flap{transform:rotateX(180deg);z-index:0}.scene-cover.unlocking .envelope-letter{transform:translateY(-145px)}.scene-cover.unlocking .envelope-seal,.scene-cover.unlocking .envelope-bow{opacity:0}.scene-cover.unlocking .envelope{transform:rotate(0) translateY(50px) scale(1.07)}.scene-cover.unlocking .unlock-form{opacity:0;transform:translateY(30px);pointer-events:none}.scene-cover.unlocking .cover-header{opacity:.4;transition:opacity 1s}
.unlock-form{position:absolute;top:69.5%;left:18%;width:64%;z-index:6;display:flex;flex-direction:column;align-items:stretch;gap:8px;transition:opacity .35s,transform .35s}.unlock-form label{font:700 9.5px/1.35 var(--sans);letter-spacing:.18em;text-transform:uppercase;text-align:center;color:#a56f73}.code-wrap{display:flex;align-items:center;gap:9px;height:46px;padding:0 16px;background:linear-gradient(180deg,#fffefc,#fff7f7);border:1px solid #e5b7c1;border-radius:30px;box-shadow:0 8px 20px #c7928f24}.code-wrap:focus-within{outline:2px solid #d9829c;outline-offset:2px}.code-wrap span{color:#ae7b60;font-size:19px}.code-wrap input{border:0;outline:0;background:transparent;min-width:0;width:100%;height:100%;font-size:20px;text-align:center;letter-spacing:.28em;color:#87525d;font-weight:700;font-family:var(--serif)}.code-wrap input::placeholder{font-weight:400;color:#b8a09b}.form-error{color:#a33a56;font-size:11px;text-align:center;margin:0;min-height:0;line-height:1.3}.form-error:empty{display:none}.main-button,.continue-button{border:0;border-radius:999px;background:linear-gradient(115deg,#dca0a9,#b97687);box-shadow:0 5px 13px #b272854a,inset 0 1px 0 #fff7;color:white;display:flex;align-items:center;justify-content:center;gap:12px;font-weight:600;letter-spacing:.01em;min-height:48px;transition:transform .2s,box-shadow .2s}.main-button:hover,.continue-button:hover{transform:translateY(-2px);box-shadow:0 8px 18px #b2728560}.main-button:focus-visible,.continue-button:focus-visible{outline:2px solid #936476;outline-offset:3px}.open-btn{width:100%;font-size:13px}.open-btn .arrow{font-size:18px;font-weight:400}.cover-footer{position:absolute;bottom:3.5%;width:100%;padding:0 20px;text-align:center;color:#b28980;font:italic 9px var(--serif);z-index:3}
.scene-story{background:linear-gradient(160deg,#fffdfa 0%,#fff9f6 45%,#fff4f0 100%)}.paper{position:absolute;inset:0;isolation:isolate}.paper:before{content:"";position:absolute;top:18px;left:18px;right:18px;bottom:18px;border:1px solid #e8d3b98c;border-radius:17px;pointer-events:none;z-index:3}.paper-grain{position:absolute;inset:0;background:url('../images/paper-grain.png');opacity:.26;pointer-events:none}.paper-top-art,.paper-bottom-art{position:absolute;z-index:1;left:-8%;width:116%;height:190px;background-image:url('../images/ornament.svg');background-size:100% auto;background-repeat:no-repeat;opacity:.78;pointer-events:none}.paper-top-art{top:-8px}.paper-bottom-art{bottom:-50px;transform:rotate(180deg);opacity:.52}.paper-border{position:absolute;inset:16px;border-radius:13px;border:1px solid #d0a67c40;pointer-events:none;z-index:1}.content-area{position:absolute;inset:8.5% 16% 17%;z-index:2;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden}.story-page{position:relative;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(6px,1.35svh,16px);animation:pageAppear .65s cubic-bezier(.18,.7,.3,1) both}.story-page.leaving{animation:pageLeave .28s ease-in forwards}.story-page.slide-reverse{animation-name:pageAppearReverse}.story-page>*,.story-page p,.story-page h2{max-width:100%;flex-shrink:0}.story-page .overline{font-size:9px;text-transform:uppercase;letter-spacing:.28em;color:#b67b77;font-weight:700}.story-page h2{font:normal clamp(46px,8.4svh,72px)/.95 var(--script);color:#cb6f8e;margin:0;overflow-wrap:anywhere;text-wrap:balance;text-shadow:0 8px 22px #f5c5d165}.story-page h3{font:normal clamp(17px,3svh,23px)/1.35 var(--serif);color:#8d6161;margin:0;letter-spacing:-.02em}.story-page .body-copy{font:400 clamp(11.5px,1.7svh,13.5px)/1.8 var(--serif);color:#73595c;margin:0;max-width:310px;text-wrap:pretty}.story-page .divider-symbol{display:flex;align-items:center;gap:11px;color:#c89e82;font-size:17px}.divider-symbol:before,.divider-symbol:after{content:"";width:53px;height:1px;background:linear-gradient(90deg,transparent,#d5b69f)}.divider-symbol:after{transform:rotate(180deg)}.page-image{display:block;object-fit:contain;filter:drop-shadow(0 7px 10px #b98e8240)}.angel-art{width:min(94%,300px);height:min(35svh,285px);object-fit:cover;border-radius:50%;mask-image:radial-gradient(ellipse at 50% 50%,#000 39%,transparent 75%);-webkit-mask-image:radial-gradient(ellipse at 50% 50%,#000 39%,transparent 75%)}.cross-art{width:min(54%,190px);height:min(28svh,220px);animation:angelFloat 6s ease-in-out infinite}.dove-art{width:min(62%,220px);height:min(17svh,136px)}.story-page .name-line{font:italic 12px/1.6 var(--serif);color:#97776e;margin:0}.spiritual-text{font:italic 15px/1.7 var(--serif);color:#85645d;max-width:290px}.gold-note{font-size:9px;letter-spacing:.23em;text-transform:uppercase;color:#bfa173;font-weight:600}.paper-ribbon{width:150px;height:20px;position:relative;border-top:1px solid #dfbdc4;border-bottom:1px solid #dfbdc4;opacity:.6}.paper-ribbon:after{content:'♡';position:absolute;background:#fff9f6;top:-10px;left:50%;padding:2px 10px;transform:translateX(-50%);color:#c58d9b;font-size:17px}
.detail-block{display:flex;flex-direction:column;align-items:center;gap:5px;width:100%;padding:4px 3px}.detail-icon{color:#be987c;font-size:20px}.detail-label{font:700 9px var(--sans);letter-spacing:.15em;text-transform:uppercase;color:#bd9b8d}.detail-main{font:normal 14px/1.45 var(--serif);color:#744e50;overflow-wrap:anywhere}.detail-sub{font:11px/1.6 var(--sans);color:#9e7b73;overflow-wrap:anywhere}.date-badge{font:normal 27px/1.4 var(--serif);color:#95616b;letter-spacing:-.05em}.detail-rule{width:60px;height:1px;background:#e8c4b6}.map-link{color:#a97479;text-decoration:none;border-bottom:1px solid #c99995;padding:4px 2px;font-size:11px;font-weight:700}.map-link:focus-visible{outline:2px solid #c17e92}.godparent-lines{display:flex;flex-direction:column;gap:14px;width:100%}.godparent-item small{display:block;text-transform:uppercase;letter-spacing:.15em;color:#b39286;font-size:9px}.godparent-item strong{display:block;font:normal 15px/1.65 var(--serif);color:#815d56;overflow-wrap:anywhere}
.story-footer{position:absolute;bottom:8%;left:16%;width:68%;z-index:5;display:flex;align-items:center;flex-direction:column;gap:12px}.dots{display:flex;gap:6px;align-items:center;justify-content:center;min-height:8px}.dot{width:5px;height:5px;border-radius:9px;background:#dbb8bb;transition:all .3s}.dot.active{width:22px;background:#cf7091}.continue-button{width:100%;min-height:47px;font-size:12.5px}.story-footer.final-step{display:none}.story-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:6;width:48px;height:48px;border-radius:999px;border:1px solid #e2c7bb;background:linear-gradient(180deg,#fffdfb,#f8ece8);box-shadow:0 12px 25px #b5827840, inset 0 1px 0 #fff;display:grid;place-items:center;color:#ba7f90;font-size:31px;font-weight:400;line-height:1;transition:transform .22s,box-shadow .22s,opacity .22s,color .22s,border-color .22s}.story-nav:hover{transform:translateY(-50%) scale(1.04);box-shadow:0 16px 30px #b5827850}.story-nav:focus-visible{outline:2px solid #b97687;outline-offset:3px}.story-nav[disabled],.story-nav.is-disabled{opacity:.34;pointer-events:none;filter:saturate(.72)}.story-nav-prev{left:14px}.story-nav-next{right:14px}.story-nav span{display:block;transform:translateY(-1px)}.rsvp-page .body-copy{max-width:310px}.rsvp-actions{display:flex;flex-direction:column;gap:12px;width:100%;margin-top:6px}.choice-button{width:100%;display:flex;justify-content:center;align-items:center;gap:12px;border:1px solid #d58fa2;border-radius:40px;padding:14px 16px;background:linear-gradient(120deg,#e48ea4,#c86787);color:#fff;font-weight:700;font-size:13px;box-shadow:0 8px 18px #cb73863d;min-height:49px;transition:transform .2s,box-shadow .2s}.choice-button:hover{transform:scale(1.025);box-shadow:0 8px 15px #bb74834e}.choice-button.secondary{background:linear-gradient(#fffdfa,#fff4f0);color:#986574;box-shadow:0 2px 8px #b68a8840}.choice-button:focus-visible{outline:2px solid #b97687;outline-offset:3px}.choice-button span:first-child{font-size:20px;font-weight:400}.general-name-label{width:100%;display:block;text-align:left;font-size:11px;color:#86625f;font-weight:600}.general-name-input{height:43px;border-radius:15px;border:1px solid #debdb5;background:#fffcf8;width:100%;padding:0 14px;font-size:13px;outline:none;color:#704d51}.general-name-input:focus{border-color:#b87987;box-shadow:0 0 0 3px #e3bbc650}.rsvp-error{font-size:11px;min-height:0;color:#ab4660;margin:0}.rsvp-error:empty{display:none}.endpage .thank-you{font:normal clamp(42px,7svh,70px)/1 var(--script);color:#bd7a87}.edit-response{border:0;background:none;color:#a36b7b;text-decoration:underline;text-underline-offset:3px;font-size:11px;padding:8px}.end-icon{font-size:37px;color:#d4a0a2;animation:blink 3s ease-in-out infinite}.no-script{position:fixed;inset:0;z-index:100;background:#fff9f6;display:grid;place-items:center;text-align:center;padding:30px;color:#8a6670}
#particleCanvas{position:absolute;inset:0;pointer-events:none;z-index:10;width:100%;height:100%}
@keyframes aura{50%{opacity:.65;transform:translate(-50%,-50%) scale(1.12)}}@keyframes drift{50%{transform:translateX(90px)}}@keyframes blink{50%{opacity:.25;transform:scale(.7)}}@keyframes petalfall{0%{transform:translate(0,-20px) rotate(0);opacity:0}10%{opacity:.7}90%{opacity:.7}100%{transform:translate(120px,110svh) rotate(650deg);opacity:0}}@keyframes glow{50%{opacity:.58;transform:scale(1.1)}}@keyframes angelFloat{50%{transform:translateY(-8px)}}@keyframes doveFloat{50%{transform:translate(9px,-7px) rotate(3deg)}}@keyframes pageAppear{from{opacity:0;transform:translateX(30px) rotateY(-11deg) scale(.97);filter:blur(5px)}to{opacity:1;transform:none;filter:none}}@keyframes pageAppearReverse{from{opacity:0;transform:translateX(-30px) rotateY(11deg) scale(.97);filter:blur(5px)}to{opacity:1;transform:none;filter:none}}@keyframes pageLeave{to{opacity:0;transform:translateX(-24px) rotateY(8deg) scale(.98);filter:blur(5px)}}
@media(max-height:760px){.cover-header{top:6%}.cover-header h1{margin-top:5px}.envelope-place{top:32%;height:34%}.unlock-form{top:68%;left:18%;width:64%;gap:8px}.cover-footer{bottom:2.7%}.content-area{inset:8% 15% 18%}.story-page{gap:7px}.story-footer{bottom:6%;gap:8px}.angel-art{height:min(31svh,245px)}.cross-art{height:min(24svh,185px)}}
@media(max-height:615px){.cover-header{top:5%}.cover-header p{margin-top:3px}.envelope-place{top:31%;height:34%}.envelope{width:min(62%,265px)}.unlock-form{top:68%;left:18%;width:64%;gap:7px}.cover-footer{display:none}.content-area{inset:7.5% 14% 18%}.story-page{gap:5px}.angel-art{height:27svh;width:min(75%,230px)}.cross-art{height:20svh}.dove-art{height:11svh}.story-page h2{font-size:43px}.story-page .body-copy{font-size:11px;line-height:1.55}.detail-block{gap:1px}.date-badge{font-size:20px}.rsvp-actions{gap:6px}.choice-button{min-height:44px;padding:8px}.story-footer{bottom:5%}.story-nav{width:42px;height:42px;font-size:28px}.story-nav-prev{left:10px}.story-nav-next{right:10px}}
@media(min-width:800px){.experience{padding:24px}.stage{width:min(428px,90vw);height:min(790px,calc(100svh - 42px))}.ambient{background-image:radial-gradient(#fff9f4a6 1px,transparent 1px);background-size:30px 30px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}}
/* El arte permanece en los márgenes, no detrás de los textos. */
.cover-decoration.top{top:-64px}.cover-decoration.bottom{bottom:-73px}.paper-top-art{top:-62px}.paper-bottom-art{bottom:-92px}
.content-area{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}.content-area::-webkit-scrollbar{display:none}.story-page{height:auto;min-height:100%}.greeting-page h2{font-size:clamp(37px,6.7svh,57px);line-height:1.05}.rsvp-page h2{font-size:clamp(36px,5.8svh,50px);line-height:1.1;overflow-wrap:break-word}

@media(max-width:430px){.story-nav{width:44px;height:44px;font-size:28px}.story-nav-prev{left:8px}.story-nav-next{right:8px}.content-area{inset:8.5% 15% 17%}.story-footer{left:17%;width:66%}}
@media(max-width:360px){.story-nav{width:40px;height:40px;font-size:25px}.content-area{inset:8.5% 14% 18%}.story-footer{left:16%;width:68%}}

.animated-cycle{will-change:contents;}

/* Ceremonias y celebración: itinerario editorial, en lugar de texto apretado. */
.ceremony-page,.celebration-page{gap:clamp(7px,1.3svh,14px)}
.ceremony-page h2,.celebration-page h2{font-size:clamp(36px,6.2svh,55px);line-height:1.05}
.ceremony-date{display:block;font:italic clamp(11px,1.55svh,13px)/1.5 var(--serif);color:#92716b;}
.ceremony-icon{font:34px/1 var(--serif);color:#caa470;text-shadow:0 2px 8px #d7baa2aa;margin-top:0}
.little-heart{font-size:25px;line-height:1;color:#c995a1}
.moment-list{width:100%;display:flex;flex-direction:column;gap:10px}
.moment-card{display:grid;grid-template-columns:minmax(63px,26%) minmax(0,1fr);align-items:start;text-align:left;gap:9px;border:1px solid #e6cfc6;background:linear-gradient(125deg,#fffdfaed,#fffcf7f0);border-radius:14px;padding:clamp(9px,1.5svh,14px) clamp(9px,1.4svh,13px);box-shadow:0 6px 16px #b38d7b15}
.moment-time{font:700 clamp(10px,1.35svh,12px)/1.55 var(--sans);color:#b26f83;border-right:1px solid #e9d3c7;padding:2px 5px 2px 0;align-self:stretch;display:flex;align-items:center}
.moment-detail{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.moment-detail strong{font:700 clamp(12px,1.5svh,14px)/1.4 var(--serif);color:#7c5756;overflow-wrap:anywhere}
.moment-place{font:600 clamp(10.5px,1.4svh,12px)/1.4 var(--sans);color:#9a7370;overflow-wrap:anywhere}
.moment-address{font:400 clamp(10px,1.35svh,11.5px)/1.5 var(--sans);color:#927e78;overflow-wrap:anywhere}
.moment-note{margin:2px 0 0!important;font:italic clamp(10px,1.35svh,12px)/1.6 var(--serif)!important;color:#8c7470!important}
.moment-detail .map-link{padding:2px 0;font-size:10px;margin-top:3px}
.tiny-copy{font-size:clamp(10px,1.38svh,12px)!important;max-width:270px!important}
.family-page .godparent-lines{gap:10px}
.family-page .godparent-item strong{font-size:clamp(12px,1.8svh,14px);line-height:1.5}
.names-separator{display:block;font:italic 10px/1.2 var(--serif);color:#bd998e}
.family-page .cross-art{height:min(20svh,150px);width:min(42%,145px)}
@media(max-height:740px){.ceremony-page h2,.celebration-page h2{font-size:38px}.ceremony-icon{font-size:26px}.moment-list{gap:7px}.moment-card{border-radius:11px;padding:9px}.ceremony-page,.celebration-page{gap:7px}}
@media(max-width:360px){.moment-card{grid-template-columns:60px minmax(0,1fr);gap:7px;padding:8px}.moment-time{font-size:9px}.moment-detail .map-link{font-size:9px}}

.scene-cover.code-accepted .unlock-form{opacity:0;transform:translateY(-10px);pointer-events:none;}
.scene-cover.code-accepted .cover-footer{opacity:0;transition:opacity .3s ease;}

.animated-art{position:relative;display:block}.animated-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;transform:scale(.995) translateZ(0);transition:opacity 220ms ease, transform 260ms ease;filter:drop-shadow(0 8px 14px #b98e8240)}.animated-art img.active{opacity:1;transform:scale(1)}.animated-art img.soft{opacity:.36}.dove-art{width:min(64%,225px);height:min(18svh,142px);margin:0 auto}.angel-art{width:min(94%,300px);height:min(35svh,285px);margin:0 auto}.angel-art img{border-radius:50%;mask-image:radial-gradient(ellipse at 50% 50%,#000 39%,transparent 75%);-webkit-mask-image:radial-gradient(ellipse at 50% 50%,#000 39%,transparent 75%)}
.full-schedule-page{justify-content:flex-start;padding-top:4px;gap:8px}.schedule-date{display:block;font:italic clamp(11px,1.55svh,13px)/1.5 var(--serif);color:#9a666f}.schedule-intro{font:400 clamp(10.8px,1.45svh,12px)/1.65 var(--serif);color:#836568;margin:0;max-width:310px}.moment-list.compact{gap:8px}.moment-card.highlight{background:linear-gradient(135deg,#fff9fb,#fff6f0 42%,#fffdf9);border:1px solid #ecc8cd;box-shadow:0 9px 22px #cf95a21c}.moment-card.highlight .moment-time{color:#c25a7c}.moment-step{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:linear-gradient(180deg,#f7d383,#e0ad53);color:#fff;font-size:10px;font-weight:700;box-shadow:0 4px 10px #dbb56a42;margin-right:6px}.moment-detail strong{display:flex;align-items:center;gap:6px}.greeting-note{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:#c7936d;font-weight:700}.scene-cover .small-cross{color:#cc9e58} .gold-note{color:#d1a252}.story-nav{background:linear-gradient(180deg,#fffefd,#fff0f2);color:#d07893;border-color:#efc8d3}.story-nav:hover{box-shadow:0 18px 34px #d3929652}.general-name-input:focus{border-color:#d17d93;box-shadow:0 0 0 3px #efc4d080}

/* Retrato realista de Jesús: bordes suaves, integrado al papel, sin marco pesado. */
.jesus-art{display:block;width:min(87%,285px);height:min(31svh,255px);margin:0 auto;object-fit:contain;filter:drop-shadow(0 9px 18px #b9928a33)}
.endpage .body-copy{max-width:290px}
@media(max-height:650px){.jesus-art{height:min(26svh,182px)}}

/* Leah V6: experiencia ajustada al área real disponible, no al tamaño de un modelo de teléfono. */
html,body{overflow:hidden;overscroll-behavior:none}
.stage{height:min(825px,calc(100svh - 16px));min-height:0;width:min(100%,428px)}
.experience{padding:8px;min-height:100svh}
.content-area{inset:11% 13% 17.5%;display:flex;align-items:center;justify-content:center;overflow:hidden!important;overscroll-behavior:none}
.page-fit{width:100%;flex:0 0 auto;display:flex;align-items:center;justify-content:center;transform-origin:50% 50%;will-change:transform}
.page-fit .story-page{height:auto;min-height:0;flex:0 0 auto;width:100%;gap:clamp(7px,1.2svh,13px)}
.page-fit .story-page>*,.page-fit .story-page p{flex-shrink:0}
.story-footer{bottom:5%;left:15%;width:70%;gap:8px}
.story-page h2{overflow-wrap:normal;word-break:normal;hyphens:none;text-wrap:balance}
.story-nav{width:41px;height:41px;top:51%;font-size:28px;box-shadow:0 5px 15px #ac82922b}
.story-nav-prev{left:5px}.story-nav-next{right:5px}
.page-image{display:block;object-fit:contain;animation:none!important}
.dove-art{width:min(90%,260px);height:clamp(130px,26svh,230px);margin:0 auto;filter:drop-shadow(0 10px 12px #bc9d9d25)}
.angel-art{width:min(100%,300px);height:clamp(154px,34svh,280px);object-fit:contain;border-radius:0;mask-image:none;-webkit-mask-image:none;animation:none!important;margin:0 auto;filter:drop-shadow(0 12px 15px #d6a9b42a)}
.invitation-page{justify-content:center;gap:clamp(6px,1.0svh,12px)!important}
.invitation-page .invitation-lead{font:400 clamp(12px,1.8svh,15px)/1.65 var(--serif);text-align:center;color:#815f60;margin:0;max-width:300px;letter-spacing:-.01em}
.invitation-page h2.invitation-event{font:normal clamp(37px,6.3svh,55px)/1.08 var(--script);color:#c66d8c;margin:0;overflow-wrap:normal;word-break:normal;hyphens:none;max-width:100%;text-wrap:balance;text-shadow:0 3px 14px #efc3c956}
.invitation-name{font:italic clamp(14px,2.1svh,19px)/1.1 var(--serif);color:#845663;margin:0;display:flex;align-items:baseline;justify-content:center;gap:8px}
.invitation-name strong{font:normal clamp(36px,6svh,58px)/1.0 var(--script);color:#ba6885}
.greeting-page h2{font-size:clamp(40px,7svh,63px);line-height:1.08}
.family-page h2{font-size:clamp(36px,6svh,53px)}
.family-page .cross-art{height:clamp(75px,14svh,115px);width:min(45%,130px)}
.family-page .godparent-lines{gap:clamp(7px,1.5svh,14px)}
.family-page .godparent-item strong{font-size:clamp(12px,1.7svh,15px);line-height:1.5}
.family-page .godparent-item small{font-size:9px;letter-spacing:.14em}
.full-schedule-page{padding-top:0;justify-content:center;gap:clamp(5px,.9svh,10px)!important}
.full-schedule-page h2{font-size:clamp(36px,6svh,54px);line-height:1.08}
.full-schedule-page .schedule-date{font-size:clamp(10px,1.6svh,13px)}
.full-schedule-page .moment-list{gap:clamp(5px,.8svh,9px)}
.full-schedule-page .moment-card{grid-template-columns:55px minmax(0,1fr);padding:clamp(7px,1.2svh,10px) clamp(7px,1.2svh,11px);gap:8px;border-radius:12px}
.full-schedule-page .moment-detail{gap:2px}
.full-schedule-page .moment-time{font-size:clamp(9px,1.25svh,11px);line-height:1.35}
.full-schedule-page .moment-detail strong{font-size:clamp(11px,1.43svh,13px);line-height:1.35}
.full-schedule-page .moment-place,.full-schedule-page .moment-address{font-size:clamp(9px,1.23svh,10.5px);line-height:1.35}
.full-schedule-page .moment-note{font-size:9px!important;line-height:1.3!important}
.full-schedule-page .moment-detail .map-link{font-size:9px;line-height:1.1;margin-top:1px;padding:1px 0}
.full-schedule-page .moment-step{width:15px;height:15px;font-size:9px;flex-shrink:0;margin-right:1px}
.rsvp-page{gap:clamp(7px,1.1svh,13px)!important}
.rsvp-page h2{font-size:clamp(43px,7svh,62px);line-height:1.1}
.rsvp-page .jesus-art{width:min(86%,255px);height:clamp(130px,26svh,218px);margin:0 auto;object-fit:contain;mask-image:linear-gradient(to bottom,#000 0%,#000 74%,transparent 99%);-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 74%,transparent 99%);filter:drop-shadow(0 7px 13px #9f898840)}
.rsvp-guest-name{width:100%}
.rsvp-guest-name .general-name-input{height:42px}
.rsvp-actions{gap:clamp(7px,1svh,11px);margin:0}
.rsvp-actions .choice-button{min-height:46px;padding:10px 12px}
.rsvp-page .rsvp-error{line-height:1.3}
.endpage .cross-art{height:clamp(90px,20svh,150px);width:min(62%,195px)}
@media(max-height:700px){
 .content-area{inset:10% 13% 17%}
 .page-fit .story-page{gap:6px}
 .invitation-page .invitation-lead{font-size:12px}
 .invitation-page h2.invitation-event{font-size:clamp(34px,5.9svh,44px)}
 .invitation-name strong{font-size:clamp(34px,5.5svh,43px)}
 .rsvp-page .jesus-art{height:clamp(106px,22svh,156px)}
 .story-footer{bottom:4%;gap:6px}
}
@media(max-width:365px){
 .content-area{inset:10.5% 13% 17%}
 .story-nav{width:35px;height:35px;font-size:24px}
 .story-nav-prev{left:6px}.story-nav-next{right:6px}
 .story-footer{left:17%;width:66%}
 .full-schedule-page .moment-card{grid-template-columns:51px minmax(0,1fr);gap:6px;padding:7px}
}
@media(prefers-reduced-motion:reduce){.page-fit{will-change:auto}}
/* V7 · La página real reproduce el lenguaje visual de las propuestas: lirios,
   cielo lavanda, tinta ciruela, oro fino y una invitación legible en móviles. */
:root{--ink:#4c2458;--warm:#6d436e;--rose:#c77ba3;--rose-dark:#8f3b7e;--gold:#d4ad5c;--gold-strong:#dca854;--ivory:#fffaf5;--text:#663d66}
body{background:#e5cbe3;color:var(--ink)}
.experience{padding:8px;background:radial-gradient(ellipse at 55% 5%,#fff9f6 0%,#f7e7f1 29%,#e7cfe9 74%,#d5b9d8 100%)}
.stage{width:min(100%,420px);height:min(842px,calc(100svh - 12px));filter:drop-shadow(0 20px 28px #58325145)}
.scene,.scene-story{border-radius:27px;background:radial-gradient(ellipse at 48% 16%,#fffaf6e6 0%,transparent 45%),radial-gradient(ellipse at 45% 47%,#fffef7f1 0%,#fef5f0de 43%,transparent 72%),radial-gradient(ellipse at 52% 83%,#fff0f7f0 0%,transparent 52%),linear-gradient(165deg,#e9d8ee 0%,#f5e1ec 23%,#fbf1ed 52%,#efdaeb 76%,#eed8e7 100%);border:1px solid #ffffffed;box-shadow:inset 0 0 0 4px #fff7efc2,0 16px 32px #63385f26}
.scene-cover:before,.scene-story:before{inset:9px;border:1.5px solid #d5af61bd;border-radius:19px;z-index:4}
.scene-cover:after{inset:16px;border:1px solid #fffdf1b8;border-radius:16px;z-index:4}
.paper:before{inset:9px;border:1px solid #d5af61bd;border-radius:19px;z-index:4}
.paper-border{inset:16px;border:1px solid #fff4d2c5;border-radius:17px;z-index:3}
.paper-grain{opacity:.14}
.cover-decoration,.paper-top-art,.paper-bottom-art{pointer-events:none;left:0;width:100%;height:155px;z-index:1;opacity:1;background-repeat:no-repeat;background-size:clamp(92px,32%,137px) auto,clamp(92px,32%,137px) auto}
.cover-decoration.top,.paper-top-art{top:0;background-image:url('../images/lily-top-left.webp'),url('../images/lily-top-right.webp');background-position:0 0,100% 0;transform:none!important}
.cover-decoration.bottom,.paper-bottom-art{bottom:0;top:auto;background-image:url('../images/lily-bottom-left.webp'),url('../images/lily-bottom-right.webp');background-position:0 100%,100% 100%;transform:none!important;opacity:1}
.cover-header{top:10%;z-index:2}
.small-cross{color:#d19f43;font-size:34px;filter:drop-shadow(0 0 8px #e6bd6799)}
.cover-header h1{font:normal clamp(46px,9svh,76px)/1 var(--script);margin:10px 0;color:#59235f;letter-spacing:0;text-shadow:0 4px 17px #fffaffab}
.cover-header h1:after{content:'♡';display:block;font:normal 22px/1 var(--serif);margin:10px auto 0;color:#cb963b;text-shadow:none}
.cover-header h1:before{content:none}
.envelope-place{top:33%;height:31%;width:100%}
.envelope{width:min(76%,302px);aspect-ratio:1.53;filter:drop-shadow(0 15px 17px #825a7a55);transform:rotate(0deg)}
.envelope-glow{background:radial-gradient(circle,#ffeac0ce 0%,#fce0e0aa 38%,transparent 71%);filter:blur(17px)}
.envelope-photo{position:absolute;z-index:9;left:50%;top:52%;transform:translate(-50%,-50%);width:120%;height:150%;object-fit:contain;opacity:1;transition:opacity .32s ease;pointer-events:none;filter:drop-shadow(0 8px 7px #8a618543)}
.scene-cover.unlocking .envelope-photo{opacity:0;transition-delay:.09s}
.unlock-form{top:72%;left:17%;width:66%;gap:11px;z-index:6}
.unlock-form label{font:700 clamp(12px,1.8svh,15px)/1.25 var(--serif);letter-spacing:.005em;text-transform:none;color:#572c64}
.code-wrap{position:relative;width:min(100%,242px);height:49px;margin:auto;padding:0;background:none;box-shadow:none;border:none;border-radius:0;display:block}
.code-wrap:focus-within{outline:0}
.code-digits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;width:100%;height:100%;pointer-events:none}
.code-digits span{display:grid;place-items:center;min-width:0;height:100%;font:700 21px/1 var(--serif);color:#612a6b;background:linear-gradient(140deg,#fffefb,#ffeff7);border:1.6px solid #bc83c1;border-radius:12px;box-shadow:inset 0 1px 0 #fff,0 4px 8px #a871a230;transition:border-color .2s,box-shadow .2s,background .2s}
.code-digits span.filled{border-color:#8e4c92;background:#fffbf8;box-shadow:inset 0 0 0 1px #e8d4bd,0 5px 11px #96658b30}
.code-wrap:focus-within .code-digits span:not(.filled):first-of-type{border-color:#833b8e;box-shadow:0 0 0 2px #d8bcdf80}
.code-wrap input{position:absolute;inset:0;z-index:2;width:100%;height:100%;padding:0;border:0;opacity:.015;cursor:text;font-size:17px;color:transparent;caret-color:transparent}
.code-wrap input:focus-visible{outline:0}
.unlock-form .form-error{font:500 11px/1.5 var(--sans);color:#a73a69;padding:0 3px}
.cover-footer{display:none}
/* Story typography: short meaningful copy with generous breathing room. */
.content-area{inset:9% 10% 18%;overflow:hidden!important}
.page-fit{width:100%}
.page-fit .story-page{gap:clamp(8px,1.7svh,18px)}
.story-page h2{font-family:var(--script);color:#66256f;text-shadow:0 4px 17px #fff9f0a9}
.story-page .body-copy{color:#5c3d5e;font:400 clamp(13px,1.86svh,16px)/1.65 var(--serif);max-width:315px}
.greeting-page h2{font:normal clamp(45px,8.1svh,69px)/1.09 var(--script);color:#64226f}
.greeting-page .dove-art{display:block;width:min(88%,252px);height:auto;max-height:clamp(165px,31svh,252px);aspect-ratio:1/1;filter:drop-shadow(0 8px 20px #aa90a258)}
.divider-symbol{color:#c68c42}
.divider-symbol:before,.divider-symbol:after{background:linear-gradient(90deg,transparent,#cda65b)}
.invitation-page .invitation-lead{font:400 clamp(14px,1.9svh,17px)/1.55 var(--serif);color:#5f315f;max-width:280px}
.invitation-page .angel-art{display:block;width:min(90%,252px);height:auto;max-height:clamp(165px,31svh,252px);aspect-ratio:1/1;filter:drop-shadow(0 8px 15px #d8a6b64a)}
.invitation-page h2.invitation-event{font:normal clamp(43px,7svh,62px)/1.0 var(--script);color:#692778;text-shadow:0 4px 15px #fff9f3b6}
.invitation-name{font:normal clamp(18px,2.5svh,22px)/1 var(--serif);color:#66325b;gap:9px}
.invitation-name strong{font:normal clamp(48px,8svh,65px)/1 var(--script);color:#b35b99}
.family-page h2{font-size:clamp(43px,7svh,61px)}
.family-page .godparent-item small{color:#9b6996;font-weight:700}
.family-page .godparent-item strong{color:#63375e;font-size:clamp(13px,1.78svh,16px)}
.family-page .cross-art{height:clamp(100px,18svh,154px);width:min(52%,170px)}
.full-schedule-page h2{font-size:clamp(42px,7svh,58px)}
.full-schedule-page .schedule-date{font:italic clamp(11px,1.55svh,14px)/1.3 var(--serif);color:#7a4673}
.full-schedule-page .moment-list{gap:clamp(5px,.88svh,10px)}
.full-schedule-page .moment-card{border:1px solid #e0bf82;border-radius:15px;background:linear-gradient(120deg,#fffdfbf0,#fff5f3ed);box-shadow:0 6px 17px #9963921a;padding:clamp(8px,1.25svh,11px)}
.full-schedule-page .moment-time{color:#772d7d;border-right-color:#dec08f}
.full-schedule-page .moment-detail strong{color:#61265f}
.full-schedule-page .moment-place,.full-schedule-page .moment-address{color:#755771}
.full-schedule-page .moment-step{background:linear-gradient(180deg,#eec97e,#c99338)}
.map-link{color:#82458c;border-bottom-color:#bd89ba}
.story-footer{bottom:5.3%;left:15%;width:70%;gap:9px}
.dot{background:#d5bddc}
.dot.active{background:#965c9a}
.continue-button,.main-button{background:linear-gradient(165deg,#ad63ac,#79397c 63%,#632969);color:white;box-shadow:0 8px 17px #67336e45,inset 0 1px 0 #ffeaff8c;min-height:49px;font:700 13px/1 var(--sans)}
.continue-button:hover{box-shadow:0 12px 22px #67336e50}
.story-nav{width:56px;height:56px;top:51%;font-size:34px;line-height:1;background:radial-gradient(circle at 35% 30%,#fffefc,#f5dcec 65%,#edd0e7 100%);border:1.5px solid #d8b2d7;color:#8b3f93;box-shadow:0 10px 22px #6b4a6642,inset 0 1px 0 #fff;border-radius:50%}
.story-nav-prev{left:6px}.story-nav-next{right:6px}
.story-nav[disabled]{opacity:0;pointer-events:none}
/* RSVP: real Jesus portrait, clear question, large choices. */
.rsvp-page{gap:clamp(7px,1.3svh,13px)!important}
.rsvp-page .jesus-art{height:clamp(150px,34svh,270px);width:min(92%,298px);object-fit:contain;mask-image:linear-gradient(to bottom,#000 0%,#000 72%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 72%,transparent 100%);filter:drop-shadow(0 8px 15px #a6788d2b)}
.rsvp-page h2{font:normal clamp(46px,8svh,68px)/1.05 var(--script);color:#5b2363}
.rsvp-actions{width:100%;gap:12px;margin:1px 0}
.choice-button{min-height:52px;border-radius:999px;font:700 14px/1.15 var(--sans);box-shadow:0 7px 14px #76456b2a}
.choice-button:not(.secondary){background:linear-gradient(180deg,#eff4d5,#ced7a3 49%,#abb96c);border:1px solid #9aaf67;color:#49672e}
.choice-button.secondary{background:linear-gradient(180deg,#fffdfa,#fbeef4);border:1px solid #da9fc4;color:#873d70}
.choice-button span:first-child{font-size:22px;font-weight:700}
.general-name-input{border-color:#ccabd1;color:#4c2458;background:#fffefbd6}
.general-name-label{color:#714672}
.endpage .thank-you{color:#642971;font-size:clamp(52px,8svh,72px)}
.endpage .cross-art{height:clamp(100px,21svh,170px);width:min(60%,180px)}
.edit-response{color:#824b89}
/* Short devices: the JS fit algorithm scales each actual page, not the interface chrome. */
@media(max-height:700px){
 .cover-header{top:7.5%}.cover-header h1{font-size:clamp(46px,8.5svh,60px)}
 .envelope-place{top:31%;height:31%}.envelope{width:min(68%,280px)}
 .unlock-form{top:68.5%}.code-wrap{height:44px}.code-digits span{font-size:18px}
 .content-area{inset:9% 9% 17%}
 .story-footer{bottom:4.5%;gap:6px}
 .invitation-page .invitation-lead{font-size:13px}
 .invitation-page .angel-art{width:min(88%,230px);height:auto;max-height:clamp(148px,30svh,206px)}
 .invitation-page h2.invitation-event{font-size:clamp(40px,6.8svh,49px)}
 .greeting-page .dove-art{width:min(84%,224px);height:auto;max-height:clamp(146px,29svh,211px)}
 .rsvp-page .jesus-art{height:clamp(128px,26svh,185px)}
 .full-schedule-page .moment-card{padding:6px 8px}
}
@media(max-width:360px){
 .cover-decoration,.paper-top-art,.paper-bottom-art{background-size:99px auto,99px auto}
 .scene{border-radius:20px}.cover-header{top:8%}
 .unlock-form{left:15%;width:70%}
 .story-nav{width:48px;height:48px;font-size:30px}
 .story-nav-prev{left:0}.story-nav-next{right:0}
 .content-area{inset:10% 9% 17%}
 .rsvp-actions{gap:7px}
 .rsvp-page .jesus-art{height:clamp(125px,25svh,176px)}
 .continue-button{min-height:44px}
}
@media(prefers-reduced-motion:reduce){.envelope-photo{transition:none}.petal,.star{animation:none}}
/* Compatibilidad tipográfica y altura exacta: no desbordar por el padding exterior. */
:root{--script:'Great Vibes','Segoe Script','Z003','Brush Script MT',cursive}
.stage{height:min(842px,calc(100svh - 16px))}


/* V9 overrides: animation real frames + RSVP companions + final button style */
.rsvp-fields{width:100%;display:grid;gap:10px}
.rsvp-field{width:100%}
.companion-select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#8b3f93 50%),linear-gradient(135deg,#8b3f93 50%,transparent 50%);background-position:calc(100% - 18px) calc(50% - 3px),calc(100% - 12px) calc(50% - 3px);background-size:6px 6px,6px 6px;background-repeat:no-repeat;padding-right:38px}
.general-name-input[readonly]{background:#fff8fc;color:#6d436d;font-weight:600}
.edit-response{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 18px;border-radius:999px;border:1px solid #d8b2d7;background:linear-gradient(180deg,#fffefd,#fff0f6);box-shadow:0 8px 18px #8b5a7f22;color:#7c437f;font:700 13px/1 var(--sans);text-decoration:none;min-width:200px}
.edit-response:hover{transform:translateY(-1px);box-shadow:0 12px 22px #8b5a7f30}
.rsvp-page .jesus-art{width:min(92%,290px);height:auto;max-height:clamp(150px,34svh,270px)}
.greeting-page .dove-art,.invitation-page .angel-art{width:min(88%,252px);height:auto;max-height:clamp(165px,31svh,252px);aspect-ratio:1/1;object-fit:contain}
.story-nav{width:58px;height:58px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fffefc,#fbecf3 55%,#efd6ea 100%);border:1.5px solid #dfb4d7;box-shadow:0 12px 24px #855d7f35,inset 0 1px 0 #fff;color:#b04f8f}
.story-nav:hover{transform:translateY(-50%) scale(1.06)}
@media(max-width:430px){.story-nav{width:50px;height:50px;font-size:30px}.rsvp-fields{gap:8px}.edit-response{min-width:188px}}
@media(max-width:360px){.story-nav{width:46px;height:46px;font-size:28px}.general-name-input{font-size:12.5px}}


/* V10 overrides */
.story-nav{background:rgba(255,255,255,.5)!important;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);box-shadow:0 10px 22px #855d7f2e,inset 0 1px 0 rgba(255,255,255,.8)!important}
.story-nav:hover{background:rgba(255,255,255,.6)!important}
.continue-button span[aria-hidden="true"]{display:none}
.choice-button,.edit-response{display:flex;justify-content:center;align-items:center;gap:0;text-decoration:none}
.choice-button span:first-child{display:none!important}
.choice-button.primary,.continue-button,.edit-response{background:linear-gradient(165deg,#ad63ac,#79397c 63%,#632969)!important;color:#fff!important;border:1px solid #7a3d7d!important;box-shadow:0 8px 17px #67336e45,inset 0 1px 0 #ffeaff8c!important}
.choice-button.primary:hover,.continue-button:hover,.edit-response:hover{transform:translateY(-1px);box-shadow:0 12px 22px #67336e50!important}
.edit-response{min-height:49px;padding:12px 18px;border-radius:999px;font:700 13px/1 var(--sans)}
.rsvp-page h2{font-size:clamp(34px,6svh,50px)}
.schedule-table{gap:0!important;border:1px solid #e0bf82;border-radius:16px;overflow:hidden;background:linear-gradient(120deg,#fffdfbf0,#fff5f3ed);box-shadow:0 6px 17px #9963921a}
.schedule-table .moment-card{border:none!important;border-bottom:1px solid #ead5b2!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;margin:0!important}
.schedule-table .moment-card:last-child{border-bottom:none!important}
.schedule-table .moment-time{min-width:76px;padding-right:10px;border-right:1px solid #ead5b2;color:#772d7d}
.schedule-table .moment-step{display:none!important}
.schedule-table .moment-detail strong{display:block}
.full-schedule-page .moment-card{grid-template-columns:74px minmax(0,1fr)!important}
.full-schedule-page .moment-list .map-link{margin-top:3px}
.general-name-label{color:#6d436d}
.fullscreen-toggle{position:absolute;top:10px;right:10px;z-index:8;width:34px;height:34px;border-radius:50%;border:1px solid rgba(123,61,126,.22);background:rgba(255,255,255,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:none;align-items:center;justify-content:center;color:#7b3d7e;font:700 20px/1 var(--sans);box-shadow:0 8px 16px #734a6d22}
.fullscreen-toggle:hover{background:rgba(255,255,255,.7)}
@media(max-width:768px){body:not(.mobile-windowed) .experience{padding:0!important}body:not(.mobile-windowed) .stage{width:100svw!important;max-width:none!important;height:100svh!important;min-height:100svh!important;filter:none!important}body:not(.mobile-windowed) .scene,body:not(.mobile-windowed) .scene-story,body:not(.mobile-windowed) .scene-cover,body:not(.mobile-windowed) .paper:before,body:not(.mobile-windowed) .paper-border,body:not(.mobile-windowed) .scene-cover:before,body:not(.mobile-windowed) .scene-story:before{border-radius:0!important}body:not(.mobile-windowed) .content-area{inset:8.7% 10% 17% !important}body:not(.mobile-windowed) .story-footer{left:10%!important;width:80%!important;bottom:4.2%!important}body:not(.mobile-windowed) .story-nav-prev{left:8px!important}body:not(.mobile-windowed) .story-nav-next{right:8px!important}.fullscreen-toggle{display:flex}}
@media(max-width:430px){.full-schedule-page .moment-card{grid-template-columns:68px minmax(0,1fr)!important}.schedule-table .moment-time{min-width:68px;font-size:10px}.fullscreen-toggle{top:8px;right:8px}}

/* V11: título legible, pantalla completa móvil, controles a media transparencia. */
.greeting-page .welcome-title{font-family:var(--script);font-style:normal;font-size:clamp(45px,7.4svh,70px);line-height:1.12;color:#61246c;letter-spacing:0;overflow-wrap:normal;white-space:nowrap;max-width:100%;margin:0;text-shadow:0 5px 17px #fff9f0b3}
.greeting-page .welcome-name{font:700 clamp(17px,2.65svh,23px)/1.4 var(--serif);color:#7b4376;letter-spacing:.015em;text-wrap:balance;overflow-wrap:anywhere;max-width:100%;margin:-2px 0 0}
/* Los botones laterales permanecen circulares, sutiles y por encima del centro. */
.story-nav{top:40%!important;opacity:.5!important;border-radius:50%!important;background:rgba(255,255,255,.5)!important;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);box-shadow:0 5px 12px #733c6720!important}
.story-nav:hover,.story-nav:focus-visible{opacity:.8!important;background:rgba(255,255,255,.65)!important;transform:translateY(-50%) scale(1.05)!important}
.story-nav[disabled],.story-nav.is-disabled{opacity:0!important;pointer-events:none}
/* El contenedor ocupa TODA la pantalla física disponible en móvil. */
@media(max-width:768px){
 html,body{margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:hidden!important}
 body:not(.mobile-windowed) .experience{position:fixed!important;inset:0!important;padding:0!important;margin:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;min-height:0!important;max-height:none!important;overflow:hidden!important;display:block!important}
 body:not(.mobile-windowed) .stage{position:absolute!important;inset:0!important;margin:0!important;padding:0!important;width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;max-height:none!important;filter:none!important;border-radius:0!important}
 body:not(.mobile-windowed) .scene,body:not(.mobile-windowed) .scene-cover,body:not(.mobile-windowed) .scene-story{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border-radius:0!important}
 body:not(.mobile-windowed) .paper:before,body:not(.mobile-windowed) .paper-border,body:not(.mobile-windowed) .scene:before,body:not(.mobile-windowed) .scene:after{border-radius:0!important}
 body:not(.mobile-windowed) .story-nav{width:46px!important;height:46px!important;top:40%!important}
 .fullscreen-toggle{top:max(7px,env(safe-area-inset-top))!important;right:max(7px,env(safe-area-inset-right))!important}
}
@media(max-width:359px){.greeting-page .welcome-title{font-size:clamp(39px,7svh,54px)}.greeting-page .welcome-name{font-size:clamp(15px,2.35svh,19px)}}


/* V12 — Desbloqueo deliberado, tipografía cómoda y ajuste móvil real. */
.unlock-form{gap:8px!important;top:70%!important}
.enter-button{width:min(100%,242px);margin:4px auto 0;min-height:47px;font:700 14px/1 var(--sans);background:linear-gradient(165deg,#ad63ac,#79397c 63%,#632969);border:1px solid #793e80;border-radius:999px;color:#fff;box-shadow:0 8px 18px #67336e40;cursor:pointer}
.enter-button:disabled{opacity:.52;cursor:default;filter:grayscale(.2);box-shadow:none}
.enter-button:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 10px 20px #67336e50}
.enter-button:focus-visible{outline:2px solid #b263a9;outline-offset:3px}
.greeting-page .welcome-title{font:normal clamp(48px,7.6svh,72px)/1.1 var(--script)!important;color:#632367!important;white-space:nowrap;letter-spacing:0}
.greeting-page .welcome-name{font:700 clamp(21px,3.2svh,29px)/1.3 var(--serif)!important;letter-spacing:.015em;color:#8a427a;max-width:100%;text-wrap:balance;overflow-wrap:anywhere}
.greeting-page .body-copy{font-size:clamp(14.5px,2.3svh,18px)!important;line-height:1.65!important;max-width:320px}
.full-schedule-page .moment-time{font-size:clamp(11px,1.6svh,13px)!important;line-height:1.4!important}
.full-schedule-page .moment-detail strong{font-size:clamp(12.5px,1.9svh,15px)!important;line-height:1.3!important}
.full-schedule-page .moment-place{font-size:clamp(11.5px,1.7svh,13px)!important;line-height:1.36!important}
.full-schedule-page .moment-address{font-size:clamp(11px,1.65svh,12.5px)!important;line-height:1.4!important}
.full-schedule-page .moment-note,.full-schedule-page .map-link{font-size:clamp(10.5px,1.55svh,12px)!important;line-height:1.35!important}
.full-schedule-page .moment-card{padding:clamp(8px,1.25svh,11px) 9px!important}
.full-schedule-page .schedule-table{width:100%}
@media(max-width:768px){
 html,body{min-width:0!important;overscroll-behavior:none}
 body.invitation-opened:not(.mobile-windowed) .experience{position:fixed!important;inset:0!important;width:100vw!important;width:100dvw!important;height:100dvh!important;min-height:0!important;max-height:none!important;padding:0!important;margin:0!important;display:block!important}
 body.invitation-opened:not(.mobile-windowed) .stage{position:absolute!important;inset:0!important;width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;filter:none!important}
 body.invitation-opened:not(.mobile-windowed) .scene{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border-radius:0!important}
 body.invitation-opened:not(.mobile-windowed) .paper{position:absolute!important;inset:0!important}
 body.invitation-opened:not(.mobile-windowed) .content-area{inset:7.5% 9% 13.5%!important}
 body.invitation-opened:not(.mobile-windowed) .story-footer{bottom:3.1%!important;left:10%!important;width:80%!important}
 body.invitation-opened:not(.mobile-windowed) .story-nav{top:37%!important}
 body.invitation-opened:not(.mobile-windowed) .scene-story[data-page="3"] .content-area{inset:5.8% 8% 12.5%!important}
 body.invitation-opened:not(.mobile-windowed) .scene-story[data-page="3"] .full-schedule-page{gap:7px!important}
 .fullscreen-toggle{top:max(8px,env(safe-area-inset-top))!important;right:max(8px,env(safe-area-inset-right))!important}
}
@media(max-width:365px){
 .greeting-page .welcome-title{font-size:clamp(43px,7svh,57px)!important}
 .greeting-page .welcome-name{font-size:clamp(18px,2.8svh,22px)!important}
 .greeting-page .body-copy{font-size:clamp(14px,2.3svh,16px)!important}
 .full-schedule-page .moment-card{grid-template-columns:64px minmax(0,1fr)!important}
 .full-schedule-page .moment-time{font-size:11px!important}
 .enter-button{min-height:44px}
}
@media(max-height:620px){.unlock-form{top:67%!important}.cover-header{top:4%!important}.envelope-place{top:27%!important;height:35%!important}}

/* V13: encabezado más equilibrado, controles de música y letra legible */
.invitation-page .invitation-event{
 font-size:clamp(35px, 5.25svh, 47px)!important;
 line-height:1.05!important;
 max-width:min(100%,320px)!important;
 letter-spacing:.005em;
 text-wrap:balance;
}
.invitation-page .invitation-name strong{font-size:clamp(48px,7.1svh,59px)!important}
.audio-toggle{
 position:absolute;z-index:9;
 display:grid;place-items:center;
 top:10px;right:53px;
 width:34px;height:34px;
 color:#713773;
 border:1px solid rgba(123,61,126,.22);
 border-radius:50%;
 background:rgba(255,255,255,.55);
 backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
 box-shadow:0 8px 16px #734a6d22;
 cursor:pointer;
}
.audio-toggle svg{width:18px;height:18px}
.audio-toggle .sound-muted{display:none}
.audio-toggle[aria-pressed="true"] .sound-waves{display:none}
.audio-toggle[aria-pressed="true"] .sound-muted{display:block}
.audio-toggle:focus-visible{outline:2px solid #ac78ba;outline-offset:2px}
@media(max-width:768px){
 .audio-toggle{top:max(8px, env(safe-area-inset-top))!important;right:calc(max(8px, env(safe-area-inset-right)) + 43px)!important}
}
@media(max-width:390px){
 .invitation-page .invitation-event{font-size:clamp(32px,5.15svh,40px)!important}
 .invitation-page .invitation-name strong{font-size:clamp(44px,6.8svh,53px)!important}
}
@media(max-height:650px){
 .invitation-page .invitation-event{font-size:clamp(30px,5.1svh,37px)!important}
}


/* V14: controles de acceso reales, sin campos invisibles superpuestos. */
#unlockForm .code-wrap{position:relative!important;display:block!important;width:min(100%,282px)!important;max-width:none!important;height:50px!important;margin:0 auto!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;outline:0!important}
#unlockForm .code-digits{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:stretch;gap:6px;width:100%;height:100%;pointer-events:auto!important}
#unlockForm .code-digit,#unlockForm .code-clear{box-sizing:border-box;display:block!important;position:relative!important;inset:auto!important;min-width:0!important;width:100%!important;height:100%!important;opacity:1!important;padding:0!important;margin:0!important;border:1.5px solid #bc83c1!important;border-radius:12px!important;background:linear-gradient(145deg,#fffefc,#fff2f9)!important;color:#66296e!important;box-shadow:0 4px 10px #9a64952b!important;text-align:center!important;font:700 23px/1 var(--serif)!important;letter-spacing:0!important;caret-color:#7b347e!important;appearance:none;-webkit-appearance:none;pointer-events:auto;touch-action:manipulation}
#unlockForm .code-digit:focus{outline:2px solid #8f4e96!important;outline-offset:1px!important;border-color:#833b8e!important;box-shadow:0 0 0 3px #d8bcdf80!important}
#unlockForm .code-clear{cursor:pointer!important;font:400 29px/1 var(--sans)!important;color:#985c96!important;background:linear-gradient(150deg,#fff8fb,#f2dfef)!important}
#unlockForm .code-clear:hover,#unlockForm .code-clear:focus-visible{border-color:#8f4e96!important;outline:2px solid #c9a2d0!important}
#unlockForm #accessCode{display:none!important}
/* Mantener el sobre ilustrado cerrado desde la primera pintura. */
.envelope .envelope-back,.envelope .envelope-front,.envelope .envelope-flap,.envelope .envelope-seal,.envelope .envelope-bow{display:none!important}
.envelope .envelope-photo{opacity:1;z-index:10;transform:translate(-50%,-50%);transition:opacity .7s ease,transform 1.2s cubic-bezier(.15,.7,.3,1)}
.scene-cover.unlocking .envelope-photo{opacity:0!important;transform:translate(-50%,-65%) rotateX(12deg) scale(1.06);transition-delay:.35s}
.envelope .envelope-letter{z-index:8}
/* Bordes de los controles laterales sin alterar la transparencia (50%). */
.story-nav,.story-nav:hover,.story-nav:focus-visible{background:rgba(105,43,117,.5)!important;color:#fff!important;border-color:rgba(109,49,118,.7)!important;box-shadow:0 8px 20px #55275b3b,inset 0 1px 0 #ffffff4d!important;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.story-nav{top:39%!important;opacity:1!important}
.story-nav[disabled],.story-nav.is-disabled{opacity:0!important}
/* Despedida, sin formulario ni posibilidad de cambiar respuestas. */
.endpage-confirmed{gap:clamp(12px,2svh,22px)!important}
.endpage-confirmed .jesus-art{width:min(92%,284px);height:auto;max-height:clamp(150px,32svh,265px);margin:0 auto;object-fit:contain;mask-image:linear-gradient(to bottom,#000 0%,#000 70%,transparent 99%);-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 70%,transparent 99%)}
.endpage-confirmed .thank-you{font:normal clamp(42px,7svh,64px)/1.1 var(--script);color:#682b76;max-width:100%}
.endpage-confirmed .body-copy{font-size:clamp(12px,1.8svh,16px);line-height:1.6}
.view-schedule{width:min(100%,260px);min-height:48px;padding:11px 16px;border:1px solid #793e80;border-radius:999px;background:linear-gradient(165deg,#ad63ac,#79397c 63%,#632969);box-shadow:0 8px 17px #67336e45,inset 0 1px 0 #ffeaff8c;color:#fff;font:700 13px/1.2 var(--sans)}
.view-schedule:focus-visible{outline:2px solid #b263a9;outline-offset:3px}
@media(max-width:430px){#unlockForm .code-wrap{width:min(100%,270px)!important}.story-nav{top:38%!important}}
@media(max-width:360px){#unlockForm .code-wrap{width:min(100%,255px)!important}.endpage-confirmed .jesus-art{max-height:25svh}}


/* V15: horas completas en una línea y validación accesible del RSVP. */
.full-schedule-page .schedule-table .moment-card{
  grid-template-columns:clamp(86px,29%,101px) minmax(0,1fr)!important;
  gap:clamp(6px,1.6vw,10px)!important;
}
.full-schedule-page .schedule-table .moment-time{
  width:100%!important;min-width:0!important;white-space:nowrap!important;
  overflow:visible!important;word-break:normal!important;
  font-size:clamp(10.5px,1.35svh,12px)!important;
  font-variant-numeric:tabular-nums;letter-spacing:-.035em;
  padding:2px 5px 2px 0!important;
}
@media(max-width:360px){
  .full-schedule-page .schedule-table .moment-card{grid-template-columns:86px minmax(0,1fr)!important;gap:6px!important}
  .full-schedule-page .schedule-table .moment-time{font-size:10.5px!important;letter-spacing:-.05em}
}
.rsvp-field{position:relative;transition:background-color .2s ease}
.rsvp-field.field-invalid .general-name-input{
  border:2px solid #d34877!important;background:#fff0f4!important;
  box-shadow:0 0 0 4px rgba(213,62,119,.18),0 7px 15px #ad4e7638!important;
  outline:0!important;animation:leahFieldAlert .35s ease both;
}
.rsvp-field.field-invalid .general-name-label{color:#ac2858!important;font-weight:800}
.rsvp-field .field-warning{
  display:block;text-align:left;margin:5px 2px 0;color:#b02f62;
  font:700 clamp(10px,1.4svh,12px)/1.35 var(--sans);
  animation:leahWarningIn .2s ease-out both;
}
@keyframes leahFieldAlert{
  0%,100%{transform:translateX(0)}
  20%,60%{transform:translateX(-4px)}
  40%,80%{transform:translateX(4px)}
}
@keyframes leahWarningIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){
 .rsvp-field.field-invalid .general-name-input,.rsvp-field .field-warning{animation:none!important}
}


/* V18 · Apertura por capas: la tapa se pliega y la carta sale del mismo sobre. */
.envelope.envelope-v18{
  position:relative;isolation:isolate;overflow:visible;
  transform:translate3d(0,0,0)!important;
  filter:none!important;contain:layout style;
  transition:none!important;
}
.envelope-v18 .envelope-photo{
  position:absolute;z-index:10;top:52%;left:50%;width:120%;height:150%;
  object-fit:contain;opacity:1!important;display:block;
  transform:translate3d(-50%,-50%,0)!important;
  filter:none!important;transition:opacity .16s ease!important;
  pointer-events:none;
}
.envelope-v18 .envelope-opening{
  position:absolute;top:52%;left:50%;height:150%;width:auto;aspect-ratio:1;
  opacity:0;transform:translate3d(-50%,-50%,0);pointer-events:none;
  transition:opacity .14s linear;isolation:isolate;
}
.envelope-v18 .envelope-open-back,.envelope-v18 .envelope-open-front,.envelope-v18 .envelope-open-flap{
  display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;
  max-width:none;border:0;box-shadow:none;filter:none!important;
}
.envelope-v18 .envelope-open-back{z-index:1}
.envelope-v18 .envelope-open-front{z-index:3}
.envelope-v18 .envelope-open-flap{
  z-index:4;transform:translate3d(0,0,0) scaleY(1);
  transform-origin:50% 12.5%;backface-visibility:visible;
  transition:transform .61s cubic-bezier(.22,.75,.16,1) .13s;
}
.envelope-v18 .envelope-letter{
  position:absolute;z-index:2;top:25%;left:23%;width:54%;height:42%;
  border:1px solid #dec29f;border-radius:3px;
  background:linear-gradient(180deg,#fffdfa,#fff2e9);
  box-shadow:none;opacity:1;
  display:flex;align-items:center;justify-content:center;flex-direction:column;
  transform:translate3d(0,0,0);
  transition:transform .58s cubic-bezier(.22,.77,.18,1) .39s!important;
}
.envelope-v18 .envelope-letter .letter-cross{font-size:18px;color:#b99664}
.envelope-v18 .envelope-letter .letter-name{font-size:clamp(32px,4.3svh,45px)}
.envelope-v18 .envelope-letter small{font-size:10px}
.scene-cover.unlocking .envelope-v18 .envelope-photo{opacity:0!important;transform:translate3d(-50%,-50%,0)!important;transition:opacity .16s ease!important}
.scene-cover.unlocking .envelope-v18 .envelope-opening{opacity:1;transition:opacity .14s ease .08s}
.scene-cover.unlocking .envelope-v18 .envelope-open-flap{transform:translate3d(0,0,0) scaleY(-.72)!important}
.scene-cover.unlocking .envelope-v18 .envelope-letter{transform:translate3d(0,-31%,0)!important}
.scene-cover.unlocking .envelope-v18{transform:translate3d(0,0,0)!important;filter:none!important}
.scene-cover.unlocking .unlock-form{opacity:0;transform:translate3d(0,15px,0);pointer-events:none;transition:opacity .17s linear,transform .21s ease}
.scene-cover.unlocking .cover-header{opacity:1!important}
.scene-cover.unlocking .envelope-glow{animation-play-state:paused!important;filter:none!important;opacity:.35}
/* No animar luces ni pétalos durante la apertura: mejor rendimiento en teléfonos modestos. */
.scene-cover.unlocking .petal,.scene-cover.unlocking .star,.scene-cover.unlocking .cloud{animation-play-state:paused!important}
/* Los bordes de la angelita se desvanecen entre nubes; la imagen no se altera. */
.invitation-page .angel-art{
  border-radius:0!important;mask-image:radial-gradient(ellipse 62% 62% at 50% 49%,#000 51%,rgba(0,0,0,.95) 64%,rgba(0,0,0,.57) 79%,transparent 100%)!important;
  -webkit-mask-image:radial-gradient(ellipse 62% 62% at 50% 49%,#000 51%,rgba(0,0,0,.95) 64%,rgba(0,0,0,.57) 79%,transparent 100%)!important;
}
@media(prefers-reduced-motion:reduce){
 .scene-cover.unlocking .envelope-v18 .envelope-open-flap{transition:none!important;transform:scaleY(-.72)!important}
 .scene-cover.unlocking .envelope-v18 .envelope-letter{transition:none!important;transform:translate3d(0,-31%,0)!important}
}
