/* Custom styles for Clínica Médica San Buenaventura */

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0d9488 0%, #14b8a6 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0f766e 0%, #0d9488 100%);
}

/* Animation keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* Animation classes */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

.pulse-ring {
    animation: pulse-ring 2s ease-in-out infinite;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav,
    .scroll-reveal,
    button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .gradient-hero,
    .gradient-section {
        background: #fff !important;
        color: #000 !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .card-hover {
        border: 2px solid currentColor;
    }
}

/* Dark mode support (optional enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        /* These would be overridden by Tailwind's dark mode classes if implemented */
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .gradient-hero h1 {
        font-size: 2rem;
    }
    
    .gradient-hero p {
        font-size: 1rem;
    }
}

/* Landscape mode optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .gradient-hero {
        min-height: auto;
        padding: 4rem 0;
    }
}
