

/* Animation Classes */
.animation-forwards {
    animation-fill-mode: forwards ;
}

.animate-marquee {
    display: inline-block;
    width: 100%;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
}

.animate-fade {
    animation: fade 2s ease-in-out infinite;
}

.animate-slide {
    display: inline-block;
    width: 100%;
    text-align: center;
    animation: slideIn 1s ease-in-out forwards;
}

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

.animate-scale {
    animation: scale 1s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 2s linear infinite;
}

.animate-wave {
    animation: wave 2s ease-in-out infinite;
}

.animate-blink {
    animation: blink 1s step-end infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out infinite;
}

.animate-flip {
    animation: flip 2s ease-in-out infinite;
}

/* Animation Keyframes */
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes fade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideIn {
    0% { 
        opacity: 0;
        transform: translateX(100%);
    }
    100% { 
        opacity: 1;
        transform: translateX(0);
    }
}



@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes wave {
    0%, 100% { transform: translateY(0) rotate(0); }
    25% { transform: translateY(-5px) rotate(-5deg); }
    75% { transform: translateY(-5px) rotate(5deg); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes flip {
    0%, 100% { transform: perspective(400px) rotateX(0); }
    50% { transform: perspective(400px) rotateX(180deg); }
}

/* Carousel Base Styles */
.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slides {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Navigation Buttons */
.carousel .prev,
.carousel .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel .prev {
    left: 20px;
}

.carousel .next {
    right: 20px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Cart Icon Animation */
.bump {
    animation: bump 0.3s ease-out;
}

@keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Layout Styles */
.floating-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content {
    min-height: calc(100vh - 64px);
}

/* Modal Styles */
#cartModal, #checkoutModal {
    transition: opacity 0.3s ease-in-out;
}

#cartModal:not(.hidden), #checkoutModal:not(.hidden) {
    opacity: 1;
}

/* Mobile Carousel Styles */
.mobile-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.mobile-carousel .slides {
    height: 100%;
    position: relative;
}

.mobile-carousel .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    transform: translateX(100%);
    z-index: 1;
}

.mobile-carousel .slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
}

.mobile-carousel .slide.prev {
    transform: translateX(-100%);
}

.mobile-carousel .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-carousel .prev,
.mobile-carousel .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.mobile-carousel .prev {
    left: 10px;
}

.mobile-carousel .next {
    right: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .carousel {
        height: 300px;
    }
    
    .carousel .prev,
    .carousel .next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .mobile-carousel {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .mobile-carousel {
        height: 200px;
    }
}
/* Estilos base para el toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
}

/* Estilo para el toast de éxito */
.toast.success {
    background-color: #dbbb1c; /* Verde */
}

/* Estilo para el toast de error */
.toast.error {
    background-color: #dc3545; /* Rojo */
}

/* Animación de desvanecimiento */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
.promotional-banner-btn {
    color: rgb(140, 255, 0) !important; /* Texto en blanco con prioridad máxima */
    background-color: #8f0000; /* Fondo azul (puedes cambiarlo) */
    padding: 10px 20px; /* Espaciado interno */
    border-radius: 20px; /* Bordes redondeados */
    text-decoration: none; /* Sin subrayado en el texto */
    font-size: 16px; /* Tamaño de fuente */
    font-weight: bold; /* Texto en negrita */
    display: inline-block; /* Para que se comporte como un botón */
    transition: background-color 0.3s ease; /* Transición suave para el hover */
}

.promotional-banner-btn:hover {
    background-color: #d40000; /* Cambio de color al pasar el mouse */
}