/* Fixed WhatsApp - Botón flotante */

.fwa-fixed-area {
	position: fixed;
	z-index: 99999;
	bottom: 24px;
	right: 24px;
	pointer-events: none;
}

.fwa-fixed-area--bottom-left {
	right: auto;
	left: 24px;
}

.fwa-fixed-area .widget {
	margin: 0;
	padding: 0;
	pointer-events: auto;
}

/* ── Estilo profesional 3D ── */

.fwa-wrap--professional {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	padding-top: 18px;
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

.fwa-badge {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 34px;
	height: 34px;
	background: #e8e8e8;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	z-index: 2;
	transform-origin: center bottom;
	animation: fwa-badge-bounce 1.8s ease-in-out infinite;
}

.fwa-badge::after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 7px solid #e8e8e8;
}

.fwa-badge__heart {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 20px;
	height: 20px;
	background: #e53935;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fwa-heart-pulse 1.8s ease-in-out infinite;
}

.fwa-badge__heart::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.fwa-badge__media {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 50%;
	animation: fwa-heart-pulse 1.8s ease-in-out infinite;
}

.fwa-badge__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fwa-wrap--professional:has(.fwa-badge--custom) {
	padding-top: 46px;
}

.fwa-badge--custom {
	top: -28px;
	width: 68px;
	height: 68px;
}

.fwa-badge--custom::after {
	bottom: -8px;
	border-left-width: 10px;
	border-right-width: 10px;
	border-top-width: 11px;
}

.fwa-badge--custom .fwa-badge__media {
	width: 48px;
	height: 48px;
}

.fwa-btn--professional {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 52px;
	padding: 0 1.35rem 0 1.1rem;
	background: linear-gradient(180deg, #00e676 0%, #00c853 55%, #00b248 100%);
	color: #ffffff;
	text-decoration: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1;
	letter-spacing: 0.01em;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	box-shadow:
		0 5px 0 #008f3f,
		0 8px 20px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
	animation: none;
}

.fwa-btn--professional:hover,
.fwa-btn--professional:focus {
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow:
		0 7px 0 #008f3f,
		0 12px 24px rgba(0, 0, 0, 0.2);
	filter: brightness(1.04);
}

.fwa-btn--professional:active {
	transform: translateY(3px);
	box-shadow:
		0 2px 0 #008f3f,
		0 4px 12px rgba(0, 0, 0, 0.15);
}

.fwa-btn--professional .fwa-btn__icon {
	width: 28px;
	height: 28px;
}

.fwa-btn--professional .fwa-btn__label {
	white-space: nowrap;
	padding-right: 0.15rem;
}

@keyframes fwa-badge-bounce {
	0%,
	100% {
		transform: translateX(-50%) translateY(0) scale(1);
	}

	15% {
		transform: translateX(-50%) translateY(0) scale(1);
	}

	30% {
		transform: translateX(-50%) translateY(-14px) scale(1.1);
	}

	45% {
		transform: translateX(-50%) translateY(0) scale(1);
	}

	55% {
		transform: translateX(-50%) translateY(-7px) scale(1.05);
	}

	65% {
		transform: translateX(-50%) translateY(0) scale(1);
	}
}

@keyframes fwa-heart-pulse {
	0%,
	100% {
		transform: translate(-50%, -50%) scale(1);
	}

	30% {
		transform: translate(-50%, -50%) scale(1.2);
	}

	45% {
		transform: translate(-50%, -50%) scale(1);
	}

	55% {
		transform: translate(-50%, -50%) scale(1.12);
	}
}

/* ── Estilos alternativos (compacto / clásico) ── */

.fwa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	color: #ffffff;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1;
	border: none;
	cursor: pointer;
	transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.fwa-btn:not(.fwa-btn--professional) {
	background: #25d366;
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
	animation: fwa-pulse 2.5s ease-in-out infinite;
}

.fwa-btn:not(.fwa-btn--professional):hover,
.fwa-btn:not(.fwa-btn--professional):focus {
	background: #128c7e;
	color: #ffffff;
	transform: translateY(-3px) scale(1.03);
	box-shadow: 0 12px 28px rgba(18, 140, 126, 0.4);
}

.fwa-btn__icon {
	width: 30px;
	height: 30px;
	display: block;
	flex-shrink: 0;
	object-fit: contain;
}

.fwa-btn__label {
	white-space: nowrap;
}

.fwa-btn--circle {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	padding: 0;
}

.fwa-btn--circle .fwa-btn__icon {
	width: 30px;
	height: 30px;
}

.fwa-btn--rounded {
	width: 60px;
	height: 60px;
	border-radius: 16px;
	padding: 0;
}

.fwa-btn--rounded .fwa-btn__icon {
	width: 30px;
	height: 30px;
}

.fwa-btn--square {
	width: 58px;
	height: 58px;
	border-radius: 4px;
	padding: 0;
}

.fwa-btn--square .fwa-btn__icon {
	width: 30px;
	height: 30px;
}

.fwa-btn--pill {
	min-height: 52px;
	padding: 0.85rem 1.25rem;
	border-radius: 999px;
}

@keyframes fwa-pulse {
	0%,
	100% {
		box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
	}

	50% {
		box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 0 0 10px rgba(37, 211, 102, 0.12);
	}
}

@media (max-width: 768px) {
	.fwa-wrap--professional {
		padding-top: 16px;
	}

	.fwa-badge {
		width: 30px;
		height: 30px;
	}

	.fwa-badge__heart {
		width: 18px;
		height: 18px;
	}

	.fwa-badge__heart::before {
		width: 9px;
		height: 9px;
	}

	.fwa-badge__media {
		width: 20px;
		height: 20px;
	}

	.fwa-wrap--professional:has(.fwa-badge--custom) {
		padding-top: 38px;
	}

	.fwa-badge--custom {
		top: -22px;
		width: 60px;
		height: 60px;
	}

	.fwa-badge--custom::after {
		bottom: -7px;
		border-left-width: 9px;
		border-right-width: 9px;
		border-top-width: 10px;
	}

	.fwa-badge--custom .fwa-badge__media {
		width: 40px;
		height: 40px;
	}

	.fwa-btn--professional {
		min-height: 48px;
		padding: 0 1.1rem 0 0.95rem;
		font-size: 0.9rem;
		gap: 0.45rem;
	}

	.fwa-btn--professional .fwa-btn__icon {
		width: 24px;
		height: 24px;
	}

	.fwa-btn--circle,
	.fwa-btn--rounded,
	.fwa-btn--square {
		width: 54px;
		height: 54px;
	}

	.fwa-btn--circle .fwa-btn__icon,
	.fwa-btn--rounded .fwa-btn__icon,
	.fwa-btn--square .fwa-btn__icon {
		width: 26px;
		height: 26px;
	}

	.fwa-btn--pill {
		min-height: 48px;
		padding: 0.75rem 1rem;
		font-size: 0.875rem;
	}

	.fwa-btn--pill .fwa-btn__label {
		display: none;
	}

	.fwa-btn--pill {
		width: 54px;
		height: 54px;
		min-height: 0;
		padding: 0;
		border-radius: 50%;
	}
}
