﻿:root {
    --oro: #d4af37;
    --oro-oscuro: #aa841b;
    --rojo-imperial: #800020;
    --negro-profundo: #111111;
    --blanco-marfil: #fcfbf7;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--blanco-marfil);
    color: var(--negro-profundo);
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-premium {
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
}

/* --- PANTALLA DE BIENVENIDA / SOBRE INTERACTIVO --- */
#pantalla-sobre {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--negro-profundo);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), visibility 1s;
    background-image: radial-gradient(rgba(212, 175, 55, 0.15) 1px, transparent 0);
    background-size: 24px 24px;
}

    #pantalla-sobre.oculto {
        transform: translateY(-100vh);
        visibility: hidden;
    }

.sobre-contenedor {
    text-align: center;
    cursor: pointer;
    perspective: 1000px;
}

.sobre {
    width: 320px;
    height: 220px;
    background-color: var(--rojo-imperial);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 2px solid var(--oro);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .sobre:hover {
        transform: scale(1.05) rotate(-1deg);
    }

.sello-oro {
    width: 75px;
    height: 75px;
    background: radial-gradient(circle, #ffd700, var(--oro-oscuro));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Noto Serif TC', serif;
    font-size: 32px;
    color: var(--rojo-imperial);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border: 2px solid var(--blanco-marfil);
    transition: transform 0.3s;
}

.sobre:hover .sello-oro {
    transform: scale(1.1) rotate(5deg);
}

.sobre-texto {
    color: var(--oro);
    margin-top: 25px;
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.98);
    }
}

/* --- CONTENIDO PRINCIPAL --- */
#contenido-invitacion {
    opacity: 0;
    transition: opacity 1.2s ease-out;
    height: 100vh;
    overflow: hidden;
}

    #contenido-invitacion.activo {
        opacity: 1;
        height: auto;
        overflow: visible;
    }

.seccion {
    padding: 90px 24px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.divisor-oriental {
    font-size: 24px;
    color: var(--oro);
    margin: 25px 0;
    font-family: 'Noto Serif TC', serif;
    user-select: none;
}

/* --- PORTADA / BIENVENIDA --- */
.portada {
    height: 100%;
    background: linear-gradient(rgba(17, 17, 17, 0.45), rgba(17, 17, 17, 0.75)), url('../img/2.png') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    /*justify-content: center;
    align-items: center;*/
    color: white;
    padding: 20px;
    text-align: center;
}

.portada_B {
    height: 70vh;
    background: linear-gradient(rgba(17, 17, 17, 0.45), rgba(17, 17, 17, 0.75)), url('../img/1.png') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 20px;
    text-align: center;
}

.portada .all-container {
    height: 100%;    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 20px;
    text-align: center;
}

    .portada p {
        font-size: 1.2rem;
        letter-spacing: 5px;
        text-transform: uppercase;
        font-weight: 300;
        
    }

    .portada h1 {
        font-size: clamp(2.2rem, 5vw, 4rem);
        color: var(--oro);
        margin: 15px 0 5px 0;
        
        text-shadow: 2px 4px 8px rgba(0,0,0,0.7);
        font-weight: 600;
        line-height: 1.2;
    }

/* --- CUENTA REGRESIVA --- */
.contador-contenedor {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    background: rgba(17, 17, 17, 0.01);
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(5px);    
}

.contador-bloque {
    text-align: center;
    min-width: 65px;
}

.contador-numero {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--oro);
    font-weight: 600;
    display: block;
}

.contador-etiqueta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

/* --- WIDGET DE MÚSICA FLOTANTE --- */
.widget-musica {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: rgba(17, 17, 17, 0.85);
    border: 1px solid var(--oro);
    padding: 10px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    transform: translateY(150px);
    transition: transform 0.5s ease-out;
}

    .widget-musica.visible {
        transform: translateY(0);
    }

.btn-reproductor {
    width: 38px;
    height: 38px;
    background: var(--rojo-imperial);
    border: 1px solid var(--oro);
    border-radius: 50%;
    color: var(--oro);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    transition: all 0.3s;
}

    .btn-reproductor:hover {
        transform: scale(1.08);
        background: var(--oro);
        color: var(--negro-profundo);
    }

.info-musica {
    color: white;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-right: 8px;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Animación de barras de sonido */
.ondas-sonido {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.onda {
    width: 2px;
    background: var(--oro);
    height: 2px;
    transition: height 0.2s;
}

.reproduciendo .onda {
    animation: ondear 1s ease-in-out infinite alternate;
}

    .reproduciendo .onda:nth-child(2) {
        animation-delay: 0.2s;
    }

    .reproduciendo .onda:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes ondear {
    0% {
        height: 2px;
    }

    100% {
        height: 14px;
    }
}

/* --- DETALLES EVENTO --- */
.tarjetas-contenedor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.tarjeta-evento {
    background: white;
    border: 1px solid rgba(214, 175, 55, 0.3);
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .tarjeta-evento:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
    }

    .tarjeta-evento::before {
        content: "🏮";
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 24px;
    }

    .tarjeta-evento h3 {
        color: var(--rojo-imperial);
        margin-bottom: 10px;
        font-size: 1.4rem;
    }

.btn-mapa {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    background-color: var(--rojo-imperial);
    color: var(--blanco-marfil);
    text-decoration: none;
    border: 1px solid var(--oro);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .btn-mapa:hover {
        background-color: var(--oro);
        color: var(--negro-profundo);
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    }

/* --- ITINERARIO --- */
.itinerario-contenedor {
    position: relative;
    max-width: 600px;
    margin: 40px auto 0;
}

.itinerario-item {
    padding: 25px 30px;
    position: relative;
    border-left: 2px solid var(--oro);
    text-align: left;
    margin-left: 25px;
    transition: background-color 0.3s;
}

    .itinerario-item:hover {
        background-color: rgba(214, 175, 55, 0.04);
        border-radius: 0 8px 8px 0;
    }

    .itinerario-item::before {
        content: "";
        position: absolute;
        left: -8px;
        top: 29px;
        width: 12px;
        height: 12px;
        background-color: var(--rojo-imperial);
        border: 2px solid var(--oro);
        border-radius: 50%;
        transition: transform 0.3s;
    }

    .itinerario-item:hover::before {
        transform: scale(1.3);
    }

    .itinerario-item h4 {
        color: var(--rojo-imperial);
        margin-bottom: 5px;
        font-size: 1.1rem;
    }

/* --- CAROUSEL DE FOTOS --- */
.carousel-wrapper {
    position: relative;
    max-width: 500px;
    margin: 30px auto 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: 2px solid var(--oro);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(17, 17, 17, 0.7);
    color: var(--oro);
    border: 1px solid var(--oro);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.3s;
    user-select: none;
}

    .carousel-btn:hover {
        background: var(--rojo-imperial);
        color: white;
    }

    .carousel-btn.prev {
        left: 15px;
    }

    .carousel-btn.next {
        right: 15px;
    }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.2);
    cursor: pointer;
    transition: background 0.3s;
}

    .dot.active {
        background: var(--rojo-imperial);
        width: 25px;
        border-radius: 5px;
    }

/* --- CÓDIGO DE VESTIMENTA --- */
.vestimenta {
    background-color: var(--negro-profundo);
    color: white;
    border-top: 3px solid var(--oro);
    border-bottom: 3px solid var(--oro);
    padding: 100px 24px;
}

    .vestimenta h2 {
        color: var(--oro);
    }

/* --- SECCIÓN REGALOS --- */
.regalos-icon {
    font-size: 45px;
    color: var(--rojo-imperial);
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

    100% {
        transform: translateY(0px);
    }
}

/* --- FOTO INTERMEDIA --- */
.foto-destacada {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-top: 2px solid var(--oro);
    border-bottom: 2px solid var(--oro);
    display: block;
}

/* --- CONFIRMACIÓN --- */
.btn-confirmar {
    display: inline-block;
    padding: 16px 45px;
    background-color: #25D366;
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 30px;
    margin-top: 25px;
    box-shadow: 0 5px 20px rgba(37,211,102,0.3);
    transition: all 0.3s ease;
}

    .btn-confirmar:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(37,211,102,0.5);
        background-color: #20ba5a;
    }

/* --- FOOTER --- */
.footer-esperamos {
    background: linear-gradient(rgba(17, 17, 17, 0.65), rgba(17, 17, 17, 0.85)), url('../img/photo-1528164344705-47542687000d.png') no-repeat center center/cover;
    color: white;
    padding: 120px 20px;
}

    .footer-esperamos h2 {
        color: var(--oro);
        font-size: clamp(2rem, 4vw, 3rem);
        margin-bottom: 10px;
    }
