/* =====================================================
   PLANTS MIAMI - BOTON FLOTANTE DE WHATSAPP
   Apilado ENCIMA del chat de IA (Plantin).

   El boton de Plantin mide ~56px y esta a bottom: 20px.
   Ocupa hasta y=76px. Dejamos 22px de aire => bottom: 98px.
   ===================================================== */

.pm-wa {
position: fixed;
right: 20px;
bottom: 98px;
z-index: 9998;

display: inline-flex;
align-items: center;
justify-content: center;
gap: 9px;
padding: 12px 18px 12px 14px;

background: #25d366;
color: #fff !important;
text-decoration: none !important;
border-radius: 999px;
box-shadow:
0 4px 14px rgba(37,211,102,.38),
0 2px 6px rgba(0,0,0,.18);

font-family: inherit;
font-size: 13px;
font-weight: 700;
letter-spacing: .02em;
line-height: 1;
white-space: nowrap;

transition:
transform .3s cubic-bezier(.22,1,.36,1),
box-shadow .3s ease,
background .25s ease;
}

.pm-wa:hover {
background: #1ebe5b;
transform: translateY(-3px);
box-shadow:
0 8px 24px rgba(37,211,102,.5),
0 3px 8px rgba(0,0,0,.22);
color: #fff !important;
}

.pm-wa:active {
transform: translateY(-1px);
}

.pm-wa__icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
flex: 0 0 auto;
}

.pm-wa__icon svg {
width: 24px;
height: 24px;
display: block;
}

.pm-wa__label {
white-space: nowrap;
}

/* Pulso suave para llamar la atencion. */
.pm-wa::before {
content: "";
position: absolute;
inset: 0;
border-radius: 999px;
border: 2px solid rgba(37,211,102,.5);
animation: pm-wa-pulse 2.8s ease-out infinite;
pointer-events: none;
}

@keyframes pm-wa-pulse {
0%   { transform: scale(1);    opacity: .75; }
60%  { transform: scale(1.22); opacity: 0; }
100% { transform: scale(1.22); opacity: 0; }
}
/* ============ TABLET ============ */

@media (max-width: 1024px) {
.pm-wa {
right: 18px;
bottom: 96px;
padding: 12px;
gap: 0;
}

.pm-wa__label {
display: none;
}

.pm-wa__icon,
.pm-wa__icon svg {
width: 26px;
height: 26px;
}
}

/* ============ MOVIL ============ */

@media (max-width: 780px) {
.pm-wa {
right: 16px;
bottom: 96px;
padding: 13px;
box-shadow:
0 4px 14px rgba(37,211,102,.42),
0 2px 8px rgba(0,0,0,.22);
}

.pm-wa__icon,
.pm-wa__icon svg {
width: 28px;
height: 28px;
}
}

/* Movil pequeno: mantiene tamano tactil adecuado. */
@media (max-width: 400px) {
.pm-wa {
right: 14px;
bottom: 92px;
padding: 12px;
}

.pm-wa__icon,
.pm-wa__icon svg {
width: 26px;
height: 26px;
}
}

/* ============ FICHA DE PRODUCTO ============ */

/* Hay barra de compra sticky abajo: el boton sube para no taparla. */
.single-product .pm-wa {
bottom: 128px;
}

@media (max-width: 780px) {
.single-product .pm-wa {
bottom: 124px;
}
}

/* ============ CARRITO Y CHECKOUT ============ */

.woocommerce-cart .pm-wa,
.woocommerce-checkout .pm-wa {
bottom: 98px;
}

@media (max-width: 780px) {
.woocommerce-cart .pm-wa,
.woocommerce-checkout .pm-wa {
bottom: 96px;
}
}

/* ============ ACCESIBILIDAD ============ */

@media (prefers-reduced-motion: reduce) {
.pm-wa::before {
animation: none;
opacity: 0;
}

.pm-wa,
.pm-wa:hover,
.pm-wa:active {
transform: none;
}
}