/* Custom styles for El Carrito */

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

/* Typography base */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* Nav scroll state */
.nav-scrolled {
    background-color: rgba(253, 251, 247, 0.97) !important;
    box-shadow: 0 1px 20px rgba(26, 18, 11, 0.08);
}

.nav-scrolled .nav-link {
    color: #1a120b !important;
}

.nav-scrolled .nav-logo {
    color: #d4522b !important;
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 {
        transition-delay: 0.1s;
    }
    
    .reveal-delay-2 {
        transition-delay: 0.2s;
    }
    
    .reveal-delay-3 {
        transition-delay: 0.3s;
    }
}

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

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

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

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

/* Print styles */
@media print {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    #navbar,
    .animate-bounce {
        display: none;
    }
}
