/* EL Monitor - Botón LABS header */

/* Electro theme (header-v5) */
.header-icons .em-labs-wrap {
	margin: 0 16px 0 0;
	flex-shrink: 0;
}

.site-header .em-labs-wrap {
	position: relative;
}

.site-header.stick-this .em-labs-dropdown,
.stick-this .em-labs-dropdown {
	z-index: 10050;
}

.em-labs-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	align-self: center;
	margin: 0 12px 0 0;
	z-index: 999;
}

.em-labs-trigger {
	position: relative;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	border-radius: 8px;
	padding: 2px;
	background: linear-gradient(135deg, #00d4ff 0%, #a855f7 50%, #ec4899 100%);
	box-shadow: 0 0 12px rgba(0, 212, 255, 0.35), 0 0 24px rgba(168, 85, 247, 0.2);
	transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.em-labs-trigger:hover {
	box-shadow: 0 0 18px rgba(0, 212, 255, 0.55), 0 0 32px rgba(236, 72, 153, 0.35);
	transform: translateY(-1px);
}

.em-labs-trigger-inner {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 6px;
	background: #0a0e1a;
	color: #ffffff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	white-space: nowrap;
}

.em-labs-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.em-labs-text {
	color: #ffffff;
}

.em-labs-badge {
	position: absolute;
	top: -8px;
	right: -6px;
	padding: 2px 6px;
	border-radius: 3px;
	background: #ef4444;
	color: #ffffff;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.2;
	box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
	pointer-events: none;
}

/* Dropdown / tarjeta al hover */
.em-labs-dropdown {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	width: 280px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
	pointer-events: none;
}

.em-labs-wrap:hover .em-labs-dropdown,
.em-labs-wrap:focus-within .em-labs-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.em-labs-dropdown-inner {
	position: relative;
	padding: 2px;
	border-radius: 14px;
	background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #ec4899 100%);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 212, 255, 0.15);
}

.em-labs-dropdown-inner::before {
	content: "";
	position: absolute;
	inset: 2px;
	border-radius: 12px;
	background:
		radial-gradient(ellipse at 20% 0%, rgba(0, 212, 255, 0.12) 0%, transparent 55%),
		radial-gradient(ellipse at 80% 100%, rgba(168, 85, 247, 0.1) 0%, transparent 55%),
		linear-gradient(165deg, #0c1222 0%, #0a0e1a 40%, #0d1528 100%);
	z-index: 0;
}

.em-labs-dropdown-inner > * {
	position: relative;
	z-index: 1;
}

.em-labs-dropdown-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 20px 8px;
}

.em-labs-dropdown-icon {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	color: #ffffff;
}

.em-labs-dropdown-titles {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.em-labs-subtitle {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.65);
	text-transform: uppercase;
}

.em-labs-title {
	font-size: 32px;
	font-weight: 800;
	line-height: 1;
	color: #ffffff;
	letter-spacing: 0.02em;
}

.em-labs-description {
	margin: 0;
	padding: 4px 20px 16px;
	font-size: 13px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.85);
}

.em-labs-cta {
	display: block;
	margin: 0 16px 16px;
	padding: 10px 18px;
	border-radius: 999px;
	text-align: center;
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #ffffff;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(0, 212, 255, 0.6);
	box-shadow: 0 0 12px rgba(0, 212, 255, 0.25);
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.em-labs-cta:hover {
	background: rgba(0, 212, 255, 0.12);
	box-shadow: 0 0 18px rgba(0, 212, 255, 0.45);
	color: #ffffff;
}

/* Mobile: ocultar dropdown, mantener botón compacto */
@media (max-width: 768px) {
	.em-labs-wrap {
		margin: 0 8px 0 0;
	}

	.em-labs-trigger-inner {
		padding: 7px 12px;
		font-size: 11px;
		gap: 6px;
	}

	.em-labs-icon {
		width: 16px;
		height: 16px;
	}

	.em-labs-badge {
		font-size: 8px;
		top: -6px;
		right: -4px;
	}

	.em-labs-dropdown {
		display: none;
	}
}
