/* ======================================
   RESET
====================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Montserrat',sans-serif;
    background:#f8f6f2;
    color:#111;
    overflow-x:hidden;
}

/* ======================================
   SOBRE
====================================== */

#intro{
    position:fixed;
    inset:0;
    background:#f8f6f2;
    z-index:99999;
    display:flex;
    justify-content:center;
    align-items:center;
}

.envelope-container{
    position:relative;
    text-align:center;
}

#envelope{
    position:relative;
    width:320px;
    height:220px;
    margin:auto;
    cursor:pointer;
}

.envelope-body{
    position:absolute;
    inset:0;
    background:#fff;
    box-shadow:0 30px 80px rgba(0,0,0,.15);
}

.envelope-flap{
    position:absolute;
    width:100%;
    height:120px;
    background:#f0f0f0;
    clip-path:polygon(0 0,100% 0,50% 100%);
    transform-origin:top;
    transition:1.5s;
    z-index:4;
}

.invitation-card{
    position:absolute;
    width:280px;
    height:160px;
    background:#fff;
    left:50%;
    top:-10px;
    transform:translateX(-50%);
    z-index:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
}

.card-monogram{
    font-family:'Cormorant Garamond',serif;
    font-size:42px;
    letter-spacing:6px;
}

.card-names{
    margin-top:10px;
    text-align:center;
    font-size:12px;
    letter-spacing:2px;
    line-height:2;
}

.seal{
    position:absolute;
    width:90px;
    height:90px;
    border-radius:50%;
    background:#6b1f24;
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    left:50%;
    top:80px;
    transform:translateX(-50%);
    z-index:10;
    font-family:'Cormorant Garamond',serif;
    font-size:24px;
    box-shadow:0 10px 25px rgba(0,0,0,.2);
}

.open-text{
    margin-top:50px;
    letter-spacing:4px;
    font-size:12px;
}

/* ======================================
   HERO
====================================== */

.hero{
    position:relative;
    height:100vh;
    overflow:hidden;
}

.hero video{

    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;

    object-position:center center;

}

.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.28);
}

.hero-content{
    position:relative;
    z-index:5;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:#fff;
    padding:20px;
}

.hero-label{
    letter-spacing:6px;
    font-size:.75rem;
}

.hero h1{
    font-family:'Cormorant Garamond',serif;
    font-weight:300;
    font-size:2.8rem;
    line-height:1;
}

.hero-ampersand{
    font-size:2rem;
    margin:15px 0;
}

/* ======================================
   SAVE THE DATE
====================================== */

.save-date{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:60px 20px;
}

.save-date p{
    letter-spacing:6px;
    font-size:.8rem;
}

.save-date span{
    font-family:'Cormorant Garamond',serif;
    font-size:5rem;
    font-weight:300;
}

.save-date h2{
    font-family:'Cormorant Garamond',serif;
    font-size:3rem;
    font-weight:300;
}

/* ======================================
   FRASE
====================================== */

.quote-section{
    padding:100px 25px;
}

.quote-section p{
    max-width:800px;
    margin:auto;
    text-align:center;
    font-family:'Cormorant Garamond',serif;
    font-size:2rem;
    line-height:1.4;
}

/* ======================================
   CONTADOR
====================================== */

.countdown-section{
    padding:120px 25px;
    text-align:center;
}

.countdown-section h3{
    margin-bottom:50px;
    letter-spacing:4px;
}

.countdown{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:30px;
}

.countdown div{
    min-width:90px;
}

.countdown span{
    display:block;
    font-family:'Cormorant Garamond',serif;
    font-size:3rem;
}

.countdown small{
    letter-spacing:3px;
}

/* ======================================
   HISTORIA
====================================== */

.story-section{
    padding:120px 25px;
    max-width:900px;
    margin:auto;
}

.story-section h2{
    text-align:center;
    margin-bottom:80px;
    font-family:'Cormorant Garamond',serif;
    font-size:3rem;
}

.story-section article{
    margin-bottom:100px;
    text-align:center;
}

.story-section h3{
    margin-bottom:25px;
    letter-spacing:2px;
}

.story-section p{
    line-height:2;
}

/* ======================================
   GALERIA
====================================== */

.gallery-section{
    padding:0 20px 120px;
}

.gallery-section img{
    width:100%;
    max-width:450px;
    display:block;
    margin:0 auto 40px;
    border-radius:10px;
    box-shadow:0 20px 60px rgba(0,0,0,.12);
}

/* ======================================
   VIDEO
====================================== */

.video-section{
    padding:120px 20px;
    text-align:center;
}

.video-section h2{
    margin-bottom:50px;
    font-family:'Cormorant Garamond',serif;
    font-size:3rem;
}

.video-frame{
    max-width:420px;
    margin:auto;
}

.video-frame video{
    width:100%;
    border-radius:25px;
    box-shadow:0 20px 60px rgba(0,0,0,.15);
}

/* ======================================
   DETALLES
====================================== */

.details-section{
    padding:120px 25px;
}

.details-section h2{
    text-align:center;
    margin-bottom:60px;
    font-family:'Cormorant Garamond',serif;
}

.details-grid{
    display:grid;
    gap:35px;
}

.details-grid div{
    text-align:center;
}

.details-grid span{
    display:block;
    letter-spacing:3px;
    font-size:.75rem;
    margin-bottom:10px;
}

.details-grid p{
    font-family:'Cormorant Garamond',serif;
    font-size:2rem;
}

/* ======================================
   UBICACION
====================================== */

.location-section{
    padding:120px 25px;
    text-align:center;
}

.location-section h2{
    font-family:'Cormorant Garamond',serif;
    margin-bottom:30px;
}

.location-section h3{
    margin-bottom:30px;
}

.location-section a{
    display:inline-block;
    padding:14px 28px;
    background:#111;
    color:#fff;
    text-decoration:none;
    border-radius:50px;
}

/* ======================================
   RSVP
====================================== */

.rsvp-section{
    padding:120px 25px;
    text-align:center;
}

.rsvp-button{
    display:inline-block;
    margin-top:25px;
    padding:16px 30px;
    background:#6b1f24;
    color:#fff;
    text-decoration:none;
    border-radius:50px;
}

/* ======================================
   FINAL
====================================== */

.final-section{
    position:relative;
    height:100vh;
    overflow:hidden;
}

.final-section video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.final-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
}

.final-content{
    position:relative;
    z-index:5;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:#fff;
    padding:20px;
}

.final-content p{
    letter-spacing:4px;
}

.final-content h2{
    font-family:'Cormorant Garamond',serif;
    font-weight:300;
    font-size:2.2rem;
    margin-top:20px;
}

/* ======================================
   DESKTOP
====================================== */

@media(min-width:992px){

    .hero h1{
        font-size:5.5rem;
    }

    .save-date span{
        font-size:9rem;
    }

    .save-date h2{
        font-size:5rem;
    }

    .details-grid{
        grid-template-columns:repeat(4,1fr);
    }

}

/* ======================
   GOLD PARTICLES
====================== */

#particles{
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:1;
    overflow:hidden;
}

.gold-particle{
    position:absolute;
    width:4px;
    height:4px;
    border-radius:50%;

    background:#d7c29e;

    box-shadow:
    0 0 10px rgba(215,194,158,.8);

    opacity:.5;

    animation:
    floatParticle linear forwards;
}

@keyframes floatParticle{

    from{

        transform:
        translateY(110vh);

        opacity:0;

    }

    20%{

        opacity:.6;

    }

    to{

        transform:
        translateY(-20vh);

        opacity:0;

    }

}

.map-container{

    width:100%;
    max-width:1000px;

    margin:40px auto;

    border-radius:20px;
    overflow:hidden;

    box-shadow:
    0 20px 60px rgba(0,0,0,.15);

}

.map-container iframe{

    width:100%;
    height:450px;

    border:none;

    display:block;

}

.location-btn{

    display:inline-block;

    margin-top:30px;

    padding:16px 32px;

    background:#111;

    color:white;

    text-decoration:none;

    border-radius:50px;

}