/**
 * Huemura Back to Top
 * El botón queda encima del Animated Floating Chat Button de WhatsApp.
 */

:root {
	--huemura-btt-desktop-right: 28px;
	--huemura-btt-desktop-bottom: 104px;
	--huemura-btt-mobile-right: 18px;
	--huemura-btt-mobile-bottom: 88px;
	--huemura-btt-size: 50px;
	--huemura-btt-mobile-size: 46px;
	--huemura-btt-background: #ff1720;
	--huemura-btt-hover: #ff1720;
	--huemura-btt-color: #ffffff;
}

.huemura-back-to-top {
	position: fixed;
	right: var(--huemura-btt-desktop-right);
	bottom: calc(var(--huemura-btt-desktop-bottom) + env(safe-area-inset-bottom, 0px));
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--huemura-btt-size);
	height: var(--huemura-btt-size);
	margin: 0;
	padding: 0;
	color: var(--huemura-btt-color);
	background: var(--huemura-btt-background);
	border: 2px solid #ffffff;
	border-radius: 50%;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24), 0 2px 6px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	z-index: 99998;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease,
		background-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.huemura-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.huemura-back-to-top svg {
	display: block;
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.25;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.huemura-back-to-top:hover {
	color: var(--huemura-btt-color);
	background: var(--huemura-btt-hover);
	box-shadow: 0 10px 28px rgba(255, 23, 32, 0.28), 0 3px 8px rgba(0, 0, 0, 0.18);
	transform: translateY(-2px);
}

.huemura-back-to-top:active {
	transform: translateY(0);
}

.huemura-back-to-top:focus {
	outline: none;
}

.huemura-back-to-top:focus-visible {
	outline: 3px solid rgba(255, 23, 32, 0.45);
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.huemura-back-to-top {
		right: var(--huemura-btt-mobile-right);
		bottom: calc(var(--huemura-btt-mobile-bottom) + env(safe-area-inset-bottom, 0px));
		width: var(--huemura-btt-mobile-size);
		height: var(--huemura-btt-mobile-size);
	}

	.huemura-back-to-top svg {
		width: 22px;
		height: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.huemura-back-to-top {
		transition: none;
	}
}

