.visualization-container {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.25rem;
}

.ip-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ip-node .viz-badge {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    position: relative;
}

.ip-node .viz-badge svg {
    width: 46px;
    height: 46px;
}

.ip-node .viz-badge::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px dashed color-mix(in srgb, #94A3B8 40%, transparent);
    pointer-events: none;
}

.ip-node .viz-label {
    font-family: monospace;
    font-size: 1rem;
}

.marker {
    position: absolute;
    top: -30px;
    background: var(--secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

.packet-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

.packet {
    width: 40px;
    height: 30px;
    background: #fff;
    color: #000;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    position: absolute;
    left: -60px;
    top: -10px;
    font-size: 0.7rem;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    opacity: 0;
}

/* .controls flotan desde el main.css compartido (flujo bajo la animación) */

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes deliverPacket {
    0% {
        left: -60px;
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    45% {
        left: 50%;
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }

    100% {
        left: 50%;
        transform: translateX(-50%) scale(0);
        opacity: 0;
    }
}
