/* Letters are photographed into the paper itself and rotate with the flap.
   The clean original remains on the lining and back, avoiding duplicate text. */
.envelope-pocket,.envelope-side{background-image:url('assets/sobre/papel-marfil.svg')}
.flap-face{background-image:url('assets/sobre/papel-marfil.svg')}
.envelope-stage>.envelope-type{position:absolute;inset:0 auto auto 0;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;filter:none}
.envelope-instruction{bottom:9%}.envelope-instruction>p{font-size:24px;color:#d6cbd3}
.envelope-letter{padding:0;overflow:hidden;display:block;background:#380b1c;isolation:isolate}
.letter-preview-film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.72);z-index:0}
.envelope-letter>.letter-preview-cover{position:relative;width:100%;height:100%;max-width:none;margin:0;object-fit:contain;object-position:center;z-index:1}
.envelope-screen.opening .envelope-letter{transform:translateY(-34%)}
.envelope-screen.opening.departing .envelope-letter{transform:translateY(-28%) scale(1.12);transition-delay:0s}
.venue-datetime .venue-day>b{font:italic 400 35px/1.12 var(--serif);letter-spacing:0;color:#efe0e9}
/* Official transparent logo, rendered in translucent gray without replacing it. */
.site-footer{padding:36px 24px 116px;border-top:1px solid #d9c2d130}
.site-footer .footer-logo{display:block;width:min(100%,320px);margin:0 auto 25px;min-height:44px}
.footer-logo>img{width:100%;height:auto;max-width:none;filter:grayscale(1) brightness(1.75) contrast(.85);opacity:.65;transition:opacity .25s}
.footer-logo:hover>img,.footer-logo:focus-visible>img{opacity:.9}
.footer-contact-actions{display:flex;gap:9px;max-width:360px;margin:0 auto}
.footer-contact-actions>a{display:flex;flex:1;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 10px;border:1px solid #cdb7c84d;border-radius:4px;background:#ffffff06;color:#e3d5df;font:500 11px/1.5 var(--sans);letter-spacing:.01em;white-space:nowrap}
.footer-contact-actions svg{width:18px;height:18px}
.site-footer .footer-socials{display:flex;justify-content:center;gap:8px;max-width:360px;margin:15px auto 0}
.footer-socials>a{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:62px;padding:10px 5px;color:#c4b8c2;font:400 9px/1.5 var(--sans);letter-spacing:.03em}
.footer-socials svg{width:20px;height:20px;stroke-width:1.25}
.footer-contact-actions>a:hover,.footer-socials>a:hover{color:#fff0fc;border-color:#e1cddd}
.site-footer .replay-envelope{margin-top:22px;color:#b6a7b2}
/* Closing words remain below the editorial portrait, in two centered lines. */
.final-gold-signoff{position:relative;padding:52px 20px 58px;text-align:center;background:linear-gradient(150deg,#1c0b15e6,#10070ded);border-top:1px solid #d2ab5d24}
.final-gold-line,.final-gold-signature{color:#e6c576;text-shadow:0 2px 12px #0005;background:linear-gradient(110deg,#b98a37 0%,#e6c473 19%,#fff0b5 39%,#d6ad59 56%,#f2d68b 77%,#bd903f 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.final-gold-line{margin:0;font:italic 600 clamp(23px,6.4vw,42px)/1.25 var(--serif);letter-spacing:-.015em;white-space:nowrap}
.final-gold-signature{margin:14px 0 0;font:600 clamp(25px,5vw,31px)/1.2 var(--serif);letter-spacing:.07em}
/* Constant upward travel; fading and the inner sway run independently. */
.balloons .flying-balloon{position:absolute;bottom:-300px;left:var(--left);width:var(--size);height:auto;max-width:none;border-radius:0;background:none;box-shadow:none;rotate:0deg;transform-origin:center;animation:real-balloon-rise var(--duration) linear var(--delay) both,real-balloon-fade .45s linear var(--delay) both;will-change:transform,opacity;isolation:isolate}
.balloons .flying-balloon:before,.balloons .flying-balloon:after{display:none}
.balloon-sway{display:block;position:relative;width:100%;transform-origin:50% 35%;animation:helium-sway var(--sway-duration) ease-in-out var(--sway-delay) infinite alternate}
.balloon-sway>img{display:block;width:100%;height:auto;max-width:none;filter:drop-shadow(2px 7px 9px #0005);user-select:none}
.balloon-thread{position:absolute;top:98%;left:50%;width:44px;height:var(--thread-length);max-width:none;overflow:visible;transform:translateX(-50%);fill:none;stroke:#f1e9f1aa;stroke-width:.8;stroke-linecap:round}
@keyframes real-balloon-rise{from{transform:translate3d(0,50px,0)}to{transform:translate3d(var(--drift),calc(-100vh - 720px),0)}}
@keyframes real-balloon-fade{from{opacity:0}to{opacity:1}}
@keyframes helium-sway{from{transform:translateX(-4px) rotate(-5deg)}to{transform:translateX(4px) rotate(4deg)}}
@media(max-width:420px){.envelope-instruction>p{font-size:23px}.venue-datetime .venue-day>b{font-size:28px}.balloons .flying-balloon{width:calc(var(--size)*.73)}.footer-contact-actions>a{font-size:10px;padding-inline:8px}.site-footer .footer-logo{max-width:285px}}
@media(max-height:600px){.envelope-instruction>p{font-size:21px}}
@media(prefers-reduced-motion:reduce){.balloons .flying-balloon{display:none}.letter-preview-film{display:none}}
