.floating-wpp {
    position: fixed;
    bottom: 15px;
    left: 15px;
    font-size: 14px;
    transition: bottom 0.2s;
}

.floating-wpp .floating-wpp-button {
    position: relative;
    border-radius: 50%;
    box-shadow: 1px 1px 4px rgba(60, 60, 60, 0.4);
    transition: box-shadow 0.2s;
    cursor: pointer;
    /*overflow: hidden;*/
    overflow: visible;
}

.floating-wpp .floating-wpp-button img,
.floating-wpp .floating-wpp-button svg {
    position: absolute;
    width: 100%;
    height: auto;
    object-fit: cover;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    border-radius: 50%;
}

.floating-wpp:hover {
    bottom: 17px;
}

.floating-wpp:hover .floating-wpp-button {
    box-shadow: 1px 2px 8px rgba(60, 60, 60, 0.4);
}

.floating-wpp .floating-wpp-popup {
    /*border: 2px solid white;*/
    border-radius: 6px;
    background-color: #E5DDD5;
    position: absolute;
    overflow: hidden;
    padding: 0;
    box-shadow: 1px 2px 8px rgba(60, 60, 60, 0.25);
    width: 0px;
    height: 0px;
    bottom: 0;
    opacity: 0;
    transition: bottom 0.1s ease-out, opacity 0.2s ease-out;
    transform-origin: bottom;
}

.floating-wpp .floating-wpp-popup.active {
    padding: 0 12px 12px 12px;
    width: 260px;
    height: auto;
    bottom: 82px;
    opacity: 1;
}

.floating-wpp .floating-wpp-popup .floating-wpp-message {
    background-color: white;
    padding: 8px;
    border-radius: 0px 5px 5px 5px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.2s;
    color: #333;
    font-size: 13px;
}

.floating-wpp .floating-wpp-popup.active .floating-wpp-message {
    opacity: 1;
    transition-delay: 0.2s;
}

.floating-wpp .floating-wpp-popup .floating-wpp-head {
    text-align: right;
    color: white;
    margin: 0 -15px 10px -15px;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.floating-wpp .floating-wpp-input-message {
    background-color: white;
    margin: 10px -15px -15px -15px;
    padding: 0 15px;
    display: flex;
    align-items: center;
}

.floating-wpp .floating-wpp-input-message textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: none;
    padding: 8px;
    margin: 10px 0;
    width: 100%;
    max-width: 100%;
    font-family: inherit;
    font-size: inherit;
    resize: none;
}

.floating-wpp .floating-wpp-btn-send {
    margin-left: 12px;
    font-size: 0;
    cursor: pointer;
}

.floating-wpp-avatar {
    vertical-align: middle;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 10px 0 10px 10px;
}

.floating-wpp-avatar-info {
    color: white;
    margin: 10px 0 0 10px;
    text-align: left;
}
.floating-wpp-avatar-name {
    font-weight: bold;
    font-size: 16px;
}
.floating-wpp-avatar-role {
    font-weight: normal;
    font-size: 12px;
    line-height: normal;
}



/* ================================
   EFECTO ENTRADA (fade + rebote)
================================ */
.floating-wpp {
  opacity: 0;
  transform: translateY(18px) scale(.96);
  transition: opacity .45s ease, transform .45s ease;
  will-change: opacity, transform;
}

.floating-wpp.wpp-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes wppBounce {
  0%   { transform: translateY(18px) scale(.96); }
  60%  { transform: translateY(-6px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

.floating-wpp.wpp-bounce {
  animation: wppBounce .7s ease both;
}


/* ================================
   EFECTO PULSO (halo)
================================ */
.floating-wpp .floating-wpp-button {
  position: relative; /* ya lo tienes, se reafirma */
  overflow: visible;  /* clave para que el halo no se recorte */
}

.floating-wpp .floating-wpp-button::before {
  content: "";
  position: absolute;
  inset: -5px;                 /* tamaño del halo */
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.90); /* #25D366 con alpha PARA BAJAR REDUCE EL .90*/
  transform: scale(0.85);
  opacity: 0;
  z-index: -1;                  /* detrás del botón */
  pointer-events: none;
  animation: wppPulse 1.8s ease-out infinite;
}

@keyframes wppPulse {
  0%   { transform: scale(0.85); opacity: 0.00; }
  15%  { opacity: 0.55; }
  60%  { opacity: 0.15; }
  100% { transform: scale(1.15); opacity: 0.00; } /*TAMAÑO DEL HALO FINAL*/
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .floating-wpp,
  .floating-wpp .floating-wpp-button::before {
    animation: none !important;
    transition: none !important;
  }
}
