:root {
    --gold: #c9a876;
    --gold-light: #d4b685;
    --gold-dark: #b8985f;
    --cream: #faf8f4;
    --white: #ffffff;
    --dark: #2c2c2c;
    --shadow: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-light: 0 4px 16px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 30px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInOpacity {
    from { opacity: 0; }
    to { opacity: 1; }
}
.video-background {
    position: relative;
    overflow: hidden;
}

.video-background .bg-video {
    position: absolute;
    top: -20%;
    left: -160%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
    opacity: 0.7; /* Puedes ajustar esto si quieres más contraste */
}

.video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
    z-index: 1;
}

.video-background > *:not(video) {
    position: relative;
    z-index: 2;
}

/* Secciones principales */
.section-background {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}
#ajuste1 {
    background-position: right center !important;

}

.section-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
    z-index: 1;
}

.section-background > * {
    position: relative;
    z-index: 2;
}

/* Títulos principales */
.section-background h1 {
    position: absolute;
    top: 8%; /* Ajusta según prefieras */
    left: 50%;
    transform: translate(-50%, 0);
    will-change: transform;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 2rem 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease-out;
    letter-spacing: 2px;
}

.section-background h2{
    position: absolute;
    left: 50%;
    top: 01%; /* Ajusta según prefieras para que no se solape con el h1 */
    transform: translate(-50%, 0);
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--white);
    background: rgba(201, 168, 118, 0.9);
    padding: 1rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease-out;
    letter-spacing: 1px;
    text-align: center;
}
.section-background p {
    text-align: center;
    font-family:'Courier New', Courier, monospace;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #fff;
    max-width: 90vw;
    opacity: 0;
    animation: fadeInOpacity 4s ease-out 2s forwards;
}

/* Contador */
#countdown {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 2rem;
    border-radius: 25px;
    color: var(--dark);
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
}

#countdown span {
    display: flex;
    font-size: 1.5rem !important ;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

#countdown span b {
    font-size: 1rem !important;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

/* Música */
#music-container {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

#music-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
}

#music-btn:hover {
    background: var(--gold-light);
    transform: scale(1.1);
}

#music-icon {
    font-size: 2rem;
    transition: all 0.3s ease;
}

/* Timeline */
.timeline {
    margin: 3rem auto;
    max-width: 600px;
    position: relative;
    padding: 0 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--gold), var(--gold-light));
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-time {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    font-weight: 600;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 3;
    box-shadow: var(--shadow);
    border: 4px solid var(--white);
    flex-shrink: 0;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
    margin: 0 2rem;
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

/* Sección ubicación */
.location-section {
    display: block;
    background: linear-gradient(135deg, var(--cream), rgba(201, 168, 118, 0.1));
    color: var(--dark);
    min-height: 70vh;
    padding: 3rem 0 2rem 0;
}

.location-section h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--white);
    background: rgba(201, 168, 118, 0.9);
    padding: 1.5rem 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto 2rem auto;
    letter-spacing: 1px;
    box-shadow: var(--shadow);
    width: fit-content;
    
}

.location-info {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--dark);
    background: rgba(255,255,255,0.13);
    padding: 1.2em 2em;
    border-radius: 12px;
    margin: 2em auto 0 auto;
    width: fit-content;
    max-width: 90vw;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--gold-light);
}

.map-container {
    margin: 2em auto 0 auto;
    width: 90%;
    max-width: 700px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px solid var(--white);
}
#btn-asistencia {
    transform: translateY(-2rem);
}
.section-background:last-of-type h2 {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin-bottom: 2.5rem;
}
/* Botones */
#btn-asistencia{
    margin-top: 80%;
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    font-size: 1.3rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    font-size: 1.3rem;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(201, 168, 118, 0.4);
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
}
.photos-text-iban{
    color: var(--dark);
    padding: 1.1rem 1.6rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-top: 20rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: none;
    border:rgba(201, 168, 118, 0.9) solid 3px;
    border-radius: 15px;
    box-shadow:none;
    line-height: 1.6;
}

.photos-text {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark);
    padding: 2rem 2.5rem;
    border-radius: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    line-height: 1.6;
}


/* Responsive */
@media (max-width: 900px) {
    .section-background {
        background-attachment: scroll !important;
        padding: 1rem;
    }

    #countdown {
        flex-wrap: nowrap !important; /* Fuerza una sola línea */
        gap: 0.5rem;
        padding: 1rem;
        bottom: 1rem;
    }

    #countdown span {
        min-width: 50px;
        font-size: 0.9rem;
    }

    .timeline {
        padding: 0 1rem;
    }

    .timeline::before {
        left: 40px;
        transform: none;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 100px;
    }

    .timeline-time {
        position: absolute;
        left: 0;
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
    }

    .timeline-content {
        margin: 0;
        font-size: 1rem;
    }

    .btn {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }

    .photos-text {
        padding: 1.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    #music-btn {
        width: 60px;
        height: 60px;
    }

    #music-icon {
        font-size: 2rem;
    }

    .location-info {
        font-size: 1.1rem;
        padding: 1.2rem 1.8rem;
    }
}
