/* Pop up «FEN Giving». Ver inc/popup-giving.php */

.fen-popup-giving {
	position: fixed;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
	/* 540px en escritorio (encargo del 2026-10-19). En pantallas más pequeñas se encoge
	   para caber entero: el lado que mande, ancho o alto (la imagen es 0,84 de ancho por
	   cada 1 de alto). */
	width: min(540px, calc(100vw - 32px), calc((100dvh - 48px) * 0.84));
	max-width: none;
	max-height: none;
}

.fen-popup-giving::backdrop {
	background: rgba(13, 11, 112, 0.6);
}

.fen-popup-giving[open] {
	animation: fen-popup-giving-entra 0.25s ease-out;
}

@keyframes fen-popup-giving-entra {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.fen-popup-giving[open] { animation: none; }
}

.fen-popup-giving__enlace {
	display: block;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.fen-popup-giving__enlace img {
	display: block;
	width: 100%;
	height: auto;
}

.fen-popup-giving__cerrar {
	position: absolute;
	top: -14px;
	right: -14px;
	z-index: 1;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #0d0b70;
	font-size: 26px;
	line-height: 36px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.fen-popup-giving__cerrar:focus-visible {
	outline: 3px solid #adffff;
	outline-offset: 2px;
}
