/*==================================================
                RESET
==================================================*/

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

html{

    scroll-behavior:smooth;

}

body{

    background:var(--color-background);

    color:var(--color-text);

    font-family:var(--font-body);

    overflow-x:hidden;

}


/*==================================================
                ELEMENTOS GENERALES
==================================================*/

img{

    max-width:100%;

    display:block;

}

a{

    text-decoration:none;

}

section{

    padding:var(--section-padding) 0;

}

.container{

    width:min(92%, var(--container-width));

    margin:auto;

}


/*==================================================
                HERO
==================================================*/

.hero{

    position:relative;

    width:100%;

    min-height:100dvh;

    display:flex;

    justify-content:center;

    align-items:center;

    overflow:hidden;

}

.hero-parallax{

    position:absolute;

    inset:0;

    overflow:hidden;

    z-index:0;

}

.hero-image{

    width:100%;

    height:100%;

    object-fit:cover;

    object-position:center;

    will-change:transform;

}

/* Oscurece ligeramente la foto */

.hero-filter{

    position:absolute;

    inset:0;

    background:
    linear-gradient(

    to bottom,

    rgba(0,0,0,.05),

    rgba(0,0,0,.08),

    rgba(0,0,0,.55)

    );

    z-index:1;

}


/*==================================================
            TARJETA PRINCIPAL
==================================================*/

.hero-card{

    position:relative;

    z-index:2;

    width:min(90%,480px);

    padding:45px;

    background:var(--glass-background);

    backdrop-filter:blur(var(--glass-blur));

    border:1px solid var(--glass-border);

    border-radius:40px;

    box-shadow:var(--shadow-strong);

    text-align:center;

}


/* pequeño brillo */

.hero-card::before{

    content:"";

    position:absolute;

    inset:0;

    border-radius:40px;

    background:

    linear-gradient(

        135deg,

        rgba(255,255,255,.25),

        rgba(255,255,255,0)

    );

    pointer-events:none;

}


/*==================================================
                    LOGO
==================================================*/

.logo{

    width:230px;

    margin:auto;

    margin-bottom:25px;

}

.logo-container{

    display:flex;

    justify-content:center;

    margin-bottom:25px;

}


/*==================================================
                    TEXTOS
==================================================*/

.hero-text{

    color:var(--color-text-light);

    font-size:1rem;

    letter-spacing:1px;

    line-height:1.8;

}

#guest-name{

    margin:25px 0;

    color:var(--color-primary);

    font-family:var(--font-title);

    font-size:var(--fs-hero);

    font-weight:600;

}


/*==================================================
                PASES
==================================================*/

.guest-pass{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:12px;

    margin-top:30px;

    margin-bottom:35px;

    padding:12px 25px;

    background:rgba(255,255,255,.55);

    border-radius:999px;

}

#guest-pass-number{

    font-size:2rem;

    color:var(--color-accent);

    font-weight:700;

}

#guest-pass-text{

    font-size:.95rem;

    color:var(--color-text);

}


/*==================================================
            BOTÓN DESCUBRIR
==================================================*/

.scroll-down{

    display:inline-flex;

    flex-direction:column;

    align-items:center;

    gap:10px;

    color:var(--color-primary);

    transition:.3s;

}

.scroll-down span{

    font-size:1.5rem;

}

.scroll-down:hover{

    transform:translateY(6px);

}


/*==================================================
                FRASE
==================================================*/

.quote{

    background:white;

    text-align:center;

}

.quote h2{

    max-width:850px;

    margin:auto;

    font-family:var(--font-title);

    font-size:2.4rem;

    color:var(--color-primary);

    font-weight:500;

    line-height:1.6;

}


/*==================================================
            CUENTA REGRESIVA
==================================================*/

.countdown{

    text-align:center;

}

.countdown h2{

    font-family:var(--font-title);

    font-size:var(--fs-section-title);

    color:var(--color-primary);

}

.countdown-grid{

    width:min(1100px,90%);

    margin:auto;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}

.time-box{

    background:white;

    padding:40px 20px;

    border-radius:30px;

    box-shadow:var(--shadow-soft);

}

.time-box span{

    display:block;

    color:var(--color-accent);

    font-family:var(--font-title);

    font-size:var(--fs-countdown);

    font-weight:700;

}

.time-box p{

    margin-top:15px;

    letter-spacing:2px;

    text-transform:uppercase;

    font-size:.9rem;

}

/*==================================================
                    UBICACIÓN
==================================================*/

.location{

    position:relative;

    padding:130px 20px;

    background: white;
        /*var(--color-background);*/

    text-align:center;

    overflow:hidden;

}


/*------------------------------------------
                CONTENIDO
------------------------------------------*/

.location-content{

    width:100%;

    max-width:800px;

    margin:0 auto;

}


/*------------------------------------------
            PEQUEÑO ENCABEZADO
------------------------------------------*/

.section-eyebrow{

    margin-bottom:12px;

    color:var(--color-accent);

    font-size:.75rem;

    font-weight:500;

    letter-spacing:4px;

    text-transform:uppercase;

}


/*------------------------------------------
                    TÍTULO
------------------------------------------*/

.location h2{

    margin:0;

    color:var(--color-primary);

    font-size:3rem;

    font-weight:400;

    line-height:1.15;

}


/*------------------------------------------
                DIVISOR
------------------------------------------*/

.location-divider{

    width:45px;

    height:1px;

    margin:
        28px
        auto
        38px;

    background:
        var(--color-accent);

}


/*------------------------------------------
            CONTENIDO UBICACIÓN
------------------------------------------*/

.location-card{

    width:100%;
    max-width:600px;

    margin:0 auto;

    padding:20px 30px 0;

    background:transparent;

    backdrop-filter:none;
    -webkit-backdrop-filter:none;

    border:none;
    border-radius:0;

    box-shadow:none;

}


/*------------------------------------------
                LOGO
------------------------------------------*/

.location-logo-container{

    display:flex;

    align-items:center;

    justify-content:center;

    margin-bottom:22px;

}


.location-logo{

    display:block;

    width:120px;

    height:auto;

}


/*------------------------------------------
            NOMBRE DEL LUGAR
------------------------------------------*/

.location-card h3{

    margin:
        0
        0
        14px;

    color:var(--color-primary);

    font-size:2rem;

    font-weight:400;

}


/*------------------------------------------
                DIRECCIÓN
------------------------------------------*/

.location-address{

    max-width:430px;

    margin:
        0
        auto
        30px;

    color:var(--color-text-light);

    font-size:.95rem;

    line-height:1.8;

}


/*------------------------------------------
            BOTÓN GOOGLE MAPS
------------------------------------------*/

.location-button{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    width:auto;

    min-width:240px;

}

/*==================================================
                    ITINERARIO
==================================================*/

.itinerary{
    position:relative;
    width:100%;
    padding:105px 20px;
    background:var(--color-background);
    overflow:hidden;
}


/* Contenedor principal */

.itinerary .container{
    width:100%;
    max-width:1200px;
    margin:0 auto;
}


.itinerary-content{
    width:100%;
    max-width:750px;
    margin:0 auto;
    text-align:center;
}


/* Encabezado pequeño */

.itinerary .section-eyebrow{
    margin:0 0 12px;
    color:var(--color-accent);
    font-size:.75rem;
    font-weight:500;
    letter-spacing:4px;
    text-transform:uppercase;
}


/* Título */

.itinerary h2{
    margin:0;
    color:var(--color-primary);
    font-size:3rem;
    font-weight:400;
    line-height:1.15;
}


/* Divisor */

.itinerary-divider{
    width:45px;
    height:1px;

    margin:
        28px
        auto
        35px;

    background:var(--color-accent);
}


/*==================================================
                    TIMELINE
==================================================*/

.timeline{
    position:relative;
    width:100%;
    max-width:600px;
    margin:0 auto;
    padding:0;
}


/* Línea vertical central */

.timeline::before{
    content:"";
    position:absolute;

    top:20px;
    bottom:20px;
    left:50%;

    width:1px;

    background:rgba(190,155,90,.55);

    transform:translateX(-50%);
}


/*==================================================
                ELEMENTOS
==================================================*/

.timeline-item{
    position:relative;

    display:grid;

    grid-template-columns:
        1fr
        60px
        1fr;

    align-items:center;

    width:100%;
    min-height:95px;
}


/*==================================================
                    PUNTO
==================================================*/

.timeline-dot{
    position:absolute;

    top:50%;
    left:50%;

    width:12px;
    height:12px;

    background:var(--color-accent);

    border:3px solid var(--color-background);

    border-radius:50%;

    box-shadow:
        0 0 0 1px var(--color-accent);

    transform:
        translate(-50%,-50%);

    z-index:2;
}


/*==================================================
                INFORMACIÓN
==================================================*/

.timeline-info{
    grid-column:3;

    padding-left:25px;

    text-align:left;
}


/* Eventos pares a la izquierda */

.timeline-item:nth-child(even) .timeline-info{
    grid-column:1;
    grid-row:1;

    padding-left:0;
    padding-right:25px;

    text-align:right;
}


/*==================================================
                    HORA
==================================================*/

.timeline-time{
    display:block;

    margin-bottom:6px;

    color:var(--color-accent);

    font-size:.78rem;
    font-weight:500;

    letter-spacing:2px;

    text-transform:uppercase;
}


/*==================================================
                NOMBRE EVENTO
==================================================*/

.timeline-info h3{
    margin:0;

    color:var(--color-primary);

    font-size:1.55rem;
    font-weight:400;

    line-height:1.2;
}


/*==================================================
            MESA DE REGALOS
==================================================*/

.gifts{

    background:white;

}

.gifts .container{

    max-width:750px;

    text-align:center;

}

.section-logo{

   /* width:120px;

    margin:auto;

    margin-bottom:30px;*/
    
    width:150px;
    height:auto;
    margin-left:auto;
    margin-right:auto;

}

.gifts h2{

    font-family:var(--font-title);

    font-size:var(--fs-section-title);

    color:var(--color-primary);

    margin-bottom:20px;

}

.gifts p{

    line-height:1.8;

    margin-bottom:40px;

}

.gift-number{

    display:inline-block;

    padding:18px 35px;

    margin-bottom:40px;

    background:white;

    border-radius:20px;

    box-shadow:var(--shadow-soft);

    font-size:1.2rem;

}

#gift-number{

    color:var(--color-accent);

    font-weight:700;

    margin-left:10px;

}


/*==================================================
                BOTONES
==================================================*/

.btn{

    width:260px;

    height:58px;

    margin:auto;

    display:flex;

    justify-content:center;

    align-items:center;

    background:var(--color-accent);

    color:white;

    border-radius:999px;

    transition:.35s;

    box-shadow:0 10px 25px rgba(181,150,90,.30);

}

.btn:hover{

    background:var(--color-accent-dark);

    transform:translateY(-4px);

}


/*==================================================
                    RSVP
==================================================*/

.rsvp{

    text-align:center;

}

.rsvp .container{

    max-width:700px;

}

.rsvp h2{

    margin:20px 0;

    font-family:var(--font-title);

    font-size:var(--fs-section-title);

    color:var(--color-primary);

}

.rsvp p{

    margin-bottom:45px;

    line-height:1.8;

}


/*==================================================
                FOOTER
==================================================*/

footer{

    padding:80px 20px;

    text-align:center;

    background:#EFE9DD;

}

.footer-logo{

    width:120px;

    margin:auto;

    margin-bottom:20px;

}

footer p{

    margin-bottom:10px;

    color:var(--color-text-light);

}

footer h3{

    font-family:var(--font-title);

    font-size:2rem;

    color:var(--color-primary);

}

/*==================================================
        FECHA Y HORA DE LA BODA
==================================================*/

.wedding-date-info{

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    /* Espacio después del logo */
    margin-top:18px;

    /* Espacio antes de las tarjetas del contador */
    margin-bottom:25px;

    /* Controla la separación entre los 3 textos */
    gap:5px;

}


/*------------------------------------------
        FECHA, HORA Y FALTAN
------------------------------------------*/

.wedding-date,
.wedding-time,
.countdown-title{

    font-family:"Montserrat", sans-serif;

    color:var(--color-primary);

    font-weight:400;

    /* IMPORTANTE:
       eliminamos los márgenes originales de los h2 */
    margin:0;

    line-height:1.25;

}


/* Fecha */

.wedding-date{
    margin-bottom:4px;
}


/* Hora */

.wedding-time{
    margin-bottom:6px;
}


/* Faltan */

.countdown-title{
    margin-bottom:0;
}

/*==================================================
                FOOTER FOTOGRÁFICO
==================================================*/

.wedding-footer{

    position:relative;

    width:100%;

    height:75vh;
    min-height:600px;
    max-height:900px;

    overflow:hidden;

}


/*==================================================
                IMAGEN
==================================================*/

.footer-image-container{

    position:absolute;

    inset:0;

    width:100%;
    height:100%;

}


.footer-image{

    width:100%;
    height:100%;

    object-fit:cover;

    object-position:center;

}


/*==================================================
                FILTRO
==================================================*/

.footer-filter{
    position:absolute;
    inset:0;
    z-index:1;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.02) 0%,
            rgba(0,0,0,.05) 45%,
            rgba(0,0,0,.25) 70%,
            rgba(0,0,0,.62) 100%
        );
}


/*==================================================
                CONTENIDO
==================================================*/

.footer-content{

    position:relative;

    z-index:2;

    width:100%;
    height:100%;

    display:flex;

    flex-direction:column;

    align-items:center;
    justify-content:flex-end;

    padding:
        50px
        25px
        10px;

    text-align:center;

}


/*==================================================
                    LOGO
==================================================*/

.footer-logo-main{
    width:220px;
    height:auto;

    margin-bottom:18px;

    filter:
        drop-shadow(0 3px 8px rgba(0,0,0,.65))
        drop-shadow(0 8px 20px rgba(0,0,0,.35));
}


/*==================================================
                CON CARIÑO
==================================================*/

.footer-text{

    margin-bottom:5px;

    color:white;

    font-family:"Montserrat", sans-serif;

    font-size:.78rem;

    font-weight:500;

    letter-spacing:5px;

    text-transform:uppercase;

    text-shadow:
        0 2px 8px rgba(0,0,0,.9),
        0 4px 15px rgba(0,0,0,.6);

}


/*==================================================
                RUTH & JUAN
==================================================*/

.footer-names{
    margin:0;

    color:white;

    font-family:"Cormorant Garamond", serif;

    font-size:3.6rem;
    font-weight:500;

    line-height:1;

    text-shadow:
        0 2px 8px rgba(0,0,0,.9),
        0 5px 20px rgba(0,0,0,.6);
}