/* Fusión Publicidad – parte pública */

.fa-slot { clear: both; width: 100%; text-align: center; }
.fa-slot:empty { display: none; }
.fa-slot--mid_article,
.fa-slot--end_article { margin: 28px auto; }
.fa-slot--home_after_3 { float: none; clear: both; margin: 10px 0 30px; flex: 0 0 100%; grid-column: 1 / -1; }
.fa-grid-fix { display: none !important; }

.fa-ad { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.fa-ad .fa-link { display: block; line-height: 0; }
.fa-ad .fa-media { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 0; }

.fa-label {
	display: block;
	margin-bottom: 4px;
	font: 500 10px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #8a8a8a;
	text-align: center;
}

.fa-close {
	position: absolute;
	top: -12px;
	right: -12px;
	z-index: 2;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #111;
	color: #fff;
	font: 400 20px/22px Arial, sans-serif;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.fa-close:hover,
.fa-close:focus-visible { background: #d0021b; outline: none; }

/* ---------- Faldón ---------- */

.fa-sticky-spacer { position: relative; width: 100%; background: #f4f4f4; }
.fa-sticky {
	position: relative;
	display: flex;
	justify-content: center;
	padding: 8px 12px;
	box-sizing: border-box;
	width: 100%;
	background: #f4f4f4;
}
.fa-sticky .fa-close { top: 6px; right: 6px; }
.fa-sticky .fa-ad .fa-media { max-height: 120px; width: auto; }

.fa-sticky--bottom {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 -4px 18px rgba(0, 0, 0, .18);
	animation: fa-slide-up .35s ease-out;
}
.fa-sticky--bottom .fa-close { top: -14px; right: 10px; }
.fa-sticky--bottom .fa-ad .fa-media { max-height: 100px; }

@keyframes fa-slide-up {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

/* ---------- Pop-up ---------- */

html.fa-noscroll,
html.fa-noscroll body { overflow: hidden; }

.fa-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	background: rgba(0, 0, 0, .72);
	opacity: 0;
	transition: opacity .2s ease;
}
.fa-popup--open { opacity: 1; }
.fa-popup__box {
	position: relative;
	max-width: min(92vw, 720px);
	padding: 10px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
	transform: scale(.96);
	transition: transform .2s ease;
}
.fa-popup--open .fa-popup__box { transform: scale(1); }
.fa-popup .fa-ad { display: block; }
.fa-popup .fa-ad .fa-media { max-height: 80vh; width: auto; }

@media (max-width: 767px) {
	.fa-sticky--bottom .fa-ad .fa-media { max-height: 70px; }
	.fa-popup { padding: 18px; }
	.fa-close { right: -8px; top: -10px; }
	.fa-sticky .fa-close { right: 4px; top: 4px; }
	.fa-sticky--bottom .fa-close { right: 6px; top: -14px; }
}

@media (prefers-reduced-motion: reduce) {
	.fa-sticky--bottom { animation: none; }
	.fa-popup, .fa-popup__box { transition: none; }
}
