/* ==========================================================================
   Banner animado de curso (catálogo de /academy/)
   Portado de "banners5cursoslandingacademy.dc.html". Markup en
   template-parts/academy/course-banner.php. Keyframes con prefijo elb-
   para no chocar con nada del tema.
   ========================================================================== */
.elb-banner {
	position: relative;
	display: flex;
	flex-direction: column;
	aspect-ratio: 1 / 1;
	padding: 1.6rem;
	overflow: hidden;
	isolation: isolate;
	border-radius: 24px;
	color: #fff;
	box-shadow: 0 22px 60px rgba(17, 34, 63, 0.16);
	transition: transform 0.3s ease;
}

@media (hover: hover) {
	.academy-showcase-row:hover .elb-banner {
		transform: translateY(-6px);
	}
}

.elb-grid {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.elb-sheen {
	position: absolute;
	z-index: 0;
	top: -40%;
	left: 0;
	width: 22%;
	height: 180%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
}

.elb-eq {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: flex-end;
	gap: 2px;
	height: 15px;
}

.elb-eq > span {
	display: block;
	width: 2.4px;
	border-radius: 2px;
	background: #fff;
	transform-origin: bottom;
	animation: elb-eq 1.6s ease-in-out infinite;
}

.elb-eq > span:nth-child(1) { height: 40%; }
.elb-eq > span:nth-child(2) { height: 80%; animation-delay: 0.2s; }
.elb-eq > span:nth-child(3) { height: 55%; animation-delay: 0.4s; }
.elb-eq > span:nth-child(4) { height: 100%; animation-delay: 0.6s; }
.elb-eq > span:nth-child(5) { height: 65%; animation-delay: 0.8s; }

.elb-art {
	position: relative;
	z-index: 1;
	flex: 1;
	display: grid;
	place-items: center;
	min-height: 120px;
	padding: 14px 0;
}

.elb-motif {
	width: auto;
	height: 100%;
	max-width: min(82%, 190px);
	max-height: 100%;
	animation: elb-float 8.4s ease-in-out infinite;
}

.elb-motif * {
	transform-box: fill-box;
	transform-origin: center;
}

.elb-foot {
	position: relative;
	z-index: 1;
}

.elb-pill {
	display: inline-block;
	margin-bottom: 10px;
	padding: 5px 12px;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.elb-title {
	display: block;
	max-width: 18ch;
	margin-bottom: 12px;
	font-family: "Barlow Condensed", Arial, sans-serif;
	font-size: clamp(1.4rem, 1.9vw, 1.78rem);
	font-weight: 700;
	line-height: 0.98;
	color: #fff;
}

.elb-rule {
	display: block;
	width: 44px;
	height: 2px;
	margin-bottom: 10px;
}

.elb-tag {
	display: block;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.76rem;
	font-weight: 600;
}

@keyframes elb-eq { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.42); } }
@keyframes elb-drift { from { background-position: 0 0; } to { background-position: 32px 32px; } }
@keyframes elb-sheen { 0% { transform: translateX(-130%) rotate(12deg); } 100% { transform: translateX(230%) rotate(12deg); } }
@keyframes elb-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -9px, 0); } }
@keyframes elb-flow { from { stroke-dashoffset: 44; } to { stroke-dashoffset: 0; } }
@keyframes elb-pop { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.4); opacity: 1; } }
@keyframes elb-bar { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@keyframes elb-arc { 0% { transform: scale(0.35); opacity: 0.95; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes elb-drop { 0% { transform: translateY(-52px); opacity: 0; } 16% { opacity: 1; } 84% { opacity: 1; } 100% { transform: translateY(56px); opacity: 0; } }
@keyframes elb-ray { 0% { stroke-dashoffset: 150; opacity: 0.15; } 45% { stroke-dashoffset: 0; opacity: 0.95; } 100% { stroke-dashoffset: 0; opacity: 0.18; } }
@keyframes elb-glow { 0%, 100% { opacity: 0.35; transform: scale(0.9); } 50% { opacity: 0.9; transform: scale(1.25); } }
@keyframes elb-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	.elb-banner *,
	.elb-motif * {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
