.owlbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 110px;
  height: 110px;
   display: flex;
  align-items: center;
  justify-content: center;
}


.owl-circle {
  position: relative; /* 👈 ESTO FALTABA */
  width: 110px;
  height: 110px;
  background: white;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}


.owl-circle video {
  width: 140px;
  height: auto;
}



.owl-bubbles {
  position: absolute;
  right: 120px;        /* 👈 a la izquierda del búho */
  bottom: 15px;        /* 👈 pegadito al círculo */
  display: flex;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}




.bubble {
  background: white;
  color: #1a1a1a;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;   /* 👈 evita que se rompa en líneas */
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  position: relative;
}

.bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 14px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid white; /* 👈 pico */
}



@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.bubble {
  max-width: 220px;
  line-height: 1.4;
  font-weight: 500;
}

.bubble:first-child {
  font-weight: 600;
}

/* ===========================
   AJUSTES SOLO PARA MOVIL
=========================== */
@media (max-width: 768px) {

  .owlbot {
    bottom: 15px;
    right: 15px;
  }

  .owl-circle {
    width: 100px;
    height: 100px;
  }

  .owl-circle video {
    width: 100px;
  }

  .owl-bubbles {
    bottom: 50%;
    right: 90px;
    align-items: flex-end;
  }

  

  /* Pico tipo burbuja */
  .bubble::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: 12px;
    width: 0;
    height: 0;
    border-left: 6px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
  }
}


/* CHAT */
/* CHAT */
.owl-chat {
  position: fixed;
  bottom: 130px;
  right: 20px;
  width: 330px;
  max-height: 80vh;
  background: #f9fafc;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  font-family: 'Poppins', sans-serif;
  display: none;
  flex-direction: column;
  z-index: 99999;
  overflow: hidden;
  animation: chatIn .3s ease;
}

@keyframes chatIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* HEADER */
.owl-chat-header {
  background: linear-gradient(135deg, #1e2a5a, #243b82);
  color: white;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-chat {
  cursor: pointer;
  font-size: 20px;
  opacity: .8;
}

/* BODY */
.owl-chat-body {
  padding: 14px;
  font-size: 13px;
  overflow-y: auto;
}

/* MENSAJE (COMPACTO) */
.owl-chat-body p {
  background: white;
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
  margin-bottom: 12px;
  line-height: 1.4;
}

/* FORM */
.owl-chat-body form input,
.owl-chat-body form textarea {
  width: 100%;
  padding: 9px 11px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid #e1e4ea;
  font-size: 13px;
  transition: all .2s ease;
}

.owl-chat-body form input:focus,
.owl-chat-body form textarea:focus {
  outline: none;
  border-color: #1e2a5a;
  box-shadow: 0 0 0 3px rgba(30,42,90,.15);
}

.owl-chat-body textarea {
  resize: none;
  height: 80px;
}

/* BOTÓN */
.owl-chat-body button {
  width: 100%;
  background: linear-gradient(135deg, #1e2a5a, #243b82);
  color: white;
  border: none;
  padding: 11px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .25s ease;
}

.owl-chat-body button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(30,42,90,.4);
}

/* MOBILE */
@media (max-width: 768px) {
  .owl-chat {
    width: calc(100vw - 16px);
    right: 8px;
    bottom: 95px;
    max-height: 85vh;
  }
}
.owl-chat {
  display: none;
}

.owl-chat.open {
  display: flex;
}
