/* Preloader Styles */
#preloader {
    position: fixed;
    inset: 0;
    background-color: #FDF9F6;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.loader span {
    display: block;
    width: 14px;
    height: 14px;
    background-color: #9B1C1C;
    border-radius: 50%;
    opacity: 0.8;
    animation: bounce 0.6s infinite alternate;
}

.loader span:nth-child(2) {
    animation-delay: 0.2s;
    background-color: #4B0D0D;
}

.loader span:nth-child(3) {
    animation-delay: 0.4s;
    background-color: #C4A484;
}

@keyframes bounce {
    to {
        transform: translateY(-12px);
        opacity: 1;
    }
}

/* Botón volver arriba */
#backToTop {
    z-index: 50;
}

/* Bloquea scroll cuando está el preloader */
body.loading {
    overflow: hidden;
}

/* Navbar cuando hace scroll */
.navbar-scrolled {
    background-color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

html, body {
    overflow-x: hidden;
}

.videohome {
    max-width: 100%;
    height: auto;
    display: block;
}
