/* LBot LatinVirtual: diseño aportado por el usuario, adaptación de vista privada 1.3 */

#lbot-root,#lbot-root * {box-sizing:border-box}
#lbot-root {--lb-bg:#08162d;--lb-deep:#0F2F5F;--lb-blue:#0A4FB3;--lb-gray:#BFC5CC;--lb-dark:#2B2B2B;--lb-line:#2a4b7e;--lb-text:#f2f6ff;--lb-muted:#aebed6;--lb-cyan:#5dbde9;font:14px/1.46 Inter,"Segoe UI",Arial,sans-serif;color:var(--lb-text);text-align:left}
#lbot-root button,#lbot-root input {font:inherit}
#lbot-root button {cursor:pointer}
#lbot-root [hidden] {display:none!important}
#lbot-root :focus-visible {outline:2px solid #92c7ff;outline-offset:3px}
#lbot-root .lb-mascot {position:fixed;left:20px;bottom:12px;z-index:999998;display:flex;align-items:flex-end;gap:3px;filter:drop-shadow(0 12px 15px rgba(0,4,25,.4))}
#lbot-root.lb-right .lb-mascot {left:auto;right:18px;flex-direction:row-reverse}
#lbot-root .lb-launcher {border:0;background:transparent;display:block;position:relative;flex:none;width:122px;height:148px;padding:0;transition:transform .2s}
#lbot-root .lb-launcher:hover {transform:translateY(-3px)}
#lbot-root .lb-launcher img {width:100%;height:100%;object-fit:contain;object-position:bottom;display:block;animation:lb-bob 4s ease-in-out infinite}
#lbot-root .lb-bubble {display:flex;flex-direction:column;align-items:flex-start;max-width:198px;margin-bottom:62px;padding:9px 12px;border-radius:14px 14px 14px 4px;background:linear-gradient(125deg,#143366,#08162d);border:1px solid #4375bd;box-shadow:0 10px 30px #0007;color:#eef5ff;cursor:pointer}
#lbot-root .lb-bubble strong {font-size:12px;font-weight:800}
#lbot-root .lb-bubble small {font-size:11px;color:#bfd1ec;margin-top:2px}
#lbot-root.lb-right .lb-bubble {border-radius:14px 14px 4px 14px}
#lbot-root.lb-open .lb-bubble {visibility:hidden;pointer-events:none}
#lbot-root .lb-chat {position:fixed;bottom:166px;left:20px;z-index:999999;width:min(405px,calc(100vw - 24px));height:min(566px,calc(100dvh - 184px));min-height:355px;border-radius:19px;display:flex;flex-direction:column;overflow:hidden;background:#08162d;border:1px solid #335b9e;box-shadow:0 22px 65px #0009,0 0 0 1px #2c4f8730;animation:lb-in .16s ease-out}
#lbot-root.lb-right .lb-chat{left:auto;right:20px}
#lbot-root .lb-top{display:flex;flex:none;align-items:center;gap:7px;padding:10px;border-bottom:1px solid #345f9c;background:linear-gradient(110deg,#102f5d,#091a38)}
#lbot-root .lb-avatar {width:39px;height:39px;flex:none;border-radius:11px;overflow:hidden;background:linear-gradient(145deg,#176ad6,#0a4fb3);display:grid;place-items:center;color:#fff;font-weight:900;font-size:25px;box-shadow:0 3px 10px #0a4fb35a}
#lbot-root .lb-heading {flex:1;min-width:70px}
#lbot-root .lb-heading strong {display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:800}
#lbot-root .lb-heading small {display:block;font-size:10.5px;color:#acbdd6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#lbot-root .lb-heading small:before{content:"";display:inline-block;margin-right:5px;width:6px;height:6px;border-radius:50%;background:#78b6e8}
#lbot-root .lb-topbtn{flex:none;padding:7px 8px;border:1px solid #3b5888;border-radius:9px;color:#d8e6fb;background:#152a4e;font-size:11px;font-weight:700;line-height:1.3}
#lbot-root .lb-topbtn:hover{background:#1d3b70}
#lbot-root .lb-topbtn.lb-new{color:#a5dfdb;border-color:#207d86;background:#0a303e}
#lbot-root .lb-topbtn.lb-x{color:#ffa2b6;font-size:17px;line-height:1;width:31px;height:31px;display:grid;place-items:center;border-color:#80506a;background:#2b2037;padding:0}
#lbot-root .lb-menu-panel{flex:none;padding:10px 12px;display:grid;grid-template-columns:1fr 1fr;gap:7px;background:#0c2347;border-bottom:1px solid #274771}
#lbot-root .lb-menu-panel button,#lbot-root .lb-menu-panel a{border:1px solid #31578d;background:#142f5b;border-radius:9px;color:#dcecff;font-size:11.5px;padding:9px;text-align:center;text-decoration:none}
#lbot-root .lb-menu-panel button:hover,#lbot-root .lb-menu-panel a:hover{background:#1e437e}
#lbot-root .lb-content{flex:1;min-height:0;overflow:auto;padding:14px 13px 12px;display:flex;flex-direction:column;gap:10px;scrollbar-color:#325989 transparent;scrollbar-width:thin}
#lbot-root .lb-msg{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.52;max-width:94%;padding:12px 14px;border-radius:14px}
#lbot-root .lb-msg.bot{align-self:flex-start;background:#162a4e;border:1px solid #345589;border-bottom-left-radius:5px}
#lbot-root .lb-msg.user{align-self:flex-end;background:#104fa8;border:1px solid #3c7bd1;border-bottom-right-radius:5px}
#lbot-root .lb-msg strong{display:block;margin-bottom:4px;color:white;font-size:13px}
#lbot-root .lb-topics{display:grid;grid-template-columns:1fr 1fr;gap:7px;width:100%}
#lbot-root .lb-topic{display:flex;align-items:center;min-height:51px;text-align:left;gap:8px;padding:9px;border:1px solid #31517f;border-radius:11px;background:#0e2344;color:#eaf2ff;font-size:11.5px;font-weight:650;line-height:1.25}
#lbot-root .lb-topic:hover{background:#183462;border-color:#5e86c4}
#lbot-root .lb-topic svg{flex:none;width:21px;height:21px;fill:none;stroke:#71b5ff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#lbot-root .lb-links{display:flex;flex-wrap:wrap;gap:6px;align-self:flex-start}
#lbot-root .lb-links a{padding:8px 11px;background:#11386c;border:1px solid #3d76b9;border-radius:9px;color:#eaf3ff;text-decoration:none;font-size:11.5px;font-weight:700}
#lbot-root .lb-links a:hover{background:#1556a2}
#lbot-root .lb-dots{align-self:flex-start;display:flex;gap:5px;padding:14px 15px;border:1px solid #345589;border-radius:12px;background:#162a4e}
#lbot-root .lb-dots i{width:6px;height:6px;border-radius:50%;background:#89c2ff;animation:lb-p 1s infinite}
#lbot-root .lb-dots i:nth-child(2){animation-delay:.13s}#lbot-root .lb-dots i:nth-child(3){animation-delay:.27s}
#lbot-root .lb-form{display:flex;flex:none;gap:7px;padding:10px 10px 5px;border-top:1px solid #2c426c;background:#091931}
#lbot-root .lb-form input{min-width:0;flex:1;height:43px;padding:0 12px;border-radius:10px;border:1px solid #4275c0;background:#152844;color:white;outline:none;font-size:13px}
#lbot-root .lb-form input::placeholder{color:#a0b0cb}
#lbot-root .lb-form input:focus{border-color:#78b6ff;box-shadow:0 0 0 2px #437bd14d}
#lbot-root .lb-send {display:grid;place-items:center;flex:none;height:43px;width:45px;border:0;border-radius:11px;color:white;background:linear-gradient(145deg,#1976e3,#0a4fb3);font-weight:800;font-size:20px}
#lbot-root .lb-send:disabled{opacity:.52;cursor:not-allowed}
#lbot-root .lb-note{padding:2px 13px 10px;font-size:10px;color:#9eb0cd;text-align:center;line-height:1.35;background:#091931}
#lbot-root .lb-stateflag{display:inline-block;color:#abc7e9}
#lbot-root .lb-work-laptop{display:none;position:absolute;bottom:7px;left:18px;width:83px;height:35px;transform:skew(-5deg);border-radius:5px 5px 1px 1px;border:2px solid #5699ec;background:linear-gradient(155deg,#193e70,#081a34);box-shadow:0 4px 14px #0009;place-items:center;color:#e7f5ff;font-size:17px;font-weight:900}#lbot-root .lb-work-laptop::after{content:"";position:absolute;bottom:-6px;left:-9px;width:94px;height:5px;border-radius:3px;background:#79b3ee}#lbot-root.lb-working .lb-work-laptop{display:grid}#lbot-root .lb-working-indicator{position:absolute;bottom:39px;right:0;display:none;padding:4px 6px;font-size:10px;border:1px solid #3a78c6;border-radius:8px;background:#112e61;color:#ddedff;box-shadow:0 5px 15px #0006}
#lbot-root.lb-working .lb-working-indicator{display:block}
@keyframes lb-bob {50%{transform:translateY(-4px)}}
@keyframes lb-in {from{opacity:0;transform:translateY(8px) scale(.985)}}
@keyframes lb-p {50%{opacity:.25}}
@media(max-width:540px){#lbot-root .lb-mascot{bottom:4px;left:8px}#lbot-root.lb-right .lb-mascot{right:8px}#lbot-root .lb-launcher{width:89px;height:112px}#lbot-root .lb-bubble{margin-bottom:34px;max-width:172px;padding:9px 10px}#lbot-root .lb-chat,#lbot-root.lb-right .lb-chat{left:8px;right:8px;bottom:118px;width:auto;height:min(540px,calc(100dvh - 132px));min-height:min(355px,calc(100dvh - 135px))}#lbot-root .lb-top{gap:6px;padding:9px}#lbot-root .lb-topbtn{font-size:10px;padding:6px}#lbot-root .lb-heading strong{font-size:12px}#lbot-root .lb-heading small{font-size:9.5px}}
@media(max-height:540px){#lbot-root .lb-chat,#lbot-root.lb-right .lb-chat{bottom:7px;height:calc(100dvh - 14px);min-height:0}}
@media(prefers-reduced-motion:reduce){#lbot-root .lb-launcher img,#lbot-root .lb-chat,#lbot-root .lb-dots i{animation:none}}


#lbot-root{--lb-bg:#0b1433;--lb-deep:#132344;--lb-blue:#0A4FB3;--lb-gray:#BFC5CC;--lb-dark:#2B2B2B;--lb-cyan:#60b8e8;color:#eef4ff;font-family:Inter,"Segoe UI",Arial,sans-serif}
#lbot-root .lb-chat{background:#0b1433;border:1px solid #304f9a;border-radius:22px;box-shadow:0 22px 70px #020817b8}
#lbot-root .lb-top{min-height:68px;gap:8px;background:linear-gradient(105deg,#1b2b51,#14203c);border-bottom:2px solid #2682d1;padding:10px 12px}
#lbot-root .lb-avatar{padding:0;border-radius:12px;background:#0F2F5F;overflow:hidden;box-shadow:none;width:40px;height:40px}
#lbot-root .lb-avatar img{display:block;width:100%;height:100%;object-fit:cover}
#lbot-root .lb-heading strong{font-size:14px;letter-spacing:-.025em}
#lbot-root .lb-heading small{color:#b3c6e0;font-size:10px}
#lbot-root .lb-topbtn{border-radius:9px;background:#233252;color:#e8efff;border-color:#43578e;padding:8px 9px;font-size:11px}
#lbot-root .lb-topbtn.lb-new{background:#093c3e;color:#48e7b8;border-color:#187d7a}
#lbot-root .lb-topbtn.lb-x{width:33px;height:33px;background:#2e213e;color:#fd85a5;border-color:#8f3d6b}
#lbot-root .lb-content{padding:21px 16px;background:#0b1433}
#lbot-root .lb-msg{font-size:13px;line-height:1.5}
#lbot-root .lb-msg.bot{background:#1d294b;border:1px solid #344f88}
#lbot-root .lb-msg.user{background:#21488e;border:1px solid #4377d7}
#lbot-root .lb-menu-panel{background:#152648;border-color:#304f80}
#lbot-root .lb-form{background:#0b1433;border-top:1px solid #243c6a;padding:10px 10px 4px}
#lbot-root .lb-form input{background:#1a2745;border:1px solid #4477c9;border-radius:12px;height:47px;font-size:13px}
#lbot-root .lb-send{height:47px;width:47px;border-radius:12px;background:linear-gradient(135deg,#337bfa,#5054e9)}
#lbot-root .lb-note{background:#0b1433;color:#8fa4c4;font-size:9.7px;line-height:1.4;padding:3px 12px 12px}
#lbot-root .lb-work-laptop{font-size:0}
#lbot-root .lb-work-laptop img{display:block;width:25px;height:25px;object-fit:contain}
#lbot-root.lb-expanded .lb-chat{width:min(650px,calc(100vw - 24px));height:min(720px,calc(100dvh - 32px));bottom:16px}
@media(min-width:850px){#lbot-root .lb-chat{width:390px;height:min(520px,calc(100dvh - 40px));bottom:18px;left:225px}#lbot-root.lb-right .lb-chat{right:225px;left:auto}#lbot-root .lb-mascot{bottom:65px;left:32px}#lbot-root.lb-open .lb-mascot{bottom:65px}#lbot-root .lb-launcher{width:128px;height:153px}#lbot-root .lb-bubble{margin-bottom:60px}}
@media(max-width:849px){#lbot-root .lb-chat,#lbot-root.lb-right .lb-chat{left:8px;right:8px;width:auto;bottom:115px;height:min(590px,calc(100dvh - 132px));min-height:0}#lbot-root.lb-expanded .lb-chat{bottom:8px;height:calc(100dvh - 16px);left:8px;right:8px;width:auto}#lbot-root .lb-mascot{bottom:6px;left:8px}}
@media(max-width:390px){#lbot-root .lb-top{gap:5px;padding:8px 7px}#lbot-root .lb-avatar{width:35px;height:35px}#lbot-root .lb-heading strong{font-size:12px}#lbot-root .lb-topbtn{padding:7px 6px;font-size:10px}}


/* v1.4 — Ajustes visuales tomados de la interfaz MBot del portal (referencia del usuario).
   Blanco en textos, LED de estado, azul marino con detalles violeta, cuadrícula sin desborde. */
#lbot-root {
  --lb-bg:#090f29; --lb-deep:#151f47; --lb-blue:#3d72e4;
  --lb-line:#334b82; --lb-text:#ffffff; --lb-muted:#c9d5eb;
  font:14px/1.52 "Segoe UI",Arial,sans-serif;
  color:#fff;
}
#lbot-root .lb-chat {
  background:#091129; border:1px solid #375aa3;
  box-shadow:0 20px 58px #0009,0 0 0 1px #273e7340;
}
#lbot-root .lb-top {
  position:relative;
  background:linear-gradient(115deg,#18294e 0%,#212a57 61%,#19234a 100%);
  border-bottom:1px solid #2c64a0;
  padding:9px 10px 11px;
}
#lbot-root .lb-top::after {
  content:"";position:absolute;bottom:-2px;left:0;right:0;height:2px;
  background:linear-gradient(90deg,#2368d0,#36baff 60%,#7c5df4);
  box-shadow:0 1px 7px #38a2ff8c;pointer-events:none;
}
#lbot-root .lb-avatar {
  overflow:hidden;border:1px solid #35538d;
  background:#0b235a;border-radius:12px;
  width:44px;height:44px;flex:none;
}
#lbot-root .lb-avatar img {
  display:block;width:100%;height:100%;object-fit:cover;object-position:center;
}
#lbot-root .lb-heading strong {
  color:#fff;font-weight:750;font-size:14px;line-height:1.3;
}
#lbot-root .lb-status-row {
  display:flex;align-items:center;gap:5px;margin-top:4px;min-width:0;
}
#lbot-root .lb-status-led {
  display:inline-block;flex:0 0 7px;width:7px;height:7px;
  background:#39ce92;border-radius:50%;box-shadow:0 0 0 2px #37cb9022,0 0 7px #36d69ca8;
}
#lbot-root .lb-heading small,#lbot-root .lb-heading small:before {
  color:#d8e3fa;
}
#lbot-root .lb-heading small {display:inline;flex:1;min-width:0;}
#lbot-root .lb-heading small:before {display:none;}
#lbot-root .lb-topbtn {
  border-color:#415b96;background:#23305b;color:#fff;
  font-size:11px;
}
#lbot-root .lb-topbtn:hover {background:#2c3d75;color:#fff;}
#lbot-root .lb-topbtn.lb-new {background:#10383e;border-color:#118d9d;color:#76f4d4;}
#lbot-root .lb-topbtn.lb-x {background:#38213e;color:#ffacc8;border-color:#8d4269;}
#lbot-root .lb-content {background:#081027;overflow-x:hidden;}
#lbot-root .lb-msg {color:#fff;font-size:13px;}
#lbot-root .lb-msg.bot {background:#182346;border-color:#374d86;color:#fff;}
#lbot-root .lb-msg.user {background:#234681;border-color:#365fa9;color:#fff;}
#lbot-root .lb-msg strong {color:#fff;}
#lbot-root .lb-menu-panel {
  background:#121f43;border-bottom-color:#2b4575;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
#lbot-root .lb-menu-panel button,#lbot-root .lb-menu-panel a {
  min-width:0;overflow-wrap:anywhere;
  background:#1c2d54;border:1px solid #3b5792;
  color:#fff;font-weight:650;font-size:11px;
  display:flex;align-items:center;justify-content:center;gap:6px;
}
#lbot-root .lb-menu-panel button:hover,#lbot-root .lb-menu-panel a:hover {background:#263c70;color:#fff;}
#lbot-root .lb-menu-panel .lb-visit-mark3ting {
  grid-column:1 / -1;justify-content:center;
  border-color:#4b65a2;background:#1b2850;
  min-height:36px;
}
#lbot-root .lb-visit-mark3ting img {
  display:block;flex:none;width:auto;max-width:87px;height:23px;object-fit:contain;
}
#lbot-root .lb-topics {grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;min-width:0;}
#lbot-root .lb-topic {
  min-width:0;width:100%;overflow:hidden;overflow-wrap:anywhere;
  background:#152347;border-color:#365281;color:#fff;
  font-size:11px;line-height:1.3;
}
#lbot-root .lb-topic span {min-width:0;overflow-wrap:anywhere;color:#fff;}
#lbot-root .lb-topic svg {color:#78a7f6;stroke:#78a7f6;}
#lbot-root .lb-topic:hover {background:#213866;color:#fff;}
#lbot-root .lb-links a {background:#1e335d;border-color:#4771b8;color:#fff;}
#lbot-root .lb-form {background:#0a122b;border-top-color:#2c4272;}
#lbot-root .lb-form input {background:#1a2749;border:1px solid #4f68ad;color:#fff;}
#lbot-root .lb-form input:focus {border-color:#7b87f1;box-shadow:0 0 0 2px #637cf15c;}
#lbot-root .lb-form input::placeholder {color:#ccd4e8;}
#lbot-root .lb-send {background:linear-gradient(140deg,#3a78ed,#7058ed);color:#fff;}
#lbot-root .lb-note {color:#ccd6ed;background:#0a122b;}
#lbot-root .lb-bubble,#lbot-root .lb-bubble strong,#lbot-root .lb-bubble small {color:#fff;}
#lbot-root.lb-expanded .lb-chat,#lbot-root.lb-right.lb-expanded .lb-chat {
  width:min(520px,calc(100vw - 24px));height:min(700px,calc(100dvh - 50px));
  bottom:15px;
}
@media(max-width:540px){
 #lbot-root.lb-expanded .lb-chat,#lbot-root.lb-right.lb-expanded .lb-chat {
   left:8px;right:8px;width:auto;bottom:8px;height:calc(100dvh - 16px);min-height:0;
 }
 #lbot-root .lb-topbtn {font-size:10px;padding:6px;}
 #lbot-root .lb-avatar {width:38px;height:38px;}
 #lbot-root .lb-menu-panel .lb-visit-mark3ting {grid-column:1 / -1;}
}

/* v1.5: una sola pose oficial de LBot mientras se corrige la V en las demás
   variantes gráficas. El indicador de disponibilidad refleja consultas frecuentes,
   no presencia de un operador humano. */
#lbot-root .lb-status-led {background:#6ca7ff;box-shadow:0 0 0 2px #5c9fff2c,0 0 7px #76aafa90;}
#lbot-root .lb-topic {text-decoration:none;}
#lbot-root .lb-topic:visited {color:#fff;}
#lbot-root .lb-bubble strong,#lbot-root .lb-bubble small {color:#fff;}
#lbot-root .lb-note {font-size:10px;}
@media(max-width:540px){#lbot-root .lb-topbtn.lb-new{padding-left:7px;padding-right:7px;}}

/* v1.6: movimiento lento y continuo del robot durante la escritura.
   Conserva el único personaje aprobado: la V queda integrada a su pecho. */
#lbot-root .lb-robot-motion {
  position:absolute;
  inset:0;
  display:block;
  pointer-events:none;
  transform-origin:50% 85%;
  transform:translate3d(0,0,0) rotate(0deg) scale(1);
  transition:transform 1.75s cubic-bezier(.42,0,.19,1), filter 1.75s ease-in-out;
  will-change:transform;
}
#lbot-root .lb-robot-motion > img {
  width:100%;height:100%;display:block;object-fit:contain;object-position:bottom;
  animation:lb-robot-breathe 6.4s ease-in-out infinite;
  transform-origin:50% 85%;
}
/* Fijamos sobreescritura del movimiento rápido que venía de la v1.3. */
#lbot-root .lb-launcher > .lb-robot-motion > img {animation:lb-robot-breathe 6.4s ease-in-out infinite;}
#lbot-root.lb-state-saludando .lb-robot-motion {
  transform:translate3d(3px,-6px,0) rotate(3deg) scale(1.025);
}
#lbot-root.lb-state-escuchando:not(.lb-typing) .lb-robot-motion {
  transform:translate3d(0,-4px,0) rotate(-1.3deg) scale(1.015);
}
#lbot-root.lb-typing .lb-robot-motion {
  transform:translate3d(-4px,-5px,0) rotate(-3.2deg) scale(1.025);
}
#lbot-root.lb-typing.lb-lean-right .lb-robot-motion {
  transform:translate3d(5px,-9px,0) rotate(3.2deg) scale(1.035);
}
#lbot-root.lb-state-pensando .lb-robot-motion,
#lbot-root.lb-state-trabajando .lb-robot-motion {
  transform:translate3d(2px,-7px,0) rotate(2deg) scale(1.025);
  filter:drop-shadow(0 0 5px rgba(73,178,255,.24));
}
#lbot-root.lb-state-respondiendo .lb-robot-motion {
  transform:translate3d(0,-10px,0) rotate(-2.2deg) scale(1.04);
  filter:drop-shadow(0 0 9px rgba(77,172,255,.33));
}
@keyframes lb-robot-breathe {
  0%,100%{transform:translate3d(0,0,0) rotate(-.5deg)}
  50%{transform:translate3d(0,-4px,0) rotate(.5deg)}
}
@media(prefers-reduced-motion:reduce){
  #lbot-root .lb-robot-motion{transition:none!important;will-change:auto;transform:none!important;filter:none!important}
  #lbot-root .lb-robot-motion > img,
  #lbot-root .lb-launcher > .lb-robot-motion > img{animation:none!important}
}

/* v1.7 - estados VISUALES del robot con fundidos lentos.
   La pose de mate se limita al reposo; al escribir la lupa sustituye la imagen.
   Se evita trabajando.webp por su V fuera del cuerpo. El chat no se modifica. */
#lbot-root .lb-launcher .lb-robot-motion {
  display:block;
  position:absolute;
  inset:0;
  pointer-events:none;
  transform-origin:50% 88%;
  transition:transform 2.2s cubic-bezier(.24,.48,.18,1),filter 2.2s ease;
}
#lbot-root .lb-launcher .lb-robot-pose {
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:50% 100%;
  opacity:0;
  visibility:visible;
  transform-origin:50% 88%;
  transform:translate3d(0,6px,0) scale(.965);
  transition:opacity 1.35s ease-in-out,transform 1.8s ease-in-out;
  animation:none!important;
  user-select:none;
}
/* Capa activa. El fundido entre poses es simultáneo y sin cortes. */
#lbot-root.lb-state-esperando .lb-robot-pose[data-lb-pose="esperando"],
#lbot-root.lb-state-saludando .lb-robot-pose[data-lb-pose="saludando"],
#lbot-root.lb-state-escuchando .lb-robot-pose[data-lb-pose="escuchando"],
#lbot-root.lb-state-pensando .lb-robot-pose[data-lb-pose="pensando"],
#lbot-root.lb-state-trabajando .lb-robot-pose[data-lb-pose="pensando"],
#lbot-root.lb-state-respondiendo .lb-robot-pose[data-lb-pose="respondiendo"] {
  opacity:1;
  transform:translate3d(0,0,0) scale(1);
}
/* Movimiento continuo mientras el usuario escribe (visible, lento, sin saltos). */
#lbot-root.lb-typing .lb-launcher .lb-robot-motion {
  transform:translate3d(-8px,-6px,0) rotate(-5deg) scale(1.06);
}
#lbot-root.lb-typing.lb-lean-right .lb-launcher .lb-robot-motion {
  transform:translate3d(8px,-11px,0) rotate(5deg) scale(1.065);
}
#lbot-root.lb-state-pensando:not(.lb-typing) .lb-launcher .lb-robot-motion {
  transform:translate3d(0,-7px,0) rotate(-3deg) scale(1.02);
}
#lbot-root.lb-state-respondiendo:not(.lb-typing) .lb-launcher .lb-robot-motion {
  transform:translate3d(0,-10px,0) rotate(3deg) scale(1.04);
}
/* Reposo discreto: no congela al personaje cuando no hay interacción. */
#lbot-root.lb-state-esperando:not(.lb-typing) .lb-launcher .lb-robot-motion {
  animation:lb-pose-idle 7.4s ease-in-out infinite;
}
@keyframes lb-pose-idle {
  0%,100% {transform:translate3d(0,0,0) rotate(0deg)}
  50% {transform:translate3d(0,-5px,0) rotate(1.4deg)}
}
@media (prefers-reduced-motion:reduce) {
  #lbot-root .lb-launcher .lb-robot-motion,
  #lbot-root .lb-launcher .lb-robot-pose {
    animation:none!important;
    transition:none!important;
    transform:none!important;
  }
}

/* v1.8.1 - Panel de correo utilizable sin cliente mailto configurado */
#lbot-root .lb-contact-card{width:100%;align-self:stretch;background:#142448;border:1px solid #4c67a2;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:7px;overflow-wrap:anywhere;}
#lbot-root .lb-contact-card>strong{color:#fff;font-size:13px;}
#lbot-root .lb-contact-card p{font-size:11.5px;line-height:1.45;margin:0;color:#e2eafd;}
#lbot-root .lb-contact-card label{font-size:11px;color:#d9e6ff;font-weight:650;}
#lbot-root .lb-contact-card input,#lbot-root .lb-contact-card textarea{width:100%;min-width:0;padding:8px 9px;background:#0b1534;color:#fff;border:1px solid #4f6ca5;border-radius:7px;font:12px/1.4 "Segoe UI",Arial,sans-serif;}
#lbot-root .lb-contact-card textarea{resize:vertical;min-height:125px;}
#lbot-root .lb-contact-card .lb-contact-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:3px;}
#lbot-root .lb-contact-card .lb-contact-action{background:#233e77;color:#fff;border:1px solid #5684d0;border-radius:8px;padding:8px 9px;font-size:11px;font-weight:700;cursor:pointer;}
#lbot-root .lb-contact-card .lb-contact-action:hover{background:#315798;}
#lbot-root .lb-contact-card .lb-contact-feedback{color:#d3e3ff;font-size:10.5px;}
