#visorModal {
	z-index: 1055 !important;
}

#visorModal .modal-content {
	background-color: #d6d6d6;
	padding-bottom: 10px;
	display: flex;
	flex-direction: column;
	border-radius: 8px;
}

#visorModal .modal-dialog {
	max-width: 96%;
	width: auto;
	margin: 6rem auto 1.75rem auto;
}

#visorModal .btn-close {
	padding: 1rem;
	margin-top: 5px;
	margin-right: 5px;
	opacity: 0.8;
}

#fotoGrande,
#videoPlayer,
#iframePlayer {
	border: 4px solid #ffffff;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	max-height: 55vh;
	max-width: 100%;
	width: auto;
	height: auto;
	display: block;
	margin: 0 auto 10px auto;
	object-fit: contain;
}

#iframePlayer {
	width: 800px;
	height: 450px;
	max-width: 100%;
}

.thumb {
	margin-bottom: 20px;
}

.img-wrapper {
	position: relative;
	overflow: hidden;
	border-radius: 6px;
	cursor: pointer;
}

.img-thumbnail {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
	border: none;
	padding: 0;
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.lupa-icon {
	width: 2.2rem;
	height: 2.2rem;
	fill: rgba(255, 255, 255, 0.6);
	transform: rotate(-15deg);
	transition: transform 0.3s ease, fill 0.3s ease;
}

.img-wrapper:hover .overlay {
	opacity: 1;
}

.img-wrapper:hover .img-thumbnail {
	transform: scale(1.1);
}

.img-wrapper:hover .lupa-icon {
	transform: rotate(0deg) scale(1.1);
	fill: rgba(255, 255, 255, 0.9);
}

.nav-btn {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
}

.nav-btn.visible {
	visibility: visible;
}

#tituloFoto {
	font-size: 1.1rem;
	flex-grow: 1;
	text-align: center;
	white-space: nowrap;
	padding: 0 15px;
	color: #222222;
	font-weight: 500;
}

.wrapper-paginacion {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	margin-top: 35px;
	margin-bottom: 35px;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.custom-pagination {
	display: flex;
	border: 1px solid #b2bdce;
	border-radius: 6px;
	padding: 0;
	margin: 0;
	list-style: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.custom-pagination .page-item {
	position: relative;
}

.custom-pagination .page-item .page-btn {
	background: #fff;
	border: none;
	border-right: 1px solid #dee2e6;
	color: #007bff;
	font-weight: 500;
	padding: 10px 20px;
	cursor: pointer;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease;
	height: 100%;
}

.custom-pagination .page-item:first-child .page-btn {
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
}

.custom-pagination .page-item:last-child .page-btn {
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
}

.custom-pagination .page-item .page-btn[data-target="first"],
.custom-pagination .page-item .page-btn[data-target="prev"],
.custom-pagination .page-item .page-btn[data-target="next"],
.custom-pagination .page-item .page-btn[data-target="last"] {
	font-size: 1.4rem;
	line-height: 1;
}

.custom-pagination .page-item:last-child .page-btn {
	border-right: none;
}

.custom-pagination .page-item .page-btn:hover:not(.disabled) {
	background-color: #f1f3f5;
	color: #0056b3;
}

.custom-pagination .page-item.active .page-btn {
	background-color: #2ea3d4;
	color: #ffffff;
	font-weight: bold;
	cursor: default;
}

.custom-pagination .page-item .page-btn.disabled {
	color: #b5bbc2;
	opacity: 0.7;
	cursor: not-allowed;
	background-color: #fff;
}

.page-info-text {
	color: #495057;
	font-size: 1.05rem;
	font-weight: 500;
}

.page-btn[data-hover]::after {
	content: attr(data-hover);
	position: absolute;
	bottom: 135%;
	left: 50%;
	transform: translateX(-50%) scale(0.8);
	background-color: #212529;
	color: #ffffff;
	padding: 6px 10px;
	font-size: 0.8rem;
	font-weight: 400;
	border-radius: 4px;
	white-space: nowrap;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
	z-index: 9999;
}

.page-btn[data-hover]::before {
	content: '';
	position: absolute;
	bottom: 115%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 5px 5px 0;
	border-style: solid;
	border-color: #212529 transparent transparent;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
	z-index: 9999;
}

.page-btn[data-hover]:hover::after {
	opacity: 1;
	transform: translateX(-50%) scale(1);
}

.page-btn[data-hover]:hover::before {
	opacity: 1;
}

/* Estilos añadidos para los botones de las categorías */
.contenedor-filtros {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
	font-family: system-ui, -apple-system, sans-serif;
}

.btn-filtro {
	background-color: #ffffff;
	color: #495057;
	border: 1px solid #b2bdce;
	padding: 8px 18px;
	border-radius: 20px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-filtro:hover {
	background-color: #f1f3f5;
	color: #2ea3d4;
	border-color: #2ea3d4;
}

.btn-filtro.active {
	background-color: #2ea3d4;
	color: #ffffff;
	border-color: #2ea3d4;
	box-shadow: 0 2px 4px rgba(46, 163, 212, 0.2);
}

@media (max-width: 575.98px) {
	#visorModal .modal-dialog {
		margin: 5rem auto 1.75rem auto;
	}

	#fotoGrande,
	#videoPlayer,
	#iframePlayer {
		max-height: 45vh;
	}

	.wrapper-paginacion {
		flex-direction: column;
		gap: 15px;
		justify-content: center;
	}

	.custom-pagination .page-item .page-btn {
		padding: 8px 12px;
		font-size: 1rem;
	}

	.custom-pagination .page-item .page-btn[data-target="first"],
	.custom-pagination .page-item .page-btn[data-target="prev"],
	.custom-pagination .page-item .page-btn[data-target="next"],
	.custom-pagination .page-item .page-btn[data-target="last"] {
		font-size: 1.2rem;
	}
}