/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* BASE */
body{
    background-color:var(--color-bg-body);
    font-family:var(--fuente-general);
    margin-top: 20px;
}

@media(max-width:768px){
    body{
        margin-top: 0;
    }
}

.section{
    padding:80px 20px;
}

.section-lg{
    padding:120px 20px;
}

/* CONTENEDOR TARJETA */
.page-wrapper{
    max-width:600px;
    min-height:100vh;
    margin:10px auto;
    background-color:var(--color-white);
    box-shadow:0 0 35px var(--color-soft);
    position:relative;
    overflow:hidden;
    border-radius:30px;
}

/* TIPOGRAFÍA */

.titulo{
    font-size:clamp(2rem,5vw,4rem);
    margin-bottom:30px;
    color:var(--color-title);
}

.titulo-principal{
    font-size:clamp(2.75rem, 5vw, 3.5rem);
    margin-bottom:30px;
    color:var(--color-title);
    font-weight: 600;
}

.titulo-light{
    color:var(--color-white);
}

.titulo-soft{
    color:var(--color-soft);
}

.texto{
    max-width:750px;
    margin:auto;
    font-size:1.15rem;
    line-height:1.8;
    color:var(--color-text);
}

.texto-light{
    color:var(--color-white);
    opacity:.9;
}

/* BOTONES */
.btn{
    display:inline-block;
    padding:18px 40px;
    border-radius:50px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
    border:none;
}

.btn:hover{
    transform:translateY(-4px);
}

.btn-light{
    background:linear-gradient(90deg,var(--color-bg-light),var(--color-white));
    color:var(--color-text);
}

.btn-dark{
    background:linear-gradient(90deg,var(--color-bg-dark),var(--color-dark));
    color:var(--color-white);
}

.btn-spotify{
    background:#1DB954;
    color:var(--color-white);
}

.btn-spotify:hover{
    background:#1DB954;
}

/* SOMBRAS */
.shadow{
    box-shadow:0 8px 25px rgba(0,0,0,.15);
}

.shadow-lg{
    box-shadow:0 15px 40px rgba(0,0,0,.15);
    border-radius: 15px;
}

/* MARGEN INFERIOR DIVISOR */
.bb-divisor{
    border-bottom: 1px solid var(--color-soft);
}

/* NOTAS */
.nota{
    color: var(--color-text);
}

/* STICKERS */
.sticker{
    width:100px;
    height:auto;
    filter:drop-shadow(0 10px 14px rgba(0,0,0,.12));
}

.animation{
    animation:float 4s ease-in-out infinite;
}

.sticker-lg{ width:120px; }
.sticker-sm{ width:80px; }

@keyframes float{
    0%{ transform:translateY(0) rotate(-4deg); }
    50%{ transform:translateY(-10px) rotate(4deg); }
    100%{ transform:translateY(0) rotate(-4deg); }
}

/* DIVIDERS */
.divider{
    position:absolute;
    left:50%;
    bottom:-50px;
    transform:translateX(-50%);
    z-index:20;
    pointer-events:none;
}

.divider-left{
    left:20%;
    transform:translateX(-50%);
}

.divider-right{
    left:80%;
    transform:translateX(-50%);
}

/* -------- HERO -------- */
.hero{
    min-height:100dvh;
    position:relative;
    background-image:url('../img/hero_ejemplo1001.png');
    background-size:cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;
}

.overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.15);
    backdrop-filter:blur(1px);
}

.contenido{
    position:relative;
    z-index:2;
    top:80px;
    text-align:center;
}

.nombre{
    font-family: var(--fuente-principal);
    font-size:clamp(7rem,15vw,11rem);
    color:var(--color-white);
    line-height:1;
    text-shadow:3px 5px 12px rgba(0,0,0,.08);
}

.subtitulo{
    font-size:clamp(1.5rem,8vw,3rem);
    color:var(--color-white);
}

/* BOTÓN MÚSICA */
.music-btn{
    position:fixed;
    right:calc(50% - 280px);
    top:40px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background-color:var(--color-bg-dark);
    color:var(--color-white);
    font-size:25px;
    cursor:pointer;
    z-index:999;
    transition:.3s;
}

.music-btn.playing{
    animation:pulse 2s infinite;
}

@keyframes pulse{
    0%{transform:scale(1);}
    50%{transform:scale(1.08);}
    100%{transform:scale(1);}
}

@media(max-width:768px){
    .music-btn{
        right:18px;
        top:auto;
        bottom:25px;
        width:60px;
        height:60px;
    }
}

/* -------- INVITACION -------- */
.invitacion{
    background:var(--color-bg-light);
}

.contenido-invitacion{
    margin-top:40px;
}

/* -------- EVENTO -------- */
.evento{
    background-color: var(--color-bg-dark);
    color:var(--color-white);
    position:relative;
}

.hora{
    font-size:clamp(1.4rem,3vw,1.7rem);
    margin-bottom:60px;
    letter-spacing:4px;
}

.countdown{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:25px;
}

.box{
    width:110px;
    height:110px;
    border-radius:30px;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(8px);
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.box span{
    font-size:2rem;
    font-weight:bold;
}

/* -------- LUGAR -------- */
.lugar{
    /*background:linear-gradient(135deg,#f5f5f5,#dadada,#f8f8f8);*/
    background-color: var(--color-bg-light);
    text-align:center;
}

.salon{
    font-size:clamp(3rem,9vw,6rem);
    color:var(--color-dark);
    font-family: var(--fuente-principal);
}

/* -------- DRESS -------- */
.dresscode{
    background-color:var(--color-bg-light);
    text-align:center;
}

/* -------- MENU -------- */
.menu-especial{
    background-color:var(--color-bg-light);
    text-align:center;
}

/* -------- PLAYLIST -------- */
.playlist{
    background-color: var(--color-bg-dark);
    color:var(--color-white);
    text-align:center;
}

.acciones{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:15px;
}

/* -------- GALERIA -------- */
.galeria{
    background-color:var(--color-bg-light);
    text-align:center;
}

.galeria .carousel{
    max-width:500px;
    margin:auto;
}

.galeria .carousel img{
    border-radius:25px;
    height:650px;
}

@media (min-width: 400px) {
    .galeria .carousel .foto5 img{
        object-fit: cover;
        object-position: top;
    }
}

/* -------- REGALOS -------- */
.regalos{
    background-color: var(--color-bg-light);
    text-align:center;
    position:relative;
}

.grid{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:30px;
}

.card{
    background:rgba(255,255,255,.25);
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.3);
    width:300px;
    padding:35px 25px;
    border-radius:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.1);
    transition:.3s;
}

.card:hover{
    transform:translateY(-6px);
}

/* -------- RSVP -------- */
.rsvp{
    background-color: var(--color-bg-light);
    text-align:center;
    position:relative;
    overflow:visible;
}

/* -------- CIERRE -------- */
.cierre{
    position:relative;
    padding:35px 20px 160px 20px;
    background-color: var(--color-bg-dark);
    /*background:url('../img/fondo3.jpg');
    background-size:cover;
    background-position:center;*/
    color:var(--color-white);
    overflow:hidden;
}

.frase{
    font-size:clamp(1.9rem,5vw,3.3rem);
    font-style:italic;
    max-width:900px;
    margin:auto;
    line-height:1.5;
    margin-bottom:50px;
}

.firma{
    font-family: var(--fuente-principal);
    font-size:clamp(6rem,12vw,10rem);
    background:linear-gradient(90deg,var(--color-white),var(--color-soft),var(--color-white));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.destellos{
    margin-top:40px;
    display:flex;
    justify-content:center;
    gap:25px;
    font-size:2rem;
    animation:brillo 3s infinite alternate;
}

@keyframes brillo{
    from{
        opacity:.5;
        transform:translateY(0);
    }
    to{
        opacity:1;
        transform:translateY(-8px);
    }
}

/* -------- ANIMACIÓN CARGA -------- */
.loader{
    position:fixed;
    inset:0;
    background: var(--color-bg-light);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
    transition:opacity .6s ease, visibility .6s ease;
}

/* ocultar */
.loader.hide{
    opacity:0;
    visibility:hidden;
}

/* contenido */
.loader-content{
    text-align:center;
}

/* círculo animado */
.loader-circle{
    width:50px;
    height:50px;
    border:4px solid var(--color-dark);
    border-top:4px solid var(--color-bg-dark);
    border-radius:50%;
    animation:spin 1s linear infinite;
    margin:auto;
}

/* texto */
.loader-text{
    margin-top:15px;
    font-size:14px;
    color:var(--color-text);
    letter-spacing:1px;
}

/* animación */
@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

.scroll-down{
    position:absolute;
    bottom:30px;
    left:50%;
    transform:translateX(-50%);
    font-size:1.7rem;
    color:var(--color-white);
    animation:scrollArrow 2s infinite;
    opacity:.9;
	background-color:var(--color-bg-dark);
	border-radius: 50px;
	padding: 2px 4px;
}

@keyframes scrollArrow{
    0%,100%{
        transform:translateX(-50%) translateY(0);
    }

    50%{
        transform:translateX(-50%) translateY(10px);
    }
}

.footer_publicitario{
    background-color: #3a3939;
    padding: 15px;
}

.footer_publicitario a{
   color: var(--color-soft);
}

.footer_elementos{
    display: flex;
    justify-content: space-around;
}