/**
 * Botones flotantes — WhatsApp (arriba) + volver arriba (abajo).
 */

.es-floating-actions {
	position: fixed;
	right: 20px;
	bottom: 24px;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	pointer-events: none;
}

.es-floating-actions > * {
	pointer-events: auto;
	flex-shrink: 0;
}

.es-floating-actions .es-whatsapp-float,
.es-floating-actions .scroll-top {
	position: static !important;
	inset: auto !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 54px;
	height: 54px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	line-height: 0;
	overflow: hidden;
}

.es-floating-actions .es-whatsapp-float > *,
.es-floating-actions .scroll-top > * {
	margin: 0 !important;
	flex-shrink: 0;
}

.es-whatsapp-float {
	background: #25d366;
	color: #fff !important;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.42);
	transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.es-whatsapp-float:hover {
	background: #1ebe57;
	color: #fff !important;
	box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.22), 0 12px 28px rgba(37, 211, 102, 0.48);
	transform: translateY(-2px);
}

.es-floating-actions .scroll-top {
	border: none;
	background: #E62020;
	color: #fff;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
	transform: scale(0.8);
	box-shadow: 0 6px 20px rgba(225, 56, 51, 0.35);
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease,
		transform 0.3s ease,
		width 0.25s ease,
		height 0.25s ease,
		margin 0.25s ease,
		background 0.3s ease,
		box-shadow 0.3s ease;
}

.es-floating-actions .scroll-top:not(.visible) {
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
}

.es-floating-actions .scroll-top.visible {
	width: 54px;
	height: 54px;
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

.es-floating-actions .scroll-top.visible:hover {
	background: linear-gradient(135deg, #2A2E65, #003580);
	box-shadow: 0 0 0 4px rgba(0, 33, 87, 0.18), 0 8px 24px rgba(0, 33, 87, 0.32);
	transform: scale(1);
}

@media (max-width: 575px) {
	.es-floating-actions {
		right: 16px;
		bottom: 18px;
		gap: 10px;
	}

	.es-floating-actions .es-whatsapp-float,
	.es-floating-actions .scroll-top.visible {
		width: 50px;
		height: 50px;
	}
}
