/* ==========================================================
   CICLO TICO — WHATSAPP BUTTON
   Floating button (todas las páginas) + CTA button (single product)
   ========================================================== */

/* ── Floating button ────────────────────────────────────── */

.ct-wa-float {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9998;
}

.ct-wa-float a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
	color: #ffffff;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ct-wa-float a:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
	text-decoration: none;
}

.ct-wa-float a:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

/* Pulse ring */
.ct-wa-float a::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: rgba(37, 211, 102, 0.4);
	animation: ct-wa-pulse 2.5s ease-out infinite;
	pointer-events: none;
}

@keyframes ct-wa-pulse {
	0%   { transform: scale(1);   opacity: 0.7; }
	100% { transform: scale(1.9); opacity: 0;   }
}

/* ── Summary button (single product) ───────────────────── */

.ct-summary-wa-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #25d366;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 16px 24px;
	border-radius: 8px;
	text-decoration: none;
	width: 100%;
	box-sizing: border-box;
	min-height: 54px;
	margin: 0 0 16px;
	box-shadow: 0 2px 10px rgba(37, 211, 102, 0.30);
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.ct-summary-wa-btn:hover {
	background: #1da851;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(37, 211, 102, 0.42);
	text-decoration: none;
}

.ct-summary-wa-btn:focus-visible {
	outline: 3px solid #1da851;
	outline-offset: 3px;
	color: #ffffff;
}

.ct-summary-wa-btn svg {
	flex-shrink: 0;
}

/* ── Reduced motion ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.ct-wa-float a::before {
		animation: none;
	}
	.ct-wa-float a,
	.ct-summary-wa-btn {
		transition: none;
	}
}

/* ── Mobile ─────────────────────────────────────────────── */

@media (max-width: 767px) {
	.ct-wa-float {
		bottom: 16px;
		right: 16px;
	}

	.ct-wa-float a {
		width: 52px;
		height: 52px;
	}
}
