/* Botón flotante de WhatsApp en homepage */
.bap-floating-whatsapp-wrap {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;

	/* Oculto hasta que el JS agregue la clase de visibilidad */
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.bap-floating-whatsapp-wrap.bap-is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Burbuja de mensaje, siempre arriba del botón para no chocar con otros
   widgets flotantes que puedan estar al lado derecho en mobile. */
.bap-floating-bubble {
	position: relative;
	max-width: 220px;
	background-color: #ffffff;
	color: #111111;
	font-size: 0.85em;
	line-height: 140%;
	padding: 10px 14px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bap-floating-bubble::after {
	content: '';
	position: absolute;
	bottom: -6px;
	left: 20px;
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid #ffffff;
}

.bap-floating-whatsapp {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: #25D366;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	text-decoration: none;
}

.bap-floating-whatsapp img {
	width: 28px;
	height: 28px;
	display: block;
}

@media (max-width: 480px) {
	.bap-floating-whatsapp-wrap {
		left: 14px;
		bottom: 14px;
	}

	.bap-floating-bubble {
		max-width: 160px;
		font-size: 0.8em;
	}

	.bap-floating-whatsapp {
		width: 50px;
		height: 50px;
	}

	.bap-floating-whatsapp img {
		width: 24px;
		height: 24px;
	}
}
