/* promo_modal_styles.css - Estilos para modal de códigos promocionales */

.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15000;
    animation: fadeIn 0.3s ease;
}

.payment-modal-content {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 25px;
    padding: 40px;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: white;
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.payment-modal-content h2 {
    color: #ff6b9d;
    margin-bottom: 20px;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-modal-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Botón de cerrar */
.payment-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.payment-modal .close-btn:hover {
    background: rgba(255, 107, 157, 0.2);
    transform: rotate(90deg);
}

/* Formulario de código promocional */
.promo-form {
    margin: 30px 0;
}

.promo-input-group {
    position: relative;
    margin-bottom: 25px;
}

.promo-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.promo-input:focus {
    outline: none;
    border-color: #ff6b9d;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.promo-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-transform: none;
    letter-spacing: normal;
}

/* Botón aplicar código */
.apply-promo-btn {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    border: none;
    color: white;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px 0;
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.3);
}

.apply-promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 157, 0.4);
}

.apply-promo-btn:active {
    transform: translateY(-1px);
}

.apply-promo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Estados de validación */
.promo-success {
    background: rgba(46, 204, 113, 0.2);
    border: 2px solid #2ecc71;
    padding: 15px;
    border-radius: 15px;
    margin: 20px 0;
    color: #2ecc71;
    font-weight: 600;
}

.promo-error {
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid #e74c3c;
    padding: 15px;
    border-radius: 15px;
    margin: 20px 0;
    color: #e74c3c;
    font-weight: 600;
}

/* Sección de descuento aplicado */
.discount-summary {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 25px 0;
}

.discount-summary h3 {
    color: #2ecc71;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.discount-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.9);
}

.discount-amount {
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Lista de códigos disponibles */
.available-codes {
    margin-top: 30px;
    text-align: left;
}

.available-codes h3 {
    color: #ff6b9d;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.4rem;
}

.code-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.code-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.code-item:hover {
    background: rgba(255, 107, 157, 0.1);
    border-color: rgba(255, 107, 157, 0.3);
    transform: translateY(-2px);
}

.code-name {
    color: #ff6b9d;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.code-discount {
    color: #2ecc71;
    font-weight: bold;
    font-size: 1rem;
}

/* Botones de acción */
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Animación de carga */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ff6b9d;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .payment-modal-content {
        padding: 25px;
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .payment-modal-content h2 {
        font-size: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .code-list {
        grid-template-columns: 1fr;
    }
    
    .discount-details {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .payment-modal-content {
        padding: 20px;
    }
    
    .promo-input {
        font-size: 1rem;
    }
    
    .apply-promo-btn {
        width: 100%;
        padding: 15px;
    }
}