/**
 * ARCHIVE PAGINATION
 *
 * Estilos personalizados para la paginación de las cuadrículas de bucle de Elementor.
 *
 * @package Unikal
 */

/* --------------- PAGINACIÓN ARCHIVO */

.elementor-pagination {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 112px;
	margin-top: 48px;
	padding: 32px 0;
	border-top: 1px solid var(--ca-grey-200);
}

.elementor-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border-radius: 8px;
	color: var(--c-grey-900);
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.elementor-pagination .page-numbers:hover {
	background-color: var(--ca-grey-100);
}

.elementor-pagination .page-numbers.current {
	background-color: var(--c-primary);
	color: var(--c-white);
	font-weight: 600;
}

.elementor-pagination .page-numbers.dots {
	min-width: auto;
	padding: 0 4px;
	color: var(--c-grey);
}

.elementor-pagination .page-numbers.prev,
.elementor-pagination .page-numbers.next {
	position: absolute;
	top: 50%;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: auto;
	min-width: auto;
	padding: 0;
	transform: translateY(-50%);
	background: transparent;
	color: var(--c-primary);
	font-weight: 600;
	font-size: 14px;
}

.elementor-pagination .page-numbers.prev::before,
.elementor-pagination .page-numbers.next::after {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.elementor-pagination .page-numbers.prev::before {
	transform: rotate(-135deg);
}

.elementor-pagination .page-numbers.next::after {
	transform: rotate(45deg);
}

.elementor-pagination .page-numbers.prev {
	left: 0;
}

.elementor-pagination .page-numbers.next {
	right: 0;
}

.elementor-pagination .page-numbers.prev:hover,
.elementor-pagination .page-numbers.next:hover {
	color: var(--c-tertiary);
}

@media screen and (max-width: 767px) {
	.elementor-pagination {
		justify-content: center;
		min-height: auto;
		margin-top: 32px;
		padding: 24px 0 72px;
	}

	.elementor-pagination .page-numbers {
		min-width: 36px;
		height: 36px;
		padding: 0 8px;
		font-size: 16px;
	}

	.elementor-pagination .page-numbers.prev,
	.elementor-pagination .page-numbers.next {
		top: auto;
		bottom: 16px;
		transform: none;
	}
}

