/* TikTok Carrusel para Elementor */

.ttce-carousel {
	--ttce-slides: 3;
	--ttce-gap: 16px;
	--ttce-radius: 14px;
	position: relative;
	width: 100%;
}

.ttce-viewport {
	overflow: hidden;
	width: 100%;
}

.ttce-track {
	display: flex;
	gap: var(--ttce-gap);
	transition: transform .45s cubic-bezier(.4, 0, .2, 1);
	will-change: transform;
}

.ttce-slide {
	flex: 0 0 calc((100% - (var(--ttce-slides) - 1) * var(--ttce-gap)) / var(--ttce-slides));
	max-width: calc((100% - (var(--ttce-slides) - 1) * var(--ttce-gap)) / var(--ttce-slides));
}

.ttce-card {
	background-color: #000;
	border-radius: var(--ttce-radius);
	overflow: hidden;
	height: 100%;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

/* Miniatura y reproductor comparten el mismo marco vertical (9:16). */
.ttce-thumb,
.ttce-player {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 16;
	background: #111;
	overflow: hidden;
}

.ttce-thumb {
	cursor: pointer;
}

.ttce-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ttce-thumb-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, .35);
}

.ttce-thumb-fallback svg {
	width: 48px;
	height: 48px;
}

.ttce-play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .45);
	border-radius: 50%;
	pointer-events: none;
	transition: transform .2s ease, background .2s ease;
}

.ttce-thumb:hover .ttce-play {
	transform: scale(1.08);
	background: rgba(0, 0, 0, .6);
}

.ttce-play svg {
	width: 24px;
	height: 24px;
	fill: #fff;
	margin-left: 3px;
}

.ttce-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ttce-info {
	padding: 10px 12px 14px;
}

.ttce-author {
	font-weight: 700;
	font-size: 14px;
	color: #fff;
	line-height: 1.3;
}

.ttce-title {
	font-size: 13px;
	line-height: 1.4;
	color: rgba(255, 255, 255, .8);
	margin-top: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Flechas ── */
.ttce-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	color: #fff;
	background-color: #fe2c55;
	box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
	transition: transform .2s ease, opacity .2s ease, background-color .2s ease, color .2s ease;
}

.ttce-arrow svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ttce-prev {
	left: -8px;
}

.ttce-next {
	right: -8px;
}

.ttce-arrow:hover {
	transform: translateY(-50%) scale(1.06);
}

.ttce-arrow.ttce-disabled {
	opacity: .35;
	cursor: default;
	pointer-events: none;
}

.ttce-empty {
	padding: 20px;
	text-align: center;
	color: #888;
	border: 1px dashed #ccc;
	border-radius: 8px;
}
