/* Orbi, el robot de Orbital (static/js/orbi.js). Lo usan el login y las paginas de recuperar contrasena. */
/* ===================== Orbi (static/js/orbi.js) ===================== */
/* Dos capas alineadas: cuerpo/cabeza/brazos DETRAS de la tarjeta y manos DELANTE (se agarran del borde) */
.orbi-capa { position: absolute; left: 50%; width: 240px; transform: translateX(-50%); bottom: calc(100% - 38px); }
.orbi-capa svg { width: 100%; height: auto; display: block; overflow: visible; }
.orbi-atras { z-index: 1; cursor: pointer; }
.orbi-frente { z-index: 3; pointer-events: none; }
.orbi-brazo { fill: none; stroke: #C9D6F2; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.orbi-codo { fill: #2F5BEA; }
.orbi-luz { transform-box: fill-box; transform-origin: center; animation: pulso 2.4s ease-in-out infinite; }
.orbi-pecho { animation: latido 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.orbi-boca { transition: d .25s ease; }
.orbi-ojos > g { opacity: 0; transition: opacity .12s; }
.cara-normal .c-normal, .cara-feliz .c-feliz, .cara-triste .c-triste, .cara-cerrados .c-cerrados,
.cara-wow .c-wow, .cara-corazones .c-corazones, .cara-carga .c-carga { opacity: 1; }
.c-normal rect { transform-box: fill-box; transform-origin: center; transition: transform .1s; }
.parpadea .c-normal rect { transform: scaleY(.1); }
.c-corazones path { transform-box: fill-box; transform-origin: center; animation: latir .5s ease-in-out infinite alternate; }
.c-carga .punto { animation: rebote 0.9s ease-in-out infinite; }
.c-carga .p1 { animation-delay: .15s; } .c-carga .p2 { animation-delay: .3s; }
.orbi-pulgar-arriba { opacity: 0; transition: opacity .15s; }
.orbi-mano.pulgar .orbi-pulgar-arriba { opacity: 1; }
.orbi-mano.pulgar .orbi-pulgar, .orbi-mano.pulgar .orbi-dedos { opacity: 0; }
.orbi-nudillos { opacity: 0; transition: opacity .15s; }
.orbi-mano.pulgar .orbi-nudillos { opacity: 1; }
.orbi-burbuja { opacity: 0; transform: translateY(6px) scale(.9); transform-box: fill-box; transform-origin: 20% 100%;
                transition: opacity .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.habla .orbi-burbuja { opacity: 1; transform: none; }
[data-pose="piensa"] .orbi-luz { animation-duration: .35s; }
@keyframes latido { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.25); opacity: 1; } }
@keyframes latir { from { transform: scale(.9); } to { transform: scale(1.15); } }
@keyframes rebote { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes pulso { 0%,100% { opacity: .65; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .orbi-capa * { animation: none !important; transition: none !important; } }
