/* Custom styles for Clinica Medica Hispana */

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
    
    .scroll-reveal {
        transition: none;
    }
}

/* Smooth scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #1d6f5b #f1f5f9;
}

::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #15463b;
}

/* Selection color */
::selection {
    background-color: #1d6f5b;
    color: white;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #1d6f5b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Navbar active state */
#navbar.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
