
.modal-content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 90%;
            max-width: 500px;
        }
        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }
        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }
        .carousel {
            position: relative;
            overflow: hidden;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 40px;
        }
        .carousel-inner {
            display: flex;
            transition: transform 0.5s ease;
        }
        .carousel-item {
            flex: 0 0 25%;
            max-width: 25%;
            padding: 0 15px;
            opacity: 0.7;
            transition: all 0.3s ease;
        }
        .carousel-item:hover {
            opacity: 1;
            transform: scale(1.05);
        }
        .carousel-control {
            position: absolute;
            top: 50%;

            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.8); /* Cambiado a negro */
            color: white;
            width: 40px;
            height: 40px;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            z-index: 10;
        }
        
        .carousel-control:hover {
            background-color: rgba(0, 0, 0, 1); /* Hover más oscuro */
        }
        .carousel-control-prev {
            left: 0;
        }
        .carousel-control-next {
            right: 0;
        }
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* Flash Messages Styles */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.flash-message {
    animation: slideInRight 0.3s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flash-message.success {
    background-color: #10b981;
    border-left: 4px solid #059669;
}

.flash-message.error {
    background-color: #ef4444;
    border-left: 4px solid #dc2626;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading state styles */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form validation styles */
.form-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Carousel Loading Styles */
.carousel-loading {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Error message styles */
.error-message {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* Smooth transitions for form states */
input, textarea {
    transition: all 0.2s ease-in-out;
}

/* Hover effects for interactive elements */
.carousel-item img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Responsive improvements */
@media (max-width: 640px) {
    .flash-messages {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .carousel {
        padding: 0 20px;
    }
    
    .carousel-control {
        width: 35px;
        height: 35px;
    }
}

/* Custom Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slide-in-left 1s ease-out forwards;
}

.animate-slide-in-right {
    animation: slide-in-right 1s ease-out forwards;
}

.animate-bounce-in {
    animation: bounce-in 1.2s ease-out forwards;
}

/* Staggered animations for categories */
.animate-fade-in-up[data-delay="100"] { animation-delay: 0.1s; }
.animate-fade-in-up[data-delay="200"] { animation-delay: 0.2s; }
.animate-fade-in-up[data-delay="300"] { animation-delay: 0.3s; }
.animate-fade-in-up[data-delay="400"] { animation-delay: 0.4s; }
.animate-fade-in-up[data-delay="500"] { animation-delay: 0.5s; }
.animate-fade-in-up[data-delay="600"] { animation-delay: 0.6s; }
.animate-fade-in-up[data-delay="700"] { animation-delay: 0.7s; }
.animate-fade-in-up[data-delay="800"] { animation-delay: 0.8s; }

/* Enhanced hover effects */
.hover\:shadow-3xl:hover {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}

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

/* Enhanced button animations */
.btn-animate {
    position: relative;
    overflow: hidden;
}

.btn-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-animate:hover::before {
    left: 100%;
}

/* Parallax effect for banner */
.bg-gradient {
    background-attachment: fixed;
}

/* Enhanced card animations */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Loading animation for images */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
   

/* Scroll Animation Styles */
.scroll-animate {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.scroll-animate[data-animation="slide-in-left"] {
    transform: translateX(-50px);
}

.scroll-animate[data-animation="slide-in-right"] {
    transform: translateX(50px);
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced scroll animations */
.scroll-animate[data-animation="slide-in-left"].animate {
    transform: translateX(0);
}

.scroll-animate[data-animation="slide-in-right"].animate {
    transform: translateX(0);
}

/* Smooth entrance effect */
.scroll-animate.animate {
    animation: none;
    opacity: 1;
}
   
