/* Herramientas para Creadores: estilos. Usan el color del tema (currentColor) para funcionar en temas claros y oscuros. */

.trc {
	--trc-acento: #2563eb;
	--trc-borde: rgba(127, 127, 127, 0.28);
	--trc-suave: rgba(127, 127, 127, 0.07);
	--trc-radio: 12px;
	box-sizing: border-box;
	font-size: 16px;
	line-height: 1.5;
}
.trc *,
.trc *::before,
.trc *::after {
	box-sizing: border-box;
}
.trc-oculto {
	position: absolute !important;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

/* ---------- Cuadrícula de la portada ---------- */

.trc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 1.5em 0;
}
@media (max-width: 980px) {
	.trc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.trc-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}
.trc-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 20px;
	border: 1px solid var(--trc-borde);
	border-radius: var(--trc-radio);
	background: var(--trc-suave);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.trc-card:hover,
.trc-card:focus-within {
	border-color: var(--trc-acento);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}
.trc-card-top {
	display: flex;
	align-items: center;
	gap: 12px;
}
.trc-card-icono {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	color: #fff;
	background: var(--trc-acento);
}
.trc-card-titulo {
	margin: 0 !important;
	font-size: 22px !important;
	line-height: 1.25 !important;
}
.trc-card-titulo a {
	color: inherit !important;
	text-decoration: none !important;
}
.trc-card-titulo a:hover {
	color: var(--trc-acento) !important;
}
.trc-card-desc {
	margin: 0 !important;
	font-size: 18px;
	opacity: 0.8;
}
.trc-card-campos {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.trc-card-btn {
	margin-top: auto;
	width: 100%;
}

/* ---------- Campos ---------- */

.trc-campo {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}
.trc-label {
	display: block;
	font-size: 18px;
	font-weight: 700;
	margin: 0;
}
.trc-ayuda {
	font-size: 0.8em;
	opacity: 0.72;
}
.trc input[type='text'],
.trc input[type='url'],
.trc input[type='number'],
.trc input[type='date'],
.trc input[type='datetime-local'],
.trc select,
.trc textarea {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 9px 11px;
	font: inherit;
	font-size: 15px;
	color: inherit;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid var(--trc-borde);
	border-radius: 8px;
	min-height: 42px;
}
@media (prefers-color-scheme: dark) {
	.trc input[type='text'],
	.trc input[type='url'],
	.trc input[type='number'],
	.trc input[type='date'],
	.trc input[type='datetime-local'],
	.trc select,
	.trc textarea {
		background: rgba(0, 0, 0, 0.2);
	}
}
.trc textarea {
	resize: vertical;
	min-height: 90px;
}
.trc input:focus,
.trc select:focus,
.trc textarea:focus {
	outline: 2px solid var(--trc-acento);
	outline-offset: 1px;
	border-color: transparent;
}
.trc input[type='color'] {
	width: 64px;
	height: 42px;
	padding: 2px;
	border: 1px solid var(--trc-borde);
	border-radius: 8px;
	background: none;
}
.trc input[type='range'] {
	width: 100%;
	accent-color: var(--trc-acento);
}
.trc-valor {
	font-weight: 700;
	color: var(--trc-acento);
}
.trc-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.93em;
	cursor: pointer;
	min-height: 42px;
}
.trc-check input {
	width: 18px;
	height: 18px;
	accent-color: var(--trc-acento);
}
.trc-fila {
	display: grid;
	gap: 14px;
	margin: 14px 0;
	align-items: end;
}
.trc-fila--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.trc-fila--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.trc-fila--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 820px) {
	.trc-fila--3,
	.trc-fila--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 560px) {
	.trc-fila--2,
	.trc-fila--3,
	.trc-fila--4 {
		grid-template-columns: 1fr;
	}
}
.trc-tool > .trc-tool-body > .trc-campo {
	margin: 14px 0;
}

/* ---------- Zona de archivos ---------- */

.trc-zona {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 130px;
	padding: 18px;
	text-align: center;
	border: 2px dashed var(--trc-borde);
	border-radius: var(--trc-radio);
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}
.trc-zona:hover,
.trc-zona.is-over,
.trc-zona:focus-within {
	border-color: var(--trc-acento);
	background: var(--trc-suave);
}
.trc-zona-icono {
	font-size: 22px;
	line-height: 1;
	color: var(--trc-acento);
}
.trc-zona-texto {
	font-weight: 700;
	word-break: break-word;
}
.trc-zona--mini {
	min-height: 0;
	padding: 10px 12px;
	flex-direction: row;
	border-width: 1px;
	font-size: 0.93em;
}
.trc-zona--mini .trc-zona-texto {
	font-weight: 600;
}
.trc-zona--mini.is-lleno {
	border-style: solid;
	border-color: var(--trc-acento);
}

/* ---------- Botones ---------- */

.trc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 10px 18px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: inherit;
	background: transparent;
	border: 1px solid var(--trc-borde);
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none !important;
	transition: filter 0.15s, transform 0.1s, background 0.15s;
}
.trc-btn:hover {
	background: var(--trc-suave);
}
.trc-btn:active {
	transform: translateY(1px);
}
.trc-btn--primario {
	color: #fff !important;
	background: var(--trc-acento);
	border-color: var(--trc-acento);
}
.trc-btn--primario:hover {
	background: var(--trc-acento);
	filter: brightness(1.08);
}
.trc-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}
.trc-btn.is-cargando::after {
	content: '';
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: trc-giro 0.7s linear infinite;
}
@keyframes trc-giro {
	to {
		transform: rotate(360deg);
	}
}
.trc-acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0;
}
.trc-link {
	padding: 0;
	font: inherit;
	font-weight: 700;
	color: var(--trc-acento);
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: underline;
}

/* ---------- Herramienta ---------- */

.trc-tool {
	margin: 1.8em 0;
	padding: 22px;
	border: 1px solid var(--trc-borde);
	border-radius: var(--trc-radio);
	background: var(--trc-suave);
}
@media (max-width: 560px) {
	.trc-tool {
		padding: 16px 14px;
		margin-left: -4px;
		margin-right: -4px;
	}
}
.trc-cargando {
	margin: 10px 0;
	opacity: 0.75;
}
.trc-resultado:empty {
	display: none;
}
.trc-aviso {
	margin: 10px 0 !important;
	padding: 10px 14px;
	font-size: 0.93em;
	border-radius: 8px;
	border-left: 4px solid var(--trc-borde);
	background: var(--trc-suave);
}
.trc-aviso--error {
	border-left-color: #dc2626;
	background: rgba(220, 38, 38, 0.08);
}
.trc-aviso--alerta {
	border-left-color: #d97706;
	background: rgba(217, 119, 6, 0.09);
}
.trc-aviso--ok {
	border-left-color: #16a34a;
	background: rgba(22, 163, 74, 0.09);
}
.trc-aviso--info {
	border-left-color: var(--trc-acento);
}
.trc-preview {
	margin: 16px 0;
	text-align: center;
}
.trc-preview img {
	max-width: 100%;
	height: auto;
	max-height: 520px;
	border-radius: 8px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
.trc-tabla-scroll {
	overflow-x: auto;
}
.trc-tabla {
	width: 100%;
	margin: 12px 0;
	border-collapse: collapse;
	font-size: 0.93em;
}
.trc-tabla th,
.trc-tabla td {
	padding: 8px 10px;
	text-align: left;
	border-bottom: 1px solid var(--trc-borde);
}
.trc-tabla--lote .trc-nombre {
	max-width: 280px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.trc-codigo {
	max-height: 420px;
	margin: 10px 0;
	padding: 14px;
	overflow: auto;
	font-size: 13px;
	line-height: 1.5;
	white-space: pre;
	color: #e5e7eb;
	background: #111827;
	border-radius: 10px;
}
.trc-bloque {
	margin: 14px 0;
}
.trc-bloque[hidden] {
	display: none;
}
.trc-bloque--suave {
	padding: 14px;
	border: 1px dashed var(--trc-borde);
	border-radius: 10px;
}
.trc-previa-titulo {
	margin-top: 18px !important;
}
.trc-datos {
	margin: 6px 0 0 !important;
}

/* ---------- Teleprompter ---------- */

.trc-tp-marco {
	position: relative;
	height: 60vh;
	min-height: 320px;
	overflow: hidden;
	color: #fff;
	background: #0b0b0c;
	border-radius: 10px;
	cursor: pointer;
	outline: none;
}
.trc-tp-marco:focus-visible {
	box-shadow: 0 0 0 3px var(--trc-acento);
}
.trc-tp-pantalla {
	height: 100%;
	overflow: hidden;
}
.trc-tp-texto {
	padding: 22vh 7% 60vh;
	font-weight: 600;
	line-height: 1.45;
	white-space: pre-wrap;
	text-align: center;
	color: #fff;
}
.trc-tp-texto.is-espejo {
	transform: scaleX(-1);
}
.trc-tp-guia {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(11, 11, 12, 0.9) 0%, rgba(11, 11, 12, 0) 22%, rgba(11, 11, 12, 0) 70%, rgba(11, 11, 12, 0.9) 100%);
}
.trc-tp-guia::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 34%;
	border-top: 2px solid rgba(255, 255, 255, 0.16);
}
.trc-tp-cuenta {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 120px;
	font-weight: 800;
	background: rgba(0, 0, 0, 0.6);
}
.trc-tp-cuenta[hidden],
.trc-tp-pista[hidden] {
	display: none;
}
.trc-tp-pista {
	position: absolute;
	left: 50%;
	bottom: 14px;
	max-width: 92%;
	transform: translateX(-50%);
	padding: 6px 12px;
	font-size: 13px;
	text-align: center;
	background: rgba(255, 255, 255, 0.14);
	border-radius: 999px;
}
.trc-tp-salir {
	display: none !important;
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	color: #fff !important;
	background: rgba(255, 255, 255, 0.14) !important;
	border-color: transparent !important;
}
.trc-tp-marco.is-completa {
	position: fixed;
	inset: 0;
	z-index: 999999;
	height: auto;
	border-radius: 0;
}
.trc-tp-marco.is-completa .trc-tp-salir {
	display: inline-flex !important;
}
.trc-tp-abierto,
.trc-tp-abierto body {
	overflow: hidden !important;
}

/* ---------- Vista previa del feed ---------- */

.trc-feed-escenario {
	margin: 16px 0;
	overflow-x: auto;
}
.trc-feed {
	--f-fondo: #fff;
	--f-texto: #0f0f0f;
	--f-meta: #606060;
	--f-tarjeta: #fff;
	position: relative;
	margin: 0 auto 16px;
	padding: 16px;
	color: var(--f-texto);
	background: var(--f-fondo);
	border-radius: 14px;
	box-shadow: 0 0 0 1px var(--trc-borde);
	font-family: Roboto, Arial, Helvetica, sans-serif;
}
.trc-feed--oscuro {
	--f-fondo: #0f0f0f;
	--f-texto: #f1f1f1;
	--f-meta: #aaa;
	--f-tarjeta: #18191a;
}
.trc-feed--fb.trc-feed--claro {
	--f-fondo: #f0f2f5;
}
.trc-feed--celular {
	max-width: 390px;
	padding: 0 0 8px;
}
.trc-feed--computadora.trc-feed--yt {
	display: grid;
	grid-template-columns: repeat(3, minmax(220px, 1fr));
	gap: 26px 16px;
	min-width: 720px;
}
.trc-feed--computadora.trc-feed--fb {
	max-width: 560px;
}
.trc-feed p {
	margin: 0 !important;
}
.trc-feed-item,
.trc-feed-post {
	position: relative;
}
.trc-feed--celular.trc-feed--yt .trc-feed-item {
	margin-bottom: 16px;
}
.trc-feed--celular .trc-feed-mini {
	border-radius: 0;
}
.trc-feed-mini {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 12px;
	background: #ccc;
}
.trc-feed-mini img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0 !important;
}
.trc-feed-falso {
	position: absolute;
	left: 10%;
	top: 22%;
	width: 55%;
	height: 26%;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 4px;
	box-shadow: 0 30px 0 -6px rgba(255, 255, 255, 0.55);
}
.trc-feed-dur {
	position: absolute;
	right: 6px;
	bottom: 6px;
	padding: 1px 5px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background: rgba(0, 0, 0, 0.8);
	border-radius: 4px;
}
.trc-feed-info {
	display: flex;
	gap: 12px;
	padding: 12px 12px 0;
}
.trc-feed--computadora .trc-feed-info {
	padding: 12px 0 0;
}
.trc-feed-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	border-radius: 50%;
}
.trc-feed-titulo {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 4px !important;
}
.trc-feed--computadora .trc-feed-titulo {
	font-size: 16px;
}
.trc-feed-meta {
	font-size: 12.5px;
	color: var(--f-meta);
	line-height: 1.4;
}
.trc-feed-etiqueta {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 3px 9px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: var(--trc-acento);
	border-radius: 999px;
	font-family: inherit;
}
.trc-feed-item.is-tuyo .trc-feed-mini,
.trc-feed-post.is-tuyo .trc-feed-mini {
	outline: 3px solid var(--trc-acento);
	outline-offset: 2px;
}
.trc-feed-post {
	margin-bottom: 10px;
	background: var(--f-tarjeta);
	border-radius: 8px;
	overflow: hidden;
}
.trc-feed--celular .trc-feed-post {
	border-radius: 0;
}
.trc-feed-post .trc-feed-mini {
	border-radius: 0;
}
.trc-feed-post-cab {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 12px 8px;
}
.trc-feed-nombre {
	font-size: 14.5px;
	font-weight: 700;
}
.trc-feed-post-texto {
	padding: 0 12px 10px;
	font-size: 15px;
	line-height: 1.35;
}
.trc-feed-post-pie {
	display: flex;
	justify-content: space-around;
	padding: 10px 12px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--f-meta);
	border-top: 1px solid rgba(127, 127, 127, 0.25);
}
.trc-feed--fb .trc-feed-etiqueta {
	top: auto;
	left: auto;
	right: 10px;
	top: 12px;
}
.trc-feed--chico {
	max-width: 440px;
}
.trc-feed-subtitulo {
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 10px !important;
	color: var(--f-meta);
}
.trc-feed-fila {
	display: grid;
	grid-template-columns: 168px 1fr;
	gap: 10px;
	margin-bottom: 10px;
}
.trc-feed-fila .trc-feed-mini {
	border-radius: 8px;
}
.trc-feed-fila .trc-feed-titulo {
	font-size: 14px;
}

/* ---------- Vista previa de relacionados ---------- */

.trc-rel-previa {
	padding: 6px 16px 16px;
	border: 1px dashed var(--trc-borde);
	border-radius: 10px;
}

/* ---------- Otras herramientas (final de artículo) ---------- */

.trc-otras ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.trc-otras li {
	margin: 0 !important;
}
.trc-otras a {
	display: flex;
	gap: 12px;
	height: 100%;
	padding: 14px;
	font-size: 0.93em;
	color: inherit !important;
	text-decoration: none !important;
	border: 1px solid var(--trc-borde);
	border-radius: 10px;
}
.trc-otras a:hover {
	border-color: var(--trc-acento);
}
.trc-otras .trc-card-icono {
	flex-basis: 38px;
	width: 38px;
	height: 38px;
}
