
:root{
  --rose:#ff6f9e;
  --rose2:#e84d7e;
  --soft:#fff1f6;
  --cream:#fffaf8;
  --ink:#4b3039;
  --muted:#866b75;
  --white:#fff;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:"DM Sans",sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 0 0,rgba(255,174,202,.35),transparent 28%),
    radial-gradient(circle at 100% 28%,rgba(255,210,226,.35),transparent 25%),
    var(--cream);
  overflow-x:hidden;
}
button,a{font:inherit}
button{cursor:pointer}
.container{width:min(1140px,calc(100% - 34px));margin:auto}
.section{padding:100px 0}
.hero{
  min-height:100svh;
  display:grid;
  place-items:center;
  position:relative;
  background:url("../img/capa.png") center 35%/cover no-repeat;
  overflow:hidden;
}
.hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(22,11,16,.22),rgba(49,18,31,.55) 65%,rgba(34,14,22,.8));
}
.hero-content{
  width:min(800px,calc(100% - 30px));
  position:relative;z-index:2;
  text-align:center;color:white;
  margin-top:50px;
}
.eyebrow,.section-title>span{
  text-transform:uppercase;
  letter-spacing:.2em;
  font-size:.72rem;
  font-weight:800;
}
.hero h1{
  font-family:"Great Vibes",cursive;
  font-size:clamp(4.5rem,11vw,8.5rem);
  font-weight:400;line-height:.95;
  margin:18px 0;
}
.hero h1 span{color:#ffd5e3}
.hero p{
  width:min(620px,100%);
  margin:0 auto 28px;
  font-size:1.1rem;line-height:1.8;
}
.hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.btn{
  border:0;border-radius:999px;padding:15px 23px;
  text-decoration:none;font-weight:800;
  transition:.25s;
}
.btn:hover{transform:translateY(-3px)}
.primary{background:white;color:var(--rose2)}
.ghost{background:rgba(255,255,255,.12);color:white;border:1px solid rgba(255,255,255,.35);backdrop-filter:blur(10px)}
.hero-bottom{
  position:absolute;bottom:25px;z-index:2;color:white;
  font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;
  animation:bob 2s infinite ease-in-out;
}
@keyframes bob{50%{transform:translateY(8px)}}

.letter{
  width:min(820px,100%);
  margin:auto;padding:60px;
  border-radius:34px;background:rgba(255,255,255,.86);
  box-shadow:0 25px 80px rgba(115,49,72,.12);
  border:1px solid rgba(255,132,171,.18);
  backdrop-filter:blur(10px);
}
.script{
  font-family:"Great Vibes",cursive;
  font-size:3.2rem;color:var(--rose2);
}
.letter p{margin-top:22px;line-height:1.95;color:#644853}
.signature{text-align:right}

.section-title{text-align:center;margin-bottom:50px}
.section-title>span{color:var(--rose2)}
.section-title h2{font-size:clamp(2rem,5vw,3.5rem);margin:10px 0}
.section-title p{color:var(--muted);max-width:700px;margin:auto;line-height:1.7}

.memories{background:linear-gradient(180deg,transparent,rgba(255,224,235,.3),transparent)}
.polaroid-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:28px;
}
.polaroid{
  background:white;padding:12px 12px 22px;border-radius:6px;
  box-shadow:0 18px 50px rgba(81,45,58,.12);
  transform:rotate(var(--r,0deg));
  transition:.3s;
}
.polaroid:hover{transform:rotate(0) translateY(-7px)}
.p1{--r:-1.6deg}.p2{--r:1.2deg}.p3{--r:-.7deg}.p4{--r:1.7deg}.p5{--r:-1deg}
.photo-open{border:0;background:none;width:100%;display:block}
.photo-open img{
  width:100%;aspect-ratio:4/5;object-fit:cover;display:block;
}
.polaroid p{
  font-family:"Great Vibes",cursive;
  font-size:1.5rem;line-height:1.2;
  text-align:center;padding:18px 8px 0;color:#654854;
}

.quote-section{padding:80px 0}
.big-quote{text-align:center;max-width:830px;margin:auto}
.big-quote>span{font-family:Georgia,serif;font-size:8rem;line-height:.6;color:#ffc1d4}
.big-quote p{font-size:clamp(1.7rem,4vw,3rem);line-height:1.3;font-weight:700}
.big-quote small{display:block;margin-top:18px;color:var(--muted)}

.reason-list{
  max-width:860px;margin:auto;display:grid;gap:14px;
}
.reason-card{
  display:grid;grid-template-columns:60px 1fr;align-items:center;
  min-height:90px;padding:20px 26px;background:white;border-radius:22px;
  box-shadow:0 12px 40px rgba(80,40,56,.07);
}
.reason-card b{font-size:1.4rem;color:var(--rose)}
.reason-card span{font-size:1.02rem}

.final-card{
  max-width:790px;margin:auto;text-align:center;
  padding:65px 30px;border-radius:36px;
  background:linear-gradient(145deg,#fff,#ffedf4);
  box-shadow:0 22px 70px rgba(116,47,72,.13);
}
.final-card h2{font-size:2.5rem;margin:6px 0}
.final-card>p{color:var(--muted)}
.heart-button{
  border:0;width:100px;height:100px;border-radius:50%;
  margin-top:28px;font-size:3.8rem;color:white;
  background:linear-gradient(135deg,var(--rose),var(--rose2));
  box-shadow:0 15px 40px rgba(232,77,126,.28);
}
.heart-button.beat{animation:beat .8s ease}
@keyframes beat{25%{transform:scale(1.17)}50%{transform:scale(.92)}75%{transform:scale(1.1)}}
.surprise-message{
  max-height:0;opacity:0;overflow:hidden;transition:.65s ease;
}
.surprise-message.show{max-height:250px;opacity:1;margin-top:28px}
.surprise-message p{font-size:1.1rem;line-height:1.8}
.surprise-message strong{display:block;margin-top:8px;color:var(--rose2)}

.music-player{
  position:fixed;right:18px;top:18px;z-index:50;
  display:flex;align-items:center;gap:16px;
  min-width:310px;padding:12px 14px 12px 18px;
  border-radius:18px;background:rgba(255,255,255,.9);
  backdrop-filter:blur(14px);box-shadow:0 12px 40px rgba(44,20,29,.14);
}
.music-info{display:flex;flex-direction:column;min-width:140px}
.music-label{text-transform:uppercase;font-size:.56rem;letter-spacing:.16em;color:var(--rose2);font-weight:800}
.music-info strong{font-size:.88rem;margin:2px 0}
.music-info small{font-size:.7rem;color:var(--muted)}
.music-controls{display:flex;gap:6px}
.music-controls button{
  border:0;background:#fff1f6;color:var(--rose2);
  width:34px;height:34px;border-radius:50%;
}
.music-controls .main-play{background:var(--rose2);color:white}

.hearts{position:fixed;inset:0;pointer-events:none;z-index:100;overflow:hidden}
.fheart{position:absolute;bottom:-40px;animation:rise linear forwards;color:rgba(255,91,143,.55)}
@keyframes rise{to{transform:translateY(-112vh) rotate(360deg);opacity:0}}

footer{text-align:center;padding:32px;color:var(--muted);font-size:.9rem}

.reveal{opacity:0;transform:translateY(25px);transition:.75s}
.reveal.visible{opacity:1;transform:none}

.modal{
  position:fixed;inset:0;z-index:200;background:rgba(30,12,19,.9);
  backdrop-filter:blur(12px);display:grid;place-items:center;padding:25px;
  opacity:0;pointer-events:none;transition:.25s;
}
.modal.show{opacity:1;pointer-events:auto}
.modal-body{text-align:center;max-width:900px}
.modal img{max-width:90vw;max-height:80vh;border-radius:20px;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.modal p{color:white;margin-top:12px}
.modal-close{
  position:absolute;right:22px;top:12px;border:0;background:none;
  color:white;font-size:3rem;
}

@media(max-width:800px){
  .polaroid-grid{grid-template-columns:repeat(2,1fr)}
  .music-player{top:auto;bottom:14px;right:14px;left:14px;min-width:0;justify-content:space-between}
}
@media(max-width:560px){
  .section{padding:75px 0}
  .letter{padding:40px 24px}
  .polaroid-grid{grid-template-columns:1fr;gap:34px}
  .hero h1{font-size:4.4rem}
  .music-info{min-width:0}
}
