.pkaty-widget { position: fixed; right: 16px; bottom: 16px; z-index: 99999; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

/* Botón circular tipo WhatsApp + icono + efecto pulso */
.pkaty-fab {
  /* Evita que el tema/constructor (Elementor/plantillas) inyecte estilos raros al botón */
  all: unset;
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  overflow: visible;
  appearance: none;
  -webkit-appearance: none;
}
.pkaty-fab-icon { width: 30px; height: 30px; object-fit: contain; display:block; pointer-events:none; }
.pkaty-fab-fallback { display:none; color:#fff; font-weight:700; font-size: 12px; letter-spacing: .2px; }
.pkaty-fab::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  /* Pulso: del negro hacia afuera a blanco transparente */
  background: radial-gradient(circle,
    rgba(0,0,0,.55) 0%,
    rgba(255,255,255,.18) 45%,
    rgba(255,255,255,0) 70%,
    rgba(255,255,255,0) 100%);
  opacity: .85;
  transform: scale(.9);
  animation: pkatyPulse 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes pkatyPulse {
  0% { transform: scale(.85); opacity: .55; }
  60% { transform: scale(1.25); opacity: .18; }
  100% { transform: scale(1.45); opacity: 0; }
}
.pkaty-widget.pkaty-open .pkaty-fab { display: none; } /* evita que el botón quede encima del chat */

/* Caja “grafito” con efecto vidrio esmerilado */
.pkaty-panel {
  width: 320px;
  max-width: calc(100vw - 32px);
  height: 490px;
  border-radius: 15px;
  overflow: hidden;
  display: none;
  margin-bottom: 12px;
  /* Grafito más oscuro */
  background: rgba(8, 10, 14, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 26px 80px rgba(8, 10, 14, .55),
    0 8px 22px rgba(8, 10, 14, .30);
}
.pkaty-panel.is-open { display: block; }
.pkaty-header { display:flex; align-items:center; justify-content: space-between; padding: 12px 12px; background: rgba(17,24,39,.35); color: #fff; border-bottom: 1px solid rgba(255,255,255,.10); }
.pkaty-brand { display:flex; gap:10px; align-items:center; }
.pkaty-logo { width: 28px; height: 28px; border-radius: 8px; object-fit: contain; background: rgba(255,255,255,.10); }
.pkaty-title { font-weight: 700; line-height: 1; }
.pkaty-subtitle { font-size: 12px; opacity: .80; }
.pkaty-close {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  font-size: 18px;
  cursor:pointer;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.pkaty-messages { padding: 12px; height: 300px; overflow-y: auto; background: rgba(255,255,255,.02); }
.pkaty-msg { max-width: 85%; padding: 10px 12px; border-radius: 14px; margin-bottom: 10px; white-space: pre-wrap; border: 1px solid rgba(255,255,255,.08); }
.pkaty-msg-user { margin-left: auto; background: rgba(99, 102, 241, .22); color: #fff; }
.pkaty-msg-bot { margin-right: auto; background: rgba(255,255,255,.06); color: rgba(255,255,255,.92); }

.pkaty-footer { display:flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(255,255,255,.10); background: rgba(17,24,39,.20); }
.pkaty-input { flex: 1; padding: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.92); outline: none; }
.pkaty-input::placeholder { color: rgba(255,255,255,.55); }
.pkaty-send { padding: 10px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }

.pkaty-extra {
  padding: 10px 10px 14px;
  background: rgba(17,24,39,.16);
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pkaty-extra a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  text-decoration: none;
}

/* En pantallas más anchas, WhatsApp + Contacto se ven lado a lado */
@media (min-width: 380px) {
  .pkaty-extra a { width: calc(50% - 4px); }
}

/* CRM siempre abajo (fila completa) */
.pkaty-extra .pkaty-crm { width: 100% !important; }
