/**
 * Banner Promocional Animado - Estilo McDonald's
 * Checkout WooCommerce
 */

.moraleja-checkout-banner-wrapper {
    margin: 20px 0 30px;
    padding: 0;
    width: 100%;
}

.moraleja-checkout-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.moraleja-checkout-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.banner-slider {
    position: relative;
    display: flex;
    gap: 20px;
    overflow: hidden;
    min-height: 180px;
}

.banner-slide {
    min-width: 100%;
    flex-shrink: 0;
    animation: slideIn 0.6s ease-out;
    opacity: 0;
    position: absolute;
    width: 100%;
}

.banner-slide.active {
    opacity: 1;
    position: relative;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-content {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.slide-image {
    position: relative;
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slide-content:hover .slide-image img {
    transform: scale(1.1);
}

.discount-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff1744;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(255, 23, 68, 0.4);
    animation: bounce 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.slide-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.slide-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.slide-price {
    font-size: 28px;
    font-weight: 800;
    color: #ff6b35;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slide-price del {
    font-size: 18px;
    color: #999;
    font-weight: 400;
}

.slide-price ins {
    text-decoration: none;
    color: #ff6b35;
}

.slide-button {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 200px;
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.slide-button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.4);
    color: #fff;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.banner-dot.active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .moraleja-checkout-banner {
        padding: 15px;
        border-radius: 12px;
    }

    .slide-content {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .slide-image {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .slide-title {
        font-size: 18px;
    }

    .slide-price {
        font-size: 24px;
    }

    .slide-button {
        max-width: 100%;
    }

    .banner-slider {
        min-height: 280px;
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.moraleja-checkout-banner-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

