/* Chat de atención de ADGOPA */
.achat-boton { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 9998;
  border: 0; border-radius: 999px; padding: 14px 20px; font: 600 16px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #fff; background: linear-gradient(135deg, #2563eb, #7c3aed); box-shadow: 0 10px 30px rgba(37, 99, 235, .45); cursor: pointer; }
.achat-boton:focus-visible, .achat-ventana button:focus-visible, .achat-ventana input:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.achat-ventana { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 9999;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column;
  background: #0d1222; color: #e8ecf6; border: 1px solid #26304d; border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
.achat-ventana[hidden] { display: none; }
.achat-cab { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .25), rgba(124, 58, 237, .25)); border-bottom: 1px solid #26304d; }
.achat-cab div { display: flex; flex-direction: column; }
.achat-sub { font-size: 12px; color: #a5b0cc; }
.achat-cerrar { background: none; border: 0; color: #e8ecf6; font-size: 18px; cursor: pointer; padding: 6px; }
.achat-mensajes { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.achat-msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.achat-yo { align-self: flex-end; background: #2563eb; color: #fff; border-bottom-right-radius: 4px; }
.achat-ia { align-self: flex-start; background: #1b2340; border-bottom-left-radius: 4px; }
.achat-espera { opacity: .6; font-style: italic; }
.achat-aviso { margin: 0; padding: 6px 14px; font-size: 11px; color: #8d98b5; }
.achat-aviso a { color: #93c5fd; }
.achat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #26304d; }
.achat-form input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid #26304d; background: #070a14; color: #e8ecf6; }
.achat-enviar { border: 0; border-radius: 12px; padding: 0 14px; font-weight: 600; color: #fff; background: #2563eb; cursor: pointer; }
.achat-enviar:disabled { opacity: .5; }
@media (prefers-reduced-motion: no-preference) { .achat-ventana { animation: achat-entra .18s ease-out; } }
@keyframes achat-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
