/**
 * Estilos del botón WhatsApp - Frontend.
 *
 * Solo se carga cuando el botón debe mostrarse (dentro del horario).
 */

/* ========================================
   Container
   ======================================== */

.lwh-wa-button {
	position: fixed;
	bottom: 20px;
	left: 16px;
	z-index: 9999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ========================================
   Link / Button
   ======================================== */

.lwh-wa-button__link {
	display: flex;
	align-items: center;
	gap: 8px;
	background-color: #25d366;
	color: #fff;
	text-decoration: none;
	padding: 10px 20px 10px 16px;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	position: relative;
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
	transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.lwh-wa-button__link:hover,
.lwh-wa-button__link:focus {
	background-color: #1fb855;
	color: #fff;
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
	transform: translateY(-2px);
	text-decoration: none;
}

.lwh-wa-button__link:active {
	transform: translateY(0);
}

/* ========================================
   Icon
   ======================================== */

.lwh-wa-button__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #fff;
}

/* ========================================
   Text
   ======================================== */

.lwh-wa-button__text {
	color: #fff;
	white-space: nowrap;
}

/* ========================================
   Notification Badge
   ======================================== */

.lwh-wa-button__badge {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 12px;
	height: 12px;
	background-color: #ff3b30;
	border-radius: 50%;
	border: 2px solid #fff;
	pointer-events: none;
}

/* ========================================
   Pulse Animation
   ======================================== */

.lwh-wa-button__pulse {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50px;
	pointer-events: none;
	animation: lwh-pulse 3s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes lwh-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
	}
	100% {
		box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
	}
}

/* ========================================
   Entry Animation
   ======================================== */

.lwh-wa-button {
	animation: lwh-slide-in 0.4s ease-out;
}

@keyframes lwh-slide-in {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========================================
   Responsive
   ======================================== */

@media screen and (max-width: 600px) {
	.lwh-wa-button {
		bottom: 12px;
		left: 12px;
	}

	.lwh-wa-button__link {
		padding: 10px 16px 10px 12px;
		font-size: 14px;
	}
}

/* ========================================
   Accessibility: Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
	.lwh-wa-button__pulse {
		animation: none;
	}

	.lwh-wa-button {
		animation: none;
	}

	.lwh-wa-button__link {
		transition: none;
	}
}
