/* IV · compartir con texto viral. Fuente: /opt/editorial-comun/compartir/wp/iv-compartir/compartir.css */

/* ── Aviso («Texto y enlace copiados») ── */
.ivc-aviso {
	position: fixed;
	left: 50%;
	bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	z-index: 2147483000;
	max-width: min(92vw, 420px);
	padding: 11px 16px;
	border-radius: 10px;
	background: #111827;
	color: #fff;
	font: 500 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
	opacity: 0;
	transform: translate(-50%, 12px);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
	text-align: center;
}
.ivc-aviso--ver { opacity: 1; transform: translate(-50%, 0); }

/* ── Hoja de Facebook / LinkedIn ── */
.ivc-hoja {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	font: 400 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: #111827;
}
@media (min-width: 640px) { .ivc-hoja { align-items: center; } }
.ivc-hoja__fondo { position: absolute; inset: 0; background: rgba(17, 24, 39, .55); }
.ivc-hoja__caja {
	position: relative;
	box-sizing: border-box;
	width: min(100%, 480px);
	max-height: 90vh;
	overflow: auto;
	margin: 0;
	padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px));
	border-radius: 16px 16px 0 0;
	background: #fff;
	box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
	animation: ivc-sube .22s ease-out;
}
@media (min-width: 640px) { .ivc-hoja__caja { border-radius: 16px; padding: 22px 22px 20px; } }
@keyframes ivc-sube { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ivc-hoja__caja { animation: none; } .ivc-aviso { transition: none; } }
.ivc-hoja__t { margin: 0 0 6px; font-weight: 700; font-size: 18px; line-height: 1.3; color: #111827; }
.ivc-hoja__ayuda { margin: 0 0 12px; font-size: 14px; color: #4b5563; }
.ivc-hoja__texto {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-left: 4px solid #1877f2;
	border-radius: 8px;
	background: #f3f4f6;
	white-space: pre-line;
	font-size: 15px;
	color: #111827;
	user-select: text;
	-webkit-user-select: text;
}
.ivc-hoja--linkedin .ivc-hoja__texto { border-left-color: #0a66c2; }
.ivc-hoja__acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.ivc-hoja__acciones a, .ivc-hoja__acciones button {
	box-sizing: border-box;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #fff;
	color: #111827;
	font: 600 15px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	text-decoration: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.ivc-hoja__acciones .ivc-hoja__ir { flex: 1 1 100%; border-color: #1877f2; background: #1877f2; color: #fff; }
.ivc-hoja--linkedin .ivc-hoja__acciones .ivc-hoja__ir { border-color: #0a66c2; background: #0a66c2; }
.ivc-hoja__acciones button { flex: 1 1 0; }
.ivc-hoja__acciones a:focus-visible, .ivc-hoja__acciones button:focus-visible, .ivc-hoja__texto:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
	.ivc-hoja__caja { background: #1f2937; }
	.ivc-hoja__t, .ivc-hoja__texto { color: #f9fafb; }
	.ivc-hoja__ayuda { color: #d1d5db; }
	.ivc-hoja__texto { background: #111827; }
	.ivc-hoja__acciones a, .ivc-hoja__acciones button { background: #111827; color: #f9fafb; border-color: #4b5563; }
}

/* ── Barra propia (fichas de brokenufo: tema oscuro, verde) ── */
.ivc-barra {
	margin: 2.5rem 0 1.5rem;
	padding: 18px;
	border: 1px solid var(--bufo-line-green-2, rgba(34, 197, 94, .22));
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(34, 197, 94, .07), rgba(34, 211, 238, .04));
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}
.ivc-barra__cab { min-width: 0; }
.ivc-barra .ivc-barra__titulo {
	margin: 0;
	font-family: var(--bufo-display, system-ui, sans-serif);
	font-size: 15px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--bufo-green-bright, #4ade80);
}
.ivc-barra .ivc-barra__sub { margin: 2px 0 0; font-size: 13px; color: rgba(255, 255, 255, .62); }
.ivc-barra__botones { display: flex; flex-wrap: wrap; gap: 8px; }
.ivc-barra .ivc-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 42px;
	padding: 9px 13px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 10px;
	background: rgba(255, 255, 255, .05);
	color: #e5e7eb;
	font: 600 14px/1 var(--bufo-font, system-ui, sans-serif);
	text-decoration: none;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.ivc-barra .ivc-btn[hidden] { display: none; }
.ivc-barra .ivc-btn svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.ivc-barra .ivc-btn:hover, .ivc-barra .ivc-btn:focus-visible { border-color: var(--bufo-green, #22c55e); background: rgba(34, 197, 94, .12); color: #fff; }
.ivc-barra .ivc-btn:focus-visible { outline: 2px solid var(--bufo-cyan, #22d3ee); outline-offset: 2px; }
.ivc-barra .ivc-btn--whatsapp:hover { border-color: #25d366; }
.ivc-barra .ivc-btn--facebook:hover { border-color: #1877f2; }
.ivc-barra .ivc-btn--telegram:hover { border-color: #29a9eb; }
.ivc-barra .ivc-btn--reddit:hover { border-color: #ff4500; }
.ivc-barra .ivc-btn.copied { border-color: var(--bufo-green, #22c55e); color: var(--bufo-green-bright, #4ade80); }
@media (max-width: 560px) {
	.ivc-barra { padding: 14px; }
	.ivc-barra__botones { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ivc-barra .ivc-btn { justify-content: center; padding: 9px 6px; font-size: 13px; }
}

/* ── Botones añadidos a la barra de estropealo (dashwall) ── */
#whatsapp-footer .box { background: #1da851; }
#nativo-footer .box { background: #4b5563; }
/* La fila del pie es flex sin salto: con cuatro botones no cabe en el móvil. Dos por fila. */
@media (max-width: 720px) {
	.sharrre-footer { flex-wrap: wrap; row-gap: 10px; }
	.sharrre-footer > .sharrre { flex: 0 0 50%; max-width: 50%; box-sizing: border-box; }
}
