/* ============ Juan ============ */
/* Fondo crema de la app, tarjetas blancas, burbuja propia en magenta. */

/* --- flor --- */
.juflor { --t: 40px; --s: 1; --v: 0; position: relative; display: inline-grid; place-items: center; width: var(--t); height: var(--t); flex: none; }
/* Rendimiento en iPhone: nada de filtros que cambien en cada fotograma; la sombra solo en la flor grande (quieta). */
.juflor { transform: scale(var(--s)); }
.juflor svg { width: 100%; height: 100%; overflow: visible; }
.juflor.grande svg { filter: drop-shadow(0 6px 12px rgba(120, 70, 120, .16)); }
/* En reposo la flor respira sola con CSS (sin JavaScript), sobre el <svg> entero: así la mueve la tarjeta gráfica
   y no el procesador (animar un grupo DENTRO del dibujo obligaba a recalcular la página 60 veces por segundo).
   La grande deja de respirar cuando ya está escondida. */
.juflor.viva svg { animation: juRespiraG 4.4s ease-in-out infinite; }
.con-chat .ju-hero .juflor svg, .con-voz .juflor svg { animation: none; } /* en llamada la mueve la voz, no el reloj */
@keyframes juRespiraG { 50% { transform: scale(1.016); } }
.juflor-halo { position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 120, 200, .28), rgba(120, 180, 255, .18) 45%, transparent 70%); opacity: calc(var(--v) * 1.1); transform: scale(calc(.85 + var(--v) * .35)); pointer-events: none; }
.juflor.gira svg { animation: juGira 1.6s linear infinite; }
@keyframes juGira { to { transform: rotate(360deg); } }

/* --- botón flotante en Inicio --- */
.ju-pill { position: absolute; right: 16px; bottom: calc(86px + var(--inf)); z-index: 39; display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 9px; border-radius: 99px; background: #fff; box-shadow: 0 10px 28px rgba(120, 70, 20, .18), 0 0 0 1px rgba(27, 42, 78, .05); font-weight: 750; font-size: 16px; color: var(--navy);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .35s var(--curva), transform .45s var(--rebote); }
.ju-pill.visible { opacity: 1; transform: none; pointer-events: auto; }
.ju-pill:active { transform: scale(.94); }
.ju-pill.visible .juflor svg { animation: juRespira 4.4s ease-in-out infinite; } /* escondido (fuera de Inicio) no se anima: seguía corriendo en toda la app */
@keyframes juRespira { 50% { transform: scale(1.06); } }

/* --- pantalla --- */
.pantalla.ju-pant { overflow: hidden; padding-top: 0; background: var(--crema); }
.ju { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: var(--sup); background:
  radial-gradient(circle at 12% 8%, rgba(255, 61, 154, .07), transparent 32%), radial-gradient(circle at 92% 30%, rgba(46, 220, 240, .08), transparent 30%), radial-gradient(circle at 50% 100%, rgba(255, 174, 69, .07), transparent 40%), var(--crema); }
.ju-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px 8px; position: relative; z-index: 5; }
.ju-titulo { display: flex; align-items: center; gap: 9px; opacity: 0; transform: translateY(-6px); transition: opacity .4s var(--curva), transform .4s var(--curva); }
.ju-titulo b { display: block; font-size: 18px; font-weight: 800; line-height: 1.1; }
.ju-linea { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--texto2); }
.ju-linea i { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); }
.ju.con-chat .ju-titulo, .con-chat .ju-titulo { opacity: 1; transform: none; }

.ju-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 0 8px; }
.ju-scroll::-webkit-scrollbar { display: none; }
.ju-aire { height: 10px; }

/* hero (antes de la primera pregunta) */
.ju-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 20px 10px; transition: opacity .35s, transform .45s var(--curva), max-height .5s var(--curva), padding .5s; max-height: 900px; }
.ju-hero .juflor { margin: 8px 0 18px; animation: juBrota .9s var(--rebote) both; }
@keyframes juBrota { from { transform: scale(.4) rotate(-40deg); opacity: 0; } }
.ju-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; animation: juSube .6s var(--curva) .15s both; }
.ju-hero p { font-size: 16.5px; color: var(--texto2); margin-top: 6px; max-width: 300px; animation: juSube .6s var(--curva) .25s both; }
@keyframes juSube { from { opacity: 0; transform: translateY(14px); } }
.ju-sug { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 22px; }
.ju-sug-b { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 18px; background: #fff; box-shadow: var(--sombra); text-align: left; font-size: 14.5px; font-weight: 650; line-height: 1.2; animation: juSube .55s var(--rebote) calc(.35s + var(--i) * .07s) both; transition: transform .2s; }
.ju-sug-b:active { transform: scale(.96); }
.ju-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.ju-ic .ico { width: 20px; height: 20px; }
.ju-ic.magenta { background: var(--magenta); } .ju-ic.naranja { background: var(--naranja); } .ju-ic.teal { background: var(--teal); } .ju-ic.morado { background: #8A55E0; }
.con-chat .ju-hero { opacity: 0; transform: translateY(-30px) scale(.96); max-height: 0; padding: 0 20px; overflow: hidden; pointer-events: none; }

/* --- mensajes --- */
.ju-chat { display: flex; flex-direction: column; gap: 10px; padding: 6px 16px 0; }
.ju-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.ju-msg.yo { justify-content: flex-end; }
.ju-burbuja { padding: 11px 15px; border-radius: 20px; font-size: 16px; line-height: 1.42; max-width: 82%; word-wrap: break-word; }
.ju-msg.yo .ju-burbuja { background: var(--magenta); color: #fff; border-bottom-right-radius: 7px; box-shadow: 0 6px 16px rgba(214, 36, 110, .22); }
.ju-msg.el .ju-burbuja { background: #fff; color: var(--navy); border-bottom-left-radius: 7px; box-shadow: var(--sombra); }
.ju-msg.entra { animation: juMsg .45s var(--rebote) both; }
.ju-msg.yo.entra { transform-origin: bottom right; } .ju-msg.el.entra { transform-origin: bottom left; }
@keyframes juMsg { from { opacity: 0; transform: translateY(12px) scale(.92); } }
.ju-puntos { display: flex; gap: 5px; padding: 15px 16px; }
.ju-puntos i { width: 7px; height: 7px; border-radius: 50%; background: var(--texto3); animation: juPunto 1.1s ease-in-out infinite; }
.ju-puntos i:nth-child(2) { animation-delay: .15s; } .ju-puntos i:nth-child(3) { animation-delay: .3s; }
@keyframes juPunto { 30% { transform: translateY(-5px); opacity: .5; } }

/* --- tarjetas --- */
.ju-accion { margin: 0 -16px; }
.ju-accion.entra .ju-card { animation: juCard .6s var(--rebote) both; }
.ju-accion.entra .ju-card:nth-child(2) { animation-delay: .08s; } .ju-accion.entra .ju-card:nth-child(3) { animation-delay: .16s; } .ju-accion.entra .ju-card:nth-child(n+4) { animation-delay: .24s; }
@keyframes juCard { from { opacity: 0; transform: translateX(40px) scale(.94); } }
.ju-carrusel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 10px 50px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ju-carrusel::-webkit-scrollbar { display: none; }
.ju-card { flex: none; width: 236px; scroll-snap-align: start; scroll-margin-left: 50px; background: #fff; border-radius: 22px; box-shadow: var(--sombra); overflow: hidden; display: flex; flex-direction: column; }
.ju-card.ancha { width: auto; margin: 2px 16px 4px 50px; }
.ju-card-img { position: relative; height: 128px; }
.ju-card-img.alta { height: 150px; } .ju-card-img.corta { height: 108px; }
.ju-card-img .img { position: absolute; inset: 0; }
.ju-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ju-tag { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 99px; background: var(--magenta); color: #fff; font-size: 11.5px; font-weight: 700; }
.ju-tag .ico { width: 13px; height: 13px; } .ju-tag.rojo { background: var(--rojo); }
.ju-card-cuerpo { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ju-card-tit { display: flex; align-items: center; gap: 8px; } .ju-card-tit b { font-size: 17px; font-weight: 800; line-height: 1.15; }
.ju-card-tit2 { font-size: 16.5px; font-weight: 800; line-height: 1.2; }
.ju-card-tit2.dos { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ju-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13px; color: var(--texto2); }
.ju-meta .ico { width: 14px; height: 14px; } .ju-meta .ico.amarillo { color: var(--amarillo); fill: var(--amarillo); }
.ju-meta b { color: var(--navy); }
.verde { color: var(--verde); } .rojo { color: var(--rojo); }
.ju-precio { align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: var(--teal-s); color: #0E7C7C; font-weight: 750; font-size: 13.5px; }
.ju-botones { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.ju-botones .boton { flex: 1; min-width: 0; }
.boton.chico { height: 42px; font-size: 14px; padding: 0 12px; gap: 6px; }
.ju-fila { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--navy); }
.ju-fila .ico { width: 17px; height: 17px; color: var(--texto3); flex: none; margin-top: 1px; }
.ju-desc { font-size: 14px; color: var(--texto2); line-height: 1.45; }
.ju-promo { display: flex; gap: 6px; align-items: center; padding: 7px 10px; border-radius: 12px; background: var(--amarillo-s); color: #8A5A00; font-size: 13px; font-weight: 650; }
.ju-promo .ico { width: 15px; height: 15px; }
.ju-menu { background: var(--crema); border-radius: 14px; padding: 6px 12px 10px; margin-top: 2px; }
.ju-menu p { font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--magenta); margin-top: 8px; }
.ju-menu div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; border-bottom: 1px dashed rgba(27, 42, 78, .1); }
.ju-menu div:last-child { border: 0; }
.ju-ok { display: inline-flex; align-items: center; gap: 5px; color: var(--verde); font-weight: 700; font-size: 14px; }
.ju-ok .ico { width: 17px; height: 17px; }
.ju-cab-card { display: flex; gap: 12px; align-items: center; }
.ju-cab-card > .ico { width: 46px; height: 46px; padding: 11px; border-radius: 15px; background: var(--teal-s); color: var(--teal); flex: none; }
.ju-cab-card.mag > .ico { background: var(--magenta-s); color: var(--magenta); }
.ju-cab-card b { display: block; font-size: 16.5px; font-weight: 800; } .ju-cab-card span { font-size: 13px; color: var(--texto2); }

/* perfil */
.ju-perfil-cab { display: flex; gap: 12px; align-items: center; position: relative; }
.ju-avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; background: linear-gradient(135deg, var(--magenta), var(--naranja)); color: #fff; font-weight: 800; font-size: 22px; }
.ju-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ju-perfil-cab > div b { font-size: 17px; font-weight: 800; }
.ju-ofs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.ju-of { padding: 3px 10px; border-radius: 99px; background: var(--c); color: #fff; font-size: 12.5px; font-weight: 700; animation: juPop .45s var(--rebote) both; }
.ju-of.vacio { background: rgba(27, 42, 78, .08); color: var(--texto3); }
@keyframes juPop { from { transform: scale(.4); opacity: 0; } }
.ju-guardado { position: absolute; right: 0; top: 0; display: inline-flex; gap: 3px; align-items: center; font-size: 12px; font-weight: 750; color: var(--verde); }
.ju-guardado .ico { width: 14px; height: 14px; }
.ju-prog { margin-top: 6px; } .ju-prog span { font-size: 13px; font-weight: 700; }
.ju-prog i { display: block; height: 8px; border-radius: 99px; background: rgba(27, 42, 78, .07); margin-top: 6px; overflow: hidden; }
.ju-prog b { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--magenta), var(--naranja), var(--amarillo)); transition: width .8s var(--curva); animation: juLlena .9s var(--curva) both; }
@keyframes juLlena { from { width: 0; } }

/* verificación dentro del chat */
.ju-verif { background: linear-gradient(180deg, #F2FBFA, #fff 60%); box-shadow: 0 10px 30px rgba(20, 166, 166, .16), 0 0 0 1px rgba(20, 166, 166, .14); }
.ju-ver .boton { margin-top: 6px; }
.ju-ver-t { font-weight: 750; font-size: 15.5px; }
.ju-docs { display: grid; gap: 8px; }
.ju-doc { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--crema); font-weight: 650; font-size: 14.5px; transition: transform .2s; }
.ju-doc .ico { width: 20px; height: 20px; color: var(--teal); } .ju-doc:active { transform: scale(.97); }
.ju-cam { position: relative; border-radius: 16px; overflow: hidden; background: #1B2A4E; aspect-ratio: 4 / 3; }
.ju-cam video, .ju-captura { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ju-cam video.espejo { transform: scaleX(-1); }
.ju-marco { position: absolute; border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 999px rgba(27, 42, 78, .35); transition: border-color .3s; }
.ju-cam.doc .ju-marco { inset: 16% 10%; border-radius: 12px; }
.ju-cam.cara .ju-marco { left: 50%; top: 50%; width: 46%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%); border-radius: 50%; }
.ju-cam.ok .ju-marco { border-color: var(--verde); }
.ju-instr { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: #fff; font-weight: 750; font-size: 16px; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.ju-sincam { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; color: #fff; font-size: 14px; text-align: center; padding: 20px; }
.ju-sincam .ico { width: 30px; height: 30px; }
.ju-cam-bot { display: flex; gap: 8px; margin-top: 8px; }
.ju-cam-bot .boton.suave { flex: none; width: 46px; }
.ju-procesa { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; font-size: 15px; }

/* antecedentes */
.ju-gran-precio { font-size: 40px; font-weight: 850; color: var(--magenta); letter-spacing: -.02em; line-height: 1; margin: 4px 0 2px; }
.ju-autorizo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 14px; background: var(--crema); font-size: 13.5px; font-weight: 600; text-align: left; }
.ju-autorizo > span:first-child { display: flex; gap: 8px; align-items: center; } .ju-autorizo .ico { width: 18px; height: 18px; color: var(--teal); flex: none; }
.ju-link { color: var(--navy); font-weight: 650; font-size: 14px; text-decoration: underline; padding: 6px; }
.ju-link:disabled, .boton:disabled { opacity: .45; }

/* boletos */
.ju-tipo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--borde); }
.ju-tipo b { display: block; font-size: 15px; } .ju-tipo span { display: block; font-size: 12.5px; color: var(--texto2); } .ju-tipo em { font-style: normal; font-weight: 800; color: var(--magenta); }
.ju-paso { display: flex; align-items: center; gap: 10px; }
.ju-paso button { width: 34px; height: 34px; border-radius: 50%; background: var(--magenta-s); color: var(--magenta); display: grid; place-items: center; }
.ju-paso button:last-child { background: var(--magenta); color: #fff; }
.ju-paso .ico { width: 16px; height: 16px; } .ju-paso b { min-width: 14px; text-align: center; font-size: 16px; }
.ju-total { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 4px; font-weight: 800; font-size: 17px; }

/* éxito */
.ju-exito .ju-card-cuerpo { align-items: center; text-align: center; padding: 18px 16px; }
.ju-exito-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--verde); color: #fff; box-shadow: 0 8px 20px rgba(43, 163, 107, .3); animation: juPop .55s var(--rebote) both; }
.ju-exito-ic .ico { width: 28px; height: 28px; stroke-width: 2.6; }
.ju-exito b { font-size: 18px; font-weight: 800; margin-top: 4px; }
.ju-exito-sub { font-size: 13.5px; color: var(--texto2); display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ju-exito-sub span { display: inline-flex; gap: 3px; align-items: center; color: var(--verde); font-weight: 650; } .ju-exito-sub .ico { width: 14px; height: 14px; }
.ju-exito .boton { margin-top: 6px; }
.ju-msg .juflor.avatar { margin-bottom: 2px; }

/* --- franja de voz (aparece al usar el micrófono) --- */
.ju-voz { display: flex; align-items: center; gap: 12px; margin: 0 16px 8px; padding: 10px 14px; border-radius: 22px; background: rgba(255, 255, 255, .96); box-shadow: var(--sombra); animation: juSube .4s var(--rebote) both; }
.ju-voz[hidden] { display: none; }
.ju-voz-txt { min-width: 0; } .ju-voz-txt b { display: block; font-size: 14px; color: var(--texto2); font-weight: 650; }
.ju-voz-txt span { display: block; font-size: 16px; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }
.ju-chip { align-self: center; margin: 0 0 6px; padding: 4px 11px; border-radius: 99px; background: var(--amarillo-s); color: #8A5A00; font-size: 12px; font-weight: 700; }
.ju-chip[hidden] { display: none; }

/* --- barra de abajo --- */
.ju-barra { display: flex; align-items: center; gap: 10px; padding: 8px 14px calc(12px + var(--inf)); }
.ju-campo { flex: 1; display: flex; align-items: center; height: 54px; padding: 0 6px 0 18px; border-radius: 27px; background: #fff; box-shadow: var(--sombra); transition: box-shadow .25s; }
.ju-campo:focus-within { box-shadow: var(--sombra), 0 0 0 2px rgba(214, 36, 110, .25); }
.ju-campo input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; color: var(--navy); }
.ju-campo input::placeholder { color: var(--texto3); }
.ju-enviar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--magenta); transition: transform .2s, background .2s; }
.ju-enviar .ico { width: 21px; height: 21px; } .ju-enviar:active { transform: scale(.9); background: var(--magenta-s); }

/* micrófono: SOLO se anima con la voz de la persona (--u = volumen 0..1) */
.ju-mic { --u: 0; position: relative; width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.ju-mic-c { position: relative; z-index: 2; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--magenta), var(--naranja)); box-shadow: 0 8px 20px rgba(214, 36, 110, .3); transform: scale(calc(1 + var(--u) * .2)); transition: box-shadow .3s; }
.ju-mic-c .ico { width: 26px; height: 26px; }
.ju-mic-h { position: absolute; inset: 0; border-radius: 50%; background: rgba(214, 36, 110, .2); transform: scale(calc(1 + var(--u) * .55)); opacity: calc(var(--u) * 1.4); z-index: 1; pointer-events: none; }
.ju-mic-h.h2 { background: rgba(242, 140, 40, .16); transform: scale(calc(1 + var(--u) * 1)); opacity: calc(var(--u) * 1); }
.ju-mic.en-sesion .ju-mic-c { box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(214, 36, 110, .35), 0 8px 20px rgba(214, 36, 110, .3); }
.ju-mic:active .ju-mic-c { transform: scale(.92); }
.con-voz .ju-campo { opacity: .55; }

@media (prefers-reduced-motion: reduce) { .juflor svg, .ju-mic-c, .ju-mic-h { transform: none !important; } }
.ju-carrusel .ju-card { width: 252px; }
.ju-carrusel .boton.chico { white-space: nowrap; font-size: 13.5px; padding: 0 10px; }
.ju-carrusel .boton.chico .ico { width: 16px; height: 16px; }
/* aviso del sistema dentro del chat (llamada cortada, permiso, etc.) */
.ju-nota { align-self: center; max-width: 88%; text-align: center; font-size: 13.5px; line-height: 1.4; color: var(--texto2); background: rgba(255, 255, 255, .7); border: 1px dashed rgba(27, 42, 78, .15); border-radius: 14px; padding: 8px 12px; }
.ju-nota.entra { animation: juSube .4s var(--curva) both; }
/* conectando: botón atenuado y quieto (la única animación del micrófono es la de tu voz) */
.ju-mic.conectando .ju-mic-c { opacity: .6; filter: saturate(.6); }

/* ============ Juan en persona (js/juan-figura.js) ============
   Dos formas: .jf-cara (círculo pequeño, solo la cara) y .jf-fig (medio cuerpo saliendo de un círculo de color).
   El cambio de ropa (.jf-cambia): se agacha detrás del círculo, el círculo late, un aro de luz, y sale con lo nuevo. */
.juflor.jf-cara, .juflor.jf-fig { --e: 1.3; }
.juflor.jf-cara { border-radius: 50%; background: linear-gradient(140deg, #FFC861, #FF7A45 45%, #F0388F); box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(200, 60, 110, .26); }
.jf-cara .jf-recorte { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.jf-cara .jf-img { position: absolute; width: 260%; height: 260%; max-width: none; left: -80%; top: -3%; pointer-events: none; user-select: none; }
.jf-blob { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 24%, #FFD36B, #FF8A4C 38%, #FF4F9A 70%, #A45BE8);
  box-shadow: 0 calc(var(--t) * .07) calc(var(--t) * .2) rgba(220, 70, 130, .28); transform: scale(calc(1 + var(--v) * .05)); }
.jf-fig .jf-recorte { position: absolute; inset: 0; clip-path: inset(-75% calc((var(--e) - 1) * -50%) 0 calc((var(--e) - 1) * -50%) round 0 0 calc(var(--t) * var(--e) / 2) calc(var(--t) * var(--e) / 2)); }
.jf-fig .jf-img { position: absolute; width: calc(var(--e) * 100%); height: calc(var(--e) * 100%); max-width: none; left: calc((1 - var(--e)) * 50%); bottom: 0; pointer-events: none; user-select: none;
  transform-origin: 50% 100%; filter: drop-shadow(0 4px 6px rgba(80, 30, 60, .2)); }
.jf-espejo .jf-recorte { transform: scaleX(-1); }
/* respira quieto; en llamada lo mueve la voz (--s / --v desde juan.js) */
.juflor.jf-fig.viva .jf-img { animation: jfRespira 4.4s ease-in-out infinite; }
.con-chat .ju-hero .juflor .jf-img, .con-voz .juflor.jf-fig .jf-img { animation: none; }
@keyframes jfRespira { 50% { transform: translateY(-1.6%) scale(1.012); } }
/* cambio de ropa */
.juflor.jf-fig.jf-cambia .jf-img { animation: jfCambia .76s cubic-bezier(.3, .7, .3, 1.2) both !important; }
@keyframes jfCambia { 0% { transform: none; } 28%, 34% { transform: translateY(62%) scale(.9); } 100% { transform: none; } }
.jf-fig.jf-cambia .jf-blob { animation: jfLate .76s ease both; }
@keyframes jfLate { 30% { transform: scale(.93); } 56% { transform: scale(1.08); } 100% { transform: none; } }
.jf-fig::after { content: ''; position: absolute; inset: -6%; border-radius: 50%; border: 3px solid rgba(255, 196, 92, .95); opacity: 0; pointer-events: none; }
.jf-fig.jf-cambia::after { animation: jfAro .76s ease-out both; }
@keyframes jfAro { 0%, 38% { transform: scale(.85); opacity: 0; } 52% { opacity: 1; } 100% { transform: scale(1.28); opacity: 0; } }
.jf-cara.jf-cambia { animation: jfGira .62s cubic-bezier(.3, .7, .3, 1.2) both; }
@keyframes jfGira { 0% { transform: none; } 36% { transform: rotateY(90deg) scale(.9); } 100% { transform: none; } }
/* cargando: Juan pensando con un aro que gira */
.juflor.gira::before { content: ''; position: absolute; inset: -7%; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--magenta, #D6246E); border-right-color: var(--naranja, #F28C28); animation: juGira 1s linear infinite; z-index: 1; }
/* lugares */
.ju-hero .juflor.jf-fig { margin: calc(var(--t) * .34) 0 16px; animation: jfEntra .9s var(--rebote) both; }
@keyframes jfEntra { from { transform: translateY(26px) scale(.86); opacity: 0; } }
.ju-titulo .juflor.jf-fig { --e: 1.12; margin: 8px 2px -4px 0; }
.ju-msg .juflor.jf-cara.avatar { margin-bottom: 0; }
.ju-voz .juflor.jf-fig { --e: 1.15; margin-top: -14px; }
.ju-pill .juflor.jf-cara { box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(200, 60, 110, .3); }
.gu-cab .juflor.jf-fig { --e: 1.2; margin: -34px 0 -4px -8px; }
.gu-burbuja.jf-der .gu-cab { flex-direction: row-reverse; }
.gu-burbuja.jf-der .gu-cab .juflor.jf-fig { margin: -34px -8px -4px 0; }
.gu.habla .gu-flor .jf-img, .ju-titulo.gu-habla .juflor .jf-img, .in-rol-estado.habla .juflor .jf-img { animation: jfHabla .45s ease-in-out infinite alternate; }
@keyframes jfHabla { from { transform: translateY(0); } to { transform: translateY(-3%) rotate(-1deg); } }
.gu:not(.habla) .gu-flor .jf-img { animation: jfRespira 3.2s ease-in-out infinite; }
.gu-flor.jf-cambia .jf-img { animation: jfCambia .76s cubic-bezier(.3, .7, .3, 1.2) both !important; }
@media (prefers-reduced-motion: reduce) { .juflor .jf-img, .jf-blob, .juflor.jf-cara, .jf-fig::after { animation: none !important; } }
