/* ==========================================================================
   WIDGET FLOTANTE DE WHATSAPP · CLÍNICA NÀCAR
   (antes en Code Snippets: «CSS Widget WhatsApp - Nacar»)
   ========================================================================== */
.wa-widget {
	position: fixed;
	bottom: calc(30px + env(safe-area-inset-bottom, 0px));
	right: calc(30px + env(safe-area-inset-right, 0px));
	z-index: 9999;
}
.wa-fab {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	background: transparent;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.wa-fab img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wa-fab:focus-visible { outline: 3px solid #28A71A; outline-offset: 3px; }
.wa-box {
	position: absolute;
	bottom: 70px;
	right: 0;
	width: 300px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	overflow: hidden;
	transform: scale(0);
	transform-origin: bottom right;
	opacity: 0;
	pointer-events: none;
	transition: transform .25s ease, opacity .25s ease;
}
.wa-box.open { transform: scale(1); opacity: 1; pointer-events: auto; }
.wa-body { padding: 14px; background: #ECE5DD; }
.wa-bubble {
	background: #DCF8C6;
	padding: 10px 12px;
	border-radius: 12px;
	display: inline-block;
	max-width: 90%;
	font-family: inherit;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.4;
	color: #333;
}
.wa-footer { display: flex; gap: 8px; padding: 10px 20px 10px 10px; background: #f0f0f0; }
.wa-footer input {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border-radius: 20px;
	border: 1px solid #ddd;
	outline: none;
	font-family: inherit;
	font-weight: 300;
	font-size: 16px; /* 16 px: el iPhone no hace zoom al escribir */
}
.wa-footer button {
	background: #28A71A;
	color: #fff;
	border: none;
	outline: none;
	border-radius: 20px;
	padding: 9px 12px;
	cursor: pointer;
	font-weight: 600;
	margin-right: 6px;
}
@media (prefers-reduced-motion: reduce) { .wa-box { transition: none; } }

/* Botón «volver arriba» del tema: oculto */
.top-button { display: none !important; }
