/* ---------------------- */
/* Fondo base azul noche  */
/* ---------------------- */
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    background: linear-gradient(to bottom, #00223B 0%, #001A2D 100%);
}

/* INICIO DE IMAGEN PRINCIPAL */

/* Contenedor hero + countdown + navbar */
#inicio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;       
    padding-top: 5vh;        /* mueve todo junto hacia abajo o arriba */
    padding-left: 5vw;
    padding-right: 5vw;
    box-sizing: border-box;
}

/* Imagen principal hero */
.hero-image {
    display: block;
    max-width: 55vw;        
    max-height: 65vh;       
    margin-top: 0;          
    border-radius: 10px;
    box-shadow: 0 0.5vh 1vh rgba(0,0,0,0.2);
    object-fit: contain;    
}

/* Contador debajo del hero */
.countdown {
    text-align: center;
    margin-top: 2vh;        
    font-family: 'Arial', sans-serif;
}

.countdown-title {
    font-size: 2.5vw;
    margin-bottom: 1.5vh;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    flex-wrap: wrap;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1vh 2vw;
    position: relative;
    font-size: 2vw;
    background-color: rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Líneas verticales solo en desktop */
@media (min-width: 769px) {
    .time-box:not(:last-child)::after {
        content: "";
        position: absolute;
        right: -1vw;
        top: 10%;
        height: 80%;
        width: 0.2vw;
        background-color: #ffffff55;
    }
}

/* Texto pequeño debajo del número */
.time-box small {
    font-size: 1vw;
    margin-top: 0.5vh;
    color: #ffffffaa;
}

/* Hover */
.time-box:hover {
    transform: scale(1.05);
    background-color: rgba(255,255,255,0.15);
}

/* Navbar debajo del countdown */
/* Navbar siempre visible al scrollear */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1vh 5vw;
    background-color: rgba(0,51,102,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0.5vh 1vh rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    width: 100%;
    box-sizing: border-box; /* importante para que el padding no haga overflow */
    z-index: 1000;
    border-radius: 0 0 1vh 1vh;
}



/* Logo */
.nav-logo {
    font-family: 'Cursive','Segoe UI',sans-serif;
    font-size: 2.5vw;
    font-weight: bold;
    color: #B0C4D9;
}

/* Menú horizontal */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 3vw;
    margin: 0;
    padding: 0;
}

/* Links */
.nav-menu li a {
    position: relative;
    text-decoration: none;
    color: #B0C4D9;
    font-size: 1.2vw;
    transition: color 0.3s ease;
}

/* ---------------------- */
/* Responsive Mobile       */
/* ---------------------- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #B0C4D9;
    border-radius: 2px;
}



/* ---------------------- */
/* Sección Asistencia     */
/* ---------------------- */
#asistencia {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    text-align: center;
    padding: 80px 24px;
    background: linear-gradient(
        to bottom,
        #001A2D 0%,
        #00223B 100%
    );
}

/* Título */
#asistencia h2 {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #C7D6E5;
    margin: 0;
}

/* Botón */
#asistencia .button {
    text-decoration: none;
    padding: 16px 48px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #00223B;
    background: linear-gradient(
        135deg,
        #9EC9E8 0%,
        #E0EFFF 100%
    );
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover */
#asistencia .button:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.45);
}


/* ---------------------- */
/* Sección Book           */
/* ---------------------- */
#book {
    min-height: 70vh;
    padding: 80px 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background: linear-gradient(
        to bottom,
        #00223B 0%,
        #001A2D 100%
    );
}

/* Título */
#book h2 {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #C7D6E5;
    margin: 0;
}

/* ---------------------- */
/* Carrusel               */
/* ---------------------- */
.carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding-bottom: 20px;
    max-width: 100%;
}

/* Ocultar scrollbar */
.carousel::-webkit-scrollbar {
    display: none;
}
.carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Imágenes */
.carousel img {
    flex: 0 0 auto;
    width: auto;
    height: 420px;
    object-fit: contain;
    border-radius: 14px;
    scroll-snap-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.45);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Hover */
.carousel img:hover {
    transform: scale(1.05);
}

/* ---------------------- */
/* Sección Subir Fotos    */
/* ---------------------- */
#fotos {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    text-align: center;
    padding: 10px 24px;
    background: linear-gradient(
        to bottom,
        #001A2D 0%,
        #00223B 100%
    );
}

/* Título */
#fotos h2 {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #C7D6E5;
    margin: 0;
}

/* Botón */
#fotos .button {
    text-decoration: none;
    padding: 16px 48px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #00223B;
    background: linear-gradient(
        135deg,
        #9EC9E8 0%,
        #E0EFFF 100%
    );
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover */
#fotos .button:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.45);
}


/* ---------------------- */
/* Sección Evento         */
/* ---------------------- */
#evento {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    padding: 80px 5vw;
    background: linear-gradient(
        to bottom,
        #00223B 0%,
        #001A2D 100%
    );
}

/* Título */
#evento h2 {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #C7D6E5;
    margin: 0;
}

/* Dirección */
#evento p {
    font-size: 1rem;
    color: #B8C7D6;
    max-width: 600px;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

/* ---------------------- */
/* Mapa                   */
/* ---------------------- */
.map-container {
    width: 100%;
    max-width: 900px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.45);
}

/* Forzar mapa responsive */
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------------------- */
/* Botones                */
/* ---------------------- */
.map-buttons {
    display: flex;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.map-buttons .button {
    text-decoration: none;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #00223B;
    background: linear-gradient(
        135deg,
        #9EC9E8 0%,
        #E0EFFF 100%
    );
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover */
.map-buttons .button:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.45);
}


/* ---------------------- */
/* Sección Contacto       */
/* ---------------------- */
#contacto {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    text-align: center;
    padding: 80px 5vw;
    padding-bottom: 0;
    margin-bottom: 0;
    background: linear-gradient(
        to bottom,
        #00223B 0%,
        #001A2D 100%
    );
}

/* Título */
#contacto h2 {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #C7D6E5;
    margin: 0;
}

/* Grid de contactos */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 32px;
    width: 100%;
    max-width: 800px;
}

/* Card */
.contact-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover */
.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

/* Texto */
.contact-card p:first-child {
    font-size: 1.2rem;
    font-weight: 600;
    color: #D6E3F0;
    margin: 0 0 12px 0;
}

.contact-card p:last-child {
    font-size: 1.05rem;
    color: #B8C7D6;
    margin: 0;
    letter-spacing: 0.5px;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Botón flotante música */
#music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
}

#music-toggle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 51, 102, 0.85);
    color: #B0C4D9;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#music-toggle:hover {
    transform: scale(1.08);
    background-color: rgba(0, 80, 160, 0.9);
}


.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}




/* Mobile adjustments */
@media (max-width: 768px) {
    
    #inicio {
        padding-top: 18vh; /* subimos todo más cerca del navbar */
    }
    .hero-image {
        max-width: 90%;          
        max-height: 60vh;       
    }
    .countdown {
        margin-top: 1.5vh; 
    }
    .countdown-timer {
        gap: 10px;
    }
    
    .countdown-title {
        font-size: 20px;
    }
    .time-box {
        padding: 10px 15px;
        font-size: 2rem;
        margin-bottom: 20px;
    }
    .time-box small {
        font-size: 0.6rem;
    }
    /* Eliminamos las líneas en mobile */
    .time-box:not(:last-child)::after {
        content: none;
    }
    
    .navbar {
    margin-top: 0vh;
    }
    
    .nav-menu {
        position: absolute;
        top: 38px;
        right: 0;
        background-color: rgba(0, 51, 102, 0.95); 
        flex-direction: column;
        width: 220px;
        padding: 20px;
        display: none;
        gap: 15px;
        border-radius: 0 0 8px 8px;
    }

    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li a {
    font-size: 1.1rem;
    }
    .hamburger {
        display: flex;
    }
    
    #asistencia {
        min-height: auto;
        padding: 64px 20px;
        gap: 24px;
    }

    #asistencia h2 {
        font-size: 1.7rem;
    }

    #asistencia .button {
        width: 100%;
        max-width: 320px;
        font-size: 1rem;
        padding: 16px 0;
    }
    #book {
        padding: 60px 20px;
        gap: 30px;
    }

    #book h2 {
        font-size: 1.8rem;
    }

    .carousel {
        gap: 20px;
    }

    .carousel img {
        width: 240px;
        height: 320px;
    }
    #fotos {
        min-height: auto;
        padding: 80px 24px;
        gap: 24px;
    }

    #fotos h2 {
        font-size: 1.7rem;
    }

    #fotos .button {
        width: 100%;
        max-width: 320px;
        padding: 16px 0;
        font-size: 1rem;
    }
    #evento {
        padding: 64px 20px;
        gap: 20px;
    }

    #evento h2 {
        font-size: 1.8rem;
    }

    #evento p {
        font-size: 0.95rem;
    }

    .map-container {
        height: 300px;
    }

    .map-buttons {
        gap: 16px;
        margin-top: 24px;
    }

    .map-buttons .button {
        width: 100%;
        max-width: 320px;
        padding: 16px 0;
    }

    #contacto {
        padding: 64px 20px;
        gap: 32px;
    }

    #contacto h2 {
        font-size: 1.8rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-card {
        padding: 28px 20px;
    }

    .contact-card p:first-child {
        font-size: 1.1rem;
    }

    .contact-card p:last-child {
        font-size: 1rem;
    }
    
    #music-toggle {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}


