/* ============================================================
   InfoSaludRD Ads — estilos de slots publicitarios
   v1.1.0
   ============================================================ */

/* ── Base de todos los slots ─────────────────────────────── */
.isrd-ad {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f2f3f5;
	border: 1px dashed #c3c8cf;
	border-radius: 4px;
	color: #6b7280;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	overflow: hidden;
	box-sizing: border-box;
}

.isrd-ad__label {
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #9aa1ab;
	user-select: none;
	text-align: center;
	padding: 0 8px;
}

/* ── Banner Principal (Masthead) — tope de página ────────── */
.isrd-masthead {
	width: 100%;
	padding: 10px 12px;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	background: #ffffff;
}

.isrd-masthead__link {
	display: block;
	width: 100%;
	max-width: 1300px;
	line-height: 0;
}

.isrd-masthead__img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
}

.isrd-ad--masthead {
	flex-direction: column;
	gap: 4px;
	width: 100%;
	max-width: 1300px;
	height: 150px;
}

.isrd-ad__size {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #374151;
}

.isrd-ad__contact {
	font-size: 12px;
	color: #0c4da2;
	text-decoration: none;
}

.isrd-ad__contact:hover {
	text-decoration: underline;
}

@media (max-width: 780px) {
	.isrd-ad--masthead {
		height: 100px;
	}
	.isrd-ad__size {
		font-size: 13px;
	}
}

/* ── Slot 2 — Medium Rectangle 300×250 centrado ──────────── */
.isrd-ad--mrec {
	width: 300px;
	height: 250px;
	margin: 24px auto;
	clear: both;
}

/* ── Slot 3 — Native ad ──────────────────────────────────── */
.isrd-ad--native {
	display: block;
	width: 100%;
	min-height: 110px;
	margin: 24px 0;
	padding: 16px 20px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #0c4da2;
	border-radius: 4px;
	text-align: left;
}

.isrd-ad--native .isrd-ad__label {
	display: block;
	padding: 0;
	text-align: left;
	color: #0c4da2;
	font-weight: 600;
}

/* ── Slot 4 — Banner 468×60 centrado ─────────────────────── */
.isrd-ad--banner {
	width: 100%;
	max-width: 468px;
	height: 60px;
	margin: 24px auto;
	clear: both;
}

/* ── Slot 5 — Billboard 970×90 ───────────────────────────── */
.isrd-ad--billboard {
	width: 100%;
	max-width: 970px;
	height: 90px;
	margin: 32px auto 16px;
	clear: both;
}

/* ── Slot 6 — Sticky footer ──────────────────────────────── */
.isrd-sticky-footer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
	padding: 6px 44px 6px 12px;
}

.isrd-ad--sticky {
	width: 728px;
	height: 50px;
	border-style: solid;
}

@media (max-width: 780px) {
	.isrd-ad--sticky {
		width: 320px;
		height: 50px;
	}
}

.isrd-sticky-footer__close {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 50%;
	color: #475569;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.isrd-sticky-footer__close:hover {
	background: #e2e8f0;
}

/* ── Paneles laterales 160×600 — solo desktop ancho ──────── */
.isrd-side {
	display: none;
	position: fixed;
	top: 120px;
	z-index: 9998;
}

.isrd-side--left  { left: 12px; }
.isrd-side--right { right: 12px; }

.isrd-ad--skyscraper {
	width: 160px;
	height: 600px;
}

@media (min-width: 1540px) {
	.isrd-side { display: block; }
}

/* ── Impresión: ocultar todos los anuncios ───────────────── */
@media print {
	.isrd-ad,
	.isrd-sticky-footer,
	.isrd-side {
		display: none !important;
	}
}

/* ── Banner Principal en modo cabecera (junto al logo) ───── */
.isrd-masthead--header {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	max-width: 728px;
	padding: 0;
	background: transparent;
	z-index: 5;
}

.isrd-masthead--header .isrd-masthead__link {
	max-width: 728px;
	margin-left: auto;
}

@media (max-width: 1024px) {
	.isrd-masthead--header {
		position: static !important;
		transform: none;
		width: 100% !important;
		max-width: 100%;
		padding: 8px 12px;
	}
}
