.arco-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.arco-lanzador {
  position: fixed; right: 22px; bottom: 22px; z-index: 99990;
  width: 64px; height: 64px; border: 0; border-radius: 50%;
  background: #1d4e9e; color: white; cursor: pointer;
  box-shadow: 0 10px 28px rgba(20, 48, 96, .35);
  display: grid; place-items: center; padding: 0;
}
.arco-lanzador svg { width: 30px; height: 30px; fill: white; }
.arco-lanzador::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  animation: arco-pulso 2.4s ease-out infinite;
}
@keyframes arco-pulso {
  0% { box-shadow: 0 0 0 0 rgba(29, 78, 158, .45); }
  70% { box-shadow: 0 0 0 16px rgba(29, 78, 158, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 78, 158, 0); }
}
.arco-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 99991;
  width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100vh - 24px));
  display: flex; flex-direction: column;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(16, 36, 72, .28);
  font-family: "Segoe UI", "Liberation Sans", sans-serif; color: #1c2833;
}
.arco-panel[hidden] { display: none; }
.arco-cabeza {
  display: flex; align-items: center; gap: 8px;
  background: #1d4e9e; color: white; padding: 12px 12px 12px 14px;
}
.arco-cabeza h2 { margin: 0; flex: 1; font-size: 16px; line-height: 1.25; font-weight: 650; color: white; }
.arco-escudo, .arco-panel .avatar {
  width: 28px; height: 28px; border-radius: 50%; background: #2f6adf;
  display: grid; place-items: center; flex: none;
}
.arco-escudo svg, .arco-panel .avatar svg { width: 16px; height: 16px; fill: white; }
.arco-cabeza button {
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.16); color: white; cursor: pointer;
  display: grid; place-items: center; padding: 0; font-size: 18px; line-height: 1;
}
.arco-cabeza button svg { width: 16px; height: 16px; fill: none; stroke: white; stroke-width: 2; }
.arco-mensajes { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; background: #f7f9fb; }
.arco-panel .turno { display: flex; gap: 8px; align-items: flex-start; }
.arco-panel .turno.usuario { justify-content: flex-end; }
.arco-panel .burbuja { max-width: 100%; padding: 10px 12px; border-radius: 14px; line-height: 1.45; }
.arco-panel .burbuja p { margin: 0; }
.arco-panel .burbuja.bot { background: white; border: 1px solid #e3eaf1; color: #1c2833; border-top-left-radius: 4px; }
.arco-panel .burbuja.usuario { background: #2f6adf; color: white; border-top-right-radius: 4px; }
.arco-panel .turno time { display: block; margin-top: 4px; color: #8b98a5; font-size: 11px; }
.arco-panel .turno.usuario time { text-align: right; }
.arco-panel .tono { margin: 4px 0 0; color: #1b8a4a; font-size: 12px; font-weight: 650; }
.arco-panel .tono::before { content: "♥\00a0"; }
.arco-panel .acciones { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.arco-panel .acciones a {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 999px; padding: 8px 14px; background: #0f6b56; color: white;
  cursor: pointer; text-decoration: none; font: inherit;
}
.arco-panel .acciones a:hover { background: #0c5847; }
.arco-panel .enlace-sitio svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#arco-panel .acciones a { color: white !important; text-decoration: none !important; }
.arco-panel .chip-rapido {
  border: 1px solid #b9cdf0; border-radius: 999px; padding: 8px 14px; background: #eaf1fd; color: #1d4e9e;
  cursor: pointer; font: inherit;
}
.arco-panel .chip-rapido:hover { background: #dbe7fb; }
.arco-panel .acciones button.secundario {
  background: white; color: #1d4e9e; border: 1px solid #c5d4ea; border-radius: 999px;
  padding: 8px 12px; cursor: pointer; font: inherit;
}
.arco-composer {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
  padding: 10px; background: white; border-top: 1px solid #e3eaf1; margin: 0;
}
.arco-composer input {
  width: 100%; border-radius: 999px; padding: 12px 16px; border: 1px solid #d5dee8;
  font: inherit; background: white; color: #1c2833;
}
.arco-composer button {
  width: 46px; height: 46px; border: 0; border-radius: 50%; padding: 0; background: #1d4e9e;
  display: grid; place-items: center; cursor: pointer;
}
.arco-composer button svg { width: 18px; height: 18px; fill: white; }
.arco-composer button:disabled { opacity: .6; }
.arco-trampa {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.arco-aviso-entrada { grid-column: 1 / -1; margin: 0; color: #8c2f2f; font-size: 12px; }
#arco-panel .arco-privacidad { margin: 0; padding: 0 14px 10px; background: white; color: #526170; font-size: 11px; line-height: 1.35; }
#arco-panel .arco-privacidad a { color: #14324c; text-decoration: underline; }

#arco-panel {
  font-size: 14px;
}
#arco-panel .arco-cabeza h2 {
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 650 !important;
}
#arco-panel p,
#arco-panel .burbuja,
#arco-panel .tono,
#arco-panel time,
#arco-panel button,
#arco-panel a,
#arco-panel input {
  font-size: 13px !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
#arco-panel time,
#arco-panel .tono {
  font-size: 11px !important;
}
#arco-panel .chip-rapido,
#arco-panel .acciones button,
#arco-panel .acciones a {
  padding: 5px 10px !important;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
  max-width: 100%;
  font-weight: 550 !important;
}
#arco-panel .arco-cabeza button {
  width: 28px !important;
  height: 28px !important;
  min-height: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
}
#arco-panel .arco-composer input {
  height: 40px !important;
  min-height: 0 !important;
  padding: 0 14px !important;
  font-size: 13px !important;
}
#arco-panel .arco-composer button {
  width: 40px !important;
  height: 40px !important;
  min-height: 0 !important;
  padding: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .arco-lanzador::after { animation: none; }
}
