/* Botón flotante de WhatsApp. Réplica de FloatingWhatsApp.tsx (commit 0dacf88). */
.ec-floating-wa {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 50;
	display: flex;
	align-items: center;
	pointer-events: auto;
	font-family: var(--ec-font-inter, 'Inter', ui-sans-serif, system-ui, sans-serif);
}

@media (min-width: 640px) {
	.ec-floating-wa {
		right: 1.5rem;
		bottom: 1.5rem;
	}
}

.ec-floating-wa__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border-radius: 9999px;
	background-color: var(--arcilla);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(22, 24, 28, 0.06), 0 6px 18px -8px rgba(22, 24, 28, 0.12);
	transition: all 0.2s;
}

.ec-floating-wa__link:hover {
	background-color: var(--arcilla-700);
	color: #fff;
}

.ec-floating-wa__link:active {
	transform: scale(0.95);
}

.ec-floating-wa__link:focus-visible {
	outline: 2px solid var(--arcilla-700);
	outline-offset: 2px;
}

.ec-floating-wa__ping {
	position: relative;
	display: flex;
	width: 0.875rem;
	height: 0.875rem;
}

.ec-floating-wa__ping::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 9999px;
	background-color: #fff;
	opacity: 0.75;
	animation: ec-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ec-floating-wa__ping::after {
	content: '';
	position: relative;
	width: 0.875rem;
	height: 0.875rem;
	border-radius: 9999px;
	background-color: #fff;
}

@keyframes ec-ping {
	75%,
	100% {
		transform: scale(2);
		opacity: 0;
	}
}

.ec-floating-wa__link svg {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	fill: currentColor;
	stroke: currentColor;
}

.ec-floating-wa__label {
	display: none;
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.025em;
	line-height: 1.25rem;
}

@media (min-width: 640px) {
	.ec-floating-wa__label {
		display: inline;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ec-floating-wa__ping::before {
		animation: none;
	}
}

/* Portada: el botón nace oculto y aparece al pasar el hero (assets/js/floating.js). Es fijo: no mueve nada al aparecer. */
.ec-floating-wa[data-ec-after-hero] {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s, visibility 0.25s;
}

.ec-floating-wa[data-ec-after-hero].is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
