:root{--purple:#9638a7;--gold:#b77b22;--ink:#292629;--paper:#f6f5f3;--soft:#ecebea}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:Georgia,'Times New Roman',serif;background:var(--paper)}a{color:inherit}img{max-width:100%;display:block}.nav{position:sticky;top:0;z-index:50;background:rgba(246,245,243,.95);backdrop-filter:blur(8px);border-bottom:1px solid #ddd}.nav-inner{max-width:1100px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:12px 20px}.brand{font-family:cursive;color:var(--purple);font-size:24px;text-decoration:none}.links{display:flex;gap:18px;flex-wrap:wrap}.links a{text-decoration:none;font-size:15px}.hero{min-height:86vh;position:relative;display:grid;place-items:center;overflow:hidden;background:#efefef}.hero:before,.hero:after{content:"";position:absolute;width:min(45vw,520px);height:280px;background-size:contain;background-repeat:no-repeat;opacity:.95}.hero:before{right:-20px;top:0;background-image:url('assets/original/flor-top-v3.png');background-position:top right}.hero:after{left:-20px;bottom:0;background-image:url('assets/original/flor-bottom-v3.png');background-position:bottom left}.hero-card{text-align:center;z-index:2;padding:50px 20px}.hero-card img{width:min(560px,85vw);margin:0 auto 28px}.date{font-weight:700;letter-spacing:.04em}.title{font-size:clamp(42px,7vw,72px);color:var(--purple);font-weight:400;margin:20px 0}.lead{font-size:clamp(18px,2.3vw,25px);line-height:1.45;max-width:760px;margin:auto}.section{padding:76px 20px}.section-inner{max-width:1050px;margin:auto;text-align:center}.section h2{font-size:clamp(38px,6vw,62px);color:var(--purple);font-weight:400;margin:0 0 28px}.divider{width:76px;height:2px;background:var(--gold);margin:18px auto 34px}.counter-wrap{background:#aaa;color:white}.counter-wrap h2{color:white}.counter{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;max-width:760px;margin:auto}.counter strong{font-size:52px;font-weight:400;display:block}.counter span{font-size:15px}.event-card{max-width:760px;margin:auto}.event-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:30px 0}.button{display:inline-block;border:1px solid var(--gold);padding:11px 30px;text-decoration:none;color:var(--purple);background:transparent;cursor:pointer;font:inherit}.moments{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.moments img{width:100%;aspect-ratio:1/1;object-fit:cover}.gift{max-width:640px;margin:auto}.timeline{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.timeline img{height:58px;margin:10px auto}.stay img{width:min(860px,100%);margin:auto;max-height:620px;object-fit:cover}.cta{background:#eee}.footer{text-align:center;padding:30px;font-size:14px}.audio{position:fixed;left:18px;bottom:18px;z-index:80;border:0;border-radius:50%;width:52px;height:52px;background:var(--purple);color:#fff;font-size:20px;cursor:pointer}.modal{position:fixed;inset:0;background:rgba(0,0,0,.88);z-index:100;display:none;overflow:auto;padding:30px}.modal.open{display:block}.modal-box{max-width:1050px;margin:auto;background:#111;color:#fff;padding:20px;position:relative}.close{position:sticky;top:0;float:right;border:0;background:#fff;color:#111;width:42px;height:42px;border-radius:50%;font-size:26px;cursor:pointer;z-index:2}.finca-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;clear:both;padding-top:20px}.finca-grid img{width:100%;aspect-ratio:4/3;object-fit:cover}.modal video,.video-block video{width:100%;margin-top:22px;background:#000}.chapter{padding:68px 20px}.chapter:nth-of-type(even){background:#efeeec}.chapter-inner{max-width:1100px;margin:auto}.chapter h2{text-align:center;color:var(--purple);font-size:clamp(36px,5vw,58px);font-weight:400}.ornament{width:min(480px,70vw);margin:18px auto 35px}.carousel{position:relative;max-width:920px;margin:auto}.slide{display:none}.slide.active{display:block}.slide img{width:100%;height:min(68vh,720px);object-fit:contain;background:#111}.car-btn{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border:0;border-radius:50%;background:rgba(255,255,255,.85);font-size:28px;cursor:pointer}.prev{left:12px}.next{right:12px}.dots{text-align:center;margin-top:12px;color:#777}.gold-script{font-family:'Brush Script MT','Segoe Script',cursive;color:var(--gold)!important;font-size:clamp(52px,9vw,92px)!important;text-shadow:1px 2px 3px #aaa}.video-note{font-style:italic;color:#777;text-align:center}.back{text-decoration:none;color:var(--purple)}@media(max-width:760px){.links{display:none}.hero{min-height:72vh}.counter{grid-template-columns:repeat(2,1fr)}.event-grid,.timeline{grid-template-columns:1fr}.moments,.finca-grid{grid-template-columns:repeat(2,1fr)}.section{padding:55px 16px}.modal{padding:10px}.slide img{height:58vh}}

/* Actualización visual: ritmo y continuidad de la invitación original */
:root{--purple:#87499a;--gold:#ba8b42;--paper:#f9f7f5}
body{background:var(--paper)}
.hero{background:linear-gradient(145deg,#f8f7f7,#eeeaf0);min-height:90vh}
.hero-card img{width:min(610px,88vw);max-height:65vh;object-fit:contain;border:5px solid rgba(186,139,66,.55);box-shadow:0 18px 55px rgba(45,30,42,.16)}
.title,.section h2,.chapter h2{font-family:Georgia,'Times New Roman',serif;letter-spacing:.025em}
.section,.chapter{position:relative}
.section:nth-of-type(odd){background:#f2eef3}
.chapter:nth-of-type(even){background:#f2eef3}
.chapter-inner{text-align:center}
.ornament{max-height:100px;object-fit:contain;opacity:.9}
.chapter{padding:95px 20px 110px}
.chapter h2{margin:0 0 15px}
.carousel{max-width:980px;border:1px solid rgba(186,139,66,.35);padding:12px;background:#fbf9f8;box-shadow:0 18px 55px rgba(40,20,45,.09)}
.slide.active{animation:photoAppear .65s ease both}
.slide img{background:#f1eef0;max-height:72vh;height:auto;min-height:340px;object-fit:contain;margin:auto}
.button,.car-btn{transition:transform .2s ease,background .2s ease}
.button:hover,.car-btn:hover{transform:translateY(-2px);background:#f3eaf4}
.car-btn:hover{transform:translateY(-50%) scale(1.04)}
.final-video{max-width:1000px;margin:30px auto}
.final-video video{border:1px solid rgba(186,139,66,.5);box-shadow:0 16px 45px #0002}
.reveal-ready{opacity:0;transform:translateY(22px);transition:opacity .85s ease,transform .85s ease}
.reveal-ready.revealed{opacity:1;transform:none}
@keyframes photoAppear{from{opacity:.4;transform:scale(.985)}to{opacity:1;transform:scale(1)}}
@media(max-width:760px){.chapter{padding:65px 14px 75px}.slide img{min-height:220px;max-height:65vh}.hero-card img{max-height:55vh}.ornament{max-height:65px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.reveal-ready{opacity:1;transform:none}}

/* Restauración de la composición original */
:root{--purple:#8c4599;--gold:#c5a06a}
.section{border-top:1px solid #d9d7d9}
.divider{width:88px;height:12px;background:url('assets/gold-divider.png') center/100% 100% no-repeat}
.counter-wrap{background:#9b9b9b;color:#fff}.counter-wrap h2{color:#fff}.counter strong{color:#fff}.counter span{color:#fff}
.flower{display:block;object-fit:contain;margin:28px auto 0}.flower-hero{width:min(520px,85vw);max-height:220px}.flower-center{width:min(560px,85vw);max-height:240px}.flower-small{width:min(430px,75vw);max-height:210px}
.hero:before,.hero:after{display:none}.hero-card{max-width:900px}.hero-card img:first-child{border:0;box-shadow:none;max-height:none}
.story .lead{max-width:770px}.story h3{font-size:clamp(25px,3vw,34px);color:var(--purple);margin:36px 0 8px}.story .divider{margin:8px auto 18px}
.moments{display:block;columns:3;column-gap:13px}.moments img{width:100%;height:auto;aspect-ratio:auto;break-inside:avoid;margin:0 0 13px;object-fit:cover}
.vibes{margin:55px auto 0}.vibes>.flower{width:min(640px,90%);max-height:280px;margin-bottom:0}.vibes-banner{padding:55px 20px;background:#999;color:white}.vibes-names{font-family:'Brush Script MT','Segoe Script',cursive;font-size:clamp(40px,7vw,86px);font-style:italic;text-shadow:0 3px 5px #555}.vibes-text{font-size:clamp(25px,4vw,54px);letter-spacing:.09em;margin-top:28px;text-shadow:0 3px 5px #555}
.gift-icons{display:flex;justify-content:center;align-items:center;gap:28px;flex-wrap:wrap;margin:35px auto}.gift-icons img{max-width:155px;max-height:155px;object-fit:contain}
.timeline{display:block;max-width:940px;margin:35px auto 10px;position:relative}.timeline:before{content:'';position:absolute;top:0;bottom:0;left:50%;width:2px;background:var(--gold);transform:translateX(-50%)}.timeline-item{position:relative;width:50%;padding:0 50px 30px 0;min-height:145px;text-align:center}.timeline-item:nth-child(even){margin-left:50%;padding:0 0 30px 50px}.timeline-card{padding:20px;background:#f9f7f7;box-shadow:0 2px 9px #0002;display:flex;flex-direction:column;align-items:center;gap:10px}.timeline-card img{height:52px;width:65px;object-fit:contain;margin:0}.timeline-card span{font-size:19px}.time-label{position:absolute;right:-34px;top:10px;z-index:2;background:var(--purple);color:white;padding:12px 8px;border-radius:18px;font-size:14px;min-width:75px}.timeline-item:nth-child(even) .time-label{right:auto;left:-34px;background:#d0ad65}
.menu-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;width:48px;height:44px;border:0;background:transparent;cursor:pointer}.menu-toggle span{height:2px;width:27px;background:#777;display:block;margin:0 auto}
.reveal-ready{transform:translateY(44px);transition:opacity 1.15s ease,transform 1.15s cubic-bezier(.2,.75,.2,1)}
@media(max-width:760px){.nav-inner{position:relative;justify-content:center;min-height:65px}.brand{position:absolute;left:14px;font-size:18px;max-width:100px}.menu-toggle{display:flex}.links{display:none;position:absolute;top:100%;left:0;right:0;background:#f9f7f5;box-shadow:0 8px 16px #0002;padding:16px;flex-direction:column;align-items:center;gap:16px}.links.open{display:flex}.moments{columns:2}.timeline-item,.timeline-item:nth-child(even){width:100%;margin-left:0;padding:0 0 20px 55px}.timeline:before{left:19px}.time-label,.timeline-item:nth-child(even) .time-label{left:-10px;right:auto;top:5px;font-size:11px;min-width:62px;padding:8px 3px}.timeline-card{margin-left:15px}.vibes-banner{padding:35px 10px}.gift-icons img{max-width:115px}}
@media(prefers-reduced-motion:reduce){.reveal-ready{opacity:1;transform:none}}

/* V3: transiciones y restauración de la invitación */
.hero-card>img:first-child{animation:heroSlowReveal 2.8s ease-out both}
@keyframes heroSlowReveal{from{opacity:0;transform:translateY(25px) scale(.95);filter:blur(7px)}to{opacity:1;transform:none;filter:blur(0)}}
.counter-wrap{background:#999;color:#f7e7c7}.counter-wrap h2,.counter strong,.counter span{color:#f5dbac;text-shadow:0 1px 2px #0003}
.counter strong{font-size:clamp(45px,6vw,76px)}.counter span{font-size:clamp(17px,2vw,23px)}
.story{background:#efefef!important}.story-dedications{display:block;max-width:820px;margin:30px auto}.story-dedications .dedication{margin:34px auto}.story-dedications .lead{max-width:760px}.story>.section-inner>.lead{max-width:800px}
.vibes-names{font-family:'URW Chancery L','Apple Chancery','Snell Roundhand','Brush Script MT','Segoe Script',cursive;font-style:italic;font-weight:400;letter-spacing:.015em;transform:rotate(-3deg)}
.divider{height:15px;width:95px;background-image:url('assets/gold-divider.png');background-position:center;background-size:100% 100%;background-repeat:no-repeat}
.timeline{--timeline-progress:0%;--timeline-line:#d0b16d}.timeline:before{background:#ded6c5}.timeline:after{content:'';position:absolute;left:50%;top:0;height:var(--timeline-progress);width:3px;background:linear-gradient(#b88740,#e7c778);transform:translateX(-50%);transition:height .18s linear}.timeline-item{z-index:1}.timeline-item.timeline-visible .timeline-card{opacity:1;transform:translateY(0)}.timeline-card{opacity:0;transform:translateY(38px);transition:opacity .8s ease,transform .8s ease}.time-label{box-shadow:0 2px 8px #0002}
.section-inner.reveal-ready{transition-duration:1.05s}.section-inner.reveal-ready.revealed .flower{animation:ornamentAppear 1.1s ease both}@keyframes ornamentAppear{from{opacity:0;transform:translateY(25px) scale(.93)}to{opacity:1;transform:none}}
@media(max-width:760px){.timeline:after{left:19px}.story-dedications{margin:22px auto}.story-dedications .dedication{margin:32px auto}}
@media(prefers-reduced-motion:reduce){.hero-card>img:first-child,.section-inner.reveal-ready.revealed .flower{animation:none!important}.timeline-card{opacity:1;transform:none}}

/* V4: refined wedding composition */
.date{display:flex;align-items:center;justify-content:center;gap:12px;font-size:clamp(17px,2.4vw,24px);white-space:nowrap}
.date:before,.date:after{content:"";width:clamp(60px,10vw,150px);height:16px;display:block;background:url('assets/gold-divider.png') center/100% 100% no-repeat}
.counter-wrap h2,.counter strong,.counter span{color:#956119!important;text-shadow:0 1px 0 #f1dfbc55!important}
.counter-wrap{background:#d4c9b9!important}
.story>.section-inner{max-width:1200px}.story>.section-inner>.lead{max-width:1160px;width:100%;font-size:clamp(19px,2.3vw,29px)}
.story-dedications{display:grid!important;grid-template-columns:1fr 1fr;gap:50px;max-width:1150px!important;align-items:start;margin:34px auto!important}
.story-dedications .dedication{margin:0!important}.story-dedications .lead{font-size:clamp(18px,2vw,25px)}
.event-card>h3{font-size:clamp(29px,4vw,43px);margin:22px 0 12px}.finca-button-wrap{margin:28px auto 18px}
.dress-code{grid-column:1/-1}.dress-code img{display:block;width:125px;max-height:115px;object-fit:contain;margin:14px auto 0}
.respect-title{display:inline-block;font-size:clamp(24px,3vw,34px);margin:15px auto 8px}
.vibes-banner{min-height:360px;display:flex;flex-direction:column;justify-content:center;align-items:center}
.vibes-names{font-family:'URW Chancery L','Snell Roundhand','Brush Script MT','Segoe Script',cursive;font-style:normal!important;transform:none!important;font-size:clamp(52px,8vw,105px);font-weight:400;letter-spacing:-.035em}
.timeline-item{transition:opacity .7s ease,transform .7s ease}.timeline-item:not(.timeline-visible){opacity:0;transform:translateY(28px)}.timeline-item.timeline-visible{opacity:1;transform:none}
@media(max-width:760px){.story-dedications{grid-template-columns:1fr;gap:30px}.story>.section-inner>.lead{font-size:19px}.date{gap:6px;font-size:15px}.date:before,.date:after{width:50px}.vibes-banner{min-height:270px}.timeline-item:not(.timeline-visible){transform:translateY(18px)}}
@media(prefers-reduced-motion:reduce){.timeline-item:not(.timeline-visible){opacity:1;transform:none}}

/* V5: horarios centrados y equilibrados */
.event-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:520px;margin:30px auto;column-gap:26px;row-gap:20px;align-items:start}
.event-time{text-align:center;justify-self:stretch}
.event-grid .dress-code{grid-column:1/-1;text-align:center}
@media(max-width:760px){.event-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:100%}.event-time{font-size:clamp(12px,3.3vw,17px)}}
/* V5: cartel como imagen única sobre el mismo gris */
.vibes-banner.vibes-image{background:#9e9e9e;min-height:0;padding:0;display:block;width:100%;line-height:0}
.vibes-banner.vibes-image img{display:block;width:100%;height:auto;margin:0;max-width:none}
/* V5: fotografías independientes, una por una */
.moments-stagger img{opacity:1;transform:none}
.moments-stagger.moments-animated img{opacity:0;transform:translateY(46px) scale(.97);transition:opacity .85s ease,transform .95s cubic-bezier(.2,.7,.2,1);will-change:opacity,transform}
.moments-stagger.moments-animated img.moment-visible{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.moments-stagger.moments-animated img{opacity:1;transform:none;transition:none}}

/* V6: full bleed good vibes, ordered gift elements and frameless flowers */
.vibes-full-section{width:100%;background:#9e9e9e;display:flex;align-items:center;justify-content:center;padding:45px 16px;border:0}
.vibes-full-section img{display:block;width:min(100%,900px);height:auto;object-fit:contain;border:0;box-shadow:none;background:transparent}
#regalos .gift{display:flex;flex-direction:column;align-items:center;gap:20px}
#regalos .gift h2{margin:0}
#regalos .gift-divider{width:110px;height:12px;object-fit:contain;margin:0 auto}
#regalos .gift-small{width:70px;max-height:90px;object-fit:contain}
#regalos .gift-large{width:min(480px,88vw);max-height:220px;object-fit:contain}
#regalos .flower-center{width:min(560px,88vw);max-height:none;margin:8px auto 0}
.flower-hero,.flower-center{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}
@media(max-width:760px){.vibes-full-section{padding:28px 0}#regalos .gift{gap:16px}}

/* Mesa de regalos — V7 */
#regalos .gift-small{width:110px;max-height:135px}
#regalos .gift-message{max-width:780px;margin:16px auto 24px;line-height:1.65;font-size:clamp(17px,2vw,22px);text-align:center}
#regalos .gift-large{width:min(560px,92vw);max-height:300px}

/* V14: invitación de bienvenida */
.invitation-gate{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;background:radial-gradient(circle at center,#fffaf4 0%,#eee6ef 100%);transition:opacity .85s ease,visibility .85s ease;overflow:auto}.invitation-gate.is-hidden{opacity:0;visibility:hidden;pointer-events:none}.invitation-open{border:0;background:transparent;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:24px;padding:25px;max-width:100%;color:#846184}.invitation-heading{font-family:Georgia,serif;font-size:clamp(27px,5vw,45px);font-style:italic;color:#a07849}.invitation-prompt{font:500 clamp(16px,3vw,21px) Georgia,serif;letter-spacing:.04em;color:#78517b}.envelope{width:min(76vw,420px);height:min(49vw,265px);position:relative;display:block;filter:drop-shadow(0 12px 20px #755b6b38);perspective:800px}.envelope-back{position:absolute;inset:0;background:#e7d4c8;border:2px solid #c5a374;border-radius:5px}.envelope-letter{position:absolute;top:18%;left:12%;width:76%;height:65%;display:grid;place-items:center;background:#fff9f2;color:#a07849;font:italic 18px Georgia,serif;box-shadow:0 2px 8px #0002;transition:transform 1s .35s ease}.envelope-front{position:absolute;inset:0;background:linear-gradient(145deg,#f7e8df,#e6cfc5);clip-path:polygon(0 0,50% 52%,100% 0,100% 100%,0 100%);border-radius:4px}.envelope-flap{position:absolute;inset:0;background:#ead6d0;clip-path:polygon(0 0,100% 0,50% 56%);transform-origin:50% 0;transition:transform .7s ease;z-index:2;filter:drop-shadow(0 2px 2px #0002)}.envelope-seal{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);z-index:3;width:62px;height:62px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#c6a86c,#96713f);border:2px solid #e9d3a2;color:white;font:italic 16px Georgia,serif;transition:opacity .25s}.invitation-gate.is-opening .envelope-flap{transform:rotateX(175deg);z-index:0}.invitation-gate.is-opening .envelope-letter{transform:translateY(-48%)}.invitation-gate.is-opening .envelope-seal{opacity:0}.invitation-gate.is-opening .invitation-prompt{opacity:0}body.invitation-locked{overflow:hidden}@media(prefers-reduced-motion:reduce){.invitation-gate,.envelope-letter,.envelope-flap{transition-duration:.01ms!important}}

/* V15: fotografía bajo el sobre, aparición lenta */
.invitation-preview{display:block;width:min(72vw,360px);max-height:29vh;object-fit:contain;opacity:0;transform:translateY(14px);animation:invitationPhotoReveal 2.8s .4s ease-out forwards;pointer-events:none;}
@keyframes invitationPhotoReveal{to{opacity:1;transform:translateY(0)}}
.invitation-gate.is-opening .invitation-preview{opacity:1;transition:opacity .6s ease;}
@media(max-height:650px){.invitation-open{gap:12px;padding:12px}.invitation-preview{max-height:22vh}.envelope{height:min(34vw,180px)}}
@media(prefers-reduced-motion:reduce){.invitation-preview{animation:none;opacity:1;transform:none}}

/* V16: sobre único y sombra que sugiere interacción. */
.invitation-open{gap:0;outline-offset:14px}
.envelope{filter:drop-shadow(0 16px 15px rgba(82,52,70,.23));animation:envelopeInvite 2.4s ease-in-out infinite;transition:filter .3s ease}
.invitation-open:hover .envelope,.invitation-open:focus-visible .envelope{filter:drop-shadow(0 22px 21px rgba(82,52,70,.40))}
@keyframes envelopeInvite{0%,100%{filter:drop-shadow(0 12px 12px rgba(82,52,70,.20));transform:translateY(0)}50%{filter:drop-shadow(0 23px 19px rgba(82,52,70,.38));transform:translateY(-5px)}}
.invitation-gate.is-opening .envelope{animation:none}
/* Foto principal: invisible hasta que termina de abrirse el sobre. */
body.invitation-locked .hero-card>img:first-child{animation:none!important;opacity:0!important}
body.invitation-reveal .hero-card>img:first-child{animation:heroAfterEnvelope 3.4s ease-out both!important}
@keyframes heroAfterEnvelope{0%{opacity:0;transform:translateY(18px) scale(.975);filter:blur(8px)}100%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
@media(prefers-reduced-motion:reduce){.envelope{animation:none}.invitation-open:hover .envelope{filter:drop-shadow(0 18px 18px rgba(82,52,70,.35))}body.invitation-reveal .hero-card>img:first-child{animation:none!important;opacity:1}}
