/* CICADEHP Lead Hub — burbuja flotante de WhatsApp */

.clh-wa {
	--wa-green: #25D366;
	--wa-dark: #075E54;
	--wa-teal: #128C7E;
	--wa-chat: #E5DDD5;
	position: fixed;
	bottom: 22px;
	z-index: 99990;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.45;
}
.clh-wa[hidden] { display: none; }
.clh-wa-right { right: 22px; }
.clh-wa-left  { left: 22px; }

/* ---------- Burbuja ---------- */
.clh-wa-bubble-btn {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	width: 58px; height: 58px;
	border: 0; border-radius: 50%;
	background: var(--wa-green);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease;
	animation: clh-wa-in .35s ease both;
	padding: 0;
}
.clh-wa-bubble-btn:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(0, 0, 0, .28); }
.clh-wa-bubble-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.clh-wa-left .clh-wa-bubble-btn { margin-right: auto; }

@keyframes clh-wa-in { from { opacity: 0; transform: scale(.6) translateY(12px); } to { opacity: 1; transform: none; } }

.clh-wa-dot {
	position: absolute; top: -3px; right: -3px;
	min-width: 19px; height: 19px;
	background: #F43F5E; color: #fff;
	border-radius: 999px; border: 2px solid #fff;
	font-size: 11px; font-weight: 700; line-height: 15px;
	display: flex; align-items: center; justify-content: center;
}
.clh-wa.is-open .clh-wa-dot { display: none; }

/* ---------- Panel ---------- */
.clh-wa-panel {
	position: absolute;
	bottom: 72px;
	width: 320px;
	max-width: calc(100vw - 32px);
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(11, 20, 26, .26);
	animation: clh-wa-pop .2s ease both;
}
.clh-wa-panel[hidden] { display: none; }
.clh-wa-right .clh-wa-panel { right: 0; }
.clh-wa-left  .clh-wa-panel { left: 0; }

@keyframes clh-wa-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

.clh-wa-head {
	display: flex; align-items: center; gap: 11px;
	background: var(--wa-dark);
	padding: 13px 14px;
	color: #fff;
}
.clh-wa-avatar {
	width: 40px; height: 40px; flex: 0 0 40px;
	border-radius: 50%;
	background: #fff;
	display: flex; align-items: center; justify-content: center;
}
.clh-wa-head-txt { flex: 1 1 auto; min-width: 0; }
.clh-wa-head-txt strong { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.clh-wa-head-txt span {
	display: block; font-size: 11.5px; color: rgba(255, 255, 255, .78);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.clh-wa-close {
	background: transparent; border: 0; color: rgba(255, 255, 255, .8);
	font-size: 24px; line-height: 1; cursor: pointer; padding: 0 2px;
}
.clh-wa-close:hover { color: #fff; }

/* Fondo de chat de WhatsApp, dibujado con CSS */
.clh-wa-body {
	background-color: var(--wa-chat);
	background-image:
		radial-gradient(rgba(255, 255, 255, .45) 1px, transparent 1px),
		radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px);
	background-size: 22px 22px, 22px 22px;
	background-position: 0 0, 11px 11px;
	padding: 16px 14px 14px;
}

.clh-wa-bubble {
	position: relative;
	background: #fff;
	border-radius: 0 9px 9px 9px;
	padding: 10px 12px;
	font-size: 13.5px;
	color: #111B21;
	box-shadow: 0 1px 1px rgba(11, 20, 26, .13);
	margin-bottom: 14px;
	animation: clh-wa-msg .3s ease both .08s;
}
.clh-wa-bubble::before {
	content: '';
	position: absolute; top: 0; left: -7px;
	border: 7px solid transparent;
	border-top-color: #fff; border-right: 0;
}
@keyframes clh-wa-msg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Formulario ---------- */
.clh-wa-form { display: block; }
.clh-wa-label {
	display: block;
	font-size: 11px; font-weight: 600; letter-spacing: .03em;
	text-transform: uppercase; color: #54656F;
	margin: 0 0 4px 2px;
}
.clh-wa-form input[type="text"],
.clh-wa-form input[type="tel"] {
	width: 100%; box-sizing: border-box;
	border: 1px solid #D5DBDF; border-radius: 9px;
	padding: 10px 12px; margin-bottom: 11px;
	font-size: 14px; font-family: inherit; color: #111B21;
	background: #fff;
	-webkit-appearance: none; appearance: none;
}
.clh-wa-form input:focus {
	outline: 0;
	border-color: var(--wa-green);
	box-shadow: 0 0 0 3px rgba(37, 211, 102, .18);
}
.clh-wa-form input.is-bad { border-color: #E11D48; box-shadow: 0 0 0 3px rgba(225, 29, 72, .13); }

.clh-wa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.clh-wa-error {
	margin: 0 0 9px; padding: 7px 10px;
	background: #FEF2F2; border: 1px solid #FECACA; border-radius: 8px;
	color: #991B1B; font-size: 12px;
}
.clh-wa-error[hidden] { display: none; }

.clh-wa-send {
	width: 100%;
	display: flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--wa-green); color: #fff;
	border: 0; border-radius: 9px;
	padding: 12px 14px;
	font-size: 14.5px; font-weight: 600; font-family: inherit;
	cursor: pointer;
	transition: background .15s ease;
}
.clh-wa-send:hover { background: #1FBE5B; }
.clh-wa-send:disabled { background: #9AD9B4; cursor: progress; }
.clh-wa-send svg { flex: 0 0 auto; }

.clh-wa-legal {
	margin: 10px 0 0;
	font-size: 10.5px; line-height: 1.5; text-align: center; color: #54656F;
}
.clh-wa-legal a { color: var(--wa-teal); text-decoration: underline; }

/* ---------- Móvil ---------- */
@media (max-width: 420px) {
	.clh-wa { bottom: 16px; }
	.clh-wa-right { right: 16px; }
	.clh-wa-left  { left: 16px; }
	.clh-wa-panel { width: calc(100vw - 32px); }
}

@media (prefers-reduced-motion: reduce) {
	.clh-wa-bubble-btn, .clh-wa-panel, .clh-wa-bubble { animation: none; }
	.clh-wa-bubble-btn { transition: none; }
}
/* ---------------------------------------------------------------
   Blindaje contra los estilos del tema.

   Hello + Elementor aplican sus propias reglas a button, input y svg
   con mayor especificidad, y dejaban la burbuja como un rectángulo
   transparente con borde rosa. Estas reglas protegen solo lo que
   define la forma y el color de la marca WhatsApp.
   --------------------------------------------------------------- */

.clh-wa, .clh-wa *, .clh-wa *::before, .clh-wa *::after {
	box-sizing: border-box !important;
}

.clh-wa .clh-wa-bubble-btn {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 58px !important;
	height: 58px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #25D366 !important;
	background-image: none !important;
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .22) !important;
	font-size: 0 !important;
	line-height: 1 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	cursor: pointer !important;
	outline-offset: 3px;
}
.clh-wa .clh-wa-bubble-btn:hover {
	background: #1FBE5B !important;
	transform: scale(1.06);
}
.clh-wa .clh-wa-bubble-btn > svg {
	width: 30px !important;
	height: 30px !important;
	fill: #fff !important;
	display: block !important;
	flex: 0 0 auto !important;
}

.clh-wa .clh-wa-dot {
	font-size: 11px !important;
	line-height: 15px !important;
	color: #fff !important;
	background: #F43F5E !important;
	border: 2px solid #fff !important;
	border-radius: 999px !important;
	padding: 0 !important;
}

/* Panel */
.clh-wa .clh-wa-panel { border-radius: 14px !important; }
.clh-wa .clh-wa-head { background: #075E54 !important; }
.clh-wa .clh-wa-head-txt strong,
.clh-wa .clh-wa-head-txt span { color: #fff !important; text-transform: none !important; }
.clh-wa .clh-wa-close {
	-webkit-appearance: none !important;
	appearance: none !important;
	background: transparent !important;
	border: 0 !important;
	padding: 0 2px !important;
	width: auto !important;
	min-width: 0 !important;
	color: rgba(255, 255, 255, .85) !important;
	font-size: 24px !important;
	line-height: 1 !important;
	box-shadow: none !important;
}
.clh-wa .clh-wa-bubble { background: #fff !important; color: #111B21 !important; border-radius: 0 9px 9px 9px !important; }

.clh-wa .clh-wa-form input[type="text"],
.clh-wa .clh-wa-form input[type="tel"] {
	-webkit-appearance: none !important;
	appearance: none !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 10px 12px !important;
	margin: 0 0 11px !important;
	border: 1px solid #D5DBDF !important;
	border-radius: 9px !important;
	background: #fff !important;
	color: #111B21 !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
	text-transform: none !important;
}
.clh-wa .clh-wa-form input:focus {
	border-color: #25D366 !important;
	box-shadow: 0 0 0 3px rgba(37, 211, 102, .18) !important;
	outline: 0 !important;
}

.clh-wa .clh-wa-send {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: 100% !important;
	height: auto !important;
	padding: 12px 14px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 9px !important;
	background: #25D366 !important;
	background-image: none !important;
	color: #fff !important;
	font-size: 14.5px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	box-shadow: none !important;
	cursor: pointer !important;
}
.clh-wa .clh-wa-send:hover { background: #1FBE5B !important; }
.clh-wa .clh-wa-send > svg { fill: currentColor !important; width: 17px !important; height: 17px !important; }
.clh-wa .clh-wa-label { color: #54656F !important; font-size: 11px !important; text-transform: uppercase !important; }
.clh-wa .clh-wa-legal, .clh-wa .clh-wa-legal a { font-size: 10.5px !important; }
