#ieshChatWidget{position:fixed;right:16px;bottom:16px;z-index:99999;font-family:Arial, sans-serif}
#ieshChatBtn{
  width:58px;height:58px;border-radius:50%;
  background:#0f2a4a;color:#fff;display:flex;align-items:center;justify-content:center;
  cursor:pointer;box-shadow:0 10px 25px rgba(0,0,0,.25);user-select:none
}
#ieshChatBtn span{font-size:24px;font-weight:800}

#ieshChatPanel{
  width:340px;max-width:calc(100vw - 32px);
  height:500px;max-height:calc(100vh - 120px);
  background:#fff;border-radius:16px;
  box-shadow:0 18px 45px rgba(0,0,0,.25);
  overflow:hidden;display:none;flex-direction:column;margin-bottom:10px
}

#ieshChatHeader{
  background:#0f2a4a;color:#fff;padding:12px 12px;
  display:flex;align-items:center;justify-content:space-between
}
#ieshChatHeader .t{font-weight:800;font-size:14px;line-height:1.2}
#ieshChatHeader .s{font-size:11px;opacity:.9}
#ieshChatClose{cursor:pointer;font-weight:800;padding:6px 10px;border-radius:10px;background:rgba(255,255,255,.12)}

#ieshChatBody{padding:12px;overflow-y: auto;height: 100%;
  scroll-behavior: smooth; /* opcional */
  flex:1;background:#f4f6fb}
.msg{margin:0 0 10px 0;display:flex}
.msg.bot{justify-content:flex-start}
.msg.user{justify-content:flex-end}
.bubble{
  max-width:88%;
  padding:10px 12px;border-radius:14px;
  font-size:13px;line-height:1.35;
 
}
.bot .bubble{background:#e7f6ebb0;border:1px solid #dbe3f0;color:#0f2a4a}
.user .bubble{background:#0f2a4a;color:#fff}



#ieshChatFooter .row.vertical{
  left: 0;
  right: 0;
  margin: 0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align: center;
  gap:6px;
  width:90%;
  box-sizing:border-box;
}

#ieshChatInput{
   
  width:90%;
  max-width:100%;
  color: #0f2a4a;
  font-weight: 700;
  margin-top:7px;

  border:2px solid #aac8f8;
  border-radius:10px;

  padding:7px 10px;
  font-size:13px;

  outline:none;
  box-sizing:border-box;
  min-width:0;
}


#ieshChatSend{
  /* align-self:flex-end;   */
      /* 🔥 lo manda a la derecha */
  
  
  border:0;
  background:#0465af;          /* ✅ verde WhatsApp */
  color:#fff;

  border-radius:8px;
  padding:4px 10px;         /* 🔥 pequeño */
  font-size:12px;
  font-weight:600;

  cursor:pointer;
  opacity:0.9;
  line-height: 1;
}

#ieshChatSend:hover{
  opacity:1;
}

#ieshChatFooter .smallNote{
  margin-top:6px;
  font-size:11px;
  color:#6b7a90;
  text-align:center;
}

#ieshChatLauncher{
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
}

/* GIF animado */
#ieshChatHint{
  width: 58px;
  height:auto;
  pointer-events: none; /* 👈 no clickeable */
  opacity: 0.9;
  animation: pulseHint 2s infinite;
}

/* Animación sutil */
@keyframes pulseHint{
  0%   { transform: scale(1); opacity: 0.9; }
  50%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

/* Botón del chat */
#ieshChatBtn{
  width: 50px;
  height: 50px;
  background: #0057a4;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}



#ieshQuick{margin-top:6px;display:grid;flex-wrap:wrap;gap:6px;
max-height:72px;        /* 👈 clave */
  overflow-y:auto;        /* scroll si hay muchos */
  grid-template-columns:repeat(2,1fr);
  padding:7px;
}
.qbtn{
  border:1px solid #dbe3f0;background:#fff;color:#0f2a4a;
  padding:4px 10px;border-radius:999px;font-size:12px;cursor:pointer;line-height:1.2;
}
.qbtn.primary{background:#0f2a4a;color:#fff;border-color:#0f2a4a}
.smallNote{font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin-top: 6px;
  line-height: 1;
  padding: 7px;
  /* white-space: nowrap;      */
  /* 👈 NO partir línea */
  overflow: hidden;
  text-overflow: ellipsis; /* 👈 si no cabe, pone ... */}


  /* Spinner único para IESH */
.ieshSpinner {
  width: 22px;
  height: 22px;
  display: inline-block;
  border: 3px solid rgba(0,0,0,0.15);
  border-top-color: #2c6ed5;
  border-radius: 50%;
  animation: ieshSpin 0.8s linear infinite !important;
  -webkit-animation: ieshSpin 0.8s linear infinite;
  will-change: transform;
}
.msg.bot.waiting .bubble { text-align: center; }

@keyframes ieshSpin { to { transform: rotate(360deg); } }
@-webkit-keyframes ieshSpin { to { -webkit-transform: rotate(360deg); } }

/* Texto más pequeño solo para la lista de carreras */
#ieshChatWidget .bubble.bubble-small{
  font-size: 11px;
  line-height: 1.35;
  background: #99c9f368;
}


/* opcional: que los bullets respiren un poquito */
#ieshChatWidget .bubble.bubble-small br{
  content: "";
}

/* Globo de saludo */
#ieshChatHello{
  position: absolute;
  bottom: 100%; 
               /* encima del botón */
  right: 0;
  margin-bottom: 10px;
  width: 100px !important;

  background: #1e88e5;
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
  padding: 8px 12px;
  border-radius: 14px;
  /* white-space: nowrap; */

  box-shadow: 0 6px 16px rgba(0,0,0,.2);
  /* opacity: 0; */
  transform: translateY(6px);
  transition: all .35s ease;
  
}


