/* LicitaTIC · Chat de la web (colores y esquinas de la marca) */
.lt-chat { --azul: #03214F; --turq: #0CA8AC; --turq-suave: #E2F5F5; --linea: #E3E9F0; --gris: #F4F7FA;
  position: fixed; right: 18px; bottom: 18px; z-index: 1000; font-family: 'Montserrat', system-ui, sans-serif; color: var(--azul); }
.lt-chat [hidden] { display: none !important; }
.lt-chat *, .lt-chat *::before { box-sizing: border-box; }
.lt-chat-boton { display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: var(--turq); color: var(--azul);
  padding: 13px 18px; border-radius: 16px 3px 16px 3px; font: 700 14px 'Montserrat', sans-serif; box-shadow: 0 10px 30px rgba(3,33,79,.28); position: relative; }
.lt-chat-boton:hover { filter: brightness(1.05); }
.lt-chat-aviso { position: absolute; top: -5px; right: -5px; width: 14px; height: 14px; border-radius: 50%; background: #E5484D; border: 2px solid #fff; }
.lt-chat-ventana { position: absolute; right: 0; bottom: 64px; width: 370px; max-width: calc(100vw - 24px); height: min(560px, calc(100vh - 100px));
  background: #fff; border-radius: 16px 3px 16px 3px; box-shadow: 0 20px 60px rgba(3,33,79,.3); display: flex; flex-direction: column; overflow: hidden; }
.lt-chat-cab { background: var(--azul); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.lt-chat-cab strong { font-size: 18px; letter-spacing: -.3px; }
.lt-chat-cab strong span { color: var(--turq); }
.lt-chat-estado { font-size: 12px; color: #C9D5E4; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.lt-chat-estado i { width: 8px; height: 8px; border-radius: 50%; background: #8A97AA; display: inline-block; }
.lt-chat-estado i.on { background: #3DD68C; }
.lt-chat-cerrar { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.lt-chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--gris); }
.lt-chat-m { max-width: 85%; padding: 9px 12px; border-radius: 12px 3px 12px 3px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.lt-chat-m.bot, .lt-chat-m.equipo { background: #fff; border: 1px solid var(--linea); align-self: flex-start; }
.lt-chat-m.equipo { border-color: var(--turq); }
.lt-chat-m.equipo::before { content: 'Equipo LicitaTIC'; display: block; font-size: 11px; font-weight: 700; color: #08777A; margin-bottom: 2px; }
.lt-chat-m.visitante { background: var(--azul); color: #fff; align-self: flex-end; }
.lt-chat-m a { color: #08777A; }
.lt-chat-m.visitante a { color: #fff; }
.lt-chat-escribiendo { align-self: flex-start; color: #6B7C93; font-size: 12px; }
.lt-chat-rapidas { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: var(--gris); }
.lt-chat-rapidas button { border: 1px solid var(--turq); background: #fff; color: var(--azul); border-radius: 10px 2px 10px 2px; padding: 6px 10px; font: 600 12px 'Montserrat', sans-serif; cursor: pointer; }
.lt-chat-rapidas button:hover { background: var(--turq-suave); }
.lt-chat-escribir { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--linea); background: #fff; }
.lt-chat-escribir input { flex: 1; min-width: 0; border: 1px solid #CBD6E2; border-radius: 10px 2px 10px 2px; padding: 10px 12px; font: 14px 'Montserrat', sans-serif; color: var(--azul); }
.lt-chat-escribir button { border: 0; background: var(--turq); color: var(--azul); border-radius: 10px 2px 10px 2px; width: 44px; cursor: pointer; display: grid; place-items: center; }
.lt-chat input:focus, .lt-chat textarea:focus, .lt-chat button:focus-visible { outline: 2px solid var(--turq); outline-offset: 1px; }
.lt-chat-persona { border: 0; background: #fff; color: #08777A; font: 600 12px 'Montserrat', sans-serif; padding: 0 12px 12px; cursor: pointer; text-decoration: underline; text-align: center; }
.lt-chat-datos { padding: 12px; display: grid; gap: 8px; background: #fff; border-top: 1px solid var(--linea); overflow-y: auto; max-height: 70%; }
.lt-chat-datos p { margin: 0; font-size: 13px; line-height: 1.5; color: #33475F; }
.lt-chat-datos input, .lt-chat-datos textarea { border: 1px solid #CBD6E2; border-radius: 8px 2px 8px 2px; padding: 9px 10px; font: 14px 'Montserrat', sans-serif; color: var(--azul); width: 100%; }
.lt-chat-priv { font-size: 12px; color: #33475F; display: flex; gap: 6px; align-items: flex-start; }
.lt-chat-priv input { width: auto; margin-top: 2px; accent-color: var(--turq); }
.lt-chat-fila { display: flex; gap: 8px; justify-content: flex-end; }
.lt-chat-pri, .lt-chat-sec { border: 0; border-radius: 8px 2px 8px 2px; padding: 9px 14px; font: 700 13px 'Montserrat', sans-serif; cursor: pointer; }
.lt-chat-pri { background: var(--turq); color: var(--azul); }
.lt-chat-sec { background: var(--gris); color: var(--azul); }
.lt-chat-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; }
@media (max-width: 480px) {
  .lt-chat { right: 12px; bottom: 12px; }
  .lt-chat-etiqueta { display: none; }
  .lt-chat-boton { padding: 14px; }
  .lt-chat-ventana { position: fixed; right: 8px; left: 8px; bottom: 76px; width: auto; max-width: none; height: calc(100vh - 96px); }
}
.lt-chat-m.error { background: #fdecec; color: #8a1c1c; align-self: flex-start; }
.lt-chat-m small { display: block; font-size: .72rem; opacity: .75; margin-bottom: 2px; }
