/* Custom CSS for Chocolatería Artesanal */

/* Additional animations and effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Image hover effects */
.image-hover-zoom {
    transition: transform 0.3s ease;
}

.image-hover-zoom:hover {
    transform: scale(1.05);
}

/* Image loading shimmer effect */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Parallax effects for hero images */
.parallax-image {
    transform: translateZ(0);
    will-change: transform;
}

/* Image overlay gradients */
.gradient-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.7) 100%
    );
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d97706;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b45309;
}

/* Loading animation for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Parallax effect */
.parallax {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Custom chocolate-themed cursor */
.chocolate-cursor {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23d97706"><circle cx="12" cy="12" r="10"/></svg>'), auto;
}

/* Glow effect for premium products */
.premium-glow {
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.3);
    transition: box-shadow 0.3s ease;
}

.premium-glow:hover {
    box-shadow: 0 0 30px rgba(217, 119, 6, 0.5);
}

/* Image lazy loading blur effect */
.lazy-blur {
    filter: blur(5px);
    transition: filter 0.3s;
}

.lazy-blur.loaded {
    filter: blur(0);
}

/* Responsive image containers */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

/* Hero image overlay text shadow */
.hero-text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-text {
        font-size: 2.5rem;
    }
    
    .card-hover {
        transform: none;
    }
    
    .card-hover:hover {
        transform: none;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    .image-hover-zoom:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
    
    .hero-background,
    .background-image {
        display: none !important;
    }
}
