/* VALTRIS V1.62 | preserve bubble portrait independently from hover tooltip. */
/* Important: the portrait is the BUTTON background. The ::after layer is tooltip only. */
html body #helper.v153-ready > button.helper-launch,
html body #helper.v153-ready.v161-ready > button.helper-launch,
html body #helper.v153-ready.v161-ready.v162-ready > button.helper-launch{
 background-color:#031525!important;
 background-image:url('/assets/images/valentin-retrato-oficial-v173.png')!important;
 background-position:50% 50%!important;
 background-size:100% 100%!important;
 background-repeat:no-repeat!important;
}
@media(hover:hover) and (pointer:fine){
 html body #helper.v153-ready.v161-ready:not(.v160-open)>button.helper-launch::after,
 html body #helper.v153-ready.v161-ready.v162-ready:not(.v160-open)>button.helper-launch::after{
  content:'Avatar Valtris®: Estoy para resolver tus dudas'!important;
  display:block!important;
  position:absolute!important;
  inset:auto!important;
  top:50%!important;
  right:calc(100% + 16px)!important;
  left:auto!important;
  width:max-content!important;
  min-width:192px!important;
  max-width:min(268px,calc(100vw - 130px))!important;
  height:auto!important;
  padding:11px 14px!important;
  box-sizing:border-box!important;
  border-radius:13px!important;
  border:1px solid rgba(235,241,245,.98)!important;
  background:#ffffff!important;
  background-image:none!important;
  box-shadow:0 13px 32px rgba(5,22,39,.25),inset 0 1px 0 #fff!important;
  color:#102a40!important;
  font:600 12px/1.5 system-ui,-apple-system,'Segoe UI',sans-serif!important;
  text-align:left!important;
  white-space:normal!important;
  z-index:7!important;
  pointer-events:none!important;
  opacity:0!important;
  visibility:hidden!important;
  transform:translate(8px,-50%)!important;
  transition:transform .16s ease,opacity .16s ease,visibility .16s!important;
 }
 html body #helper.v153-ready.v161-ready:not(.v160-open)>button.helper-launch:hover::after,
 html body #helper.v153-ready.v161-ready.v162-ready:not(.v160-open)>button.helper-launch:hover::after,
 html body #helper.v153-ready.v161-ready:not(.v160-open)>button.helper-launch:focus-visible::after,
 html body #helper.v153-ready.v161-ready.v162-ready:not(.v160-open)>button.helper-launch:focus-visible::after{
  opacity:1!important;visibility:visible!important;transform:translate(0,-50%)!important;
 }
}
@media(max-width:420px){
 html body #helper.v153-ready.v161-ready:not(.v160-open)>button.helper-launch::after{display:none!important;}
}


/* V1.62 LIGHT FROSTED GLASS / Presentation + conversation only. */
/* Keep the avatar display deep-blue; the two information surfaces use bright glass. */
html body #helper.v153-ready.v160-ready.v162-ready .helper-panel__top,
html body #helper.v153-ready.v160-ready.v162-ready .v160-chat-card {
  border:1px solid rgba(255,255,255,.90)!important;
  color:#112838!important;
  box-shadow:0 19px 48px rgba(1,16,33,.31),inset 0 1px 0 rgba(255,255,255,.98),inset 0 -1px 0 rgba(151,181,201,.32),0 0 0 1px rgba(184,217,235,.21)!important;
  -webkit-backdrop-filter:blur(28px) saturate(155%)!important;
  backdrop-filter:blur(28px) saturate(155%)!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .helper-panel__top {
  border-color:rgba(160,228,255,.68)!important;
  background:linear-gradient(135deg,rgba(22,116,192,.86) 0%,rgba(14,93,165,.78) 38%,rgba(13,109,190,.72) 100%)!important;
  box-shadow:0 20px 48px rgba(4,18,40,.30),inset 0 1px 0 rgba(255,255,255,.34),inset 0 -1px 0 rgba(121,201,239,.22),0 0 0 1px rgba(142,225,255,.16)!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .helper-panel__top::before {
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.34),transparent)!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .helper-panel__top strong {
  color:#ffffff!important;
  text-shadow:0 1px 0 rgba(0,0,0,.06)!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .helper-panel__top small {
  color:rgba(236,247,255,.82)!important;
  text-shadow:none!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .v153-header-pic {
  border-color:rgba(179,239,255,.76)!important;
  box-shadow:0 0 0 3px rgba(85,203,255,.18)!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .helper-panel__top .v129-controls button {
  background:rgba(255,255,255,.14)!important;
  border-color:rgba(181,238,255,.30)!important;
  color:#eff9ff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18)!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .helper-panel__top .v129-controls button:hover:not(:disabled),
html body #helper.v153-ready.v160-ready.v162-ready .helper-panel__top .v129-controls button:focus-visible {
  background:rgba(255,255,255,.22)!important;
  color:#ffffff!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .helper-panel__top .v129-controls button.is-active {
  background:rgba(143,232,255,.24)!important;
  color:#ffffff!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .v160-chat-card {
  background:linear-gradient(142deg,rgba(255,255,255,.94),rgba(244,249,252,.89) 40%,rgba(234,244,250,.92) 100%)!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .v160-chat-card::before {
  background:linear-gradient(126deg,rgba(255,255,255,.67),transparent 37%,transparent 72%,rgba(189,219,234,.19))!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .v160-chat-card .v129-status {
  color:#386277!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .v160-chat-card .helper-panel__messages {
  color:#122b3d!important;
  scrollbar-color:rgba(94,151,178,.42) transparent!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .v160-chat-card .helper-bubble {
  background:rgba(255,255,255,.82)!important;
  color:#1c3a4a!important;
  border:1px solid rgba(133,170,193,.34)!important;
  box-shadow:0 3px 10px rgba(29,84,113,.07)!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .v160-chat-card .helper-bubble--user {
  background:rgba(214,236,247,.91)!important;
  color:#15394f!important;
  border-color:rgba(68,140,176,.28)!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .v160-chat-card .helper-bubble a {
  color:#006f9f!important;
  text-decoration:underline!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .v160-chat-card .helper-panel__actions button {
  color:#23556d!important;
  border-color:rgba(79,148,181,.35)!important;
  background:rgba(255,255,255,.72)!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .v160-chat-card .helper-panel__actions button:hover {
  background:rgba(218,239,248,.95)!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .v160-chat-card .helper-form {
  background:rgba(255,255,255,.93)!important;
  border-color:rgba(109,167,192,.53)!important;
  box-shadow:inset 0 1px 3px rgba(25,69,99,.06),0 1px 0 rgba(255,255,255,.92)!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .v160-chat-card .helper-form input {
  color:#143347!important;
  -webkit-text-fill-color:#143347!important;
  caret-color:#017db7!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .v160-chat-card .helper-form input::placeholder {
  color:#637e8e!important;
  opacity:1!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .v160-chat-card .helper-form .v129-mic {
  background:rgba(222,241,249,.90)!important;
  border-color:rgba(79,142,172,.41)!important;
  color:#0c5b83!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .v160-chat-card .helper-form .v129-mic svg {
  left:0!important;right:0!important;top:0!important;bottom:0!important;
  display:block!important;margin:auto!important;
}
html body #helper.v153-ready.v160-ready.v162-ready .v160-chat-card .helper-form button[type=submit] {
  background:linear-gradient(145deg,#27b6d8,#057eac)!important;
  color:#fff!important;
}
@media (prefers-contrast:more){
 html body #helper.v153-ready.v160-ready.v162-ready .helper-panel__top,
 html body #helper.v153-ready.v160-ready.v162-ready .v160-chat-card{background:#f7fbfd!important}
}

/* V1.69 — real natural-light portrait from the original, unfiltered MetaPerson GLB. */
html body #helper.v153-ready > button.helper-launch,
html body #helper.v153-ready.v161-ready > button.helper-launch,
html body #helper.v153-ready.v161-ready.v162-ready > button.helper-launch{
 background-image:url('/assets/images/valentin-retrato-oficial-v173.png')!important;
 background-size:cover!important;background-position:50% 49%!important;
}
html body #helper.v153-ready .v153-header-pic{object-fit:cover!important;object-position:center 48%!important}
/* V1.69 — subtle entire optical-screen signal instability (HUD + model + overlay).
   Pixel noise & scanlines are on the GLASS surface, never replacing the video. */
html body #helper.v160-ready .v149-screen{
 --v170-tear:0px;--v170-brightness:1;--v170-static:.028;
 transform:translateX(var(--v170-tear))!important;
 filter:brightness(var(--v170-brightness))!important;
 transition:transform 75ms steps(2,end),filter 80ms linear!important;
 will-change:filter,transform;
}
html body #helper.v160-ready .v170-screen-signal{
 position:absolute;inset:0;pointer-events:none;z-index:7;opacity:var(--v170-static);
 background:repeating-linear-gradient(0deg,transparent 0px,transparent 5px,rgba(181,237,254,.16) 6px,transparent 7px),
 linear-gradient(90deg,rgba(98,215,251,.03),transparent 35%,rgba(98,215,251,.05));
 mix-blend-mode:screen;
}
html body #helper.v160-ready .v170-screen-signal::after{
 content:'';position:absolute;inset:0;opacity:0;
 background:linear-gradient(to bottom,transparent 0%,rgba(123,241,253,.14) 39%,transparent 43%,transparent 69%,rgba(152,223,255,.08) 73%,transparent 75%);
 transform:translateX(-4px);
}
html body #helper.v160-ready .v149-screen.v170-signal-active .v170-screen-signal::after{opacity:1}
@media(prefers-reduced-motion:reduce){html body #helper.v160-ready .v149-screen{transform:none!important;filter:none!important}html body #helper.v160-ready .v170-screen-signal{opacity:.02!important}}
