/* ==========================================================================
   EOM Publicidad y Patrocinios Pro — Estilos de Espacios Patrocinados (Astra EOM)
   Nombres de clases neutros (.eom-sp-*) para evitar falsos positivos en bloqueadores
   ========================================================================== */

.eom-sp-slot {
	--eom-sp-primary: var(--ast-global-color-0, #046bd2);
	--eom-sp-dark: #0f172a;
	--eom-sp-border: #e2e8f0;
	--eom-sp-muted: #64748b;
	width: 100%;
	box-sizing: border-box;
	margin: 16px auto;
	clear: both;
}

.eom-sp-slot *,
.eom-sp-slot *::before,
.eom-sp-slot *::after {
	box-sizing: border-box;
}

.eom-sp-zone-header-wrap {
	max-width: 1200px;
	padding: 8px 16px 2px;
	margin: 8px auto 10px;
}

.eom-sp-zone-footer-wrap {
	max-width: 1200px;
	padding: 8px 16px 18px;
	margin: 18px auto 8px;
}

.eom-sp-zone-inarticle-wrap {
	margin: 26px auto;
	padding: 12px 14px;
	background: #f8fafc;
	border: 1px solid var(--eom-sp-border);
	border-radius: 12px;
}

.eom-sp-zone-directories-wrap {
	max-width: 1240px;
	margin: 12px auto 20px;
}

.eom-sp-zone-sidebar-mpu-wrap {
	margin: 0 auto 22px;
	max-width: 320px;
}

.eom-sp-zone-sidebar-sticky-wrap {
	position: sticky;
	top: 24px;
	z-index: 15;
	margin: 18px auto 22px;
	max-width: 320px;
}

.eom-sp-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.eom-sp-meta-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	max-width: 970px;
	margin-bottom: 5px;
	font-size: 11px;
	line-height: 1.2;
	color: var(--eom-sp-muted);
}

.eom-sp-orient-vertical .eom-sp-meta-bar {
	max-width: 300px;
}

.eom-sp-badge-label {
	text-transform: uppercase;
	letter-spacing: 0.6px;
	font-weight: 600;
	font-size: 10px;
	color: #94a3b8;
}

.eom-sp-micro-cta {
	color: var(--eom-sp-primary) !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 11px;
	opacity: 0.85;
	transition: opacity 0.15s ease;
}

.eom-sp-micro-cta:hover {
	opacity: 1;
	text-decoration: underline !important;
}

.eom-sp-stage {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.eom-sp-banner-link {
	display: inline-block;
	line-height: 0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
	border: 1px solid rgba(226, 232, 240, 0.9);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	max-width: 100%;
}

.eom-sp-banner-link:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(4, 107, 210, 0.14);
}

.eom-sp-banner-img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.eom-sp-orient-horizontal .eom-sp-banner-img {
	max-height: 150px;
	object-fit: contain;
}

.eom-sp-orient-vertical .eom-sp-banner-img {
	max-width: 300px;
	max-height: 620px;
}

/* Tarjeta Adaptativa Inteligente (cuando el anunciante subió 1 sola imagen en un plan multi-formato) */
.eom-sp-adaptive-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	max-width: 970px;
	padding: 14px 20px;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #ffffff !important;
	text-decoration: none !important;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.eom-sp-adaptive-vertical {
	flex-direction: column;
	text-align: center;
	max-width: 300px;
	padding: 20px 18px;
}

.eom-sp-adaptive-media img {
	max-height: 68px;
	max-width: 160px;
	width: auto;
	border-radius: 8px;
	object-fit: contain;
	background: #ffffff;
	padding: 4px;
}

.eom-sp-adaptive-vertical .eom-sp-adaptive-media img {
	max-width: 240px;
	max-height: 180px;
}

.eom-sp-adaptive-copy {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.eom-sp-adaptive-title {
	font-size: 16px;
	font-weight: 800;
	color: #ffffff;
	line-height: 1.3;
}

.eom-sp-adaptive-sub {
	font-size: 13px;
	color: #cbd5e1;
	line-height: 1.4;
}

.eom-sp-adaptive-btn {
	display: inline-block;
	padding: 9px 18px;
	background: var(--eom-sp-primary);
	color: #ffffff;
	font-weight: 700;
	font-size: 13px;
	border-radius: 8px;
	white-space: nowrap;
}

/* Barra Flotante Inferior (Mobile & Desktop Sticky Bar) */
.eom-sp-sticky-bar-fixed {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	z-index: 9995;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	border-top: 1px solid #cbd5e1;
	box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.1);
	padding: 6px 38px 8px 12px;
}

.eom-sp-sticky-bar-fixed .eom-sp-meta-bar {
	max-width: 728px;
	margin-bottom: 2px;
}

.eom-sp-sticky-bar-fixed .eom-sp-banner-img {
	max-height: 90px;
}

.eom-sp-sticky-close {
	position: absolute;
	right: 10px;
	top: 8px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	color: #334155;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.eom-sp-sticky-close:hover {
	background: #e2e8f0;
}

/* Autopromoción Elegante "Anúnciate en EOM" cuando un espacio está libre */
.eom-sp-house-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	max-width: 970px;
	margin: 0 auto;
	padding: 14px 22px;
	background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
	border: 1.5px dashed #93c5fd;
	border-radius: 12px;
	text-decoration: none !important;
	color: #1e293b !important;
	transition: all 0.18s ease;
}

.eom-sp-house-card:hover {
	border-color: var(--eom-sp-primary);
	background: #eff6ff;
	transform: translateY(-1px);
}

.eom-sp-house-vertical {
	flex-direction: column;
	text-align: center;
	max-width: 300px;
	padding: 22px 18px;
}

.eom-sp-house-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.eom-sp-house-kicker {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--eom-sp-primary);
}

.eom-sp-house-title {
	font-size: 15px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.3;
}

.eom-sp-house-desc {
	font-size: 12.5px;
	color: #475569;
}

.eom-sp-house-btn {
	display: inline-block;
	padding: 8px 16px;
	background: var(--eom-sp-primary);
	color: #ffffff !important;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.eom-sp-house-horizontal,
	.eom-sp-adaptive-horizontal {
		flex-direction: column;
		text-align: center;
		padding: 14px;
	}
	.eom-sp-sticky-bar-fixed .eom-sp-banner-img {
		max-height: 60px;
	}
}
