/* cl-conversiones: popups, top bars, slide-ins, WhatsApp flotante. */

.clc-conversion { position: fixed; z-index: 9999; box-sizing: border-box; }
.clc-conversion .clc-inner { position: relative; background: var(--wp--preset--color--base, #fff); color: var(--wp--preset--color--contraste, #111827); padding: 1.5rem; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.clc-conversion .clc-cerrar { position: absolute; top: 0.5rem; right: 0.5rem; background: transparent; border: 0; font-size: 1.75rem; line-height: 1; cursor: pointer; color: inherit; opacity: 0.6; }
.clc-conversion .clc-cerrar:hover { opacity: 1; }

/* Popup / modal centered */
.clc-popup { top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); padding: 1rem; }
.clc-popup .clc-inner { max-width: 480px; width: 100%; }

/* Top bar */
.clc-top-bar { top: 0; left: 0; right: 0; }
.clc-top-bar .clc-inner { border-radius: 0; padding: 0.75rem 1.25rem; text-align: center; }
body.clc-tb-visible { padding-top: var(--clc-tb-alto, 0); transition: padding-top 200ms; }

/* Slide-in bottom-right */
.clc-slide-in { bottom: 1.25rem; right: 1.25rem; max-width: 360px; }
.clc-slide-in .clc-inner { border-radius: 12px; }

/* Animaciones */
.clc-conversion.is-entrando { animation: clc-in 250ms ease-out both; }
@keyframes clc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* WhatsApp flotante */
.clc-wa {
	position: fixed;
	bottom: 1.25rem;
	z-index: 9998;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: #25d366;
	color: #fff;
	box-shadow: 0 10px 25px rgba(0,0,0,0.2);
	text-decoration: none;
	transition: transform 200ms ease;
}
.clc-wa:hover { transform: translateY(-2px); }
.clc-wa-derecha   { right: 1.25rem; }
.clc-wa-izquierda { left: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
	.clc-conversion.is-entrando { animation: none; }
	.clc-wa { transition: none; }
}
