/**
 * Estilos para el modal de newsletter
 */
.newsletter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.newsletter-modal.active {
    opacity: 1;
    visibility: visible;
}

.newsletter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.newsletter-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    text-align: center;
}

.newsletter-modal.active .newsletter-modal-content {
    transform: scale(1);
}

.newsletter-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

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

.newsletter-modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: #fff;
}

.newsletter-modal-success .newsletter-modal-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.newsletter-modal-error .newsletter-modal-icon {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.newsletter-modal-info .newsletter-modal-icon {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.newsletter-modal-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #333;
}

.newsletter-modal-message {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 25px;
}

.newsletter-modal-button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.newsletter-modal-button:active {
    transform: translateY(0);
}

/* Animación de spinner para el botón */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 576px) {
    .newsletter-modal-content {
        padding: 30px 20px;
        max-width: 90%;
    }
    
    .newsletter-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .newsletter-modal-title {
        font-size: 20px;
    }
    
    .newsletter-modal-message {
        font-size: 14px;
    }
}

