.carrito-vuelo {
    position: fixed;
    z-index: 1080;
    left: 0;
    top: 0;
    margin: 0;
    pointer-events: none;
    object-fit: cover;
    border-radius: 0.85rem;
    background-color: var(--custom-white);
    border: 1px solid var(--default-border);
    will-change: transform;
}

[data-theme-mode=light] .carrito-vuelo {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

[data-theme-mode=dark] .carrito-vuelo {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.carrito-salida {
    animation: carrito-salida 0.35s ease;
}

@keyframes carrito-salida {
    0% { transform: scale(1); }
    45% { transform: scale(0.94); }
    100% { transform: scale(1); }
}

.carrito-llegada {
    position: relative;
    animation: carrito-llegada 0.55s cubic-bezier(0.22, 1.35, 0.36, 1);
}

.carrito-llegada::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    pointer-events: none;
    animation: carrito-onda 0.55s ease-out forwards;
}

@keyframes carrito-llegada {
    0% { transform: scale(1) rotate(0deg); }
    28% { transform: scale(1.34) rotate(-10deg); }
    58% { transform: scale(0.9) rotate(6deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes carrito-onda {
    0% { opacity: 0.7; transform: scale(0.6); }
    100% { opacity: 0; transform: scale(1.7); }
}

@media (prefers-reduced-motion: reduce) {
    .carrito-llegada,
    .carrito-llegada::after {
        animation: none;
    }
}
