/* Custom Styles for La Casa del Valle */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #d4a373;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c5944d;
}

/* Animation for elements on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects for links */
a {
    transition: all 0.3s ease;
}

/* Custom focus styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Image lazy loading placeholder */
img {
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img.loaded {
    animation: none;
    background: none;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Button hover effects */
button,
a {
    position: relative;
    overflow: hidden;
}

button::after,
a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #d4a373;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

button:hover::after,
a:hover::after {
    width: 100%;
}

/* Remove underline from buttons */
button::after,
a[href="#contacto"]::after,
a[href="#alojamiento"]::after {
    display: none;
}
