.myorbis-mascot-lane{pointer-events:auto}.myorbis-mascot{border:0;padding:0;background:transparent;cursor:pointer;text-align:left}.myorbis-mascot:focus-visible{outline:3px solid #0a85d1;outline-offset:3px;border-radius:10px}.myorbis-chat{position:fixed;z-index:99990;right:22px;bottom:22px;width:min(390px,calc(100vw - 24px));height:min(590px,calc(100vh - 40px));display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(8,68,149,.18);border-radius:24px;background:#fff;box-shadow:0 22px 65px rgba(8,35,67,.28);font-family:inherit;color:#1d2b3a}.myorbis-chat[hidden]{display:none}.myorbis-chat-header{display:flex;align-items:center;gap:11px;padding:16px 17px;background:linear-gradient(135deg,#084495,#0a85d1);color:#fff}.myorbis-chat-avatar{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#fff;color:#084495;font-size:21px}.myorbis-chat-title{min-width:0;flex:1}.myorbis-chat-title strong,.myorbis-chat-title span{display:block}.myorbis-chat-title span{margin-top:2px;font-size:.76rem;opacity:.85}.myorbis-chat-close{width:35px;height:35px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:24px;line-height:1;cursor:pointer}.myorbis-chat-messages{flex:1;overflow-y:auto;padding:17px;background:#f6f9fc;scroll-behavior:smooth}.myorbis-chat-message{max-width:84%;margin:0 0 12px;padding:11px 13px;border-radius:17px;font-size:.92rem;line-height:1.48;white-space:pre-wrap;overflow-wrap:anywhere}.myorbis-chat-message.bot{border-bottom-left-radius:5px;background:#fff;box-shadow:0 3px 13px rgba(8,68,149,.08)}.myorbis-chat-message.user{margin-left:auto;border-bottom-right-radius:5px;background:#0a66c9;color:#fff}.myorbis-chat-message.error{background:#fff2f1;color:#9b2c22}.myorbis-chat-typing{display:flex;gap:5px;align-items:center}.myorbis-chat-typing i{width:6px;height:6px;border-radius:50%;background:#7d8995;animation:myorbis-chat-dot 1s infinite alternate}.myorbis-chat-typing i:nth-child(2){animation-delay:.2s}.myorbis-chat-typing i:nth-child(3){animation-delay:.4s}@keyframes myorbis-chat-dot{to{transform:translateY(-4px);opacity:.45}}.myorbis-chat-form{display:flex;gap:8px;padding:12px;border-top:1px solid #e1e9f0;background:#fff}.myorbis-chat-input{min-width:0;flex:1;padding:11px 13px;border:1px solid #cbd7e2;border-radius:14px;font:inherit;resize:none}.myorbis-chat-input:focus{outline:2px solid rgba(10,133,209,.25);border-color:#0a85d1}.myorbis-chat-send{align-self:flex-end;padding:11px 15px;border:0;border-radius:13px;background:#084495;color:#fff;font:inherit;font-weight:800;cursor:pointer}.myorbis-chat-send:disabled,.myorbis-chat-input:disabled{opacity:.55;cursor:not-allowed}.myorbis-chat-note{margin:0;padding:0 14px 12px;background:#fff;color:#697580;font-size:.69rem;line-height:1.35}@media(max-width:620px){.myorbis-chat{right:8px;bottom:8px;width:calc(100vw - 16px);height:min(620px,calc(100vh - 16px));border-radius:20px}}@media(prefers-reduced-motion:reduce){.myorbis-chat-messages{scroll-behavior:auto}.myorbis-chat-typing i{animation:none}}

.myorbis-chat-controls{display:flex;align-items:center;gap:5px}
.myorbis-chat-minimize,.myorbis-chat-close{display:grid;place-items:center;width:35px;height:35px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.myorbis-chat-minimize:hover,.myorbis-chat-close:hover{background:rgba(255,255,255,.25)}
.myorbis-chat.is-minimized{width:min(310px,calc(100vw - 24px));height:62px;border-radius:16px;cursor:pointer}
.myorbis-chat.is-minimized .myorbis-chat-header{height:100%;box-sizing:border-box;padding:10px 13px}
.myorbis-chat.is-minimized .myorbis-chat-messages,.myorbis-chat.is-minimized .myorbis-chat-form,.myorbis-chat.is-minimized .myorbis-chat-note,.myorbis-chat.is-minimized .myorbis-chat-minimize{display:none}
.myorbis-chat.is-minimized .myorbis-chat-title span::after{content:" · Pulsa para continuar"}
@media(max-width:620px){.myorbis-chat.is-minimized{right:8px;bottom:8px;width:min(280px,calc(100vw - 16px));height:58px}}

/* Organización profesional de los elementos flotantes */
.whatsapp-float,
.myorbis-cookie-settings {
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

body.myorbis-chat-active .whatsapp-float,
body.myorbis-chat-active .myorbis-cookie-settings {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.whatsapp-float {
  right: 22px !important;
  bottom: 20px !important;
}

.myorbis-cookie-settings {
  left: 20px !important;
  bottom: 20px !important;
}

.myorbis-chat.is-minimized {
  right: 96px;
  bottom: 20px;
  width: 270px;
  height: 58px;
}

.myorbis-chat.is-minimized .myorbis-chat-title strong {
  font-size: 0;
}

.myorbis-chat.is-minimized .myorbis-chat-title strong::after {
  content: "Orbi · Continuar chat";
  font-size: .92rem;
}

.myorbis-chat.is-minimized .myorbis-chat-title span {
  display: none;
}

.myorbis-chat.is-minimized .myorbis-chat-title span::after {
  content: none;
}

/* Cara de Orbi basada en el mismo robot de la franja */
.orbi-face {
  position: relative;
  display: block;
  width: 27px;
  height: 22px;
  border: 2px solid #084495;
  border-radius: 8px;
  background: #f7fbff;
  box-shadow: 0 2px 4px rgba(8, 68, 149, .18);
}

.orbi-antenna {
  position: absolute;
  left: 50%;
  top: -7px;
  width: 2px;
  height: 6px;
  background: #084495;
  transform: translateX(-50%);
}

.orbi-antenna::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #48b357;
  transform: translateX(-50%);
}

.orbi-screen {
  position: absolute;
  inset: 4px 3px 3px;
  border-radius: 4px;
  background: linear-gradient(145deg, #0a85d1, #084495);
}

.orbi-eye {
  position: absolute;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8bd934;
}

.orbi-eye-left { left: 4px; }
.orbi-eye-right {
  right: 4px;
  transform-origin: center;
  animation: orbi-wink 6s ease-in-out infinite;
}

.orbi-smile {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid #fff;
  border-radius: 0 0 10px 10px;
  transform: translateX(-50%);
}

@keyframes orbi-wink {
  0%, 44%, 48%, 100% { transform: scaleY(1); }
  46% { transform: scaleY(.12); }
}

@media (max-width: 620px) {
  .myorbis-chat {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
    height: min(620px, calc(100dvh - 24px));
  }

  .myorbis-chat.is-minimized {
    right: auto;
    left: 50%;
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: min(330px, calc(100vw - 28px));
    height: 58px;
    transform: translateX(-50%);
  }

  .myorbis-chat.is-minimized .myorbis-chat-header {
    padding: 9px 12px;
  }

  .whatsapp-float {
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  }

  .myorbis-cookie-settings {
    left: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    max-width: calc(100vw - 100px);
    padding: 9px 14px !important;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbi-eye-right { animation: none; }
}

/* Acceso flotante circular: permanece disponible junto a WhatsApp */
.myorbis-chat-fab {
  position: fixed;
  z-index: 99980;
  right: 94px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #0a85d1, #084495);
  box-shadow: 0 8px 24px rgba(8, 68, 149, .34);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.myorbis-chat-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(8, 68, 149, .42);
}

.myorbis-chat-fab:focus-visible {
  outline: 3px solid #8bd934;
  outline-offset: 3px;
}

.myorbis-chat-fab.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.myorbis-chat-fab .orbi-face {
  width: 34px;
  height: 28px;
  border-color: #fff;
  box-shadow: none;
}

.myorbis-chat-fab .orbi-antenna { background: #fff; }
.myorbis-chat-fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* La versión minimizada anterior ya no se muestra como franja */
.myorbis-chat.is-minimized { display: none !important; }

@media (max-width: 900px) {
  .myorbis-chat-fab {
    right: 14px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
  }

  .whatsapp-float {
    right: 14px !important;
    bottom: calc(14px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 620px) {
  .myorbis-chat-fab {
    right: 12px;
    bottom: calc(80px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
  }

  .myorbis-chat-fab .orbi-face { transform: scale(.94); }
}
