/* Mensaje de éxito flotante */
.success-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #ACCA05 0%, #A61281 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    max-width: 500px;
    animation: slideDown 0.5s ease-out, fadeOut 0.5s ease-in 4.5s forwards;
}

.success-message::before {
    content: "✓";
    display: inline-block;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-right: 12px;
    line-height: 30px;
    font-size: 20px;
    font-weight: bold;
}

/* Mensaje de error flotante */
.error-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #b11717 0%, #f0102e 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    max-width: 500px;
    animation: slideDown 0.5s ease-out;
}

.error-message::before {
    content: "✕";
    display: inline-block;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-right: 12px;
    line-height: 30px;
    font-size: 20px;
    font-weight: bold;
}

/* Botón de cerrar */
.message-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.message-close:hover {
    opacity: 1;
}


@keyframes slideDown {
    from {
        top: -100px;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        top: -100px;
    }
}