/* TNL Share — CSS mínimo, sin dependencias. Usa variables para colores. */

.tnl-share {
	--tnl-share-color: #4b5563;
	--tnl-share-size: 38px;
	--tnl-share-radius: 50%;
	box-sizing: border-box;
}
.tnl-share *, .tnl-share *::before, .tnl-share *::after { box-sizing: inherit; }

.tnl-share--shape-rounded { --tnl-share-radius: 10px; }
.tnl-share--shape-square { --tnl-share-radius: 4px; }

.tnl-share__text {
	margin: 0 0 .6em;
	font-size: .95em;
	line-height: 1.4;
}

.tnl-share__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tnl-share__item { margin: 0; }

.tnl-share__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: var(--tnl-share-size);
	height: var(--tnl-share-size);
	padding: 0 8px;
	border-radius: var(--tnl-share-radius);
	background: var(--tnl-share-color);
	color: #fff;
	text-decoration: none;
	line-height: 1;
	transition: transform .15s ease, opacity .15s ease;
}
.tnl-share__link:has(.tnl-share__label) {
	width: auto;
	min-width: var(--tnl-share-size);
}
.tnl-share__link svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.tnl-share__link:hover,
.tnl-share__link:focus-visible {
	transform: translateY(-2px);
	opacity: .9;
	color: #fff;
}
.tnl-share__label {
	font-size: .8em;
	white-space: nowrap;
}

/* Estilo: tarjeta */
.tnl-share--card {
	padding: 1em 1.2em;
	border: 1px solid rgba(0,0,0,.08);
	border-radius: 12px;
	background: rgba(0,0,0,.02);
	margin: 1.5em 0;
}

/* Estilo: línea simple */
.tnl-share--line { margin: 1em 0; }

/* Estilo: barra flotante */
.tnl-share--floating {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	z-index: 9999;
	background: transparent;
}
.tnl-share--floating[data-position="right"] { right: 14px; }
.tnl-share--floating[data-position="left"] { left: 14px; }
.tnl-share--floating .tnl-share__list {
	flex-direction: column;
	background: #fff;
	padding: 8px;
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.tnl-share--floating .tnl-share__toggle { display: none; }

@media (max-width: 782px) {
	.tnl-share--floating {
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		transform: none;
	}
	.tnl-share--floating[data-mobile="hidden"] { display: none; }
	.tnl-share--floating[data-mobile="bottom"] .tnl-share__list {
		flex-direction: row;
		justify-content: center;
		border-radius: 0;
		width: 100%;
		box-shadow: 0 -4px 14px rgba(0,0,0,.1);
	}
}

.tnl-share__link--copied {
	background: #16a34a !important;
}

/* Se puede desactivar la animación con prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.tnl-share__link { transition: none; }
}
