/* Urgente Ayacucho – Colaboraciones. Todo va dentro de #ua-colab-root para no chocar con el tema. */
#ua-colab-root {
	--uac-bg: #ffb627;
	--uac-fg: #1d1d1b;
	--uac-cta-bg: #009ee3;
	--uac-cta-fg: #ffffff;
	--uac-x: 20px;
	--uac-y: 20px;
	--uac-font: 14px;
	--uac-pad-y: 10px;
	--uac-pad-x: 16px;
	--uac-icon: 18px;
	font-family: inherit;
	line-height: 1.35;
}

#ua-colab-root.uac-size-small  { --uac-font: 13px; --uac-pad-y: 8px;  --uac-pad-x: 13px; --uac-icon: 16px; }
#ua-colab-root.uac-size-large  { --uac-font: 16px; --uac-pad-y: 13px; --uac-pad-x: 20px; --uac-icon: 20px; }

#ua-colab-root *,
#ua-colab-root *::before,
#ua-colab-root *::after { box-sizing: border-box; }

/* ---------- Botón flotante ---------- */
#ua-colab-root .uac-fab {
	position: fixed;
	bottom: calc(var(--uac-y) + env(safe-area-inset-bottom, 0px));
	right: calc(var(--uac-x) + env(safe-area-inset-right, 0px));
	z-index: 99990;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: calc(100vw - 2 * var(--uac-x));
	margin: 0;
	padding: var(--uac-pad-y) var(--uac-pad-x);
	border: 0;
	border-radius: 999px;
	background: var(--uac-bg);
	color: var(--uac-fg);
	font-family: inherit;
	font-size: var(--uac-font);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	text-align: left;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: box-shadow .2s ease, filter .2s ease;
}
#ua-colab-root.uac-pos-bottom-left .uac-fab {
	right: auto;
	left: calc(var(--uac-x) + env(safe-area-inset-left, 0px));
}
#ua-colab-root .uac-fab:hover { filter: brightness(.96); box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
#ua-colab-root .uac-fab:focus { outline: none; }
#ua-colab-root .uac-fab:focus-visible { outline: 3px solid var(--uac-fg); outline-offset: 3px; }
#ua-colab-root .uac-icon { width: var(--uac-icon); height: var(--uac-icon); flex: 0 0 auto; display: block; }
#ua-colab-root .uac-fab-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ua-colab-root .uac-text-short { display: none; }

/* ---------- Celulares ---------- */
@media (max-width: 600px) {
	#ua-colab-root .uac-fab { right: calc(min(var(--uac-x), 12px) + env(safe-area-inset-right, 0px)); max-width: calc(100vw - 24px); }
	#ua-colab-root.uac-pos-bottom-left .uac-fab { right: auto; left: calc(min(var(--uac-x), 12px) + env(safe-area-inset-left, 0px)); }
	#ua-colab-root .uac-fab { --uac-font: 13px; padding: 9px 13px; gap: 6px; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); }
	#ua-colab-root .uac-icon { width: 16px; height: 16px; }

	#ua-colab-root.uac-mobile-short .uac-text-full { display: none; }
	#ua-colab-root.uac-mobile-short .uac-text-short { display: inline; }

	#ua-colab-root.uac-mobile-icon .uac-fab-text { display: none; }
	#ua-colab-root.uac-mobile-icon .uac-fab { width: 48px; height: 48px; padding: 0; justify-content: center; }
	#ua-colab-root.uac-mobile-icon .uac-icon { width: 22px; height: 22px; }

	#ua-colab-root.uac-mobile-hide .uac-fab { display: none; }
}

/* ---------- Ventana ---------- */
#ua-colab-root .uac-overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(0, 0, 0, .55);
}
#ua-colab-root .uac-dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 99999;
	transform: translate(-50%, -50%);
	width: min(440px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 32px 28px 24px;
	border-radius: 16px;
	background: #ffffff;
	color: #1d1d1b;
	text-align: center;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
	font-family: inherit;
}
#ua-colab-root [hidden] { display: none !important; }

#ua-colab-root .uac-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6b6b6b;
	cursor: pointer;
	box-shadow: none;
}
#ua-colab-root .uac-close:hover { background: #f1f1f1; color: #1d1d1b; }
#ua-colab-root .uac-close:focus-visible { outline: 2px solid #1d1d1b; outline-offset: 2px; }

#ua-colab-root .uac-dialog-icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--uac-bg);
	color: var(--uac-fg);
}
#ua-colab-root .uac-dialog-icon .uac-icon { width: 26px; height: 26px; }

#ua-colab-root .uac-title {
	margin: 0 0 10px;
	padding: 0;
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: #1d1d1b;
	text-transform: none;
	border: 0;
}
#ua-colab-root .uac-desc { margin: 0 0 22px; font-size: 15px; line-height: 1.55; color: #3c3c3c; }
#ua-colab-root .uac-desc p { margin: 0 0 8px; font-size: inherit; line-height: inherit; color: inherit; }
#ua-colab-root .uac-desc p:last-child { margin-bottom: 0; }

#ua-colab-root .uac-cta {
	display: block;
	width: 100%;
	padding: 15px 18px;
	border-radius: 10px;
	background: var(--uac-cta-bg);
	color: var(--uac-cta-fg);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	box-shadow: none;
	transition: filter .2s ease;
}
#ua-colab-root .uac-cta:hover,
#ua-colab-root .uac-cta:focus { color: var(--uac-cta-fg); text-decoration: none; filter: brightness(.94); }
#ua-colab-root .uac-cta:focus-visible { outline: 3px solid #1d1d1b; outline-offset: 3px; }

#ua-colab-root .uac-mp-brand { margin-top: 16px; display: flex; justify-content: center; }
#ua-colab-root .uac-mp-logo { display: block; width: auto; height: 32px; max-width: 160px; object-fit: contain; }

#ua-colab-root .uac-note { margin: 14px 0 0; font-size: 12px; line-height: 1.4; color: #7a7a7a; }

@media (max-width: 600px) {
	#ua-colab-root .uac-dialog { padding: 28px 20px 20px; }
	#ua-colab-root .uac-title { font-size: 20px; }
}

html.uac-lock, html.uac-lock body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	#ua-colab-root .uac-fab,
	#ua-colab-root .uac-cta { transition: none; }
}

@media print {
	#ua-colab-root { display: none !important; }
}
