/* Custom styles for Típicos y curiosidades Yolis */

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

/* Floating card animations */
.floating-card-1 {
    animation: float1 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float2 7s ease-in-out infinite;
}

.floating-card-3 {
    animation: float3 5.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(0.5deg); }
}

/* Scroll reveal animations - BELOW THE FOLD ONLY */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .menu-line {
    background: #44403c;
}

/* Mobile menu button animation */
.menu-line:last-child {
    width: 1.2rem;
}

#mobileMenu.open .menu-line:first-child {
    transform: rotate(45deg) translate(0.25rem, 0.25rem);
}

#mobileMenu.open .menu-line:nth-child(2) {
    opacity: 0;
}

#mobileMenu.open .menu-line:last-child {
    width: 1.25rem;
    transform: rotate(-45deg) translate(0.25rem, -0.25rem);
}

/* Image hover zoom */
.group img {
    will-change: transform;
}

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

::-webkit-scrollbar-track {
    background: #faf5ea;
}

::-webkit-scrollbar-thumb {
    background: #d4a252;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #c93d28;
    color: #ffffff;
}
