.l2dv-hub-outer {
	padding: 24px 16px;
	/* Con box-sizing por defecto (content-box), este padding se SUMABA al
	   min-height del wrapper (ej. 100vh + 48px), lo que garantizaba que la
	   página tuviera más altura que la pantalla y apareciera la barra de
	   scroll aunque el hub estuviera perfectamente centrado. Con
	   border-box, el padding queda incluido en el min-height. */
	box-sizing: border-box;
}

.l2dv-hub {
	display: flex;
	gap: 22px;
	width: 100%;
	font-family: system-ui, sans-serif;
	align-items: stretch;
}

/* ---------- Columna izquierda (tarjeta propia) ---------- */
.l2dv-hub-left {
	flex: 0 0 46%;
	display: flex;
	flex-direction: column;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 14px 34px rgba(0,0,0,0.32);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.l2dv-hub-stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.l2dv-hub-canvas {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: block;
}

.l2dv-orbit-back,
.l2dv-orbit-front {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.l2dv-orbit-back {
	z-index: 1; /* queda tapado por el canvas: acá "se esconde" el icono */
}

.l2dv-orbit-front {
	z-index: 3; /* queda por encima del canvas: acá se ve el icono activo */
}

.l2dv-orbit-icon {
	position: absolute;
	top: 0;
	left: 0;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	background: rgba(255,255,255,0.14);
	border: 2px solid rgba(255,255,255,0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	color: #fff;
	backdrop-filter: blur(2px);
	box-shadow: 0 0 0 rgba(0,0,0,0);
	will-change: transform, opacity;
}

.l2dv-orbit-icon.is-active {
	background: var(--l2dv-accent, #8b7dff);
	border-color: #fff;
	box-shadow: 0 0 20px var(--l2dv-accent, #8b7dff);
}

.l2dv-orbit-icon img {
	width: 62%;
	height: 62%;
	object-fit: cover;
	border-radius: 50%;
}

/* ---------- Botones ---------- */
.l2dv-hub-buttons {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 14px;
	background: rgba(0,0,0,0.22);
}

.l2dv-hub-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.15);
	color: #fff;
	padding: 8px 12px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 13px;
	transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.l2dv-hub-btn:hover {
	background: rgba(255,255,255,0.16);
	transform: translateY(-1px);
}

.l2dv-hub-btn.is-active {
	background: var(--l2dv-accent, #8b7dff);
	border-color: transparent;
}

.l2dv-hub-btn-icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}

.l2dv-hub-btn-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

/* ---------- Columna derecha (tarjeta propia) ---------- */
.l2dv-hub-right {
	flex: 1 1 54%;
	position: relative;
	padding: 34px 36px;
	color: #f2f2fa;
	overflow-y: auto;
	border-radius: 18px;
	box-shadow: 0 14px 34px rgba(0,0,0,0.32);
	box-sizing: border-box;
}

.l2dv-pattern-dots {
	background-image: radial-gradient(rgba(255,255,255,0.08) 1.5px, transparent 1.5px);
	background-size: 22px 22px;
}

.l2dv-pattern-lines {
	background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 18px);
}

.l2dv-pattern-grid {
	background-image:
		linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
	background-size: 26px 26px;
}

.l2dv-hub-panel {
	display: none;
	animation: l2dv-fade-in 0.35s ease;
}

.l2dv-hub-panel.is-active {
	display: block;
}

@keyframes l2dv-fade-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.l2dv-hub-panel-title {
	margin: 0 0 16px;
	font-size: 22px;
	border-bottom: 2px solid var(--l2dv-accent, #8b7dff);
	padding-bottom: 10px;
	display: inline-block;
}

.l2dv-hub-panel-body {
	font-size: 15px;
	line-height: 1.6;
}

/* Grid de YouTube */
.l2dv-yt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.l2dv-yt-item {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 10px;
	overflow: hidden;
	background: rgba(255,255,255,0.05);
	transition: transform 0.2s ease;
}

.l2dv-yt-item:hover {
	transform: translateY(-3px);
}

.l2dv-yt-thumb {
	display: block;
	width: 100%;
	padding-top: 56.25%;
	background-size: cover;
	background-position: center;
}

.l2dv-yt-title {
	display: block;
	padding: 10px 12px;
	font-size: 13px;
	line-height: 1.4;
}

@media (max-width: 760px) {
	.l2dv-hub {
		flex-direction: column;
	}
	.l2dv-hub-left,
	.l2dv-hub-right {
		flex: 1 1 auto;
	}
}
