/* ===== Chatbot de la página ===== */
#chatbot { --cb-azul: #1c1865; --cb-amarillo: #f6c90e; position: fixed; right: 18px; bottom: 18px; z-index: 900; font-family: "Montserrat", system-ui, sans-serif; }
#chatbot .cb-burbuja { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--cb-azul); color: #fff; cursor: pointer;
  box-shadow: 0 10px 28px rgba(28,24,101,.35); display: grid; place-items: center; transition: transform .2s; }
#chatbot .cb-burbuja:hover { transform: scale(1.06); }
#chatbot .cb-burbuja svg { width: 30px; height: 30px; }
#chatbot .cb-ico-cerrar { display: none; }
#chatbot.abierto .cb-ico-abrir { display: none; }
#chatbot.abierto .cb-ico-cerrar { display: block; width: 24px; height: 24px; }
#chatbot .cb-globo { position: absolute; right: 74px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: #fff; color: var(--cb-azul); font-weight: 700;
  font-size: 14px; padding: 9px 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.15); animation: cb-entra .5s ease 1.5s both; }
#chatbot.abierto .cb-globo, #chatbot.sin-globo .cb-globo { display: none; }
@keyframes cb-entra { from { opacity: 0; transform: translate(10px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
#chatbot .cb-ventana { position: absolute; right: 0; bottom: 76px; width: min(370px, calc(100vw - 28px)); height: min(560px, calc(100vh - 120px)); background: #f6f6fb;
  border-radius: 20px; box-shadow: 0 18px 50px rgba(28,24,101,.3); display: flex; flex-direction: column; overflow: hidden; animation: cb-abre .22s ease; }
#chatbot .cb-ventana[hidden] { display: none; }
@keyframes cb-abre { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
#chatbot .cb-cabeza { background: var(--cb-azul); color: #fff; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
#chatbot .cb-cabeza img { width: 64px; height: auto; border-radius: 8px; }
#chatbot .cb-cabeza div { flex: 1; display: flex; flex-direction: column; }
#chatbot .cb-cabeza b { font-size: 15px; }
#chatbot .cb-cabeza small { font-size: 12px; opacity: .8; }
#chatbot .cb-x { background: rgba(255,255,255,.15); color: #fff; border: 0; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; }
#chatbot .cb-mensajes { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
#chatbot .cb-msj { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; color: #222; }
#chatbot .cb-msj.bot { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
#chatbot .cb-msj.yo { background: var(--cb-azul); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
#chatbot .cb-boton { display: block; margin-top: 10px; text-align: center; background: var(--cb-amarillo); color: var(--cb-azul); font-weight: 800; text-decoration: none;
  padding: 10px 14px; border-radius: 999px; }
#chatbot .cb-boton.wa { background: #25d366; color: #fff; }
#chatbot .cb-opciones { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
#chatbot .cb-opciones button { background: #fff; border: 1.5px solid var(--cb-azul); color: var(--cb-azul); font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; text-align: left; }
#chatbot .cb-opciones button:hover { background: var(--cb-azul); color: #fff; }
#chatbot .cb-pie { background: #fff; border-top: 1px solid #e7e6f3; padding: 12px 14px; font-size: 13px; text-align: center; color: #555; }
#chatbot .cb-pie a { color: #128c4b; font-weight: 800; }
#chatbot .cb-puntos { display: inline-flex; gap: 4px; }
#chatbot .cb-puntos i { width: 7px; height: 7px; border-radius: 50%; background: #9a97c4; animation: cb-p 1s infinite; }
#chatbot .cb-puntos i:nth-child(2) { animation-delay: .15s; } #chatbot .cb-puntos i:nth-child(3) { animation-delay: .3s; }
@keyframes cb-p { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 520px) { #chatbot { right: 12px; bottom: 12px; } #chatbot .cb-globo { display: none; } }
.es-equipo #chatbot { display: none; }
#chatbot .cb-cabeza, #chatbot .cb-pie { flex: none; }
