.tracking-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    padding: 20px;
    background-color: #f4f7f6; 
}
.tracking-header {
    text-align: center;
    padding: 10px 0 20px 0;
    margin-bottom: 10px;
}
.tracking-header h1 {
    font-size: 1.6em;
    color: #1e88e5; 
    margin-bottom: 5px;
}
.tracking-header p {
    color: #757575;
    font-size: 0.9em;
    font-weight: 500;
}


.tracking-timeline {
    position: relative;
    padding-left: 50px; 
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: #e0e0e0; 
}


.timeline-item {
    margin-bottom: 30px;
    position: relative;
    min-height: 50px; 
}


.timeline-icon-wrapper {
    position: absolute;
    left: -30px; 
    top: 0;
    z-index: 10;
}
.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #bdbdbd; 
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    box-shadow: 0 0 0 5px #f4f7f6; 
}


.timeline-card {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); 
    border: 1px solid #e0e0e0; 
    margin-top: 5px; 
}


.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.timeline-state {
    font-size: 1.15em;
    font-weight: 600; 
    color: #333;
    margin: 0;
}

.timeline-metadata {
    text-align: right;
    font-size: 0.8em;
    color: #9e9e9e;
    line-height: 1.2;
}
.timeline-description {
    font-size: 0.9em;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.timeline-icon.LATEST {
    background-color: #1e88e5;
    box-shadow: 0 0 0 5px #bbdefb;
    transition: transform 0.6s ease-in-out infinite alternate;
    animation: pulseIcon 1s ease-in-out infinite alternate;
}

.timeline-card.LATEST {
    border: 1px solid #1e88e5; 
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.2);
}

.timeline-state.LATEST {
    color: #1e88e5; 
}


.timeline-icon.ENTREGADO {
    background-color: #43a047; 
}
.timeline-card.ENTREGADO {
    border: 1px solid #43a047;
}
.timeline-state.ENTREGADO {
    color: #43a047;
}


@keyframes pulseIcon {
    0% {
        transform: scale(1); 
    }
    100% {
        transform: scale(1.15); 
    }
}