/**
 * CoH Ad Manager - Frontend Styles
 * Diseñado para cero CLS (Cumulative Layout Shift) y dark mode nativo.
 */

/* 1. STICKY FOOTER MÓVIL */
.coh-ad-sticky-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	min-height: 100px;
	background: rgba(15, 15, 15, 0.98);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 99999;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.75);
	contain: layout size;
}

.coh-ad-sticky-inner {
	position: relative;
	width: 300px;
	min-height: 100px;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: visible;
}

.coh-ad-sticky-content {
	width: 300px;
	min-height: 100px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.coh-ad-sticky-close {
	position: absolute;
	top: -12px;
	right: -12px;
	width: 26px;
	height: 26px;
	background: #ff0055;
	color: #ffffff;
	border-radius: 50%;
	border: 2px solid #111111;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
	z-index: 100000;
	padding: 0;
	line-height: 1;
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.coh-ad-sticky-close:hover,
.coh-ad-sticky-close:focus {
	transform: scale(1.1);
	background: #d60047;
	outline: none;
}

.coh-ad-fallback-content {
	width: 300px;
	height: 100px;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #1e1e1e;
	border-radius: 4px;
	overflow: hidden;
}

.coh-ad-fallback-content img {
	width: 300px;
	height: 100px;
	object-fit: cover;
	display: block;
}

/* 2. TARJETA DE INTENCIÓN (LOSPOLLOS SMARTLINK) */
.coh-intent-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: linear-gradient(135deg, #1f1f23 0%, #161618 100%);
	border: 1px solid #323238;
	border-radius: 8px;
	padding: 14px 18px;
	margin: 24px auto;
	max-width: 720px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
	box-sizing: border-box;
}

.coh-intent-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	background: rgba(255, 0, 85, 0.12);
	border: 1px solid rgba(255, 0, 85, 0.3);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ff0055;
}

.coh-intent-body {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.coh-intent-title {
	font-size: 15px;
	font-weight: 700;
	color: #f1f1f1;
	line-height: 1.3;
}

.coh-intent-desc {
	font-size: 12px;
	color: #9e9ea7;
	line-height: 1.3;
}

.coh-intent-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	background: linear-gradient(135deg, #ff0055 0%, #c40040 100%);
	color: #ffffff !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(255, 0, 85, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	white-space: nowrap;
}

.coh-intent-btn:hover,
.coh-intent-btn:focus {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(255, 0, 85, 0.5);
	color: #ffffff !important;
}

@media (max-width: 480px) {
	.coh-intent-card {
		flex-direction: column;
		text-align: center;
		padding: 16px;
	}
	.coh-intent-btn {
		width: 100%;
		box-sizing: border-box;
	}
}
