.anuario-gen-widget {
	--anuario-accent: #1d8ca0;
	max-width: 920px;
	margin: 0 auto;
	font-family: inherit;
	box-sizing: border-box;
}

.anuario-gen-widget * {
	box-sizing: border-box;
}

.anuario-gen-select-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 22px;
}

.anuario-gen-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 100%;
	max-width: 420px;
	font-size: 17px;
	color: #3c3c3c;
	background-color: #fdfaf3;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	border: 1px solid #e6ddc8;
	border-radius: 12px;
	padding: 16px 48px 16px 22px;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.anuario-gen-select:hover {
	border-color: var(--anuario-accent);
}

.anuario-gen-select:focus {
	outline: none;
	border-color: var(--anuario-accent);
	box-shadow: 0 0 0 3px rgba(29, 140, 160, 0.18);
}

.anuario-gen-image-wrap {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	background: #f4f4f6;
}

.anuario-gen-image {
	display: block;
	width: 100%;
	height: auto;
	cursor: zoom-in;
	transition: opacity .25s ease;
}

.anuario-gen-zoom-hint {
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	border-radius: 50%;
	pointer-events: none;
	opacity: 0;
	transform: scale(.9);
	transition: opacity .2s ease, transform .2s ease;
}

.anuario-gen-image-wrap:hover .anuario-gen-zoom-hint {
	opacity: 1;
	transform: scale(1);
}

@media (max-width: 600px) {
	.anuario-gen-select {
		font-size: 16px;
		padding: 14px 44px 14px 18px;
	}
	.anuario-gen-image-wrap {
		border-radius: 14px;
	}
	.anuario-gen-zoom-hint {
		opacity: 1;
		transform: scale(1);
	}
}

/* ---------------- Visor a pantalla completa (lightbox) ---------------- */
.anuario-gen-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(8, 8, 10, 0.94);
	display: none;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
	opacity: 0;
	transition: opacity .2s ease;
}

.anuario-gen-lightbox.is-open {
	display: flex;
	opacity: 1;
}

.anuario-gen-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	transform-origin: 0 0;
	will-change: transform;
	cursor: grab;
	-webkit-user-drag: none;
	user-drag: none;
}

.anuario-gen-lightbox__img.is-zoomed {
	cursor: grab;
}

.anuario-gen-lightbox__img.is-dragging {
	cursor: grabbing;
	transition: none;
}

.anuario-gen-lightbox__btn {
	position: absolute;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
	transition: background .15s ease;
	z-index: 2;
}

.anuario-gen-lightbox__btn:hover {
	background: rgba(255, 255, 255, 0.25);
}

.anuario-gen-lightbox__close {
	top: 18px;
	right: 18px;
}

.anuario-gen-lightbox__controls {
	position: absolute;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 12px;
	z-index: 2;
}

.anuario-gen-lightbox__controls .anuario-gen-lightbox__btn {
	position: static;
}

@media (max-width: 600px) {
	.anuario-gen-lightbox__controls {
		bottom: 28px;
	}
}
