/**
 * Estilos para el botón de promociones especiales y el modal
 */

/* Contenedor del botón */
.special-promo-button-container {
    margin: 20px 0;
    text-align: left;
}

/* Botón de promoción */
.special-promo-button {
    background-color: #978667 !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
}

.special-promo-button:hover {
    background-color: #7a6c54;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.special-promo-button i {
    margin-right: 8px;
    font-size: 20px;
}

/* Modal de promoción */
.promotion-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

/* Esta clase es la que hace visible el modal cuando se añade con JavaScript */
.promotion-modal.show {
    display: block;
}

.promotion-modal-content {
    position: relative;
    background-color: #232323;
    margin: 10% auto;
    padding: 15px 10px;
    top:-15%;
    width: 80%;
    max-width: 700px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-promotion-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close-promotion-modal:hover {
    color: #333;
}

.promotion-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #978667;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.promotion-modal-image {
    margin-bottom: 20px;
    text-align: center;
}

.promotion-modal-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.promotion-modal-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #e5e5e5;
}

.promotion-modal-code {    
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px dotted #ffffff99;
}

.promotion-modal-code strong {
    font-weight: bold;
    margin-right: 10px;
    color: #e5e5e5;
}

#promo-code {
    font-family: monospace;
    font-size: 18px;
    background-color: #eee;
    padding: 8px 12px;
    border-radius: 4px;
    margin-right: 10px;
    letter-spacing: 1px;
}

.copy-code-button {
    background-color: #978667;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.copy-code-button:hover {
    background-color: #7a6c54;
}

.copy-code-button i {
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .promotion-modal-content {
        width: 90%;
        top:-5%;
        margin: 20% auto;
        padding: 20px;
    }
    
    .promotion-modal-title {
        font-size: 20px;
    }
    
    #promo-code {
        font-size: 16px;
    }
}
