/* Estilos para promociones en el frontend */

/* Banner de promoción */
.promotion-banner {
    background: linear-gradient(135deg, #116EFB 0%, #0E5FD8 100%);
    border-radius: 8px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(17, 110, 251, 0.2);
    overflow: hidden;
    position: relative;
}

.promotion-banner:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cpath fill='rgba(255,255,255,0.1)' d='M149,0 L149,150 L0,150 C82.3,150 149,82.3 149,0 Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: top right;
}

.promotion-banner-content {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.promotion-badge {
    display: inline-block;
    background-color: #FFD700;
    color: #333;
    font-weight: bold;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.promotion-banner h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: bold;
}

.promotion-banner p {
    margin: 0 0 15px 0;
    font-size: 16px;
    opacity: 0.9;
    max-width: 80%;
}

.promotion-expiry {
    font-size: 14px;
    opacity: 0.8;
    font-style: italic;
}

/* Estilos para addons en promoción */
.addon-item.is-on-promotion {
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.promotion-label {
    position: absolute;
    top: 10px;
    right: -35px;
    background: #FFD700;
    color: #333;
    font-size: 10px;
    font-weight: bold;
    padding: 5px 40px;
    transform: rotate(45deg);
    text-transform: uppercase;
}

.original-price {
    text-decoration: line-through;
    opacity: 0.7;
    margin-right: 5px;
    font-size: 0.9em;
}

.discount-badge {
    display: inline-block;
    background: #ff4757;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}

.free-label {
    display: inline-block;
    background: #2ed573;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Animación para resaltar addons en promoción */
@keyframes promotionPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.addon-item.is-on-promotion {
    animation: promotionPulse 2s infinite;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .promotion-banner p {
        max-width: 100%;
    }
    
    .promotion-banner:before {
        width: 100px;
        height: 100px;
    }
}
