/* VALTRIS V1.36 | Asistente holográfico compacto, más animado y responsive */
#helper{--vh-cyan:#63edff;--vh-cyan-2:#7ef8ff;--vh-deep:#041a30;--vh-panel:#062443;--vh-glow:#66eaff;--vh-ink:#0e4567}
#helper{right:18px!important;bottom:18px!important;gap:10px}
#helper .helper-launch{width:76px!important;height:76px!important;min-width:76px!important;min-height:76px!important;padding:0!important;display:grid;place-items:center;border:1.5px solid #8cefff;border-radius:50%!important;isolation:isolate;background:radial-gradient(circle at 50% 54%,#14648e 0%,#05233f 64%,#031223 100%);box-shadow:0 10px 34px #00162dc7,0 0 0 4px #5de6ff14,0 0 32px #63edff42;overflow:visible;animation:v136-launch-float 4.4s ease-in-out infinite}
#helper .helper-launch:after{content:'';position:absolute;inset:-8px;border-radius:50%!important;border:1px dashed #8cefff90;pointer-events:none;animation:v136-orbit 14s linear infinite}
#helper .v131-launcher{width:68px!important;height:68px!important;border-radius:50%;display:grid;place-items:center;position:relative;overflow:hidden;isolation:isolate}
#helper .v131-launcher:before{content:'';position:absolute;inset:6px;border-radius:50%;background:radial-gradient(circle,#70f3ff38 0%,transparent 68%);filter:blur(1px)}
#helper .v131-launcher img{position:absolute;left:50%;top:51%;width:118%!important;height:118%!important;max-width:none;object-fit:contain!important;object-position:center!important;transform:translate(-50%,-50%)!important;opacity:.98!important;mix-blend-mode:screen;filter:drop-shadow(0 0 10px #6ef7ffcc)!important;animation:v136-avatar-pulse 3.3s ease-in-out infinite}
#helper .v131-launcher__orbit{position:absolute;inset:4px;border-radius:50%;border:1px solid #9cf8ff8e;box-shadow:0 0 18px #65eeff3c inset;animation:v136-orbit 11s linear infinite reverse;z-index:2}
#helper .v131-launcher__base{position:absolute;left:20%;bottom:7px;width:60%;height:7px;border-radius:50%;border:1px solid #9ef7ff95;box-shadow:0 0 15px #59e8ff;z-index:4}
#helper.is-open .helper-launch,#helper .helper-panel:not([hidden]) ~ .helper-launch{display:none!important}

#helper .helper-panel{width:min(352px,calc(100vw - 22px))!important;height:min(505px,calc(100dvh - 76px))!important;border-radius:18px!important;border:1px solid #98dff41f!important;box-shadow:0 24px 70px #001c3859,0 0 0 1px #64ddff1f inset!important;overflow:hidden}
#helper .helper-panel__top{padding:14px 15px!important;background:linear-gradient(180deg,#093a61 0%,#072b49 100%)!important;border-bottom:1px solid #5fdfff59}
#helper .helper-panel__top small{font-size:8px!important;letter-spacing:.22em;color:#9addf4!important}
#helper .helper-panel__top strong{font-size:20px!important;line-height:1.02}
#helper .v129-controls{gap:8px;align-items:center}
#helper .v129-voice-toggle,#helper .v130-replay{height:46px!important;border-radius:16px!important}
#helper .v129-voice-toggle{padding:0 14px!important;font-size:12px!important}
#helper .v130-replay{width:46px!important;min-width:46px!important}
#helper .helper-close{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 0 0 1px #85dff356;font-size:28px!important}

#helper .v130-stage{height:210px!important;min-height:210px!important;flex-basis:210px!important;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 86%,#0f6f99 0%,#063b5b 24%,#03192f 60%,#020a18 100%)!important}
#helper .v130-stage:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#95f7ff09 0%,transparent 42%),repeating-linear-gradient(0deg,#cafcff00 0 4px,#b7fdff0a 5px 6px);pointer-events:none;z-index:0}
#helper .v130-stage:after{content:'';position:absolute;inset:auto 16px 10px; height:18px;border-radius:50%;background:radial-gradient(ellipse,#6dedff6b 0%,transparent 72%);filter:blur(6px);z-index:1}
#helper .v130-stage__starlight{position:absolute;inset:0;background:radial-gradient(circle at 16% 28%,#81f7ff 0 1.2px,transparent 2px),radial-gradient(circle at 30% 60%,#74f0ff 0 1.1px,transparent 1.8px),radial-gradient(circle at 80% 26%,#81f7ff 0 1.5px,transparent 2px),radial-gradient(circle at 84% 68%,#9affff 0 1.3px,transparent 2px),radial-gradient(circle at 58% 18%,#9ffeff 0 1.1px,transparent 1.8px);opacity:.6;animation:v136-twinkle 3.8s linear infinite}
#helper .v130-stage__rays{z-index:1;height:170px!important;bottom:18px!important;opacity:.36!important;filter:blur(.2px);animation:v136-rays 5s ease-in-out infinite}
#helper .v130-stage__beam{position:absolute;left:50%;top:-18px;transform:translateX(-50%);width:66%;height:185px;background:linear-gradient(180deg,#87f5ff2b 0%,#77f3ff12 44%,transparent 100%);clip-path:polygon(46% 0,54% 0,100% 100%,0 100%);opacity:.58;mix-blend-mode:screen;z-index:2;animation:v136-beam 3.8s ease-in-out infinite}
#helper .v130-stage__orbit{z-index:2;opacity:.7;animation:v136-orbit 16s linear infinite}
#helper .v130-stage__orbit--outer{width:182px!important;height:182px!important;top:11px!important;border-color:#69ecff52!important;box-shadow:0 0 22px #6cecff19 inset}
#helper .v130-stage__orbit--inner{width:138px!important;height:138px!important;top:32px!important}
#helper .v130-stage__avatar.v131-stage__human.v135-avatar{position:absolute;left:50%!important;bottom:-35px!important;top:auto!important;width:252px!important;height:252px!important;transform:translateX(-50%)!important;animation:v136-projection-float 4.6s ease-in-out infinite!important;filter:none!important;overflow:visible;z-index:4}
#helper .v135-avatar > img{width:100%!important;height:100%!important;position:absolute!important;inset:0!important;object-fit:contain!important;object-position:center!important;mix-blend-mode:screen;filter:drop-shadow(0 0 14px #45e5ff8d)!important;opacity:.96!important}
#helper .v135-avatar > .v135-expression{visibility:hidden;opacity:.94!important;transform:none!important}
#helper .v135-avatar .v131-stage__body-glow{z-index:1;position:absolute;inset:9% 10% 2%;filter:blur(18px);border-radius:50%;background:radial-gradient(ellipse,#74ebff59 8%,transparent 68%);animation:v136-glow 2.2s ease-in-out infinite}
#helper .v135-avatar .v131-stage__body-grain{z-index:5;opacity:.36;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 3px,#d8fdff18 4px 5px),linear-gradient(180deg,transparent 0%,#8ceefe0e 50%,transparent 100%);mix-blend-mode:screen;mask-image:linear-gradient(to bottom,black,black 82%,transparent 100%);animation:v136-scan 2.8s linear infinite}
#helper[data-mode="speaking"] .v135-avatar img:first-of-type{animation:v136-voice-flicker .7s ease-in-out infinite alternate;filter:drop-shadow(0 0 16px #5df2ff)!important}
#helper[data-mode="speaking"] .v130-stage__beam{opacity:.82;filter:brightness(1.2)}
#helper[data-mode="listening"] .v135-avatar img:first-of-type,#helper[data-mode="thinking"] .v135-avatar img:first-of-type{filter:drop-shadow(0 0 18px #7df8ff)!important}

#helper .v130-stage__hud{z-index:8;top:82px!important;font-size:11px!important;color:#aaf4ff}
#helper .v130-stage__hud--left{left:6px!important}
#helper .v130-stage__hud--right{right:6px!important}
#helper .v130-stage__wave i{animation:v136-wave-idle 1.5s ease-in-out infinite!important;opacity:.58}
#helper .v130-stage__wave i:nth-child(2){animation-delay:.08s}#helper .v130-stage__wave i:nth-child(3){animation-delay:.14s}#helper .v130-stage__wave i:nth-child(4){animation-delay:.2s}#helper .v130-stage__wave i:nth-child(5){animation-delay:.26s}#helper .v130-stage__wave i:nth-child(6){animation-delay:.32s}#helper .v130-stage__wave i:nth-child(7){animation-delay:.38s}#helper .v130-stage__wave i:nth-child(8){animation-delay:.44s}#helper .v130-stage__wave i:nth-child(9){animation-delay:.5s}
#helper[data-mode="speaking"] .v130-stage__wave i{animation-name:v136-wave-speak!important;opacity:1}
#helper .v130-stage__platform{z-index:7;bottom:4px!important;opacity:.98;animation:v136-platform-pulse 2.4s ease-in-out infinite}
#helper .v130-stage__scanlines{z-index:9;opacity:.34;animation:v136-screen-drift 4.4s linear infinite}
#helper .v130-stage__topline{z-index:9;color:#c6fbffdf!important;letter-spacing:.22em!important;font-size:8px!important;padding:12px 12px 0!important}
#helper .v129-status{font-size:11px!important;line-height:1.35!important;min-height:26px!important;padding:7px 13px!important;background:#f7fbff;border-top:1px solid #d4ecf5;border-bottom:1px solid #d4ecf5;color:#15557d}

#helper .helper-panel__messages{padding:12px 12px 8px!important;gap:8px!important}
#helper .helper-bubble{font-size:12px!important;line-height:1.55!important;padding:12px 13px!important;border-radius:14px 14px 14px 4px!important;max-width:92%!important}
#helper .helper-bubble--user{border-radius:14px 14px 4px 14px!important}
#helper .helper-bubble--hint{font-size:12px!important;padding:9px 11px!important}
#helper .helper-bubble--typing{position:relative}
#helper .helper-bubble--typing:after{content:'';display:inline-block;width:7px;height:1em;vertical-align:-.14em;margin-left:2px;border-radius:2px;background:#0b4e73;animation:v136-caret .8s steps(1,end) infinite}
#helper .helper-sources{display:flex;flex-wrap:wrap;gap:7px;padding-top:2px}
#helper .helper-source{font-size:11px;border-radius:999px;padding:7px 10px;background:#eefbff;color:#0b638f;border:1px solid #bfeaf8;text-decoration:none}
#helper .helper-panel__actions{padding:2px 12px 10px!important;gap:7px!important}
#helper .helper-panel__actions button{font-size:11px!important;padding:9px 11px!important;border-radius:999px!important}
#helper .helper-form{margin:0 12px 7px!important;min-height:46px!important;border-radius:14px!important;border-color:#baddf0!important;overflow:hidden}
#helper .helper-form input{font-size:12px!important;padding:10px 12px!important}
#helper .helper-form button{width:46px!important}
#helper .helper-disclaimer{font-size:9px!important;line-height:1.45!important;padding:0 13px!important;margin:0 0 12px!important}
#helper .v134-mode-note{display:none!important}

@media (max-width:600px){
 #helper{right:12px!important;bottom:12px!important}
 #helper .helper-launch{width:68px!important;height:68px!important;min-width:68px!important;min-height:68px!important}
 #helper .v131-launcher{width:61px!important;height:61px!important}
 #helper .helper-panel{width:calc(100vw - 18px)!important;height:min(470px,calc(100dvh - 24px))!important;border-radius:18px!important}
 #helper .helper-panel__top{padding:12px!important}
 #helper .helper-panel__top strong{font-size:18px!important}
 #helper .v129-voice-toggle{padding:0 11px!important;gap:8px}
 #helper .v129-voice-toggle span{font-size:11px!important}
 #helper .v130-replay,#helper .helper-close,#helper .v129-voice-toggle{height:42px!important}
 #helper .v130-replay,#helper .helper-close{width:42px!important}
 #helper .v130-stage{height:176px!important;min-height:176px!important;flex-basis:176px!important}
 #helper .v130-stage__orbit--outer{width:152px!important;height:152px!important;top:10px!important}
 #helper .v130-stage__orbit--inner{width:116px!important;height:116px!important;top:26px!important}
 #helper .v130-stage__avatar.v131-stage__human.v135-avatar{width:216px!important;height:216px!important;bottom:-31px!important}
 #helper .v130-stage__hud{top:66px!important;font-size:10px!important}
 #helper .v130-stage__rays{height:148px!important;bottom:16px!important}
 #helper .helper-panel__actions{padding:2px 10px 8px!important}
 #helper .helper-panel__messages{padding:10px 10px 7px!important}
}
@media (max-width:420px){
 #helper .helper-panel{width:calc(100vw - 14px)!important;height:min(448px,calc(100dvh - 18px))!important}
 #helper .v129-controls{gap:6px}
 #helper .v129-voice-toggle{max-width:148px}
 #helper .helper-panel__top small{font-size:7px!important}
 #helper .helper-panel__top strong{font-size:17px!important}
 #helper .v130-stage{height:156px!important;min-height:156px!important;flex-basis:156px!important}
 #helper .v130-stage__orbit--outer{width:132px!important;height:132px!important}
 #helper .v130-stage__orbit--inner{width:98px!important;height:98px!important;top:23px!important}
 #helper .v130-stage__avatar.v131-stage__human.v135-avatar{width:186px!important;height:186px!important;bottom:-24px!important}
 #helper .v130-stage__hud{top:57px!important;font-size:9px!important}
 #helper .v130-stage__hud--left{left:4px!important}#helper .v130-stage__hud--right{right:4px!important}
 #helper .helper-panel__actions button{font-size:10px!important;padding:8px 10px!important}
}
@media (max-width:360px), (max-height:680px){
 #helper .helper-panel{height:min(418px,calc(100dvh - 16px))!important}
 #helper .v130-stage{height:138px!important;min-height:138px!important;flex-basis:138px!important}
 #helper .v130-stage__avatar.v131-stage__human.v135-avatar{width:164px!important;height:164px!important;bottom:-20px!important}
 #helper .v130-stage__orbit--outer{width:114px!important;height:114px!important;top:8px!important}
 #helper .v130-stage__orbit--inner{width:84px!important;height:84px!important;top:22px!important}
 #helper .v130-stage__hud{top:49px!important}
 #helper .helper-disclaimer{display:none}
}

@keyframes v136-launch-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes v136-orbit{to{transform:rotate(360deg)}}
@keyframes v136-avatar-pulse{0%,100%{opacity:.96;transform:translate(-50%,-50%) scale(1)}50%{opacity:1;transform:translate(-50%,-50%) scale(1.035)}}
@keyframes v136-projection-float{0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(-6px)}}
@keyframes v136-beam{0%,100%{opacity:.52;transform:translateX(-50%) scaleY(1)}50%{opacity:.76;transform:translateX(-50%) scaleY(1.03)}}
@keyframes v136-rays{0%,100%{opacity:.28;transform:scale(1)}50%{opacity:.44;transform:scale(1.04)}}
@keyframes v136-glow{0%,100%{opacity:.56;transform:scale(1)}50%{opacity:.82;transform:scale(1.04)}}
@keyframes v136-scan{0%{background-position:0 0,0 0}100%{background-position:0 0,0 88px}}
@keyframes v136-screen-drift{0%{transform:translateY(-8px)}100%{transform:translateY(10px)}}
@keyframes v136-platform-pulse{0%,100%{filter:drop-shadow(0 0 0 #62ebff)}50%{filter:drop-shadow(0 0 8px #62ebff)}}
@keyframes v136-wave-idle{0%,100%{transform:scaleY(.55)}50%{transform:scaleY(.95)}}
@keyframes v136-wave-speak{0%,100%{transform:scaleY(.45)}25%{transform:scaleY(1.25)}50%{transform:scaleY(.8)}75%{transform:scaleY(1.45)}}
@keyframes v136-voice-flicker{0%,100%{opacity:.92;transform:translateY(0)}50%{opacity:1;transform:translateY(-1px)}}
@keyframes v136-twinkle{0%,100%{opacity:.5}50%{opacity:.78}}
@keyframes v136-caret{50%{opacity:0}}
@media(prefers-reduced-motion:reduce){#helper .helper-launch,#helper .helper-launch:after,#helper .v131-launcher img,#helper .v131-launcher__orbit,#helper .v130-stage__rays,#helper .v130-stage__beam,#helper .v130-stage__orbit,#helper .v130-stage__scanlines,#helper .v130-stage__platform,#helper .v130-stage__wave i,#helper .v135-avatar,#helper .v135-avatar .v131-stage__body-glow,#helper .v135-avatar .v131-stage__body-grain{animation:none!important}}

/* V1.36 acabado: expresión facial, HUD reactivo y controles cuadrados/circulares */
#helper .helper-panel__top{box-sizing:border-box;min-width:0!important;gap:8px!important}
#helper .helper-panel__top>div:first-child{min-width:0;flex:1}
#helper .v129-controls{gap:5px!important;flex-shrink:0}
#helper .helper-close{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-width:42px!important;max-height:42px!important;flex:0 0 42px!important;aspect-ratio:1!important;border-radius:50%!important;display:grid!important;place-items:center!important;padding:0!important;line-height:1!important;box-sizing:border-box!important}
#helper .v130-replay{width:42px!important;min-width:42px!important;flex:0 0 42px!important}
#helper .v129-voice-toggle{flex:0 1 auto;min-width:42px;max-width:125px;white-space:nowrap}
#helper .v129-voice-toggle span{overflow:hidden;text-overflow:ellipsis}
#helper .v135-avatar > img.v135-expression--blink{animation:v136-blink-actual 6.5s steps(1,end) infinite!important}
#helper[data-mode="speaking"] .v135-avatar > img.v135-expression--talk{animation:v136-talk-actual .38s steps(1,end) infinite!important}
#helper[data-mode="listening"] .v135-avatar > img.v135-expression--blink{animation-duration:4.7s!important}
#helper[data-mode="speaking"] .v130-stage__platform{transform:scale(calc(1 + var(--v136-audio,0) * .07))!important;filter:drop-shadow(0 0 calc(4px + var(--v136-audio,0) * 23px) #74eaff)!important}
#helper[data-mode="speaking"] .v130-stage__beam{animation:none!important;opacity:calc(.4 + var(--v136-audio,0) * .55)!important;filter:brightness(calc(1 + var(--v136-audio,0) * .8))!important}
#helper[data-mode="speaking"] .v130-stage__wave i{animation:none!important;transform:scaleY(calc(.35 + var(--v136-audio,0) * 1.55))!important;opacity:calc(.55 + var(--v136-audio,0) * .45)!important;box-shadow:0 0 calc(3px + var(--v136-audio,0) * 13px) #7defff!important}
#helper[data-mode="speaking"] .v130-stage__wave i:nth-child(even){transform:scaleY(calc(.4 + var(--v136-audio,0) * 2.05))!important}
#helper[data-mode="speaking"] .v130-stage__wave i:nth-child(3n){transform:scaleY(calc(.3 + var(--v136-audio,0) * 1.15))!important}
#helper[data-mode="speaking"] .v135-avatar > img:first-of-type{filter:brightness(calc(1 + var(--v136-audio,0) * .14)) drop-shadow(0 0 calc(8px + var(--v136-audio,0) * 14px) #63eeff)!important}
@keyframes v136-blink-actual{0%,88%,92%,100%{visibility:hidden}89%,91%{visibility:visible}}
@keyframes v136-talk-actual{0%,100%{visibility:hidden}42%,65%{visibility:visible}}
@media(max-width:600px){#helper .v129-voice-toggle{max-width:98px;min-width:42px;padding-inline:7px!important}#helper .v129-voice-toggle span{font-size:10px!important}#helper .helper-panel__top strong{font-size:17px!important}}
@media(max-width:420px){#helper .v129-voice-toggle{width:42px!important;max-width:42px!important;flex:0 0 42px!important;justify-content:center;padding:0!important}#helper .v129-voice-toggle span{display:none!important}#helper .helper-close,#helper .v130-replay{width:39px!important;height:39px!important;min-width:39px!important;min-height:39px!important;max-width:39px!important;max-height:39px!important;flex-basis:39px!important}#helper .helper-panel__top strong{font-size:17px!important}}
@media(prefers-reduced-motion:reduce){#helper .v135-avatar > img.v135-expression{animation:none!important;visibility:hidden!important}}
