/* Grid desktop/laptop */
.grid-truco {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 45px 10px;
}

/* Grid tablets */
@media (max-width: 1024px) {
	.grid-truco {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px 10px;
	}
}

/* Grid móviles verticales */
@media (max-width: 767px) {
	.grid-truco {
		grid-template-columns: 1fr;
		gap: 20px 0;
	}
}

/* Video wrapper específico para trucos */
.videoWrapperTruco {
	position: relative;
	width: 100%;
	cursor: pointer;
	overflow: hidden;
	margin-bottom: 10px;
}

/* Video dentro del wrapper */
.trucoVideo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* llena el contenedor manteniendo proporción */
	transition: opacity 0.3s ease;
}

/* Play/Pause Button */
.playPauseBtn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	pointer-events: none;
	opacity: 0.9;
	transition: opacity 0.3s ease;
	font-size: 30px;
	color: var(--colorbasetexto);
	background-color: #00000066;
	padding: 24px 30px;
	border-radius: 500px;
}

/* Ocultar botón cuando el video está reproduciéndose */
.videoWrapperTruco.playing .playPauseBtn {
	opacity: 0;
}

/* Opcional: autoplay en móviles verticales */
@media (max-width: 767px) {
	.videoWrapperTruco {
		/*height: 70vw;
				/* mantiene proporción vertical aproximada */
	}
}

.catScrollWrapper {
	position: relative;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
}

.catScroll {
	overflow-x: auto;
	white-space: nowrap;
	flex: 1;
	scrollbar-width: none;
	/* Firefox */
	-ms-overflow-style: none;
	/* IE 10+ */
	height: 60px;
	display: flex;
	align-items: center;
	/* centra verticalmente los elementos */

}

.catScroll::-webkit-scrollbar {
	display: none;
}

/* Chrome/Safari */

.catScroll a {
	display: inline-block;
	transition: background 0.3s;
}



.scrollBtn {
	display: inline-block;
	color: var(--colorbasetextosec);
	text-decoration: none;
	font-family: 'Gobold';
	font-size: 20px;
	background-color: var(--colorbaseBackgroundDivs);
	padding: 5px 10px;
	margin: 0 2px;
	border: none;
	/* quitamos borde predeterminado */
	border-radius: 0;
	/* sin bisel */
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}

.scrollBtn:hover {
	background-color: var(--colorbaseLinksHover);

}

.scrollBtn:active {
	transform: scale(0.95);
	/* efecto de click */
}

.categoriaCircleWrapper {
	position: relative;
	display: inline-block;
	/* ya no hace falta padding-right */
}

.catCount {
	position: absolute;
	bottom: 0;
	right: 0;
	transform: translate(25%, -128%);
	/* hace que sobresalga hacia fuera */
	background: var(--colorbaseLinksHover);
	color: #fff;
	font-size: 10px;
	width: 20px;
	height: 20px;
	font-weight: bold;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 10px;
	z-index: 100;

}

.accionesTruco {
	margin-top: 5px;
	display: flex;
	gap: 10px;
	align-items: center;
}

.accionesDetalle {
	justify-content: center;
	/* centra todo */
	width: 100%;
	flex-wrap: wrap;
	/* evita que se desborde */
}

.likeBtn {
	display: inline-block;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.25s ease;
}

.likeBtn:hover {
	transform: scale(1.1);
}

.likeBtn.liked {
	color: red;
	transform: scale(1.1);
}

.likeToast {
	position: absolute;
	width: 130px;
	background: var(--colorbaseBackgroundDivs);
	color: #fff;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 11px;
	opacity: 0;
	transform: translateY(10px);
	transition: all 0.3s ease;
	pointer-events: none;
	z-index: 999;
}

.likeToast.show {
	opacity: 1;
	transform: translateY(-10px);
}

.downloadBtn {

	  display: inline-flex;
    align-items: center;
    justify-content: center;
	color: #000;
	width: 34px;
	height: 32px;
	
	font-size: 16px;
	text-decoration: none;
	transition: all 0.25s ease;
}

.downloadBtn:hover {
	color: #e96713;
	transform: scale(1.3);
}

.downloadBtn:active {
    transform: scale(0.95);
}
/*---------WIDGET----------*/

.trucoDestacado {
	width: 100%;
	display: block;
	float: left;
	margin: 15px 0 10px;
	padding: 12px;
	box-sizing: border-box;
	background: #fff;
	border: 1px dashed var(--colorbaseTextoResaltado);
	transition: all 0.2s ease;
}

.trucoDestacado:hover {

	background: #00000011;

}

@media only screen and (max-width: 768px) {
	.trucoDestacado {
		
	}
	.playPauseBtn
	{
		display: none;
		opacity: 0.0; /*ESCONDEMOS PARA MOVIL REPRORDUCTOR FUERZA SU PROPIO PLAY*/
	}
}