/* Animaciones para hitos conseguidos */
.milestone-achieved {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(76, 175, 80, 0.95);
    color: white;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 1.5em;
    font-weight: bold;
    z-index: 1000;
    animation: milestoneAnimation 3s ease-in-out;
    display: none;
}

.objective-achieved {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4caf50, #66bb6a, #81c784, #a5d6a7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: objectiveAnimation 2s ease-in-out;
    display: none;
}

.objective-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
}

.objective-message {
    color: white;
    font-size: 4em;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
    margin-bottom: 40px;
}

.objective-details {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 30px;
}

.objective-current-value {
    color: white;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.objective-status {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    margin-top: 10px;
}

/* Animaciones */
@keyframes milestoneAnimation {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

@keyframes objectiveAnimation {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
