/* HB WhatsApp Button — HBrand Studio. Los valores llegan como variables desde Ajustes → Botón WhatsApp. */
.hb-wa.hb-wa {
	--hbwa-shadow: 0 10px 24px rgba(10, 47, 77, 0.28);
	--hbwa-shadow-hover: 0 14px 30px rgba(10, 47, 77, 0.34);
	position: fixed;
	bottom: var(--hbwa-bottom, 24px);
	right: var(--hbwa-side, 24px);
	left: auto;
	z-index: 998;
	box-sizing: border-box;
	width: var(--hbwa-size, 56px);
	height: var(--hbwa-size, 56px);
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: var(--hbwa-ring-w, 2px) solid var(--hbwa-ring, #fff);
	border-radius: 999px;
	background-color: var(--hbwa-bg, #25D366);
	color: var(--hbwa-icon, #fff);
	box-shadow: var(--hbwa-shadow);
	text-decoration: none;
	line-height: 1;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
	animation: hbwa-in .4s ease var(--hbwa-delay, 600ms) backwards;
}
.hb-wa--left.hb-wa--left {
	right: auto;
	left: var(--hbwa-side, 24px);
}
.hb-wa--flat.hb-wa--flat {
	--hbwa-shadow: none;
	--hbwa-shadow-hover: none;
}
/* El tema puede teñir los enlaces al pasar o enfocar: se fija el color propio. */
.hb-wa.hb-wa:hover,
.hb-wa.hb-wa:focus,
.hb-wa.hb-wa:active,
.hb-wa.hb-wa:visited {
	color: var(--hbwa-icon, #fff);
	text-decoration: none;
}
.hb-wa.hb-wa:hover {
	background-color: var(--hbwa-bg-hover, #1DA851);
	box-shadow: var(--hbwa-shadow-hover);
	transform: translateY(-2px);
}
.hb-wa.hb-wa:focus:not(:focus-visible) {
	outline: none;
}
.hb-wa.hb-wa:focus-visible {
	outline: 2px solid var(--hbwa-label-bg, #0A2F4D);
	outline-offset: 3px;
}
.hb-wa svg {
	width: 52%;
	height: 52%;
	display: block;
	fill: currentColor;
	pointer-events: none;
}

/* Globo con la etiqueta (solo escritorio con mouse) */
.hb-wa__label {
	position: absolute;
	top: 50%;
	right: calc(100% + 12px);
	padding: 8px 14px;
	border-radius: 999px;
	background-color: var(--hbwa-label-bg, #0A2F4D);
	color: var(--hbwa-label-color, #fff);
	font-family: var(--fuente-cuerpo, "Open Sans"), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	white-space: nowrap;
	box-shadow: 0 6px 16px rgba(10, 47, 77, 0.2);
	opacity: 0;
	visibility: hidden;
	transform: translate(6px, -50%);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
	pointer-events: none;
}
.hb-wa--left .hb-wa__label {
	right: auto;
	left: calc(100% + 12px);
	transform: translate(-6px, -50%);
}
@media (hover: hover) and (min-width: 768px) {
	.hb-wa--label:hover .hb-wa__label,
	.hb-wa--label:focus-visible .hb-wa__label {
		opacity: 1;
		visibility: visible;
		transform: translate(0, -50%);
		transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
	}
}
.hb-wa:not(.hb-wa--label) .hb-wa__label {
	display: none;
}

@media (min-width: 768px) {
	.hb-wa--no-desktop.hb-wa--no-desktop { display: none; }
}
@media (max-width: 767px) {
	.hb-wa.hb-wa {
		width: var(--hbwa-size-m, 52px);
		height: var(--hbwa-size-m, 52px);
		bottom: var(--hbwa-bottom-m, 16px);
		right: var(--hbwa-side-m, 16px);
	}
	.hb-wa--left.hb-wa--left {
		right: auto;
		left: var(--hbwa-side-m, 16px);
	}
	.hb-wa--no-mobile.hb-wa--no-mobile { display: none; }
}

@keyframes hbwa-in {
	from { opacity: 0; transform: translateY(16px) scale(.9); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hb-wa.hb-wa, .hb-wa__label { transition: none; animation: none; }
	.hb-wa.hb-wa:hover { transform: none; }
}
@media print {
	.hb-wa.hb-wa { display: none; }
}

/* Vista previa en el panel */
.hb-wa--preview.hb-wa--preview {
	position: absolute;
	display: flex;
	animation: none;
}
