/**
 * KB Dashboard - Estilos
 * Aplicación de una sola página (SPA) del dashboard de usuario
 * 
 * NOTA: Las variables CSS y el reset base están en base.css
 * Este archivo solo contiene estilos específicos del dashboard.
 * 
 * @package Kabalah Universal
 */

.kbl-input,
.kbl-select {
	height: var(--h-input) !important;
	border-radius: var(--radius-form) !important;
	border: 1.5px solid #e2e8f0 !important;
	font-size: 0.9375rem !important;
	padding: 0 12px !important;
}

.kbl-input:focus {
	border-color: #1e3a5f !important;
	box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1) !important;
}

/* Estado de error para campos obligatorios */
.kbl-input-error,
.kbl-input.kbl-input-error,
.kbl-textarea.kbl-input-error,
button.kbl-input-error {
	border-color: #ef4444 !important;
	background-color: #fef2f2 !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.kbl-input-error:focus {
	border-color: #dc2626 !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

.kbl-label {
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	color: #64748b !important;
	margin-bottom: 4px !important;
}

.kbl-form-group {
	margin-bottom: 1rem !important;
}

.kbl-btn {
	height: var(--h-input) !important;
	border-radius: var(--radius-form) !important;
	font-weight: 600 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: all 0.2s ease !important;
}

/* Password Toggle in Dashboard */
.kbl-password-container {
	position: relative;
	width: 100%;
}

.kbl-password-container .kbl-input {
	padding-right: 40px !important;
}

.kbl-password-toggle {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #94a3b8;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	z-index: 10;
}

.kbl-password-toggle:hover {
	color: #1e3a5f;
}

.kbl-password-toggle svg {
	width: 18px;
	height: 18px;
}

/* Spinner */
.kbl-btn.loading {
	color: transparent !important;
	pointer-events: none;
	position: relative;
}

.kbl-btn.loading::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	top: 50%;
	left: 50%;
	margin-top: -9px;
	margin-left: -9px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: spin 0.6s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ============================================
   DASHBOARD-SPECIFIC OVERRIDES
   ============================================ */
html.dashboard-page,
body.dashboard-page {
	height: 100%;
	overflow: hidden;
}

/* ============================================
   CONTENEDOR PRINCIPAL (Layout SPA)
   ============================================ */
.dashboard-container {
	display: grid;
	grid-template-columns: 280px 1fr;
	height: 100vh;
	width: 100vw;
	max-width: 100vw;
	min-width: 100vw;
	gap: 0;
	background-color: var(--bg-viewport);
}

/* ZONA A: SIDEBAR (100% estático) */
.sidebar {
	display: flex;
	flex-direction: column;
	background-color: var(--bg-sidebar);
	border-right: 1px solid var(--border-light);
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
	flex-shrink: 0;
	position: relative;
	z-index: 1000;
}

/* Cabecera del Perfil */
.sidebar-profile {
	padding: 1.5rem 1rem 0 1rem;
	text-align: center;
	flex-shrink: 0;
	margin-top: 0;
}

.avatar-wrapper {
	position: relative;
	display: inline-block;
	margin-bottom: 0.25rem;
	overflow: visible;
}

.user-avatar {
	width: 144px;
	height: 144px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--color-primary);
	display: block;
	margin: 0 auto;
	transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.user-avatar:hover {
	transform: scale(1.02);
	box-shadow: var(--shadow-md);
}

.avatar-badge {
	position: absolute;
	bottom: -2px;
	right: -4px;
	width: 42px;
	height: 42px;
	background-color: var(--color-primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2.5px solid var(--bg-sidebar);
	box-shadow: var(--shadow-sm);
	z-index: 3;
}

.avatar-badge.member-badge {
	background-color: #ffffff;
	padding: 3px;
	box-shadow: 0 10px 22px rgba(30, 58, 95, 0.18);
}

.avatar-badge-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	border-radius: 50%;
}

.badge-emoji {
	font-size: 16px;
	line-height: 1;
}

.user-greeting {
	font-size: 0.8625rem;
	color: var(--text-muted);
	margin-bottom: 0.15rem;
}

.user-name {
	font-size: 1.1615rem;
	font-weight: 600;
	color: var(--text-primary);
	text-transform: capitalize;
}

/* Menú de navegación (Controlador SPA) */
.sidebar-nav {
	flex: 1;
	margin-top: -0.625rem;
	padding: 0 0.75rem 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.5625rem;
	overflow-y: auto;
	overflow-x: hidden;
	min-height: 0;
	position: relative;
	z-index: 2;
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.625rem 0.875rem;
	color: var(--text-secondary);
	text-decoration: none;
	border-radius: 8px;
	font-size: 1.106875rem;
	font-weight: 500;
	transition: all var(--transition-fast);
	background-color: transparent;
	border: none;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
	position: relative;
	z-index: 3;
	overflow: hidden;
}

.kbl-mobile-bottom-nav {
	display: none;
}

.kbl-mobile-home-profile {
	display: none;
}

.kbl-mobile-bottom-nav__track {
	display: flex;
}

.kbl-mobile-bottom-nav__item {
	flex-direction: column;
	justify-content: center;
}

.nav-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 0;
	background-color: var(--color-accent);
	border-radius: 0 2px 2px 0;
	transition: height var(--transition-fast);
}

.nav-item-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke var(--transition-fast);
}

.nav-item:hover {
	background-color: var(--bg-section-hover);
	color: var(--color-primary);
	transform: translateX(2px);
}

.nav-item:hover .nav-item-icon {
	stroke: var(--color-primary);
}

.nav-item.active,
.nav-item.active:hover {
	background-color: var(--color-primary);
	color: var(--text-white) !important;
}

.nav-item.active .nav-item-icon,
.nav-item.active:hover .nav-item-icon {
	stroke: var(--text-white) !important;
}

.nav-item.active span,
.nav-item.active:hover span {
	color: var(--text-white) !important;
}

.nav-item.kbl-member-ready {
	color: #15803d;
}

.nav-item.kbl-member-ready .nav-item-icon {
	stroke: #15803d;
}

.nav-item.kbl-member-pulse {
	animation: kbl-member-pulse 1.4s ease-in-out infinite;
	box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.2);
}

@keyframes kbl-member-pulse {
	0%,
	100% {
		transform: translateX(0);
		box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.16);
	}
	50% {
		transform: translateX(2px);
		box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
	}
}

.nav-item:hover::before {
	height: 60%;
}

.nav-item.active {
	background-color: var(--color-primary);
	color: var(--text-white);
	font-weight: 600;
}

.nav-item.active::before {
	height: 0;
}

.nav-item.active .nav-item-icon {
	stroke: var(--text-white);
}

.nav-item.active:hover {
	background-color: var(--color-primary-light);
	transform: none;
}

.kbl-sidebar-support-dot {
	margin-left: auto;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 2px rgba(255,255,255,0.92);
	animation: pulse 1.8s ease-in-out infinite;
}

.nav-item.active .kbl-sidebar-support-dot {
	box-shadow: 0 0 0 2px rgba(30,58,95,0.35);
}

.kbl-support-history {
	margin-top: 1rem;
	border-top: 1px solid #e2e8f0;
	padding-top: 0.75rem;
}

.kbl-support-history-head {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin-bottom: 0.7rem;
}

.kbl-support-history-count {
	font-size: 0.72rem;
	font-weight: 700;
	color: #64748b;
}

.kbl-support-history-table {
	width: 100%;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	border-collapse: collapse;
	overflow: hidden;
	max-height: 210px;
	overflow-y: auto;
	background: #fff;
	font-size: 0.72rem;
}

.kbl-support-history-table td {
	padding: 7px 8px;
	border-bottom: 1px solid #f1f5f9;
	text-align: left;
}

.kbl-support-history-table th {
	position: sticky;
	top: 0;
	padding: 7px 8px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	text-align: left;
	z-index: 1;
}

.kbl-support-history-empty {
	padding: 0.75rem;
	font-size: 0.78rem;
	color: #64748b;
	text-align: center;
}

.kbl-support-pill {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 700;
	background: #dbeafe;
	color: #1e3a5f;
}

.kbl-support-pill.is-status {
	background: #e2e8f0;
	color: #334155;
}

.kbl-support-eye {
	border: 1px solid #1e3a5f;
	background: #fff;
	color: #1e3a5f;
	border-radius: 6px;
	padding: 2px 7px;
	cursor: pointer;
	font-size: 0.78rem;
	line-height: 1;
}

.kbl-support-eye:hover {
	background: #1e3a5f;
	color: #fff;
}

.kbl-support-ticket-detail {
	margin-top: 0.6rem;
	padding: 0.75rem;
	border-radius: 8px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	font-size: 0.78rem;
	color: #1e293b;
}

.kbl-support-ticket-detail h6 {
	margin: 0 0 0.45rem 0;
	font-size: 0.82rem;
	color: #1e3a5f;
	font-weight: 700;
}

.kbl-support-ticket-detail p {
	margin: 0.2rem 0;
	line-height: 1.4;
}

/* Notification Badge */
.notification-badge {
	position: absolute;
	top: 8px;
	right: 12px;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	background: #ef4444;
	color: white;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.1);
	}
}

.nav-item {
	position: relative;
}

/* Footer del Sidebar */
.sidebar-footer {
	padding: 1.5rem 1rem 1.25rem;
	border-top: 1px solid var(--border-light);
	text-align: center;
	flex-shrink: 0;
	margin-top: auto;
	margin-bottom: 0;
}

.sidebar-logo {
	max-width: 170px;
	height: auto;
	display: block;
	margin: 20px auto 15px;
	opacity: 0.98;
	transition: opacity var(--transition-fast);
}

.sidebar-logo:hover {
	opacity: 1;
}

/* ZONA B: VIEWPORT (Contenido dinámico) */
.content-viewport {
	overflow-y: auto;
	background-color: var(--bg-viewport);
	padding: 2rem;
	width: 100%;
	min-width: 0;
	position: relative;
	z-index: 1;
	transition: opacity var(--transition-normal);
}

.viewport-section {
	display: none;
	width: 100%;
	animation: fadeIn var(--transition-normal);
}

.viewport-section.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.section-title {
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 1.5rem;
}

.kbl-courses-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.kbl-courses-section-header__copy {
	min-width: 0;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.kbl-courses-section-header__copy .section-title {
	margin-bottom: 0.5rem;
	font-size: 2.6rem;
}

.kbl-courses-section-header__copy p {
	margin: 0;
}

.kbl-courses-section-header__logo {
	width: 61px;
	height: 61px;
	object-fit: contain;
	flex: 0 0 61px;
}

/* ============================================
   CARDS & LAYOUTS
   ============================================ */
.card {
	background-color: var(--bg-card);
	border: 1px solid var(--border-light);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: var(--shadow-sm);
	transition: all var(--transition-normal);
	margin-bottom: 1rem;
}

.card:hover {
	box-shadow: var(--shadow-md);
	border-color: var(--border-medium);
}

.card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border-light);
}

.card-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1280px) {
	.dashboard-container {
		grid-template-columns: 240px 1fr;
	}

	.sidebar {
		width: 240px;
	}

	.content-viewport {
		padding: 1.5rem;
	}
}

@media (max-width: 1366px) and (hover: none),
   (max-width: 1366px) and (pointer: coarse),
   (max-width: 1366px) and (any-pointer: coarse) {
   .dashboard-container {
	   grid-template-columns: 1fr;
   }

   .sidebar {
	   display: none !important;
   }

   .content-viewport {
	   padding: 1.25rem 1.25rem calc(104px + env(safe-area-inset-bottom, 0px));
   }

   .kbl-mobile-home-profile {
	   display: block;
	   margin-bottom: 1rem;
	   padding: 1rem 1rem 0.95rem;
	   border: 1px solid rgba(148, 163, 184, 0.18);
	   border-radius: 22px;
	   background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.92) 100%);
	   box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
   }

   .kbl-mobile-home-profile__media {
	   display: flex;
	   align-items: center;
	   gap: 0.9rem;
   }

   .kbl-mobile-home-profile .avatar-wrapper {
	   margin-bottom: 0;
	   flex-shrink: 0;
   }

   .kbl-mobile-home-profile .user-avatar {
	   width: 72px;
	   height: 72px;
	   border-width: 2px;
   }

   .kbl-mobile-home-profile .avatar-badge {
	   width: 24px;
	   height: 24px;
	   right: 1px;
	   bottom: 1px;
	   border-width: 2px;
   }

   .kbl-mobile-home-profile .badge-emoji {
	   font-size: 11px;
   }

   .kbl-mobile-home-profile__copy {
	   min-width: 0;
   }

   .kbl-mobile-home-profile .user-greeting {
	   margin-bottom: 0.12rem;
	   font-size: 0.78rem;
   }

   .kbl-mobile-home-profile .user-name {
	   margin: 0;
	   font-size: 1.15rem;
	   line-height: 1.2;
   }

   .section-title {
	   font-size: 1.5rem;
   }

   .kbl-mobile-bottom-nav {
	   display: block;
	   position: fixed;
	   left: 0;
	   right: 0;
	   bottom: 0;
	   z-index: 1100;
	   padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
	   background: #ffffff;
	   border-top: 1px solid rgba(148, 163, 184, 0.18);
	   box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
	   -webkit-backdrop-filter: none;
	   backdrop-filter: none;
   }

   .kbl-mobile-bottom-nav__track {
	   display: grid;
	   grid-auto-flow: column;
	   grid-auto-columns: minmax(56px, 1fr);
	   gap: 4px;
	   padding: 0;
	   border: 0;
	   border-radius: 0;
	   background: transparent;
	   box-shadow: none;
	   overflow-x: auto;
	   scrollbar-width: none;
   }

   .kbl-mobile-bottom-nav__track::-webkit-scrollbar { 
	   display: none;
   }

   /* Ajuste: grids de certificados, logros, membresía y en vivo a 1-2 columnas en tablet */
   /* SOLO TABLET: 2 columnas */
   .kbl-certificates-grid,
   .kbl-special-certificates-grid,
   .certificates-grid,
   .special-certificates-grid {
	   grid-template-columns: repeat(2, 1fr) !important;
   }

   #section-logros .achievements-grid.compact,
   #section-logros .gamification-badges-layout,
   #section-logros .crowns-grid,
   #section-logros .badges-grid {
	   grid-template-columns: 1fr !important;
   }

   .live-stream-card,
   .kbl-card-transmission {
	   max-width: 100vw;
	   min-width: 0;
   }

   /* Botón membresía y en vivo: ancho completo y espaciado móvil */
   .btn-join-live,
   .kbl-stream-live-btn {
	   width: 100%;
	   min-width: 0;
	   margin-top: 0.5rem;
   }

	.kbl-mobile-bottom-nav__item {
		min-width: 56px;
		gap: 4px;
		padding: 8px 4px;
		border-radius: 16px;
		font-size: 0.64rem;
		font-weight: 700;
		line-height: 1.15;
		letter-spacing: 0.01em;
		text-align: center;
		white-space: nowrap;
		transform: none;
	}

	.kbl-mobile-bottom-nav__item::before {
		display: none;
	}

	.kbl-mobile-bottom-nav__item:hover {
		transform: none;
		background-color: rgba(230, 239, 250, 0.9);
	}

	.kbl-mobile-bottom-nav__item .nav-item-icon {
		width: 20px;
		height: 20px;
	}

	.kbl-mobile-bottom-nav__item .kbl-mobile-membership-icon {
		display: block;
		object-fit: contain;
		stroke: unset;
		fill: unset;
	}

	.kbl-mobile-bottom-nav__item--dimmed {
		opacity: 0.58;
	}

	.kbl-mobile-bottom-nav__item--dimmed span:first-of-type,
	.kbl-mobile-bottom-nav__item--dimmed .nav-item-icon {
		color: #94a3b8;
		stroke: #94a3b8;
	}

	.kbl-mobile-bottom-nav__item--dimmed:hover {
		background-color: rgba(255, 255, 255, 0.94);
	}

	.kbl-mobile-bottom-nav__item.active,
	.kbl-mobile-bottom-nav__item.active:hover {
		background: #1e3a5f;
		color: #ffffff !important;
		box-shadow: 0 10px 18px rgba(30, 58, 95, 0.26);
	}

	.kbl-mobile-bottom-nav__item.active .nav-item-icon,
	.kbl-mobile-bottom-nav__item.active:hover .nav-item-icon {
		stroke: #ffffff !important;
	}

	.kbl-mobile-bottom-nav__item .kbl-sidebar-live-dot,
	.kbl-mobile-bottom-nav__item .kbl-sidebar-support-dot {
		position: absolute;
		top: 7px;
		right: 10px;
		margin-left: 0;
	}
}

@media (min-width: 769px) and (max-width: 1366px) and (hover: none),
   (min-width: 769px) and (max-width: 1366px) and (pointer: coarse),
   (min-width: 769px) and (max-width: 1366px) and (any-pointer: coarse) {
	#section-logros {
		padding-bottom: 0.75rem;
	}

	#section-logros .kbl-gamification-ui {
		display: flex;
		flex-direction: column;
		gap: 1.15rem;
	}

	#section-logros .achievements-section.compact > .section-title,
	#section-logros .crowns-section > .section-title,
	#section-logros .badges-section > .section-title {
		margin-bottom: 0.9rem;
		font-size: 1.1rem;
		line-height: 1.15;
	}

	#section-logros .achievements-grid.compact {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 12px;
	}

	#section-logros .achievement-card {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 8px;
		min-height: 146px;
		padding: 12px 10px !important;
		border: 1px solid #e2e8f0;
		border-radius: 10px;
		background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
		box-shadow: none;
		text-align: center;
	}

	#section-logros .achievement-card.locked {
		background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
		border-color: #e2e8f0;
		box-shadow: none;
	}

	#section-logros .achievement-card:hover {
		transform: none;
		border-color: #e2e8f0;
		background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
		box-shadow: none;
	}

	#section-logros .ach-icon-wrapper,
	#section-logros .achievements-grid.compact .ach-icon-wrapper,
	#section-logros .achievements-grid.compact .ach-icon-wrapper .ach-icon {
		width: 46px;
		height: 46px;
		border-radius: 50%;
	}

	#section-logros .ach-icon-wrapper {
		background: #f1f5f9;
		box-shadow: none;
	}

	#section-logros .achievement-card.locked .ach-icon-wrapper {
		opacity: 0.82;
	}

	#section-logros .achievements-grid.compact .ach-icon-wrapper .ach-icon svg {
		width: 20px;
		height: 20px;
	}

	#section-logros .ach-info {
		align-items: center;
		text-align: center;
		gap: 0.18rem;
	}

	#section-logros .ach-title,
	#section-logros .achievements-grid.compact .ach-title {
		font-size: 11px;
		line-height: 1.12;
	}

	#section-logros .ach-desc,
	#section-logros .achievements-grid.compact .ach-desc {
		font-size: 10px;
		line-height: 1.2;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}

	#section-logros .gamification-badges-layout {
		display: grid;
		grid-template-columns: 1fr;
		gap: 1rem;
		align-items: stretch;
	}

	#section-logros .crowns-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 12px;
		align-items: stretch !important;
	}

	#section-logros .crown-card {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 10px;
		min-height: 286px;
		padding: 12px !important;
		border: 1px solid #e2e8f0;
		border-radius: 10px;
		background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
		box-shadow: none;
		text-align: center;
	}

	#section-logros .crown-card.locked {
		background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
		border-color: #e2e8f0;
		box-shadow: none;
	}

	#section-logros .crown-card:hover {
		border-color: #e2e8f0;
		background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
		box-shadow: none;
	}

	#section-logros .crown-badge-wrapper {
		width: 118px;
		height: 118px;
		padding: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	#section-logros .crown-details {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 0.38rem;
		width: 100%;
	}

	#section-logros .crown-title {
		margin: 0;
		font-size: 15px;
		line-height: 1.15;
		min-height: 2.35em;
	}

	#section-logros .crown-subtitle {
		margin: 0;
		font-size: 10px;
		letter-spacing: 0.1em;
		text-align: center;
	}

	#section-logros .crown-requirement,
	#section-logros .progress-text {
		font-size: 11px;
		line-height: 1.2;
		text-align: center;
	}

	#section-logros .progress-bar-wrapper {
		width: 100%;
		margin-top: 0.2rem;
	}

	#section-logros .progress-track {
		height: 7px;
		margin-bottom: 0.42rem;
	}

	#section-logros .badges-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 12px !important;
		align-items: stretch !important;
	}

	#section-logros .badge-card {
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		text-align: center;
		min-height: 220px !important;
		padding: 12px !important;
		border: 1px solid #e2e8f0;
		border-radius: 10px;
		background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
		box-shadow: none;
	}

	#section-logros .badge-card.locked {
		background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
		border-color: #e2e8f0;
		box-shadow: none;
	}

	#section-logros .badge-img-wrapper {
		width: 76px;
		height: 76px;
	}

	#section-logros .badge-details {
		flex: 0 0 auto;
		gap: 8px;
		padding-right: 0;
		text-align: center;
		justify-content: flex-start;
	}

	#section-logros .badge-title {
		font-size: 13px;
		line-height: 1.1;
		text-align: center;
	}
}

@media (max-width: 768px) {
	.dashboard-container {
		grid-template-columns: 1fr;
	}

	.sidebar {
		display: none;
	}

	.content-viewport {
		padding: 1rem 1rem calc(92px + env(safe-area-inset-bottom, 0px));
	}

	.kbl-mobile-home-profile {
		display: block;
		margin-bottom: 1rem;
		padding: 1rem 1rem 0.95rem;
		border: 1px solid rgba(148, 163, 184, 0.18);
		border-radius: 22px;
		background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.92) 100%);
		box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
	}

	.kbl-mobile-home-profile__media {
		display: flex;
		align-items: center;
		gap: 0.9rem;
	}

	.kbl-mobile-home-profile .avatar-wrapper {
		margin-bottom: 0;
		flex-shrink: 0;
	}

	.kbl-mobile-home-profile .user-avatar {
		width: 72px;
		height: 72px;
		border-width: 2px;
	}

	.kbl-mobile-home-profile .avatar-badge {
		width: 28px;
		height: 28px;
		right: -2px;
		bottom: -2px;
		border-width: 2px;
	}

	.kbl-mobile-home-profile .avatar-badge.member-badge {
		padding: 2px;
	}

	.kbl-mobile-home-profile .badge-emoji {
		font-size: 11px;
	}

	.kbl-mobile-home-profile__copy {
		min-width: 0;
	}

	.kbl-mobile-home-profile .user-greeting {
		margin-bottom: 0.12rem;
		font-size: 0.78rem;
	}

	.kbl-mobile-home-profile .user-name {
		margin: 0;
		font-size: 1.15rem;
		line-height: 1.2;
	}

	.section-title {
		font-size: 1.5rem;
	}

	#section-membresia.kbl-membresia-section .kbl-membresia-header {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: start;
		gap: 0.9rem;
		margin-bottom: 1.25rem;
	}

	#section-membresia.kbl-membresia-section .kbl-maestro-card {
		grid-column: 1;
		width: 100%;
		min-width: 0;
		padding: 12px 14px;
		border-radius: 18px;
	}

	#section-membresia.kbl-membresia-section .kbl-membresia-month-badge {
		grid-column: 2;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0.52rem 0.72rem;
		border-radius: 12px;
		background: #e6effa;
		color: #1e3a5f;
		font-size: 0.74rem;
		font-weight: 800;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		white-space: nowrap;
	}

	#section-membresia.kbl-membresia-section .kbl-membresia-heading-copy {
		grid-column: 1 / -1;
		padding-inline: 2px;
	}

	#section-membresia.kbl-membresia-section .kbl-membresia-heading-copy .section-title {
		margin-bottom: 0.3rem;
		line-height: 1.08;
	}

	#section-membresia.kbl-membresia-section .kbl-membresia-heading-copy p {
		font-size: 0.92rem;
		line-height: 1.4;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .calendar-container {
		border-radius: 24px;
		border: none;
		box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
		background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .calendar-header-bar {
		padding: 0.85rem;
		border-radius: 24px 24px 0 0;
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 0.85rem !important;
		background: linear-gradient(180deg, #28466f 0%, #1e3a5f 100%) !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .calendar-header-left,
	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .calendar-selector-wrapper {
		display: none;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .calendar-header-title {
		min-width: 0 !important;
		padding-left: 0 !important;
		margin: 0 !important;
		font-size: 1.24rem !important;
		line-height: 1.12 !important;
		letter-spacing: -0.02em;
		text-align: center !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .kbl-member-videoteca-toolbar {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		justify-content: flex-start !important;
		gap: 0.8rem !important;
		width: 100%;
		padding: 0.15rem 0 0;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .kbl-member-videoteca-label {
		display: inline-flex !important;
		height: auto !important;
		font-size: 0.82rem !important;
		justify-content: center !important;
		text-transform: uppercase;
		letter-spacing: 0.08em;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .kbl-member-videoteca-actions {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.55rem !important;
		width: 100%;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .kbl-member-videoteca-trigger {
		min-width: 0 !important;
		width: 100%;
		height: auto !important;
		padding: 0.82rem 0.7rem !important;
		border-radius: 14px !important;
		font-size: 0.74rem !important;
		line-height: 1.15 !important;
		letter-spacing: 0.02em;
		white-space: normal !important;
		text-wrap: balance;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .calendar-main {
		padding: 0.8rem;
		background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .calendar-grid {
		gap: 0.75rem;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .calendar-header-row {
		display: none;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .calendar-week-row--empty {
		display: none;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .calendar-week-row:not(:has(.calendar-cell--has-events)) {
		display: none !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .calendar-week-row {
		display: flex;
		flex-direction: column;
		gap: 0.35rem;
		min-height: 0;
		padding: 0.1rem 0 0.35rem;
		background: transparent;
		border: none !important;
		border-radius: 0;
		box-shadow: none;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .calendar-week-row::before {
		content: attr(data-week-label);
		display: block;
		font-size: 0.78rem;
		font-weight: 800;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: #1e3a5f;
		padding-bottom: 0;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .calendar-cell--empty {
		display: none;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .calendar-cell {
		position: relative;
		min-height: 0;
		padding: 0.45rem 0.5rem 0.5rem;
		border-radius: 16px;
		background: #f8fafc;
		border: none !important;
		gap: 0.3rem;
		overflow: visible !important;
		box-shadow: none !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .calendar-cell::before {
		content: attr(data-day-label);
		display: block;
		margin-bottom: 0.18rem;
		font-size: 0.74rem;
		font-weight: 800;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: #486584;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .empty-cell-message {
		justify-content: flex-start !important;
		min-height: 0 !important;
		padding: 0.15rem 0 0 !important;
		font-size: 0.82rem !important;
		color: #94a3b8 !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-card {
		width: 100% !important;
		min-height: 0 !important;
		height: auto !important;
		padding: 0.4rem 0.45rem !important;
		border-radius: 14px !important;
		border: 1px solid rgba(30, 58, 95, 0.22) !important;
		border-left: 1px solid rgba(30, 58, 95, 0.22) !important;
		box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
		overflow: visible !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-card > .card-type-label,
	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-card > .card-header-row,
	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-card > .activity-main,
	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-card > .activity-footer {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .card-type-label {
		font-size: 0.6rem !important;
		letter-spacing: 0.08em !important;
		border-radius: 10px !important;
		padding: 0.22rem 0.45rem !important;
		margin-bottom: 0.28rem !important;
		background: transparent !important;
		color: #1e3a5f !important;
		border: none !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .card-type-label.type-red,
	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .card-type-label.type-blue,
	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .card-type-label.type-green,
	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .card-type-label.type-purple,
	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .card-type-label.type-orange,
	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .card-type-label.type-live {
		background: transparent !important;
		color: #1e3a5f !important;
		border: none !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .card-header-row {
		align-items: flex-start !important;
		justify-content: flex-start !important;
		flex-wrap: wrap !important;
		gap: 0.28rem !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-badge {
		display: flex !important;
		align-items: flex-start !important;
		gap: 0.45rem !important;
		font-size: 0.88rem !important;
		line-height: 1.22 !important;
		min-width: 0;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .card-title-icon {
		width: 18px !important;
		height: 18px !important;
		margin-right: 0 !important;
		margin-top: 0.05rem;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-status-badge {
		height: 22px !important;
		padding: 0 0.45rem !important;
		font-size: 0.52rem !important;
		margin-left: auto !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .card-header-buttons {
		gap: 0.3rem !important;
		margin-left: auto !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-card .activity-main,
	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-card .activity-subtitle,
	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-description-truncate {
		overflow: visible !important;
		max-height: none !important;
		text-overflow: clip !important;
		white-space: normal !important;
		-webkit-line-clamp: unset !important;
		line-clamp: unset !important;
		display: block !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .btn-view-detail,
	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .btn-reminder,
	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-footer .btn-action,
	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-footer a.btn-action,
	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-footer button.btn-action {
		width: 30px !important;
		height: 30px !important;
		min-width: 30px !important;
		min-height: 30px !important;
		border-radius: 8px !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-subtitle {
		font-size: 0.8rem !important;
		line-height: 1.4 !important;
		margin-top: 0.1rem !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-footer {
		align-items: flex-end !important;
		gap: 0.35rem !important;
		padding-top: 0.28rem !important;
		margin-top: 0.28rem !important;
		border-top: none !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-footer .footer-buttons {
		flex-wrap: wrap;
		gap: 0.4rem !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-footer .footer-time {
		gap: 0.35rem !important;
		font-size: 0.76rem !important;
		align-self: stretch;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-footer .footer-time .user-flag {
		font-size: 1rem !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-footer .footer-time .time-text {
		gap: 0.12rem !important;
		white-space: normal !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-footer .footer-time .time-text .date-line,
	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .activity-footer .footer-time .time-text .hour-line {
		font-size: 0.69rem !important;
		line-height: 1.15 !important;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .calendar-footer {
		padding: 0.35rem 0.8rem 0.95rem;
		background: transparent;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .calendar-legend {
		display: flex;
		flex-direction: column;
		gap: 0.45rem;
		padding: 0.85rem;
		border-radius: 16px;
		background: #ffffff;
		border: none;
	}

	#section-membresia.kbl-membresia-section .kbl-public-calendar-wrapper .legend-separator {
		display: none;
	}

	.kbl-mobile-bottom-nav {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1100;
		padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
		background: #ffffff;
		border-top: 1px solid rgba(148, 163, 184, 0.18);
		box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.kbl-mobile-bottom-nav__track {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(56px, 1fr);
		gap: 4px;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.kbl-mobile-bottom-nav__track::-webkit-scrollbar {
		display: none;
	}

	.kbl-mobile-bottom-nav__item {
		min-width: 56px;
		gap: 4px;
		padding: 8px 4px;
		border-radius: 16px;
		font-size: 0.64rem;
		font-weight: 700;
		line-height: 1.15;
		letter-spacing: 0.01em;
		text-align: center;
		white-space: nowrap;
		transform: none;
	}

	.kbl-mobile-bottom-nav__item::before {
		display: none;
	}

	.kbl-mobile-bottom-nav__item:hover {
		transform: none;
		background-color: rgba(230, 239, 250, 0.9);
	}

	.kbl-mobile-bottom-nav__item .nav-item-icon {
		width: 20px;
		height: 20px;
	}

	.kbl-mobile-bottom-nav__item .kbl-mobile-membership-icon {
		display: block;
		object-fit: contain;
		stroke: unset;
		fill: unset;
	}

	.kbl-mobile-bottom-nav__item--dimmed {
		opacity: 0.58;
	}

	.kbl-mobile-bottom-nav__item--dimmed span:first-of-type,
	.kbl-mobile-bottom-nav__item--dimmed .nav-item-icon {
		color: #94a3b8;
		stroke: #94a3b8;
	}

	.kbl-mobile-bottom-nav__item--dimmed:hover {
		background-color: rgba(255, 255, 255, 0.94);
	}

	.kbl-mobile-bottom-nav__item.active,
	.kbl-mobile-bottom-nav__item.active:hover {
		background: #1e3a5f;
		color: #ffffff !important;
		box-shadow: 0 10px 18px rgba(30, 58, 95, 0.26);
	}

	.kbl-mobile-bottom-nav__item.active .nav-item-icon,
	.kbl-mobile-bottom-nav__item.active:hover .nav-item-icon {
		stroke: #ffffff !important;
	}

	.kbl-mobile-bottom-nav__item .kbl-sidebar-live-dot,
	.kbl-mobile-bottom-nav__item .kbl-sidebar-support-dot {
		position: absolute;
		top: 7px;
		right: 10px;
		margin-left: 0;
	}
}

/* ============================================
   COMPONENTES REUTILIZABLES
   ============================================ */

/* Event Cards */
.event-card {
	border: 1px solid var(--border-light);
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease;
	cursor: pointer;
}

.event-card:hover {
	border-color: var(--color-primary);
	box-shadow: 0 8px 24px rgba(30, 58, 95, 0.15);
	transform: translateY(-4px);
}

/* ============================================
   TRANSMISIÓN (reutiliza estilo de Live Player sidebar)
   ============================================ */
.kbl-sidebar-module {
	background: var(--bg-card);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.kbl-card-transmission {
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--border-medium);
	border-radius: 8px;
	margin-bottom: 0.25rem;
	display: grid;
	grid-template-columns: 130px 1fr;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.kbl-card-thumb {
	position: relative;
	background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
	height: 100%;
	overflow: hidden;
}

.kbl-card-info {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.kbl-recent-transmission-card .badge {
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 0.75rem;
}

/* Solo para TABLERO: thumbnail ~15% más grande */
.kbl-recent-transmission-card.kbl-card-transmission {
	grid-template-columns: 170px 1fr;
}

/* Usamos SVG de cámara en vez del punto/emoji */
.kbl-recent-transmission-card .badge-live::before {
	display: none;
}

.kbl-recent-transmission-card .badge-live svg {
	width: 14px;
	height: 14px;
	display: inline-block;
}

/* Buttons */
.btn {
	padding: 10px 12px;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 0.875rem;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	display: inline-block;
}

.btn-primary {
	background: var(--color-primary);
	color: white;
}

.btn-primary:hover {
	background: var(--color-primary-light);
}

.btn-success {
	background: #10b981;
	color: white;
}

.btn-success:hover {
	background: #059669;
}

.btn-outline {
	background: transparent;
	border: 1px solid var(--border-light);
	color: var(--text-primary);
}

.btn-outline:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

/* Badges */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 0.8125rem;
	font-weight: 700;
	flex-shrink: 0;
}

.badge-live {
	background: rgba(220, 38, 38, 0.1);
	color: #ef4444;
}

.badge-live::before {
	content: '';
	width: 6px;
	height: 6px;
	background: #ef4444;
	border-radius: 50%;
	display: inline-block;
	animation: pulse 2s infinite;
}

.badge-upcoming {
	background: rgba(59, 130, 246, 0.1);
	color: var(--color-primary);
}

/* Transmission Status Badges */
.badge-programmed {
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
	color: #fff;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.badge-archived {
	background: #64748b;
	color: #fff;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ==========================================
   Unified Stream Card Styles
   ========================================== */
.live-stream-card {
	position: relative;
	transition: all 0.3s ease;
}

.live-stream-card .kbl-event-thumb {
	position: relative;
}

/* Status Overlay - corner badge on thumbnail */
.kbl-stream-status-overlay {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: #fff;
	z-index: 2;
}

.kbl-stream-status-overlay .kbl-status-dot {
	width: 8px;
	height: 8px;
	background: #fff;
	border-radius: 50%;
	animation: status-dot-pulse 1.5s ease-in-out infinite;
}

@keyframes status-dot-pulse {

	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: 0.6;
		transform: scale(0.9);
	}
}

.kbl-stream-status-overlay.programmed {
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

/* Live card highlight when streaming */
.live-stream-card.is-live {
	border: 2px solid #ef4444;
	box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
	animation: live-card-pulse 2s ease-in-out infinite;
	cursor: pointer;
}

.live-stream-card.is-live:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

/* Programmed card style */
.live-stream-card.is-programmed {
	border: 2px solid #3b82f6;
	box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.live-stream-card.is-programmed:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
}

/* Offline/Pending cards */
.live-stream-card.is-offline {
	opacity: 0.7;
}

@keyframes live-card-pulse {

	0%,
	100% {
		box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
	}

	50% {
		box-shadow: 0 0 30px rgba(239, 68, 68, 0.25);
	}
}

.badge-date {
	background: var(--color-primary);
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	text-align: center;
	min-width: 45px;
}

/* Timer Display */
.timer-display {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--bg-section-hover);
	color: var(--text-primary);
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 0.8125rem;
	font-weight: 700;
	font-family: monospace;
	flex-shrink: 0;
}

.timer-display svg {
	display: inline-block;
	vertical-align: middle;
}

@keyframes pulse {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.5;
	}
}

/* Botón Unirse a Live (Verde Oscuro) */
.btn-join-live {
	background-color: #15803d !important;
	/* Green-700 */
	color: #ffffff !important;
	border: none;
	font-weight: 600;
	transition: all 0.2s;
}

.btn-join-live:hover {
	background-color: #14532d !important;
	/* Green-800 */
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
}

/* Indicador En Vivo Sidebar (Punto Rojo Vibrante) */
.kbl-sidebar-live-dot {
	width: 8px;
	height: 8px;
	background-color: #ef4444;
	/* Red-500 */
	border-radius: 50%;
	margin-left: auto;
	/* Push to right */
	box-shadow: 0 0 0 rgba(239, 68, 68, 0.7);
	animation: livePulse 2s infinite;
}

@keyframes livePulse {
	0% {
		box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
		transform: scale(0.95);
	}

	70% {
		box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
		transform: scale(1);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
		transform: scale(0.95);
	}
}

/* ============================================
   ACTIVITY PANEL
   ============================================ */
.kbl-activity-panel {
	position: relative;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
	z-index: 10;
	padding: 24px 32px;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	margin-top: 40px;
	margin-bottom: 20px;
	max-width: 100%;
	overflow: hidden;
}

.kbl-activity-content {
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 2fr 1fr;
	align-items: center;
	gap: 32px;
}

.kbl-activity-title {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	margin: 0 0 4px 0;
	font-weight: 700;
}

.kbl-activity-desc {
	font-size: 0.9rem;
	color: #1e293b;
	margin: 0;
	line-height: 1.4;
}

.kbl-activity-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #f1f5f9;
}

.kbl-meta-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.kbl-meta-label {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.7rem;
	font-weight: 700;
	color: #1e293b;
	text-transform: uppercase;
}

.kbl-meta-value {
	font-size: 0.8rem;
	color: #64748b;
	font-weight: 500;
}

.kbl-activity-quote {
	text-align: center;
	border-left: 1px solid #e2e8f0;
	border-right: 1px solid #e2e8f0;
	padding: 0 24px;
}

.kbl-activity-quote p {
	font-size: 1.5rem;
	font-style: italic;
	color: #1e3a5f;
	margin: 0;
	line-height: 1.5;
	font-family: 'Georgia', serif;
	font-weight: 600;
	text-align: center;
}

.kbl-activity-route {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
}

.kbl-route-badge {
	width: 48px;
	height: 48px;
	background: #f1f5f9;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e2e8f0;
	flex-shrink: 0;
}

.kbl-route-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.kbl-route-label {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #94a3b8;
	font-weight: 700;
}

.kbl-route-stats {
	display: flex;
	align-items: center;
	gap: 10px;
}

.kbl-route-percent {
	font-size: 1.75rem;
	font-weight: 800;
	color: #1e293b;
	line-height: 1;
}

.kbl-route-bar-bg {
	width: 80px;
	height: 6px;
	background: #e2e8f0;
	border-radius: 3px;
	overflow: hidden;
}

.kbl-route-bar-fill {
	height: 100%;
	background: #10b981;
	border-radius: 3px;
}

@media (max-width: 900px) {
   /* MÓVIL REAL: 1 sola columna SIEMPRE */
   .kbl-certificates-grid,
   .kbl-special-certificates-grid,
   .certificates-grid,
   .special-certificates-grid {
	   grid-template-columns: 1fr !important;
   }

	.kbl-activity-route {
		justify-content: center;
		width: 100%;
	}

	.kbl-activity-quote {
		border: none;
		border-top: 1px solid #f1f5f9;
		border-bottom: 1px solid #f1f5f9;
		padding: 16px 0;
	}

	.kbl-activity-info {
		text-align: center;
	}

	.kbl-activity-meta {
		justify-content: center;
	}
}

/* ============================================
   RESPONSIVE - CERTIFICATES
   ============================================ */
@media (max-width: 1200px) {

	.certificates-grid,
	.special-certificates-grid {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

@media (max-width: 500px) {
   .kbl-certificates-grid,
   .kbl-special-certificates-grid,
   .certificates-grid,
   .special-certificates-grid {
	   grid-template-columns: 1fr !important;
   }

	.certificates-grid,
	.special-certificates-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ============================================
   CONTINUAR VIENDO - GRID ACTIVIDADES RECIENTES
   Soporta hasta 6 tarjetas (3 columnas x 2 filas)
   ============================================ */
.kbl-continue-watching-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.kbl-continue-watching-grid--courses {
	margin-top: 0.75rem;
	overflow: visible;
}

/* Tarjeta ocupa el espacio necesario sin estirar */
.kbl-continue-watching-grid .kbl-continue-card {
	width: 100%;
	max-width: 100%;
}

.kbl-continue-watching-grid--courses .kbl-continue-card {
	max-width: 100%;
	overflow: hidden;
}

.kbl-continue-card.is-hidden {
	display: none;
}

@media (max-width: 1200px) {
	.kbl-continue-watching-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.kbl-continue-watching-grid {
		grid-template-columns: 1fr;
	}
}

.kbl-dashboard-streaming-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.kbl-dashboard-streaming-grid .kbl-continue-card {
	width: 100%;
}

@media (max-width: 1200px) {
	.kbl-dashboard-streaming-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.kbl-dashboard-streaming-grid {
		grid-template-columns: 1fr;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-card-thumb {
		width: 122px;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-card-info {
		padding: 0.8rem 0.9rem;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-card-title {
		font-size: 1.05rem;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-card-desc {
		font-size: 0.84rem;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-streaming-actions {
		gap: 6px;
	}
}

/* Tarjeta base - imagen izquierda, datos derecha */
.kbl-continue-card {
	display: flex;
	flex-direction: row;
	background: var(--bg-card, #fff);
	border: 1px solid var(--border-light, #e2e8f0);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.2s ease;
	min-height: 175px;
}

.kbl-continue-controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 0.5rem;
}

.kbl-continue-page {
	font-size: 0.8rem;
	color: #1e3a5f;
	font-weight: 600;
}

.kbl-continue-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--color-primary, #1e3a5f);
	color: #ffffff;
	border: none;
	border-radius: 6px;
	padding: 6px 12px;
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.2s ease;
}

.kbl-continue-btn:hover:not(:disabled) {
	background: #162d4a;
	transform: translateY(-1px);
}

.kbl-continue-btn:disabled {
	opacity: 0.5;
	cursor: default;
}

.kbl-continue-card:hover {
	transform: translateY(-2px);
}

/* Thumbnail - lado izquierdo */
.kbl-continue-card .kbl-card-thumb {
	flex-shrink: 0;
	width: 150px;
	align-self: stretch;
	position: relative;
	overflow: hidden;
}

.kbl-continue-card .kbl-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Barra de progreso superpuesta en thumbnail */
.kbl-progress-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: rgba(0, 0, 0, 0.3);
}

.kbl-progress-fill {
	height: 100%;
	background: var(--color-primary, #1e3a5f);
	transition: width 0.3s ease;
}

/* Info del card - lado derecho */
.kbl-continue-card .kbl-card-info {
	flex: 1;
	padding: 1rem 1.2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.3rem;
}

.kbl-card-badge-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 0.25rem;
}

.kbl-continue-card .badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.kbl-continue-card .badge-live {
	background: #ef4444;
	color: #fff;
}

.kbl-live-viewers-count {
	font-size: 0.7em;
	font-weight: 600;
	opacity: 0.9;
	margin-left: 6px;
}

.kbl-stream-status-overlay .kbl-live-viewers-count {
	font-size: 0.65rem;
	font-weight: 600;
	opacity: 0.9;
}

/* Pulso animado para EN VIVO */
.kbl-live-pulse {
	width: 8px;
	height: 8px;
	background: #fff;
	border-radius: 50%;
	animation: kbl-pulse 1.5s ease-in-out infinite;
}

@keyframes kbl-pulse {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.5;
		transform: scale(1.3);
	}
}

.kbl-continue-card .badge-course {
	background: transparent;
	color: var(--color-primary, #1e3a5f);
	padding: 0;
}

.kbl-progress-badge {
	background: var(--color-primary, #1e3a5f);
	color: #fff;
	padding: 5px 12px;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.kbl-progress-badge-icon {
	width: 19px;
	height: 19px;
	border-radius: 50%;
	object-fit: cover;
	background: #ffffff;
	padding: 1px;
	box-sizing: border-box;
}

.kbl-card-title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text-primary, #1e293b);
	line-height: 1.3;
}

.kbl-card-title-meta {
	font-size: 0.88rem;
	font-weight: 600;
	color: #1e3a5f;
}

.kbl-card-desc {
	margin: 0;
	font-size: 0.96rem;
	color: var(--text-secondary, #64748b);
	line-height: 1.4;
}

/* Botones más compactos */
.kbl-continue-card .btn-join-live,
.kbl-continue-card .btn-course {
	margin-top: 0.6rem;
	width: fit-content;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 17px;
	font-size: 0.96rem;
}

.kbl-activity-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.kbl-activity-icon svg {
	width: 18px;
	height: 18px;
}

.kbl-continue-card .btn-course {
	background: var(--color-primary, #1e3a5f);
	border-color: var(--color-primary, #1e3a5f);
}

.kbl-continue-card .btn-course:hover {
	background: #162d4a;
	border-color: #162d4a;
}

@media (max-width: 640px) {
	#section-tablero .kbl-dashboard-welcome-card {
		display: none;
	}

	#section-tablero .kbl-dashboard-streaming-grid {
		margin-top: 0.7rem;
		gap: 0.8rem;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card {
		flex-direction: column;
		min-height: 0;
		border-radius: 14px;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-card-thumb {
		width: 100%;
		aspect-ratio: 16 / 9;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-card-thumb::after {
		background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 62%);
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-card-info {
		padding: 0.82rem 0.88rem 0.9rem;
		gap: 0.32rem;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-card-badge-row {
		align-items: flex-start;
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 0.35rem;
		margin-bottom: 0.08rem;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .badge {
		font-size: 0.58rem;
		letter-spacing: 0.03em;
		padding: 4px 7px;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-live-viewers-count {
		margin-left: 4px;
		font-size: 0.68em;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-card-title {
		font-size: 0.94rem;
		line-height: 1.2;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-card-desc {
		font-size: 0.76rem;
		line-height: 1.28;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-stream-details {
		gap: 3px;
		margin: 0.14rem 0 0.18rem;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-stream-detail {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-stream-detail-label,
	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-stream-detail-value {
		font-size: 0.76rem;
		line-height: 1.22;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-stream-meta {
		font-size: 0.68rem;
		gap: 7px;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-streaming-actions {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0.5rem;
		margin-top: 0.32rem;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-stream-live-btn,
	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card .kbl-stream-timer-btn {
		width: 100%;
		justify-content: center;
		min-height: 42px;
		padding: 10px 12px;
		font-size: 0.78rem;
		border-radius: 10px;
	}

	#section-tablero .kbl-continue-watching-grid--courses {
		gap: 0.55rem;
	}

	#section-tablero .kbl-continue-watching-grid--courses .kbl-course-card {
		min-height: 106px;
		border-radius: 10px;
	}

	#section-tablero .kbl-continue-watching-grid--courses .kbl-course-card .kbl-card-thumb {
		width: 90px;
	}

	#section-tablero .kbl-continue-watching-grid--courses .kbl-course-card .kbl-card-info {
		padding: 0.58rem 0.72rem;
		gap: 0.18rem;
	}

	#section-tablero .kbl-continue-watching-grid--courses .kbl-course-card .kbl-card-badge-row {
		gap: 0.35rem;
		margin-bottom: 0.12rem;
	}

	#section-tablero .kbl-continue-watching-grid--courses .kbl-course-card .badge {
		gap: 4px;
		font-size: 0.56rem;
		letter-spacing: 0.03em;
	}

	#section-tablero .kbl-continue-watching-grid--courses .kbl-course-card .badge svg {
		width: 11px;
		height: 11px;
	}

	#section-tablero .kbl-continue-watching-grid--courses .kbl-course-card .kbl-progress-badge {
		padding: 3px 8px;
		border-radius: 5px;
		font-size: 0.82rem;
		gap: 4px;
	}

	#section-tablero .kbl-continue-watching-grid--courses .kbl-course-card .kbl-progress-badge-icon {
		width: 14px;
		height: 14px;
	}

	#section-tablero .kbl-continue-watching-grid--courses .kbl-course-card .kbl-card-title {
		font-size: 0.9rem;
		line-height: 1.18;
	}

	#section-tablero .kbl-continue-watching-grid--courses .kbl-course-card .kbl-card-desc {
		font-size: 0.76rem;
		line-height: 1.25;
	}

	#section-tablero .kbl-continue-watching-grid--courses .kbl-course-card .btn-course {
		margin-top: 0.34rem;
		gap: 5px;
		padding: 7px 10px;
		font-size: 0.77rem;
		border-radius: 7px;
	}

	#section-tablero .kbl-continue-watching-grid--courses .kbl-course-card .btn-course svg {
		width: 13px;
		height: 13px;
	}
}

#section-tablero .kbl-dashboard-alert {
	border-left: 4px solid #1e3a5f;
	background: #f8fafc;
	margin-bottom: 1rem;
}

#section-tablero .kbl-dashboard-alert__title {
	margin: 0 0 0.45rem;
	font-size: 1.05rem;
	color: #1e3a5f;
}

#section-tablero .kbl-dashboard-alert__body {
	margin: 0;
	white-space: pre-line;
}

#section-tablero .kbl-dashboard-membership-alert {
	margin-bottom: 1rem;
	padding: 1.1rem 1.25rem;
	border-left: 4px solid #dc2626;
	background: #fef2f2;
}

#section-tablero .kbl-dashboard-membership-alert--warning {
	border-left-color: #f59e0b;
	background: #fffbeb;
}

#section-tablero .kbl-dashboard-membership-alert__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 0.5rem;
}

#section-tablero .kbl-dashboard-membership-alert__title {
	margin: 0;
	font-size: 1.05rem;
	color: #991b1b;
}

#section-tablero .kbl-dashboard-membership-alert--warning .kbl-dashboard-membership-alert__title {
	color: #92400e;
}

#section-tablero .kbl-dashboard-membership-alert__copy {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #7f1d1d;
}

#section-tablero .kbl-dashboard-membership-alert--warning .kbl-dashboard-membership-alert__copy {
	color: #78350f;
}

#section-tablero .kbl-dashboard-membership-alert__action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border-radius: 6px;
	background: #1e3a5f;
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
}

#section-tablero .kbl-dashboard-membership-alert__action--warning {
	background: #f59e0b;
}

/* ============================================
   TABLERO: Streaming destacado (10 min antes)
   ============================================ */
.kbl-streaming-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 1.1rem;
	margin-bottom: 0.35rem;
}

.kbl-streaming-section-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--text-primary, #1e293b);
}

.kbl-upcoming-events-title {
	margin: 0.2rem 0 0.85rem;
}

.kbl-streaming-section-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(239, 68, 68, 0.12);
	color: #b91c1c;
	border: 1px solid rgba(239, 68, 68, 0.35);
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.kbl-streaming-section-pill .kbl-stream-countdown {
	font-weight: 800;
}

.kbl-transmission-card {
	border-color: var(--border-light, #e2e8f0);
	box-shadow: none;
}

.kbl-transmission-card--soon {
	border-color: var(--border-light, #e2e8f0);
}

.kbl-transmission-card .kbl-card-thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 55%);
	pointer-events: none;
}

.badge-live-soon {
	background: rgba(239, 68, 68, 0.12);
	color: #b91c1c;
	border: 1px solid rgba(239, 68, 68, 0.35);
}

.kbl-streaming-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 0.45rem;
}

.kbl-stream-live-btn {
	background: #1e3a5f;
	color: #ffffff !important;
	border: 2px solid #1e3a5f;
	font-weight: 700;
}

.kbl-stream-live-btn:hover {
	background: #162d4a;
	border-color: #162d4a;
	color: #ffffff !important;
}

.kbl-streaming-section-header--courses {
	margin-top: 0.35rem;
}

.kbl-stream-timer-btn {
	background: #f1f5f9;
	color: #1e293b;
	border: 2px solid #e2e8f0;
	font-weight: 700;
	gap: 6px;
}

.kbl-stream-timer-btn--soon {
	background: rgba(239, 68, 68, 0.1);
	color: #b91c1c;
	border-color: rgba(239, 68, 68, 0.35);
}

.kbl-stream-info-btn {
	background: var(--color-primary, #1e3a5f);
	color: #ffffff;
	border: 2px solid var(--color-primary, #1e3a5f);
}

.kbl-stream-info-btn:hover {
	background: #162d4a;
	border-color: #162d4a;
}

.badge-audience {
	background: transparent;
	color: #94a3b8;
	border: 0;
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none !important;
	text-transform: unset !important;
	padding: 0;
}

.kbl-stream-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 0.76rem;
	color: #94a3b8;
}

.kbl-stream-meta-item strong {
	color: #64748b;
	font-weight: 600;
}

.kbl-stream-details {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 4px 6px;
	margin: 0.2rem 0 0.25rem;
}

.kbl-stream-detail-label {
	display: inline;
	font-size: 0.9rem;
	color: #475569;
	margin-bottom: 0;
	margin-right: 2px;
	font-weight: 700;
}

.kbl-stream-detail-label::after {
	content: ':';
}

.kbl-stream-detail-value {
	font-size: 0.9rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.2;
	color: #64748b;
	font-weight: 400;
}

.kbl-stream-detail {
	display: flex;
	align-items: baseline;
	gap: 0;
	min-width: 0;
}

.kbl-transmission-card .kbl-card-info {
	padding: 0.85rem 1rem;
	gap: 0.2rem;
}

.kbl-desktop-live-card__thumb-image {
	display: none;
}

@media (min-width: 1025px) {
	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card.kbl-mobile-live-card {
		flex-direction: row;
		align-items: stretch;
		min-height: 232px;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card.kbl-mobile-live-card .kbl-card-thumb.kbl-mobile-live-card__thumb {
		width: 280px;
		min-width: 280px;
		align-self: stretch;
		border-right: 1px solid rgba(148, 163, 184, 0.14);
		background: #0f172a;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card.kbl-mobile-live-card .kbl-mobile-live-card__media-frame {
		position: relative;
		width: 100%;
		height: 100%;
		min-height: 232px;
		overflow: hidden;
		background: #0f172a;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card.kbl-mobile-live-card .kbl-mobile-live-card__mobile-cover,
	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card.kbl-mobile-live-card .kbl-mobile-live-card__overlay,
	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card.kbl-mobile-live-card .kbl-mobile-live-card__youtube-mask,
	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card.kbl-mobile-live-card .kbl-mobile-live-card__iframe,
	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card.kbl-mobile-live-card .kbl-mobile-live-card__media-frame > img:not(.kbl-desktop-live-card__thumb-image) {
		display: none !important;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card.kbl-mobile-live-card .kbl-desktop-live-card__thumb-image {
		display: block;
		width: 100%;
		height: 100%;
		border: 0;
		object-fit: cover;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card.kbl-mobile-live-card .kbl-card-info.kbl-mobile-live-card__info {
		justify-content: center;
		padding: 1rem 1.15rem;
		gap: 0.38rem;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card.kbl-mobile-live-card .kbl-streaming-actions.kbl-mobile-live-card__actions {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.55rem;
		margin-top: 0.45rem;
	}

	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card.kbl-mobile-live-card .kbl-stream-live-btn,
	#section-tablero .kbl-dashboard-streaming-grid .kbl-transmission-card.kbl-mobile-live-card .kbl-stream-timer-btn {
		width: auto;
		min-width: 0;
	}
}

.kbl-stream-detail-value strong {
	font-weight: 700;
}

.kbl-stream-countdown.is-live-now {
	color: #10b981;
}

/* ============================================
   COURSES PAGINATION
   ============================================ */
.kbl-courses-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding: 12px 16px;
	background: #f8fafc;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

.kbl-pagination-info {
	font-size: 0.9rem;
	color: #64748b;
	font-weight: 500;
}

.kbl-pagination-buttons {
	display: flex;
	gap: 10px;
}

.kbl-pagination-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #fff;
	background: var(--color-primary, #1e3a5f);
	border: none;
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.kbl-pagination-btn:hover {
	background: #162d4a;
	transform: translateY(-1px);
	color: #fff;
	text-decoration: none;
}

.kbl-pagination-btn svg {
	width: 16px;
	height: 16px;
}

/* ============================================
   COURSE CARDS (Plugin Style)
   ============================================ */
.kbl-courses-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	align-items: stretch;
	overflow: visible;
}

@media (max-width: 1500px) {
	.kbl-courses-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 1200px) {
	.kbl-courses-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.kbl-courses-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.kbl-courses-grid {
		grid-template-columns: 1fr;
	}
}

#section-cursos .kbl-courses-grid {
	overflow-x: visible;
	overflow-y: visible;
	grid-auto-rows: 1fr;
}

#section-cursos .kbl-plugin-card {
	border-radius: 10px;
	min-height: 413px;
	height: 100%;
}

#section-cursos .kbl-card-hero {
	height: 138px;
}

#section-cursos .kbl-card-body {
	padding: 10px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

#section-cursos .kbl-card-title-row {
	margin-bottom: 4px;
	display: block;
}

#section-cursos .kbl-card-title-h3 {
	font-size: 0.86rem;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	min-height: calc(1.25em * 2);
}

#section-cursos .kbl-card-status-label {
	font-size: 0.55rem;
	padding: 3px 7px;
	font-weight: 800;
	border-radius: 7px;
	color: #1e3a5f;
	border-color: rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
	text-transform: none;
}

#section-cursos .kbl-card-status-label.is-locked {
	color: #991b1b;
	border-color: rgba(220, 38, 38, 0.68);
	background: rgba(255, 241, 242, 0.98);
	box-shadow: 0 8px 18px rgba(127, 29, 29, 0.18);
}

#section-cursos .kbl-member-price-tag {
	margin-left: 0;
	color: #065f46;
	border-color: rgba(16, 185, 129, 0.34);
	background: rgba(236, 253, 245, 0.96);
}

#section-cursos .kbl-card-hero-tags {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	flex-wrap: wrap;
	max-width: calc(100% - 20px);
}

#section-cursos .kbl-card-excerpt {
	font-size: 0.68rem;
	margin: 0 0 6px 0;
	min-height: 3.3em;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

#section-cursos .kbl-course-ratings {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 4px 0;
	font-size: 0.62rem;
	color: #64748b;
}

#section-cursos .kbl-rating-label {
	font-size: 0.62rem;
	font-weight: 700;
	color: #1e3a5f;
}

#section-cursos .kbl-rating-stars {
	position: relative;
	display: inline-block;
	width: 68px;
	height: 14px;
	line-height: 1;
	vertical-align: middle;
	flex-shrink: 0;
	overflow: hidden;
}

#section-cursos .kbl-rating-stars::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%23e2e8f0'><path d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/></svg>");
	background-repeat: repeat-x;
	background-size: 14px 14px;
}

#section-cursos .kbl-rating-stars-fill {
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%23f59e0b'><path d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/></svg>");
	background-repeat: repeat-x;
	background-size: 14px 14px;
	height: 100%;
}

#section-cursos .kbl-rating-value {
	font-weight: 700;
	color: #0f172a;
}

#section-cursos .kbl-rating-count {
	font-size: 0.7rem;
	color: #64748b;
	font-weight: 600;
	white-space: nowrap;
}

#section-cursos .kbl-card-progress-container {
	margin-bottom: 8px;
}

#section-cursos .kbl-card-progress-container .kbl-route-bar-bg {
	width: 100% !important;
}

#section-cursos .kbl-card-progress-header span:first-child {
	font-size: 0.6rem;
}

#section-cursos .kbl-course-enroll-btn {
	font-size: 0.72rem !important;
	padding: 4px 8px !important;
	border-radius: 8px !important;
	height: 34px !important;
	min-height: 34px !important;
	margin-top: auto !important;
	width: 100% !important;
	align-self: stretch !important;
	box-sizing: border-box !important;
	display: flex !important;
}

#section-cursos .kbl-course-enroll-btn.buy,
#section-cursos .kbl-course-enroll-btn.details {
	height: 34px !important;
	min-height: 34px !important;
}

#section-cursos .kbl-card-meta-grid {
	gap: 5px;
	padding-top: 6px;
}

#section-cursos .kbl-card-meta-label,
#section-cursos .kbl-card-meta-value {
	font-size: 0.6rem;
}

#section-cursos .kbl-card-progress-spacer {
		min-height: 0;
		margin: 0;
}

#section-cursos .kbl-card-badge-pill span {
	display: none;
}

#section-cursos .kbl-card-badge-pill {
	background: transparent;
	border: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	padding: 0;
	position: absolute;
	overflow: visible;
	width: 43px;
	height: 43px;
	display: flex;
	align-items: center;
	justify-content: center;
	top: 12px;
	left: 12px;
	z-index: 2;
}

#section-cursos .kbl-card-badge-pill img,
#section-cursos .kbl-card-badge-pill .placeholder-dot {
	width: 43px;
	height: 43px;
	border-radius: 50%;
	box-sizing: border-box;
	border: none;
	box-shadow: none;
	object-fit: contain;
	image-rendering: auto;
	transform: translateZ(0);
	transform-origin: center center;
	opacity: 1;
	filter: none;
	display: block;
}

#section-cursos .kbl-plugin-card:hover .kbl-card-badge-pill img,
#section-cursos .kbl-plugin-card:hover .kbl-card-badge-pill .placeholder-dot {
	box-shadow: none;
}

.kbl-plugin-card {
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	display: flex;
	flex-direction: column;
}

.kbl-plugin-card:hover {
	transform: translateY(-4px);
	border-color: var(--color-primary, #1e3a5f);
	box-shadow: 0 8px 24px rgba(30, 58, 95, 0.18);
}

/* Dim locked (not purchased) cards and remove hover effects on card */
.kbl-plugin-card.kbl-course-locked {
	border-color: var(--border-light, #e2e8f0);
	box-shadow: none;
}

.kbl-plugin-card.kbl-course-locked:hover {
	transform: none;
	border-color: var(--border-light, #e2e8f0);
	box-shadow: none;
}

.kbl-plugin-card.kbl-course-locked .kbl-card-hero .kbl-course-sticker,
.kbl-plugin-card.kbl-course-locked .kbl-card-hero img,
.kbl-plugin-card.kbl-course-locked .kbl-card-hero .kbl-card-hero-placeholder,
.kbl-plugin-card.kbl-course-locked .kbl-card-hero .kbl-card-hero-overlay,
.kbl-plugin-card.kbl-course-locked .kbl-card-hero .kbl-card-badge-pill,
.kbl-plugin-card.kbl-course-locked .kbl-card-body > *:not(.kbl-card-title-row):not(.kbl-card-excerpt):not(.kbl-course-ratings):not(.kbl-course-enroll-btn):not(.kbl-course-action-row) {
	opacity: 0.5;
	filter: grayscale(0.35);
}

.kbl-plugin-card.kbl-course-locked .kbl-card-hero img {
	filter: grayscale(0.46);
}

.kbl-plugin-card.kbl-course-locked .kbl-card-title-row,
.kbl-plugin-card.kbl-course-locked .kbl-card-title-h3,
.kbl-plugin-card.kbl-course-locked .kbl-card-excerpt,
.kbl-plugin-card.kbl-course-locked .kbl-course-ratings,
.kbl-plugin-card.kbl-course-locked .kbl-rating-label,
.kbl-plugin-card.kbl-course-locked .kbl-rating-stars,
.kbl-plugin-card.kbl-course-locked .kbl-rating-stars-fill,
.kbl-plugin-card.kbl-course-locked .kbl-rating-value,
.kbl-plugin-card.kbl-course-locked .kbl-rating-count {
	opacity: 1;
	filter: none;
}

.kbl-plugin-card.kbl-course-locked .kbl-course-enroll-btn {
	opacity: 1;
}

.kbl-plugin-card.kbl-course-locked .kbl-course-action-row,
.kbl-plugin-card.kbl-course-locked .kbl-course-action-row * {
	opacity: 1;
	filter: none;
	pointer-events: auto;
}

.kbl-card-hero {
	height: 168px;
	background-color: #1e293b;
	position: relative;
	overflow: hidden;
}

.kbl-course-sticker {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 0.62rem;
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
	color: #1e3a5f;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(15, 23, 42, 0.12);
	box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.kbl-course-sticker--new {
	border-color: rgba(239, 68, 68, 0.25);
	color: #b91c1c;
}

.kbl-course-sticker--update {
	color: #1e3a5f;
	background: rgba(226, 232, 240, 0.96);
	border-color: rgba(30, 58, 95, 0.78);
	box-shadow: 0 6px 14px rgba(30, 58, 95, 0.12);
	animation: kbl-sticker-pulse 1.8s ease-in-out infinite;
	transform-origin: center;
}

@keyframes kbl-sticker-pulse {
	0%,
	100% {
		transform: scale(1);
		box-shadow: 0 6px 14px rgba(30, 58, 95, 0.12);
	}
	50% {
		transform: scale(1.035);
		box-shadow: 0 8px 18px rgba(30, 58, 95, 0.2);
	}
}

.kbl-card-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.55s ease, filter 0.55s ease, opacity 0.55s ease;
}

.kbl-card-hero-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Overlay deshabilitado - imagen sin filtro oscuro */
.kbl-card-hero-overlay {
	display: none;
}

.kbl-card-badge-pill {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(15, 23, 42, 0.85);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	padding: 6px 14px 6px 6px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.kbl-card-badge-pill img {
	width: 36px;
	height: 36px;
	object-fit: contain;
	transition: transform 0.45s ease;
}

.kbl-card-badge-pill .placeholder-dot {
	width: 36px;
	height: 36px;
	background: #3b82f6;
	border-radius: 50%;
	transition: transform 0.45s ease;
}

.kbl-card-badge-pill span {
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: lowercase;
	letter-spacing: 0.5px;
}

.kbl-card-body {
	padding: 13px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.kbl-card-title-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 12px;
	gap: 8px;
}

.kbl-member-price-tag {
	display: none;
	margin-left: auto;
}

.kbl-member-price-tag.is-active,
body.kbl-member-active .kbl-member-price-tag {
	display: inline-flex;
}

.kbl-card-title-h3 {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--text-primary);
	line-height: 1.3;
	flex: 1;
}

.kbl-card-status-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-size: 0.7rem;
	font-weight: 700;
	color: #10b981;
	border: 1px solid #10b981;
	padding: 2px 8px;
	border-radius: 4px;
	white-space: nowrap;
}

.kbl-card-excerpt {
	font-size: 0.85rem;
	color: #64748b;
	line-height: 1.5;
	margin: 0 0 16px 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.kbl-card-progress-container {
	margin-bottom: 16px;
}

.kbl-card-progress-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 4px;
}

.kbl-card-progress-header span:first-child {
	font-size: 0.75rem;
	font-weight: 600;
	color: #374151;
}

.kbl-course-enroll-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	font-size: clamp(0.72rem, 0.5vw + 0.6rem, 0.85rem) !important;
	font-weight: 600 !important;
	padding: 6px 12px !important;
	border-radius: 12px !important;
	text-decoration: none !important;
	transition: all 0.2s !important;
	margin-top: 4px !important;
	width: 100% !important;
	border: 2px solid transparent !important;
}

.kbl-course-enroll-btn.completed,
.kbl-course-enroll-btn.continue {
	background: #10b981 !important;
	color: #ffffff !important;
	border-color: #10b981 !important;
}

.kbl-course-enroll-btn.completed:hover {
	background: #10b981 !important;
	color: #ffffff !important;
	border-color: #10b981 !important;
}

.kbl-course-enroll-btn.continue:hover {
	background: #ffffff !important;
	color: #059669 !important;
	border-color: #059669 !important;
}

.kbl-course-enroll-btn.enroll {
	background: #1e3a5f !important;
	color: #ffffff !important;
	border-color: #1e3a5f !important;
}

.kbl-course-enroll-btn.enroll:hover {
	background: #ffffff !important;
	color: #1e3a5f !important;
	border-color: #1e3a5f !important;
}

.kbl-course-enroll-btn.enroll.enroll--paid {
	background: #065f46 !important;
	color: #ffffff !important;
	border-color: #065f46 !important;
}

.kbl-course-enroll-btn.enroll.enroll--paid:hover {
	background: #054a36 !important;
	color: #ffffff !important;
	border-color: #054a36 !important;
}

/* Paid / Locked state */
.kbl-card-status-label.is-locked {
	color: #ef4444;
	border-color: #ef4444;
}

.kbl-card-lock-overlay {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.24);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	z-index: 4;
	pointer-events: none;
}

.kbl-card-body {
	position: relative;
	z-index: 2;
}

.kbl-card-lock-overlay .kbl-lock-icon {
	width: 20px;
	height: 20px;
	stroke-width: 2.4;
}

@media (max-width: 768px) {
	#section-cursos .kbl-plugin-card:not(.kbl-course-locked):hover .kbl-card-hero img,
	#section-cursos .kbl-plugin-card:not(.kbl-course-locked):active .kbl-card-hero img,
	#section-cursos .kbl-plugin-card:not(.kbl-course-locked):focus-within .kbl-card-hero img,
	#section-cursos .kbl-plugin-card:not(.kbl-course-locked).is-touch-preview .kbl-card-hero img {
		opacity: 1;
		filter: saturate(1.5);
		transform: scale(1.04);
	}

	#section-cursos .kbl-plugin-card:not(.kbl-course-locked):hover .kbl-card-badge-pill img,
	#section-cursos .kbl-plugin-card:not(.kbl-course-locked):active .kbl-card-badge-pill img,
	#section-cursos .kbl-plugin-card:not(.kbl-course-locked):focus-within .kbl-card-badge-pill img,
	#section-cursos .kbl-plugin-card:not(.kbl-course-locked).is-touch-preview .kbl-card-badge-pill img,
	#section-cursos .kbl-plugin-card:not(.kbl-course-locked):hover .kbl-card-badge-pill .placeholder-dot,
	#section-cursos .kbl-plugin-card:not(.kbl-course-locked):active .kbl-card-badge-pill .placeholder-dot,
	#section-cursos .kbl-plugin-card:not(.kbl-course-locked):focus-within .kbl-card-badge-pill .placeholder-dot,
	#section-cursos .kbl-plugin-card:not(.kbl-course-locked).is-touch-preview .kbl-card-badge-pill .placeholder-dot {
		transform: scale(1.14);
	}
}

.kbl-course-enroll-btn.buy {
	background: #ffffff !important;
	color: #1e3a5f !important;
	border-color: #1e3a5f !important;
	justify-content: flex-start !important;
	flex-wrap: nowrap !important;
	gap: 8px !important;
	height: 36px !important;
	min-height: 36px !important;
	white-space: nowrap !important;
}

.kbl-course-enroll-btn.buy:hover {
	background: #1e3a5f !important;
	color: #ffffff !important;
	border-color: #1e3a5f !important;
}

.kbl-course-enroll-btn--in-cart {
	opacity: 0.45 !important;
	pointer-events: none !important;
	cursor: default !important;
	border-style: dashed !important;
}

.kbl-course-enroll-btn.buy .kbl-course-buy-text {
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.kbl-course-enroll-btn.buy .kbl-course-buy-price {
	font-weight: 900;
	white-space: nowrap;
	line-height: 1;
	margin-left: auto;
	flex: 0 0 auto;
	font-size: clamp(0.85rem, 0.6vw + 0.7rem, 1rem);
}

.kbl-course-action-row {
	display: grid;
	grid-template-columns: 7fr 3fr;
	gap: 8px;
	width: 100%;
	align-items: stretch;
}

.kbl-course-action-row .kbl-course-enroll-btn.buy,
.kbl-course-action-row .kbl-course-enroll-btn.details {
	width: 100%;
	min-width: 0;
	white-space: nowrap;
	box-sizing: border-box;
}


@media (max-width: 420px) {
	.kbl-course-action-row {
		grid-template-columns: 1fr;
	}
}

.kbl-course-enroll-btn.details {
	background: #1e3a5f !important;
	color: #ffffff !important;
	border-color: #1e3a5f !important;
}

#section-cursos .kbl-course-enroll-btn.details {
	padding: 6px 12px !important;
	gap: 6px !important;
	justify-content: center !important;
	align-items: center !important;
	line-height: 1 !important;
	text-align: center !important;
}

#section-cursos .kbl-course-enroll-btn.details svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	display: inline-block;
}

.kbl-course-enroll-btn.details:hover {
	background: #ffffff !important;
	color: #1e3a5f !important;
	border-color: #1e3a5f !important;
}

.kbl-course-enroll-btn.enroll,
.kbl-course-enroll-btn.details {
	height: 36px !important;
	min-height: 36px !important;
	line-height: 1 !important;
	padding-top: 6px !important;
	padding-bottom: 6px !important;
	white-space: nowrap !important;
}

.kbl-card-meta-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	border-top: 1px solid #f1f5f9;
	padding-top: 16px;
	margin-top: auto;
}

.kbl-card-meta-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.kbl-card-meta-label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #1e293b;
	font-weight: 700;
	font-size: 0.8rem;
}

.kbl-card-meta-value {
	font-size: 0.8rem;
	color: #64748b;
}

.kbl-card-meta-value.highlight {
	color: #10b981;
	font-weight: 600;
}

#section-cursos .kbl-card-meta-value--inline {
	display: flex;
	align-items: center;
	gap: 4px;
}

#section-cursos .kbl-card-meta-flag {
	font-size: 1.2em;
	line-height: 1;
}

#section-cursos .kbl-courses-empty-state {
	grid-column: 1 / -1;
}

/* ============================================
   CERTIFICATES
   ============================================ */
.kbl-certificates-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.kbl-cert-card {
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.3s;
	cursor: pointer;
	position: relative;
	display: flex;
	flex-direction: column;
}

.kbl-cert-card:hover {
	border-color: var(--color-primary, #1e3a5f) !important;
	box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.12) !important;
	transform: translateY(-2px);
}

.kbl-cert-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 1rem;
	text-align: center;
	position: relative;
}

.kbl-cert-header img,
.kbl-cert-badge-placeholder {
	width: 48px;
	height: 48px;
	margin: 0 auto 0.5rem;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	padding: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
}

.kbl-cert-header h3 {
	margin: 0;
	color: white;
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.kbl-cert-body {
	padding: 0.75rem;
	flex: 1;
}

.kbl-cert-title-h4 {
	margin: 0 0 0.25rem 0;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--text-primary);
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kbl-cert-date {
	margin: 0 0 0.5rem 0;
	font-size: 0.7rem;
	color: var(--text-secondary);
}

.kbl-cert-actions {
	display: grid;
	grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
	gap: 4px;
}

.kbl-cert-btn-view {
	flex: 1;
	padding: 6px;
	background: var(--color-primary);
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 0.7rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	text-align: center;
	text-decoration: none;
}

.kbl-cert-btn-download {
	flex: 1;
	padding: 6px;
	background: white;
	color: var(--text-primary);
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	font-size: 0.7rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kbl-cert-btn-download--disabled {
	padding-inline: 8px;
	background: #f8fafc;
	color: #64748b;
	border-color: #cbd5e1;
	cursor: not-allowed;
	pointer-events: none;
	white-space: nowrap;
	letter-spacing: 0.01em;
}

.kbl-cert-verify-badge {
	position: absolute;
	top: 6px;
	right: 6px;
	background: rgba(16, 185, 129, 0.95);
	color: white;
	padding: 2px 6px;
	border-radius: 8px;
	font-size: 0.55rem;
	font-weight: 700;
	z-index: 2;
}

#section-certificados .kbl-certificates-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

#section-certificados .kbl-certificates-section-header__title {
	margin-bottom: 0.25rem;
}

#section-certificados .kbl-certificates-section-header__subtitle {
	margin: 0;
	font-size: 0.85rem;
	color: var(--text-secondary);
}

#section-certificados .kbl-certificates-empty-state {
	display: flex;
	align-items: center;
	gap: 1.3rem;
	padding: 1.3rem 1.6rem;
	text-align: center;
}

#section-certificados .kbl-certificates-empty-state__icon {
	width: 52px;
	height: 52px;
	min-width: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

#section-certificados .kbl-certificates-empty-state__content {
	text-align: left;
}

#section-certificados .kbl-certificates-empty-state__title {
	margin: 0 0 0.2rem;
	font-size: 1.17rem;
	color: var(--text-primary);
}

#section-certificados .kbl-certificates-empty-state__desc {
	margin: 0;
	font-size: 1.04rem;
	color: var(--text-secondary);
}

#section-certificados .kbl-special-certificates-section {
	margin-top: 1.5rem;
}

#section-certificados .kbl-special-certificates-section__title {
	margin: 0 0 0.25rem;
	font-size: 1.1rem;
	color: var(--text-primary);
}

#section-certificados .kbl-special-certificates-section__desc {
	margin: 0 0 0.75rem;
	font-size: 0.8rem;
	color: var(--text-secondary);
}

/* ============================================
   SPECIAL CERTIFICATES (Locked/Upcoming)
   ============================================ */
.kbl-special-certificates-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.kbl-special-cert-card {
	background: #ffffff;
	border: 1.5px dashed #e2e8f0;
	border-radius: 12px;
	padding: 1.25rem;
	text-align: left;
	position: relative;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	min-height: 180px;
}

.kbl-special-cert-card.locked {
	background: #f8fafc;
	border-color: #cbd5e1;
}

.kbl-special-cert-card:hover {
	border-color: var(--color-primary, #1e3a5f);
	background: #f1f5f9;
	transform: translateY(-2px);
}

.kbl-special-cert-icon {
	color: #94a3b8;
	margin-bottom: 0.75rem;
	transition: all 0.3s ease;
}

.kbl-special-cert-card:hover .kbl-special-cert-icon {
	color: var(--color-primary);
	transform: scale(1.1);
}

.kbl-special-cert-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #475569;
}

.kbl-special-cert-card__main {
	display: grid;
	grid-template-columns: 124px minmax(0, 1fr);
	align-items: center;
	gap: 1rem;
	width: 100%;
}

.kbl-special-cert-progress-visual {
	width: 124px;
	height: 124px;
	position: relative;
	flex-shrink: 0;
}

.kbl-special-cert-progress-ring {
	transform: rotate(-90deg);
	position: absolute;
	top: 0;
	left: 0;
}

.kbl-special-cert-progress-core {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 82px;
	height: 82px;
	background: #cbd5e1;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
}

.kbl-special-cert-progress-badge {
	position: absolute;
	bottom: -5px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--color-primary, #1e3a5f);
	color: #ffffff;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 0.65rem;
	font-weight: 700;
}

.kbl-special-cert-card__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.7rem;
	min-width: 0;
}

.kbl-special-cert-required {
	width: 100%;
	background: rgba(255,255,255,0.6);
	border-radius: 6px;
	padding: 0.75rem;
	box-sizing: border-box;
}

.kbl-special-cert-required__label {
	font-size: 0.75rem;
	color: #64748b;
	margin-bottom: 4px;
}

.kbl-special-cert-required__path {
	color: var(--text-primary);
	font-size: 0.95rem;
	line-height: 1.3;
}

.kbl-special-cert-xp {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	color: #64748b;
}

.kbl-special-cert-xp strong {
	color: #475569;
}

.kbl-special-cert-rewards {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px dashed #cbd5e1;
	width: 100%;
}

.kbl-special-cert-rewards__label {
	font-size: 0.8rem;
	color: #64748b;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.kbl-special-cert-rewards__items {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.kbl-special-cert-rewards__badge {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid #cbd5e1;
	box-sizing: border-box;
}

#section-certificados .kbl-special-cert-card.locked .kbl-special-cert-rewards__badge {
	opacity: 0.6;
	filter: grayscale(100%);
	border-color: #cbd5e1;
}

#section-certificados .kbl-special-cert-card:not(.locked) .kbl-special-cert-rewards__badge {
	opacity: 1;
	filter: none;
	border-color: #cbd5e1;
}

.kbl-special-cert-rewards__badge--crown {
	width: 50px;
	height: 50px;
}

#section-certificados .kbl-special-cert-card.locked .kbl-special-cert-rewards__badge--crown,
#section-certificados .kbl-special-cert-card:not(.locked) .kbl-special-cert-rewards__badge--crown {
	border-color: #94a3b8;
}

.kbl-special-cert-rewards__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kbl-special-cert-rewards__text {
	font-size: 0.8rem;
	color: #64748b;
	margin-top: 6px;
	text-align: center;
}

.kbl-special-cert-progress {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kbl-special-cert-lock-icon {
	position: absolute;
	top: 10px;
	right: 10px;
	color: #94a3b8;
	opacity: 0.6;
}

/* Responsive adjustments for grids */
@media (max-width: 1200px) {

	.kbl-certificates-grid,
	.kbl-special-certificates-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 900px) {
	#section-certificados .kbl-certificates-empty-state {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}


	.kbl-certificates-grid,
	.kbl-special-certificates-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 500px) {

	.kbl-certificates-grid,
	.kbl-special-certificates-grid {
		grid-template-columns: 1fr;
	}

	.kbl-special-cert-card__main {
		grid-template-columns: 104px minmax(0, 1fr);
		gap: 0.85rem;
	}

	.kbl-special-cert-progress-visual {
		width: 104px;
		height: 104px;
	}

	.kbl-special-cert-progress-ring {
		width: 104px;
		height: 104px;
	}

	.kbl-special-cert-progress-core {
		width: 68px;
		height: 68px;
	}

	.kbl-special-cert-title {
		font-size: 0.96rem;
	}

	.kbl-special-cert-required {
		padding: 0.6rem;
	}

	.kbl-special-cert-required__path {
		font-size: 0.88rem;
	}
}

/* ============================================
   STREAMING & EVENTS
   ============================================ */
.kbl-streaming-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 2rem;
}

.kbl-streaming-featured-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.kbl-upcoming-events-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.7rem;
}

.kbl-upcoming-events-title {
	margin: 0;
	line-height: 1.15;
}

.kbl-upcoming-events-scroller {
	position: relative;
	overflow-x: auto;
	overflow-y: visible;
	scroll-behavior: smooth;
	padding-bottom: 0.3rem;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.kbl-upcoming-events-scroller::-webkit-scrollbar {
	display: none;
}

.kbl-stream-scroll-controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.4rem;
	margin-left: auto;
	flex-shrink: 0;
	align-self: center;
}

.kbl-stream-scroll-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--color-primary, #1e3a5f);
	color: #ffffff;
	border: none;
	border-radius: 10px;
	width: 32px;
	height: 32px;
	padding: 0;
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}

.kbl-stream-scroll-btn:hover:not(:disabled) {
	background: #162d4a;
	transform: translateY(-1px);
}

.kbl-stream-scroll-btn:disabled {
	opacity: 0.38;
	cursor: default;
}

.kbl-event-card {
	background: var(--bg-card, #fff);
	border: 1px solid var(--border-light, #e2e8f0);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s, box-shadow 0.2s;
	display: flex;
	flex-direction: column;
	cursor: pointer;
	height: 100%;
}

.kbl-stream-card.kbl-stream-locked {
	cursor: default;
}

.kbl-stream-lock-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.7);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	z-index: 5;
}

.kbl-stream-lock-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 16px 20px;
	text-align: center;
	box-shadow: 0 12px 26px rgba(15, 23, 42, 0.2);
	max-width: 320px;
}

.kbl-stream-lock-card p {
	margin: 0 0 12px 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: #1e293b;
}

.kbl-stream-lock-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 8px;
	background: #1e3a5f;
	color: #ffffff !important;
	font-weight: 700;
	text-decoration: none;
}

.kbl-event-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.kbl-event-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	height: 100%;
	align-items: stretch;
}

.kbl-streaming-featured-grid .kbl-event-layout {
	grid-template-columns: 156px minmax(0, 1fr);
	min-height: 0;
}

.kbl-event-thumb {
	position: relative;
	background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
	overflow: hidden;
	height: 100%;
	min-height: 266px;
}

.kbl-streaming-featured-grid .kbl-event-thumb {
	min-height: 100%;
}

.kbl-event-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.9;
}

.kbl-event-info {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: auto;
	min-height: 266px;
}

.kbl-streaming-featured-grid .kbl-event-info {
	padding: 0.86rem 0.92rem 0.82rem;
	min-height: 0;
	gap: 0.72rem;
}

.kbl-event-title-h3 {
	margin: 0;
	font-size: 1.375rem;
	color: var(--text-primary);
	line-height: 1.3;
	font-weight: 700;
}

.kbl-event-title-h3--featured {
	font-size: 1.12rem;
}

.kbl-streaming-featured-grid .kbl-event-title-h3,
.kbl-streaming-featured-grid .kbl-event-title-h3--featured {
	font-size: 0.98rem;
	line-height: 1.24;
}

.kbl-stream-description {
	margin: 0.32rem 0 0.48rem;
	font-size: 0.82rem;
	color: var(--text-secondary);
	line-height: 1.38;
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.kbl-instructor-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 0.75rem;
}

.kbl-instructor-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--color-accent);
}

.kbl-instructor-name {
	margin: 0;
	font-weight: 600;
	color: var(--text-primary);
	font-size: 1rem;
}

.kbl-instructor-role {
	margin: 0;
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.kbl-event-tags {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.kbl-streaming-featured-grid .kbl-instructor-meta {
	gap: 10px;
	margin-top: 0.4rem;
}

.kbl-streaming-featured-grid .kbl-instructor-avatar {
	width: 38px;
	height: 38px;
}

.kbl-streaming-featured-grid .kbl-instructor-name {
	font-size: 0.88rem;
}

.kbl-streaming-featured-grid .kbl-instructor-role {
	font-size: 0.76rem;
}

.kbl-streaming-featured-grid .kbl-event-tags {
	grid-template-columns: 1fr;
	gap: 0.35rem;
	margin-top: 0.38rem;
}

.kbl-streaming-featured-grid .kbl-event-tag {
	font-size: 0.78rem;
}

.kbl-streaming-featured-grid .kbl-stream-details {
	gap: 3px 6px;
	margin: 0.2rem 0 0.15rem;
}

.kbl-streaming-featured-grid .kbl-stream-detail-label,
.kbl-streaming-featured-grid .kbl-stream-detail-value {
	font-size: 0.8rem;
}

.kbl-streaming-featured-grid .kbl-event-footer {
	flex-wrap: wrap;
	gap: 6px;
}

.kbl-streaming-featured-grid .kbl-event-footer .kbl-footer-btn {
	height: 32px;
	min-height: 32px;
	max-height: 32px;
	padding: 0 12px;
	font-size: 0.71rem;
}

.kbl-streaming-featured-grid .kbl-event-footer > .btn-join-live.kbl-footer-btn,
.kbl-streaming-featured-grid .kbl-event-footer > .btn-primary.kbl-footer-btn {
	flex: 1 1 100%;
	width: 100%;
}

.kbl-event-footer__meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	width: 100%;
}

.kbl-event-footer__meta .kbl-footer-btn--meta {
	width: 100%;
	min-width: 0;
	justify-content: center;
	padding: 0 10px;
}

.kbl-event-footer__meta .timer-display.kbl-footer-btn--meta {
	background: var(--bg-section-hover);
	color: var(--text-primary);
	border: 1px solid var(--border-light);
}

.kbl-streaming-featured-grid .badge-live.kbl-footer-btn--meta,
.kbl-streaming-featured-grid .badge-programmed.kbl-footer-btn--meta {
	border-radius: 8px;
	font-size: 0.66rem;
	letter-spacing: 0.04em;
	padding: 0 10px;
}

.kbl-streaming-featured-grid .badge-programmed.kbl-footer-btn--meta {
	background: rgba(30, 58, 95, 0.1);
	color: #1e3a5f;
	border: 1px solid rgba(30, 58, 95, 0.18);
}

.kbl-streaming-featured-grid .kbl-stream-status-overlay {
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	gap: 4px;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 0.48rem;
	letter-spacing: 0.08em;
}

.kbl-streaming-featured-grid .kbl-stream-status-overlay .kbl-live-viewers-count {
	display: none;
}

.kbl-streaming-featured-grid .kbl-stream-status-overlay .kbl-status-dot {
	width: 6px;
	height: 6px;
}

.kbl-streaming-featured-grid .kbl-stream-card.is-programmed .kbl-event-tag span {
	font-size: 0.94rem;
	font-weight: 700;
	color: #1e3a5f;
}

.kbl-stream-card--postponed {
	position: relative;
	overflow: hidden;
}

.kbl-stream-postponed-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(153, 27, 27, 0.75);
	font-size: 0.64rem;
	font-weight: 600;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	z-index: 10;
}

.kbl-event-tag {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.kbl-user-flag {
	font-size: 1.05em;
	margin-right: 4px;
}

.kbl-event-footer {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
}

/* Unified footer button sizing */
.kbl-event-footer .kbl-footer-btn {
	height: 40px;
	min-height: 40px;
	max-height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 16px;
	font-size: 0.8125rem;
	font-weight: 600;
	border-radius: 6px;
	white-space: nowrap;
	box-sizing: border-box;
}

.kbl-event-footer .btn-join-live.kbl-footer-btn,
.kbl-event-footer .btn-primary.kbl-footer-btn {
	flex: 1;
}

.kbl-upcoming-events-grid {
	display: flex;
	flex-wrap: nowrap;
	gap: 1rem;
}

.kbl-upcoming-event-card {
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	transition: all 0.2s;
	position: relative;
	flex: 0 0 calc((100% - 1rem) / 2);
	max-width: calc((100% - 1rem) / 2);
}

.kbl-upcoming-event-card--postponed {
	filter: grayscale(100%);
	opacity: 0.7;
}

.kbl-upcoming-event-card:hover {
	border-color: var(--color-primary);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.kbl-upcoming-event-link {
	display: grid;
	grid-template-columns: 124px minmax(0, 1fr);
	align-items: stretch;
	min-height: 124px;
}

.kbl-upcoming-event-aside {
	display: flex;
	flex-direction: column;
	width: 124px;
	min-width: 124px;
	background: #f8fafc;
	border-right: 1px solid #e2e8f0;
}

.kbl-upcoming-event-card__media {
	position: relative;
	overflow: hidden;
	width: 124px;
	min-width: 124px;
	height: 78px;
}

.kbl-upcoming-event-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kbl-upcoming-event-body {
	padding: 0.68rem 0.76rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.18rem;
}

.kbl-upcoming-event-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(153, 27, 27, 0.75);
	font-size: 0.58rem;
	font-weight: 600;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	z-index: 2;
}

.kbl-upcoming-event-schedule {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 0.1rem;
}

.kbl-upcoming-event-schedule--stacked {
	margin-bottom: 0;
	padding: 8px;
	min-height: 46px;
	align-items: center;
	background: #f8fafc;
}

.kbl-upcoming-event-schedule__time-group {
	padding-left: 10px;
	border-left: 1px solid var(--border-light, #e2e8f0);
	min-width: 0;
}

.kbl-upcoming-event-schedule--stacked .kbl-upcoming-event-schedule__time-group {
	padding-left: 8px;
	flex: 1;
}

.kbl-upcoming-event-schedule__time {
	font-size: 0.8rem;
	color: var(--text-secondary);
	font-weight: 700;
	line-height: 1.2;
}

.kbl-upcoming-event-schedule__abbr {
	font-size: 0.72rem;
	color: var(--text-muted);
	font-weight: 500;
}

.kbl-upcoming-event-schedule__weekday {
	font-size: 0.7rem;
	color: var(--text-muted);
	line-height: 1.2;
}

.kbl-badge-date--pending {
	background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
}

.kbl-badge-date--pending .day,
.kbl-badge-date--pending .month {
	color: #ffffff;
}

.kbl-upcoming-event-title {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--text-primary);
	line-height: 1.2;
}

.kbl-upcoming-event-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.7rem;
	color: var(--text-muted);
	margin-bottom: 0.1rem;
}

.kbl-upcoming-event-description {
	margin: 0;
	font-size: 0.6rem;
	color: var(--text-secondary);
	line-height: 1.28;
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.kbl-badge-date {
	background: #f1f5f9;
	padding: 5px;
	border-radius: 10px;
	text-align: center;
	width: 52px;
	min-width: 52px;
	height: 52px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.kbl-badge-date .day {
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1;
	color: var(--text-primary);
}

.kbl-badge-date .month {
	font-size: 0.72rem;
	margin-top: 1px;
	color: var(--text-secondary);
	font-weight: 700;
}

/* ============================================
   MI CUENTA
   ============================================ */
.kbl-account-code-field {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.kbl-account-code-field__input {
	flex: 1 1 auto;
	min-width: 0;
	background-color: var(--bg-section-hover);
	font-family: monospace;
	font-weight: 600;
	letter-spacing: 2px;
}

.kbl-account-code-field__copy {
	flex: 0 0 auto;
	padding: 0.5rem 1rem;
	white-space: nowrap;
	width: auto;
	min-width: 0;
}

/* Media Query Streaming */
@media (max-width: 1300px) {
	.kbl-streaming-grid {
		grid-template-columns: 1fr;
	}

	.kbl-streaming-featured-grid {
		grid-template-columns: 1fr;
	}

	.kbl-streaming-featured-grid .kbl-event-layout {
		grid-template-columns: 148px minmax(0, 1fr);
	}

	.kbl-upcoming-event-card {
		flex-basis: 100%;
		max-width: 100%;
	}

	.kbl-upcoming-event-link {
		grid-template-columns: 124px minmax(0, 1fr);
	}

	.kbl-upcoming-event-aside {
		width: 124px;
		min-width: 124px;
	}

	.kbl-upcoming-event-card__media {
		width: 124px;
		min-width: 124px;
		height: 78px;
	}
}

@media (max-width: 1100px) {
	.kbl-upcoming-event-link {
		grid-template-columns: 120px minmax(0, 1fr);
	}

	.kbl-upcoming-event-aside {
		width: 120px;
		min-width: 120px;
	}

	.kbl-upcoming-event-card__media {
		width: 120px;
		min-width: 120px;
		height: 76px;
	}

	.kbl-upcoming-event-card {
		flex-basis: 100%;
		max-width: 100%;
	}
}

@media (max-width: 768px) {
	.dashboard-exit-btn {
		display: none;
	}

	.kbl-streaming-featured-grid {
		gap: 0.85rem;
		margin-bottom: 1.25rem;
	}

	.kbl-upcoming-events-header {
		align-items: center;
		flex-direction: row;
		gap: 0.6rem;
	}

	.kbl-stream-scroll-controls {
		width: auto;
		justify-content: flex-end;
		margin-left: 0;
	}

	.kbl-event-layout {
		grid-template-columns: 1fr;
	}

	.kbl-streaming-featured-grid .kbl-event-layout {
		grid-template-columns: 118px minmax(0, 1fr);
	}

	.kbl-event-thumb,
	.kbl-event-info {
		height: auto;
	}
	.kbl-streaming-featured-grid .kbl-event-thumb {
		min-height: 100%;
	}

	.kbl-event-thumb {
		min-height: 190px;
	}

	.kbl-event-info {
		padding: 1rem 0.95rem;
		min-height: 0;
		gap: 0.9rem;
	}

	.kbl-event-title-h3 {
		font-size: 1.05rem;
	}

	.kbl-streaming-featured-grid .kbl-event-info {
		padding: 0.72rem 0.76rem;
		gap: 0.58rem;
	}

	.kbl-streaming-featured-grid .kbl-event-title-h3,
	.kbl-streaming-featured-grid .kbl-event-title-h3--featured {
		font-size: 0.84rem;
	}

	.kbl-streaming-featured-grid .kbl-stream-description {
		font-size: 0.7rem;
		margin: 0.22rem 0 0.36rem;
	}

	.kbl-event-footer__meta {
		gap: 5px;
	}

	.kbl-event-footer__meta .kbl-footer-btn--meta {
		font-size: 0.62rem;
		padding: 0 8px;
	}

	.kbl-event-tags {
		grid-template-columns: 1fr;
		gap: 0.4rem;
	}

	.kbl-event-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.kbl-event-footer .kbl-footer-btn {
		width: 100%;
	}

	.kbl-upcoming-events-grid {
		gap: 0.7rem;
	}

	.kbl-upcoming-event-card {
		flex-basis: 100%;
		max-width: 100%;
	}

	.kbl-upcoming-event-link {
		grid-template-columns: 104px minmax(0, 1fr);
		min-height: 104px;
	}

	.kbl-upcoming-event-aside {
		width: 104px;
		min-width: 104px;
	}

	.kbl-upcoming-event-card__media {
		width: 104px;
		min-width: 104px;
		height: 66px;
	}

	.kbl-upcoming-event-schedule--stacked {
		padding: 6px;
		gap: 6px;
	}

	.kbl-upcoming-event-schedule--stacked .kbl-upcoming-event-schedule__time-group {
		padding-left: 6px;
	}

	.kbl-upcoming-event-body {
		padding: 0.56rem 0.62rem;
		gap: 0.18rem;
	}

	.kbl-upcoming-event-schedule {
		gap: 8px;
	}

	.kbl-upcoming-event-schedule__time-group {
		padding-left: 8px;
	}

	.kbl-upcoming-event-title {
		font-size: 0.76rem;
	}

	.kbl-upcoming-event-description {
		font-size: 0.58rem;
	}

	.kbl-upcoming-event-meta,
	.kbl-upcoming-event-schedule__time,
	.kbl-upcoming-event-schedule__weekday,
	.kbl-streaming-featured-grid .kbl-event-tag,
	.kbl-streaming-featured-grid .kbl-stream-detail-label,
	.kbl-streaming-featured-grid .kbl-stream-detail-value {
		font-size: 0.66rem;
	}

	#section-cursos .kbl-courses-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: auto;
		gap: 0.85rem;
		align-items: start;
	}

	#section-cursos .kbl-courses-section-header {
		align-items: center;
		gap: 0.75rem;
		margin-bottom: 0.85rem;
	}

	#section-cursos .kbl-courses-section-header__copy .section-title {
		margin-bottom: 0.35rem;
		font-size: 1.8rem;
	}

	#section-cursos .kbl-courses-section-header__copy p {
		font-size: 0.88rem;
		line-height: 1.35;
	}

	#section-cursos .kbl-courses-section-header__logo {
		width: 58px;
		height: 58px;
		flex-basis: 58px;
	}

	#section-cursos .kbl-plugin-card {
		min-height: 0;
		height: auto;
		border-radius: 18px;
	}

	#section-cursos .kbl-card-hero {
		height: auto;
		aspect-ratio: 1 / 0.84;
	}

	#section-cursos .kbl-card-body {
		padding: 0.78rem;
		gap: 0.5rem;
	}

	#section-cursos .kbl-card-title-row {
		margin-bottom: 0;
	}

	#section-cursos .kbl-card-title-h3 {
		font-size: 0.94rem;
		line-height: 1.14;
		min-height: calc(1.14em * 2);
	}

	#section-cursos .kbl-card-excerpt {
		margin: 0;
		font-size: 0.72rem;
		line-height: 1.32;
		min-height: calc(1.32em * 2);
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}

	#section-cursos .kbl-course-ratings {
		gap: 0.35rem;
		margin: 0;
		padding: 0.42rem 0.5rem;
		border: 1px solid #e2e8f0;
		border-radius: 10px;
		background: #f8fafc;
	}

	#section-cursos .kbl-rating-label {
		display: none;
	}

	#section-cursos .kbl-rating-stars {
		width: 58px;
		height: 12px;
	}

	#section-cursos .kbl-rating-stars::before,
	#section-cursos .kbl-rating-stars-fill {
		background-size: 12px 12px;
	}

	#section-cursos .kbl-rating-value {
		font-size: 0.72rem;
	}

	#section-cursos .kbl-rating-count {
		font-size: 0.66rem;
	}

	#section-cursos .kbl-card-progress-container {
		margin-bottom: 0;
	}

	#section-cursos .kbl-card-progress-header span:first-child,
	#section-cursos .kbl-card-progress-header .course-progress-text {
		font-size: 0.68rem;
	}

	#section-cursos .kbl-course-action-row {
		grid-template-columns: 1fr;
		gap: 0.45rem;
		margin-top: -0.15rem;
	}

	#section-cursos .kbl-course-enroll-btn {
		height: 36px !important;
		min-height: 36px !important;
		font-size: 0.74rem !important;
		border-radius: 10px !important;
		padding: 6px 10px !important;
	}

	#section-cursos .kbl-card-meta-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem 0.6rem;
		padding-top: 0.65rem;
		margin-top: 0.1rem;
		border-top: 1px dashed #e2e8f0;
	}

	#section-cursos .kbl-card-meta-label,
	#section-cursos .kbl-card-meta-value {
		font-size: 0.68rem;
		line-height: 1.22;
	}

	#section-cursos .kbl-card-meta-item:nth-child(2),
	#section-cursos .kbl-card-meta-item:nth-child(3) {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 0.3rem;
	}

	#section-cursos .kbl-card-meta-item:nth-child(2) .kbl-card-meta-label,
	#section-cursos .kbl-card-meta-item:nth-child(3) .kbl-card-meta-label {
		gap: 0.22rem;
		white-space: nowrap;
	}

	#section-cursos .kbl-card-meta-item:nth-child(2) .kbl-card-meta-value,
	#section-cursos .kbl-card-meta-item:nth-child(3) .kbl-card-meta-value {
		white-space: nowrap;
	}

	#section-cursos .kbl-card-meta-item:nth-child(1),
	#section-cursos .kbl-card-meta-item:nth-child(4),
	#section-cursos .kbl-card-meta-item:nth-child(5),
	#section-cursos .kbl-card-meta-item:nth-child(6) {
		display: none;
	}

	#section-logros {
		padding-bottom: 0.5rem;
	}

	#section-logros .kbl-gamification-ui {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

	#section-logros .kbl-logros-unlocked-strip {
		display: none !important;
		align-items: center;
		gap: 0.45rem;
		overflow-x: auto;
		padding: 0.05rem 0 0.1rem;
		margin: -0.35rem 0 0.05rem;
		scrollbar-width: none;
	}

	#section-logros .kbl-logros-unlocked-strip::-webkit-scrollbar {
		display: none;
	}

	#section-logros .kbl-logros-unlocked-strip__item {
		width: 34px;
		height: 34px;
		border-radius: 999px;
		border: 1px solid rgba(30, 58, 95, 0.16);
		background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
		box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		overflow: hidden;
	}

	#section-logros .kbl-logros-unlocked-strip__item img {
		width: 100%;
		height: 100%;
		object-fit: contain;
	}

	#section-logros .kbl-logros-unlocked-strip__item.is-icon {
		background: rgba(230, 239, 250, 0.95);
		color: #1e3a5f;
	}

	#section-logros .kbl-logros-unlocked-strip__icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 16px;
		height: 16px;
	}

	#section-logros .kbl-logros-unlocked-strip__icon svg {
		width: 16px;
		height: 16px;
	}

	#section-logros .achievements-section.compact,
	#section-logros .crowns-section,
	#section-logros .badges-section {
		margin-bottom: 0;
	}

	#section-logros .achievements-section.compact > .section-title,
	#section-logros .crowns-section > .section-title,
	#section-logros .badges-section > .section-title {
		margin-bottom: 0.8rem;
		font-size: 1.08rem;
		line-height: 1.2;
	}

	#section-logros .gamification-badges-layout,
	#section-logros .crowns-grid,
	#section-logros .badges-grid {
		grid-template-columns: 1fr !important;
		gap: 0.8rem;
	}

	#section-logros .crowns-grid {
		grid-auto-rows: auto !important;
		align-items: start !important;
	}

	#section-logros .badges-grid {
		grid-auto-rows: auto !important;
		align-items: start !important;
	}

	#section-logros .achievements-grid.compact {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 0.72rem;
	}

	#section-logros .gamification-badges-layout {
		align-items: stretch;
	}

	#section-logros .achievement-card,
	#section-logros .crown-card,
	#section-logros .badge-card {
		padding: 0.95rem 1rem !important;
		border: 1.5px dashed #e2e8f0;
		border-radius: 12px;
		background: #ffffff;
		box-shadow: none;
	}

	#section-logros .crown-card.locked,
	#section-logros .badge-card.locked {
		background: #f8fafc;
		border-color: #cbd5e1;
	}

	#section-logros .crown-card:hover,
	#section-logros .badge-card:hover {
		border-color: var(--color-primary, #1e3a5f);
		background: #f1f5f9;
		transform: translateY(-2px);
		box-shadow: none;
	}

	#section-logros .achievement-card {
		display: grid;
		grid-template-columns: 42px minmax(0, 1fr);
		align-items: center;
		justify-content: start;
		gap: 0.6rem;
		text-align: left;
		min-height: 74px;
		padding: 0.28rem 0.72rem !important;
		box-shadow: none;
	}

	#section-logros .achievement-card.locked,
	#section-logros .badge-card.locked,
	#section-logros .crown-card.locked {
		background: #f8fafc;
		opacity: 1;
	}

	#section-logros .ach-icon-wrapper {
		width: 42px;
		height: 42px;
		border-radius: 12px;
		background: rgba(230, 239, 250, 0.95);
		position: relative;
	}

	#section-logros .achievement-card.locked .ach-icon-wrapper {
		opacity: 0.72;
	}

	#section-logros .achievement-card.locked .ach-icon-wrapper::after {
		content: '';
		position: absolute;
		right: -3px;
		bottom: -3px;
		width: 16px;
		height: 16px;
		border-radius: 999px;
		background: #1e3a5f;
		box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' ry='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: center;
		background-size: 9px 9px;
	}

	#section-logros .achievements-grid.compact .ach-icon-wrapper,
	#section-logros .achievements-grid.compact .ach-icon-wrapper .ach-icon {
		width: 42px;
		height: 42px;
		font-size: 18px;
	}

	#section-logros .achievements-grid.compact .ach-icon-wrapper .ach-icon svg {
		width: 18px;
		height: 18px;
	}

	#section-logros .ach-info {
		width: 100%;
		gap: 0.08rem;
		align-items: flex-start;
		text-align: left;
	}

	#section-logros .ach-title,
	#section-logros .achievements-grid.compact .ach-title {
		margin: 0;
		font-size: 0.79rem;
		line-height: 1.06;
	}

	#section-logros .ach-desc,
	#section-logros .achievements-grid.compact .ach-desc {
		display: block;
		margin-top: 0;
		font-size: 0.61rem;
		line-height: 1.1;
		color: #64748b;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	#section-logros .crown-card,
	#section-logros .badge-card {
		gap: 0.95rem;
		align-items: center;
		text-align: left;
		padding-top: 0.28rem !important;
		padding-bottom: 0.28rem !important;
	}

	#section-logros .crown-card {
		padding-top: 0.08rem !important;
		padding-bottom: 0.08rem !important;
		min-height: 0 !important;
		height: auto;
		align-self: start;
	}

	#section-logros .badge-card {
		gap: 0.68rem;
		padding-top: 0.08rem !important;
		padding-bottom: 0.08rem !important;
	}

	#section-logros .crown-badge-wrapper {
		width: 115px;
		height: 115px;
		flex-shrink: 0;
	}

	#section-logros .crown-title {
		min-height: 0;
		margin-bottom: 0.3rem;
		font-size: 1rem;
		line-height: 1.16;
	}

	#section-logros .crown-subtitle {
		margin-bottom: 0.3rem;
		font-size: 0.68rem;
		letter-spacing: 0.08em;
	}

	#section-logros .crown-requirement,
	#section-logros .progress-text {
		font-size: 0.74rem;
	}

	#section-logros .progress-track {
		height: 6px;
		margin-bottom: 0.38rem;
	}

	#section-logros .badge-card {
		min-height: 0 !important;
		height: auto;
		align-items: center;
		align-self: start;
		gap: 0.75rem;
		padding: 10px !important;
	}

	#section-logros .badge-img-wrapper {
		width: 64px;
		height: 64px;
		margin-left: 0;
		flex-shrink: 0;
	}

	#section-logros .badge-progress-ring {
		inset: -5px;
	}

	#section-logros .badge-progress-text {
		display: none;
	}

	#section-logros .badge-title {
		min-height: 0;
		margin: 0;
		font-size: 1.06rem;
		line-height: 0.96;
	}

	#section-logros .badge-details {
		display: flex;
		flex: 1;
		align-items: center;
		justify-content: space-between;
		gap: 0.78rem;
		min-height: 0;
		align-self: center;
		padding-right: 0.24rem;
	}

	#section-logros .kbl-badge-progress-inline {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		order: 2;
		min-width: 40px;
		margin-right: 0.18rem;
		padding: 4px 8px;
		border-radius: 999px;
		background: #1e3a5f;
		color: #ffffff;
		font-size: 0.95rem;
		font-weight: 700;
		line-height: 1;
	}

	#section-logros .badge-card .badge-title {
		order: 1;
		flex: 1;
	}

	#section-logros .gamification-modal-overlay {
		padding: 1rem;
	}

	#section-logros .gamification-modal {
		width: min(100%, 420px);
		padding: 1.35rem 1rem 1rem;
		border-radius: 24px;
	}

	#section-logros .modal-close {
		top: 12px;
		right: 12px;
		width: 34px;
		height: 34px;
		border-radius: 10px;
	}

	#section-logros .modal-body.text-center {
		gap: 0.8rem;
	}

	#section-logros .modal-ach-icon,
	#section-logros .modal-crown-icon {
		width: 82px;
		height: 82px;
		margin-bottom: 0;
	}

	#section-logros .modal-badge-icon {
		width: 118px;
		height: 118px;
		margin: 0 auto;
	}

	#section-logros .modal-title {
		font-size: 1.02rem;
		line-height: 1.24;
	}

	#section-logros .modal-desc {
		font-size: 0.86rem;
		line-height: 1.45;
	}

	#section-logros .modal-cta-placeholder {
		width: 100%;
		margin-top: 0;
		padding: 0.7rem 0.85rem;
		font-size: 0.8rem;
		line-height: 1.35;
	}

	#section-logros .modal-progress-block {
		padding: 0.85rem;
	}

	#section-logros .progress-stats {
		font-size: 0.78rem;
	}
}

@media (max-width: 430px) {
	.content-viewport {
		padding: 0.95rem 0.95rem calc(94px + env(safe-area-inset-bottom, 0px));
	}

	.section-title {
		font-size: 1.38rem;
	}

	#section-cursos .kbl-courses-section-header {
		gap: 0.6rem;
	}

	#section-cursos .kbl-courses-section-header__logo {
		width: 48px;
		height: 48px;
		flex-basis: 48px;
	}

	.kbl-account__brand-header {
		margin-bottom: 0.65rem;
	}

	.kbl-account__brand-logo {
		width: 118px;
	}

	.kbl-account__brand-copy {
		font-size: 0.56rem;
	}

	.kbl-mobile-home-profile {
		padding: 0.95rem 0.95rem 0.9rem;
		border-radius: 20px;
	}

	.kbl-mobile-home-profile .user-avatar {
		width: 68px;
		height: 68px;
	}

	.kbl-mobile-bottom-nav {
		padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
	}

	.kbl-mobile-bottom-nav__track {
		grid-auto-columns: minmax(52px, 1fr);
		gap: 3px;
		padding: 0;
		border-radius: 0;
	}

	.kbl-mobile-bottom-nav__item {
		min-width: 52px;
		padding: 8px 4px;
		font-size: 0.62rem;
	}

	.kbl-account__grid {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	#section-cursos .kbl-courses-grid {
		gap: 0.75rem;
	}

	#section-cursos .kbl-plugin-card {
		border-radius: 16px;
	}

	#section-cursos .kbl-card-body {
		padding: 0.72rem;
		gap: 0.46rem;
	}

	#section-cursos .kbl-card-title-h3 {
		font-size: 0.88rem;
	}

	#section-cursos .kbl-card-excerpt {
		font-size: 0.68rem;
	}

	#section-cursos .kbl-course-ratings {
		padding: 0.38rem 0.46rem;
	}

	#section-cursos .kbl-card-meta-label,
	#section-cursos .kbl-card-meta-value {
		font-size: 0.64rem;
	}

	#section-logros .achievement-card,
	#section-logros .crown-card,
	#section-logros .badge-card {
		padding: 0.9rem 0.9rem 0.92rem !important;
		border-radius: 18px;
	}

	#section-logros .kbl-logros-unlocked-strip {
		gap: 0.4rem;
		margin-top: -0.28rem;
	}

	#section-logros .kbl-logros-unlocked-strip__item {
		width: 32px;
		height: 32px;
	}

	#section-logros .achievement-card {
		grid-template-columns: 38px minmax(0, 1fr);
		min-height: 68px;
		gap: 0.54rem;
		padding-top: 0.24rem !important;
		padding-bottom: 0.24rem !important;
	}

	#section-logros .ach-icon-wrapper,
	#section-logros .achievements-grid.compact .ach-icon-wrapper,
	#section-logros .achievements-grid.compact .ach-icon-wrapper .ach-icon {
		width: 38px;
		height: 38px;
	}

	#section-logros .crown-badge-wrapper,
	#section-logros .badge-img-wrapper {
		width: 78px;
		height: 78px;
	}

	#section-logros .crown-badge-wrapper {
		width: 109px;
		height: 109px;
	}

	#section-logros .crown-card,
	#section-logros .badge-card {
		padding-top: 0.24rem !important;
		padding-bottom: 0.24rem !important;
	}

	#section-logros .crown-card {
		padding-top: 0.06rem !important;
		padding-bottom: 0.06rem !important;
	}

	#section-logros .badge-card {
		padding: 10px !important;
		gap: 0.68rem;
	}

	#section-logros .badge-details {
		gap: 0.68rem;
	}

	#section-logros .badge-title {
		font-size: 0.98rem;
	}

	#section-logros .badge-img-wrapper {
		width: 58px;
		height: 58px;
	}

	#section-logros .gamification-modal {
		padding: 1.3rem 0.92rem 0.95rem;
	}
}

@media (max-width: 390px) {
	.content-viewport {
		padding-left: 0.85rem;
		padding-right: 0.85rem;
	}

	.kbl-mobile-bottom-nav__item {
		font-size: 0.6rem;
	}

	#section-cursos .kbl-courses-grid {
		grid-template-columns: 1fr;
	}

	#section-cursos .kbl-card-hero {
		aspect-ratio: 1 / 0.66;
	}

	#section-cursos .kbl-card-title-h3 {
		font-size: 0.94rem;
	}

	#section-cursos .kbl-course-ratings {
		gap: 0.32rem;
	}

	#section-cursos .kbl-card-meta-grid {
		grid-template-columns: 1fr 1fr;
	}

	#section-logros .achievement-card,
	#section-logros .crown-card,
	#section-logros .badge-card {
		padding-left: 0.82rem !important;
		padding-right: 0.82rem !important;
	}

	#section-logros .kbl-logros-unlocked-strip__item {
		width: 30px;
		height: 30px;
	}

	#section-logros .kbl-logros-unlocked-strip__icon,
	#section-logros .kbl-logros-unlocked-strip__icon svg {
		width: 14px;
		height: 14px;
	}

	#section-logros .achievements-grid.compact {
		gap: 0.62rem;
	}

	#section-logros .crown-card,
	#section-logros .badge-card {
		padding-top: 0.2rem !important;
		padding-bottom: 0.2rem !important;
	}

	#section-logros .crown-card {
		padding-top: 0.04rem !important;
		padding-bottom: 0.04rem !important;
	}

	#section-logros .badge-card {
		padding: 10px !important;
		gap: 0.42rem;
	}

	#section-logros .kbl-badge-progress-inline {
		min-width: 38px;
		margin-right: 0.16rem;
		padding: 4px 7px;
		font-size: 0.88rem;
	}

	#section-logros .achievement-card {
		grid-template-columns: 36px minmax(0, 1fr);
		min-height: 64px;
		padding-top: 0.2rem !important;
		padding-bottom: 0.2rem !important;
	}

	#section-logros .crown-badge-wrapper {
		width: 102px;
		height: 102px;
	}

	#section-logros .badge-title {
		font-size: 0.92rem;
	}

	#section-logros .badge-img-wrapper {
		width: 54px;
		height: 54px;
	}

	#section-logros .ach-icon-wrapper,
	#section-logros .achievements-grid.compact .ach-icon-wrapper,
	#section-logros .achievements-grid.compact .ach-icon-wrapper .ach-icon {
		width: 36px;
		height: 36px;
	}

	#section-logros .achievements-grid.compact .ach-icon-wrapper .ach-icon svg {
		width: 16px;
		height: 16px;
	}

	#section-logros .ach-title,
	#section-logros .achievements-grid.compact .ach-title,
	#section-logros .crown-title,
	#section-logros .badge-title,
	#section-logros .modal-title {
		font-size: 0.92rem;
	}

	#section-logros .ach-desc,
	#section-logros .achievements-grid.compact .ach-desc,
	#section-logros .modal-desc,
	#section-logros .progress-text,
	#section-logros .crown-requirement {
		font-size: 0.74rem;
	}
}

@media (max-width: 480px) {
	.kbl-upcoming-events-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   STREAMING DASHBOARD - VISUAL TUNING ONLY
   Scoped to #section-streaming to avoid cascade regressions.
   ============================================ */
#section-streaming .kbl-streaming-featured-grid {
	grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
	justify-content: flex-start;
	align-items: start;
	gap: 1.25rem;
}

#section-streaming .kbl-streaming-featured-grid .kbl-event-card {
	min-height: 472px;
	max-width: 360px;
	width: 100%;
}

#section-streaming .kbl-streaming-featured-grid .kbl-event-layout {
	grid-template-columns: 1fr;
}

#section-streaming .kbl-streaming-featured-grid .kbl-event-thumb {
	min-height: 192px;
}

#section-streaming .kbl-streaming-featured-grid .kbl-event-info {
	min-height: 280px;
	padding: 1rem 1rem 0.95rem;
	gap: 0.85rem;
}

#section-streaming .kbl-streaming-featured-grid .kbl-event-title-h3,
#section-streaming .kbl-streaming-featured-grid .kbl-event-title-h3--featured {
	font-size: 1.02rem;
	line-height: 1.28;
}

#section-streaming .kbl-streaming-featured-grid .kbl-stream-description {
	margin: 0.35rem 0 0.5rem;
	font-size: 0.79rem;
	line-height: 1.42;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

#section-streaming .kbl-streaming-featured-grid .kbl-event-tags {
	grid-template-columns: 1fr;
	gap: 0.42rem;
}

#section-streaming .kbl-streaming-featured-grid .kbl-event-tag {
	align-items: flex-start;
	gap: 8px;
	font-size: 0.78rem;
	line-height: 1.3;
}

#section-streaming .kbl-streaming-featured-grid .kbl-event-tag svg {
	flex: 0 0 16px;
	margin-top: 1px;
}

#section-streaming .kbl-stream-country-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.28;
	color: var(--color-primary);
	white-space: normal;
	word-break: break-word;
}

#section-streaming .kbl-upcoming-events-grid {
	gap: 1rem;
	align-items: stretch;
}

#section-streaming .kbl-upcoming-event-card {
	flex: 0 0 286px;
	max-width: 286px;
	min-height: 356px;
	border-radius: 14px;
}

#section-streaming .kbl-upcoming-event-link {
	grid-template-columns: 1fr;
	min-height: 100%;
}

#section-streaming .kbl-upcoming-event-aside {
	width: 100%;
	min-width: 0;
	border-right: 0;
	border-bottom: 1px solid #e2e8f0;
	background: #ffffff;
}

#section-streaming .kbl-upcoming-event-card__media {
	width: 100%;
	min-width: 0;
	height: 156px;
}

#section-streaming .kbl-upcoming-event-schedule--stacked {
	padding: 12px 14px;
	min-height: 88px;
	align-items: flex-start;
	gap: 12px;
	background: #ffffff;
}

#section-streaming .kbl-badge-date {
	width: 64px;
	min-width: 64px;
	height: 64px;
	padding: 7px;
	border-radius: 14px;
}

#section-streaming .kbl-badge-date .day {
	font-size: 1.16rem;
}

#section-streaming .kbl-badge-date .month {
	font-size: 0.7rem;
	letter-spacing: 0.04em;
}

#section-streaming .kbl-upcoming-event-schedule__time-group {
	padding-left: 12px;
	border-left: 1px solid rgba(148, 163, 184, 0.28);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	min-width: 0;
	align-self: stretch;
}

#section-streaming .kbl-upcoming-event-schedule__time {
	font-size: 0.84rem;
	line-height: 1.25;
	font-weight: 700;
	color: var(--text-primary);
	white-space: nowrap;
}

#section-streaming .kbl-upcoming-event-schedule__country {
	font-size: 0.74rem;
	line-height: 1.3;
	min-width: 0;
}

#section-streaming .kbl-upcoming-event-schedule__weekday {
	font-size: 0.72rem;
	line-height: 1.25;
	color: var(--text-muted);
	min-width: 0;
}

#section-streaming .kbl-upcoming-event-body {
	padding: 0.82rem 0.9rem 0.92rem;
	justify-content: flex-start;
	gap: 0.35rem;
}

#section-streaming .kbl-upcoming-event-title {
	font-size: 0.9rem;
	line-height: 1.28;
}

#section-streaming .kbl-upcoming-event-description {
	font-size: 0.68rem;
	line-height: 1.35;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

#section-streaming .kbl-upcoming-event-meta {
	align-items: flex-start;
	flex-wrap: wrap;
	row-gap: 4px;
}

@media (max-width: 1024px) {
	#section-streaming .kbl-streaming-featured-grid {
		grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
		justify-content: center;
	}

	#section-streaming .kbl-streaming-featured-grid .kbl-event-card {
		min-height: 428px;
		max-width: 320px;
	}

	#section-streaming .kbl-streaming-featured-grid .kbl-event-thumb {
		min-height: 174px;
	}

	#section-streaming .kbl-streaming-featured-grid .kbl-event-info {
		min-height: 254px;
	}

	#section-streaming .kbl-upcoming-event-card {
		flex-basis: 270px;
		max-width: 270px;
		min-height: 332px;
	}

	#section-streaming .kbl-upcoming-event-card__media {
		height: 144px;
	}
}

@media (max-width: 768px) {
	#section-streaming .kbl-streaming-featured-grid {
		grid-template-columns: minmax(0, 320px);
		justify-content: center;
		gap: 0.85rem;
	}

	#section-streaming .kbl-streaming-featured-grid .kbl-event-card {
		min-height: 392px;
		max-width: 320px;
	}

	#section-streaming .kbl-streaming-featured-grid .kbl-event-thumb {
		min-height: 160px;
	}

	#section-streaming .kbl-streaming-featured-grid .kbl-event-info {
		min-height: 232px;
		padding: 0.85rem 0.85rem 0.88rem;
	}

	#section-streaming .kbl-streaming-featured-grid .kbl-event-title-h3,
	#section-streaming .kbl-streaming-featured-grid .kbl-event-title-h3--featured {
		font-size: 0.96rem;
	}

	#section-streaming .kbl-upcoming-events-grid {
		gap: 0.8rem;
		justify-content: center;
	}

	#section-streaming .kbl-upcoming-event-card {
		flex-basis: 320px;
		max-width: 320px;
		min-height: 244px;
	}

	#section-streaming .kbl-upcoming-event-card__media {
		height: 106px;
	}

	#section-streaming .kbl-upcoming-event-schedule--stacked {
		display: grid;
		grid-template-columns: 52px minmax(0, 1fr);
		align-items: center;
		padding: 9px 11px;
		gap: 8px;
		min-height: 72px;
	}

	#section-streaming .kbl-badge-date {
		width: 52px;
		min-width: 52px;
		height: 52px;
		padding: 6px;
		border-radius: 12px;
	}

	#section-streaming .kbl-badge-date .day {
		font-size: 0.95rem;
	}

	#section-streaming .kbl-badge-date .month {
		font-size: 0.62rem;
		letter-spacing: 0.03em;
	}

	#section-streaming .kbl-upcoming-event-schedule__time-group {
		padding-left: 0;
		border-left: 0;
		gap: 2px;
	}

	#section-streaming .kbl-upcoming-event-schedule__time {
		font-size: 0.75rem;
		line-height: 1.15;
	}

	#section-streaming .kbl-upcoming-event-schedule__country,
	#section-streaming .kbl-upcoming-event-schedule__weekday,
	#section-streaming .kbl-stream-country-label {
		font-size: 0.64rem;
		line-height: 1.15;
	}

	#section-streaming .kbl-upcoming-event-body {
		padding: 0.72rem 0.78rem 0.78rem;
		gap: 0.28rem;
	}

	#section-streaming .kbl-upcoming-event-title {
		font-size: 0.86rem;
		line-height: 1.22;
	}

	#section-streaming .kbl-upcoming-event-description {
		font-size: 0.64rem;
		line-height: 1.28;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}
}

/* ============================================
   TABLERO - Mini tarjetas de Transmisiones
   ============================================ */
.kbl-streams-preview-card {
	margin-top: 1rem;
}

.kbl-streams-preview-grid {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1rem;
}

.kbl-stream-mini-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.875rem 1rem;
	background: var(--bg-secondary, #f8fafc);
	border: 1px solid var(--border-light, #e2e8f0);
	border-radius: 10px;
	transition: all 0.2s ease;
}

.kbl-stream-mini-card:hover {
	background: var(--bg-tertiary, #f1f5f9);
	border-color: var(--border-medium, #cbd5e1);
}

.kbl-stream-mini-card.is-live {
	background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.04) 100%);
	border-color: rgba(239, 68, 68, 0.25);
	cursor: pointer;
}

.kbl-stream-mini-card.is-live:hover {
	background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(220, 38, 38, 0.08) 100%);
	border-color: rgba(239, 68, 68, 0.4);
}

.kbl-stream-mini-card.is-programmed {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(37, 99, 235, 0.03) 100%);
	border-color: rgba(59, 130, 246, 0.2);
}

.kbl-stream-mini-badge {
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.kbl-stream-mini-badge.live {
	background: #ef4444;
	color: white;
	animation: pulse-live 1.5s infinite;
}

.kbl-stream-mini-badge.programmed {
	background: var(--color-primary, #1e3a5f);
	color: white;
}

@keyframes pulse-live {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.7; }
}

.kbl-stream-mini-info {
	flex: 1;
	min-width: 0;
}

.kbl-stream-mini-info h4 {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--text-primary, #1e293b);
	margin: 0 0 0.25rem 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kbl-stream-mini-meta {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.75rem;
	color: var(--text-secondary, #64748b);
}

.kbl-stream-mini-meta svg {
	flex-shrink: 0;
}

.kbl-see-all-link {
	display: block;
	margin-top: 1rem;
	font-size: 0.8125rem;
	color: var(--color-primary, #1e3a5f);
	text-decoration: none;
	font-weight: 500;
	text-align: right;
}

.kbl-see-all-link:hover {
	text-decoration: underline;
}

/* ============================================
   MEMBERSHIP LOCK STYLES
   ============================================ */

/* Sidebar nav item locked state */
.nav-item--locked {
	opacity: 0.7;
	position: relative;
}

.nav-item--locked:hover {
	opacity: 0.85;
}

.nav-item--locked span:first-of-type {
	color: #94a3b8;
}

.nav-item-lock {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	margin-left: 8px;
	color: #94a3b8;
	flex-shrink: 0;
}

.nav-item--locked .nav-item-lock svg {
	width: 12px;
	height: 12px;
}

/* Locked section overlay */
.section--locked {
	position: relative;
	min-height: 400px;
}

.section--locked > *:not(.kbl-locked-overlay) {
	filter: grayscale(100%) blur(1.3px);
	opacity: 0.55;
	pointer-events: none;
	-webkit-user-select: none;
	user-select: none;
}

.section--locked > .kbl-dashboard-mobile-nav {
	filter: none;
	opacity: 1;
	pointer-events: auto;
	-webkit-user-select: auto;
	user-select: auto;
}

/* El título no debería estar tan borroso */
.section--locked > .section-title {
	filter: grayscale(100%) blur(1px);
	opacity: 0.45;
}

/* Locked card (tarjeta individual bloqueada) - comportamiento diferente */
.kbl-card--locked {
	position: relative;
}

/* Tarjeta se ve normal hasta que haces hover */
.kbl-card--locked:hover {
	filter: grayscale(100%);
}

.kbl-card--locked .kbl-locked-overlay {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	background: rgba(255, 255, 255, 0.92);
}

.kbl-card--locked:hover .kbl-locked-overlay {
	opacity: 1;
	pointer-events: all;
}

.kbl-card--locked:hover .kbl-card-info > * {
	pointer-events: none;
	-webkit-user-select: none;
	user-select: none;
}

/* Ocultar botón solo en tarjeta bloqueada */
.kbl-card--locked .kbl-locked-message .kbl-btn-upgrade {
	display: none;
}

/* Mensaje más pequeño para tarjeta */
.kbl-card--locked .kbl-locked-message {
	padding: 1rem;
	max-width: 250px;
	background: transparent;
	box-shadow: none;
}

/* OVERLAY COMPACTO - para tarjetas pequeñas */
.kbl-locked-overlay--compact {
	align-items: center !important;
	padding-top: 0 !important;
	background: rgba(255, 255, 255, 0.85) !important;
	-webkit-backdrop-filter: blur(6px) !important;
	backdrop-filter: blur(6px) !important;
}

.kbl-locked-message--compact {
	padding: 1rem 1.25rem !important;
	max-width: 240px !important;
	width: auto !important;
	background: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

.kbl-card--locked .kbl-locked-message.kbl-locked-message--compact h3 {
	font-size: 1rem !important;
	color: #2563eb !important;
	margin: 0 0 0.4rem 0 !important;
	font-weight: 700 !important;
}

.kbl-card--locked .kbl-locked-message.kbl-locked-message--compact p {
	font-size: 0.8rem !important;
	color: #1d4ed8 !important;
	margin: 0 !important;
	line-height: 1.4 !important;
}

.kbl-card--locked .kbl-locked-message svg {
	width: 32px;
	height: 32px;
	margin-bottom: 0.5rem;
}

.kbl-card--locked .kbl-locked-message h3 {
	font-size: 0.95rem;
	margin-bottom: 0.25rem;
}

.kbl-card--locked .kbl-locked-message p {
	font-size: 0.8rem;
	margin-bottom: 0;
}

.kbl-locked-overlay {
	position: absolute;
	inset: 0;
	background: rgba(248, 250, 252, 0.5);
	-webkit-backdrop-filter: blur(1px);
	backdrop-filter: blur(1px);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 120px;
	z-index: 100;
	cursor: pointer;
}

.kbl-locked-message {
	text-align: center;
	padding: 2rem 2.5rem;
	width: 360px;
	max-width: 90%;
	background: rgba(255, 255, 255, 0.98);
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.9);
	animation: kbl-locked-fade-in 0.3s ease-out;
}

@keyframes kbl-locked-fade-in {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(10px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.kbl-locked-message svg {
	color: var(--color-primary, #1e3a5f);
	margin-bottom: 1rem;
	width: 56px;
	height: 56px;
	opacity: 0.9;
}

.kbl-locked-message h3 {
	font-size: 1.35rem;
	color: var(--text-primary, #1e293b);
	margin: 0 0 0.75rem 0;
	font-weight: 700;
}

.kbl-locked-message p {
	color: var(--text-secondary, #64748b);
	margin: 0 0 1.25rem 0;
	font-size: 0.95rem;
	line-height: 1.5;
}

.kbl-locked-overlay--member {
	background: rgba(30, 58, 95, 0.36);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.kbl-locked-message--member {
	background: #ffffff;
	border: 1px solid rgba(30, 58, 95, 0.12);
	color: #0f2746;
	box-shadow: 0 16px 40px rgba(15, 39, 70, 0.18), 0 4px 14px rgba(15, 39, 70, 0.1);
}

.kbl-locked-message--member h3 {
	color: #0f2746;
}

.kbl-locked-message--member p {
	color: #334155;
}

.kbl-locked-message--member svg {
	color: #1e3a5f;
}

.kbl-locked-message--member .kbl-btn-upgrade {
	background: #1e3a5f;
	color: #ffffff !important;
	border-color: #1e3a5f;
}

.kbl-locked-message--member .kbl-btn-upgrade:hover {
	background: #2d4a6f;
	color: #ffffff !important;
}

.kbl-locked-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 0.75rem;
	border: 2px solid rgba(30, 58, 95, 0.25);
	box-shadow: 0 8px 18px rgba(15, 39, 70, 0.2);
}

.kbl-locked-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kbl-btn-upgrade {
	background: #1e3a5f;
	color: #ffffff !important;
	border: 2px solid #1e3a5f;
	padding: 0.6rem 1.5rem;
	border-radius: 6px;
	font-weight: 500;
	font-size: 0.85rem;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.kbl-btn-upgrade:visited {
	color: #ffffff !important;
}

.kbl-btn-upgrade:hover {
	background: #2d4a6f;
	color: #ffffff !important;
	transform: translateY(-1px);
}

.kbl-btn-upgrade:focus,
.kbl-btn-upgrade:active {
	color: #ffffff !important;
}

.kbl-btn-upgrade:active {
	transform: translateY(0);
}

/* ============================================
   MEMBRESÍA SECTION - MAESTRO CARD
   ============================================ */
.kbl-membresia-header {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin-bottom: 2rem;
	gap: 1.5rem;
}

.kbl-maestro-card {
	display: flex;
	align-items: center;
	gap: 14px;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 14px 20px;
	min-width: 260px;
}

.kbl-maestro-avatar-wrapper {
	position: relative;
	width: 56px;
	height: 56px;
	flex-shrink: 0;
}

.kbl-maestro-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kbl-maestro-badge {
	position: absolute;
	bottom: -4px;
	right: -4px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: #fbbf24;
}

.kbl-maestro-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.kbl-membresia-month-badge {
	display: none;
}

.kbl-maestro-name {
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--text-primary, #1e293b);
}

.kbl-maestro-role {
	font-size: 0.8rem;
	color: var(--color-primary, #1e3a5f);
	font-weight: 500;
	background: rgba(30, 58, 95, 0.1);
	padding: 3px 10px;
	border-radius: 10px;
}

/* ============================================
   BIRTHDAY CELEBRATION
   ============================================ */
.kbl-birthday-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	animation: kblBirthdayOverlayIn 0.55s ease-out;
	background:
		radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 34%),
		radial-gradient(circle at bottom right, rgba(15, 39, 70, 0.18), transparent 38%),
		rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.kbl-birthday-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(227, 238, 251, 0.82) 100%);
}

.kbl-birthday-overlay__confetti {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 1;
}

.kbl-birthday-confetti-piece {
	position: absolute;
	top: -8%;
	opacity: 0.96;
	animation: kblBirthdayConfettiFall linear infinite;
	box-shadow: 0 8px 16px rgba(15, 39, 70, 0.12);
}

.kbl-birthday-confetti-piece--circle {
	border-radius: 999px;
}

.kbl-birthday-confetti-piece--square {
	border-radius: 4px;
}

.kbl-birthday-overlay__shell {
	position: relative;
	z-index: 2;
	width: min(1120px, 100%);
	margin: auto;
	display: grid;
	gap: 28px;
	padding: 44px;
	border-radius: 32px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 255, 0.98) 52%, rgba(232, 240, 251, 0.98) 100%);
	border: 1px solid rgba(15, 39, 70, 0.08);
	box-shadow: 0 32px 80px rgba(15, 39, 70, 0.22);
	overflow: hidden;
}

.kbl-birthday-overlay__shell::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 12px;
	background: linear-gradient(90deg, #0f2746 0%, #1e3a5f 45%, #60a5fa 100%);
}

.kbl-birthday-overlay__intro {
	max-width: 760px;
	text-align: center;
	justify-self: center;
}

.kbl-birthday-overlay__eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	margin-bottom: 16px;
	border-radius: 999px;
	background: rgba(15, 39, 70, 0.08);
	color: #0f2746;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.kbl-birthday-overlay__title {
	margin: 0;
	color: #0f2746;
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: clamp(2.3rem, 5vw, 4.5rem);
	line-height: 0.96;
	letter-spacing: -0.05em;
	font-weight: 800;
	text-wrap: balance;
}

.kbl-birthday-overlay__lead {
	margin: 18px auto 0;
	max-width: 640px;
	color: #38506e;
	font-size: 1.08rem;
	line-height: 1.7;
}

.kbl-birthday-overlay__stage {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 24px;
	align-items: stretch;
}

.kbl-birthday-overlay__profile-card,
.kbl-birthday-message-card {
	position: relative;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 18px 38px rgba(15, 39, 70, 0.12);
}

.kbl-birthday-overlay__profile-card {
	display: grid;
	align-content: center;
	justify-items: center;
	padding: 32px 26px;
	background: linear-gradient(180deg, #123156 0%, #0f2746 100%);
	color: #ffffff;
}

.kbl-birthday-overlay__profile-frame {
	width: min(260px, 62vw);
	height: min(260px, 62vw);
	padding: 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(186, 209, 240, 0.95) 100%);
	box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
	margin-bottom: 22px;
}

.kbl-birthday-overlay__profile-photo {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 6px solid #ffffff;
}

.kbl-birthday-overlay__profile-copy {
	text-align: center;
	max-width: 360px;
}

.kbl-birthday-overlay__profile-label {
	display: inline-flex;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.kbl-birthday-overlay__profile-name {
	display: block;
	font-size: clamp(1.7rem, 3vw, 2.5rem);
	line-height: 1.05;
	letter-spacing: -0.04em;
	margin-bottom: 12px;
}

.kbl-birthday-overlay__profile-note {
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.86);
}

.kbl-birthday-message-card {
	padding: 28px;
	background: linear-gradient(135deg, #f8fbff 0%, #edf4fc 100%);
	border: 1px solid rgba(15, 39, 70, 0.08);
	color: #0f2746;
}

.kbl-birthday-message-card__header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid rgba(15, 39, 70, 0.1);
}

.kbl-birthday-message-card__avatar-wrap {
	position: relative;
	width: 76px;
	height: 76px;
	flex: 0 0 auto;
}

.kbl-birthday-message-card__avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid #ffffff;
	box-shadow: 0 8px 20px rgba(15, 39, 70, 0.12);
	background: #fff;
}

.kbl-birthday-message-card__badge {
	position: absolute;
	right: -6px;
	bottom: -6px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #ffffff;
	border: 2px solid #ffffff;
	box-shadow: 0 8px 18px rgba(15, 39, 70, 0.16);
}

.kbl-birthday-message-card__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.kbl-birthday-message-card__eyebrow {
	font-size: 0.77rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #4b6483;
}

.kbl-birthday-message-card__name {
	font-size: 1.32rem;
	line-height: 1.1;
	font-weight: 700;
}

.kbl-birthday-message-card__role {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(15, 39, 70, 0.08);
	color: #1e3a5f;
	font-size: 0.8rem;
	font-weight: 600;
}

.kbl-birthday-message-card__body p {
	margin: 0 0 14px;
	font-size: 1rem;
	line-height: 1.8;
	color: #304866;
}

.kbl-birthday-message-card__body p:last-child {
	margin-bottom: 0;
}

.kbl-birthday-message-card__signature {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid rgba(15, 39, 70, 0.1);
}

.kbl-birthday-message-card__signature img {
	height: 72px;
	width: auto;
	display: block;
	filter: brightness(0) saturate(100%) invert(13%) sepia(42%) saturate(972%) hue-rotate(177deg) brightness(92%) contrast(94%);
}

.kbl-birthday-overlay__actions {
	display: flex;
	justify-content: center;
}

.kbl-birthday-overlay__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	padding: 14px 28px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, #0f2746 0%, #1e3a5f 100%);
	color: #ffffff;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	box-shadow: 0 18px 30px rgba(15, 39, 70, 0.22);
	transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.kbl-birthday-overlay__button:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
	box-shadow: 0 22px 36px rgba(15, 39, 70, 0.28);
}

@media (min-width: 1025px) and (max-width: 1366px) {
	.kbl-birthday-overlay {
		padding: 20px;
	}

	.kbl-birthday-overlay__shell {
		width: min(1040px, 100%);
		gap: 22px;
		padding: 38px 34px 30px;
	}

	.kbl-birthday-overlay__title {
		font-size: clamp(2.5rem, 4.4vw, 3.9rem);
	}

	.kbl-birthday-overlay__stage {
		grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
		gap: 20px;
	}

	.kbl-birthday-overlay__profile-card {
		padding: 28px 22px;
	}

	.kbl-birthday-overlay__profile-frame {
		width: 220px;
		height: 220px;
	}

	.kbl-birthday-message-card {
		padding: 24px;
	}
}

.kbl-birthday-overlay.fade-out {
	animation: kblBirthdayOverlayOut 0.8s ease forwards;
}

.avatar-wrapper.birthday-mode {
	animation: none;
}

.avatar-wrapper.birthday-mode .user-avatar {
	border-color: #0f2746;
	box-shadow: 0 0 0 6px rgba(15, 39, 70, 0.08), 0 16px 26px rgba(15, 39, 70, 0.16);
}

.avatar-badge.birthday-badge {
	background: linear-gradient(135deg, #0f2746 0%, #1e3a5f 100%) !important;
	border-color: #ffffff;
	box-shadow: 0 10px 18px rgba(15, 39, 70, 0.18);
	animation: none;
}

@keyframes kblBirthdayOverlayIn {
	from {
		opacity: 0;
		transform: scale(0.98);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes kblBirthdayOverlayOut {
	from {
		opacity: 1;
		transform: scale(1);
	}
	to {
		opacity: 0;
		transform: scale(1.02);
	}
}

@keyframes kblBirthdayConfettiFall {
	0% {
		transform: translate3d(0, -10vh, 0) rotate(0deg);
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	100% {
		transform: translate3d(var(--kbl-confetti-x, 0px), 112vh, 0) rotate(var(--kbl-confetti-rotation, 540deg));
		opacity: 0.9;
	}
}

@media (max-width: 1024px) {
	.kbl-birthday-overlay {
		padding: 18px;
		align-items: flex-start;
	}

	.kbl-birthday-overlay__shell {
		width: min(820px, 100%);
		padding: 34px 22px 24px;
		gap: 22px;
		border-radius: 24px;
	}

	.kbl-birthday-overlay__intro {
		max-width: 680px;
	}

	.kbl-birthday-overlay__stage {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.kbl-birthday-overlay__profile-card,
	.kbl-birthday-message-card {
		border-radius: 24px;
	}

	.kbl-birthday-message-card {
		padding: 22px;
	}

	.kbl-birthday-overlay__profile-frame {
		width: min(228px, 48vw);
		height: min(228px, 48vw);
	}
}

@media (max-width: 640px) {
	.kbl-birthday-overlay {
		align-items: flex-start;
		padding: 0;
	}

	.kbl-birthday-overlay__shell {
		width: 100%;
		min-height: 100dvh;
		gap: 18px;
		padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px));
		border-radius: 0;
		justify-content: flex-start;
	}

	.kbl-birthday-overlay__intro {
		max-width: none;
	}

	.kbl-birthday-overlay__eyebrow {
		margin-bottom: 12px;
		font-size: 0.74rem;
		letter-spacing: 0.12em;
	}

	.kbl-birthday-overlay__title {
		font-size: clamp(2rem, 9vw, 3rem);
		line-height: 1;
	}

	.kbl-birthday-overlay__profile-note,
	.kbl-birthday-message-card__body p {
		font-size: 0.96rem;
		line-height: 1.7;
	}

	.kbl-birthday-overlay__profile-card {
		padding: 22px 18px;
	}

	.kbl-birthday-overlay__profile-frame {
		width: min(190px, 56vw);
		height: min(190px, 56vw);
		margin-bottom: 18px;
	}

	.kbl-birthday-message-card__header {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 12px;
		margin-bottom: 18px;
		padding-bottom: 16px;
	}

	.kbl-birthday-message-card__meta {
		align-items: center;
	}

	.kbl-birthday-message-card__role {
		align-self: center;
	}

	.kbl-birthday-message-card__body p {
		text-align: center;
	}

	.kbl-birthday-message-card__signature img {
		height: 60px;
		margin: 0 auto;
	}

	.kbl-birthday-overlay__button {
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 380px) {
	.kbl-birthday-overlay__shell {
		padding-left: 14px;
		padding-right: 14px;
	}

	.kbl-birthday-overlay__title {
		font-size: clamp(1.78rem, 10.2vw, 2.4rem);
	}

	.kbl-birthday-overlay__profile-name,
	.kbl-birthday-message-card__name {
		font-size: 1.45rem;
	}

	.kbl-birthday-message-card {
		padding: 18px;
	}
}

/* ============================================
   ACTIVIDAD RECIENTE - TABLERO
   ============================================ */
.kbl-activity-card {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin-top: 2rem;
}

.kbl-activity-card .kbl-card-title {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-secondary, #64748b);
	margin-bottom: 0.25rem;
}

.kbl-activity-card .kbl-card-desc {
	font-size: 0.95rem;
	color: var(--text-primary, #1e293b);
	font-style: italic;
	margin: 0;
}

.kbl-dashboard-membership-card-mobile {
	margin-bottom: 1rem;
	position: relative;
	padding: 0.78rem 0.88rem 0.82rem;
	padding-right: 2.1rem;
	border: 1px solid rgba(30, 58, 95, 0.12);
	border-radius: 16px;
	background: #ffffff;
	box-shadow: none;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 0.75rem;
	row-gap: 0.28rem;
	align-items: center;
}

.kbl-dashboard-membership-card-mobile__close {
	position: absolute;
	top: 0.62rem;
	right: 0.64rem;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 1px solid rgba(148, 163, 184, 0.38);
	border-radius: 5px;
	background: #ffffff;
	color: #64748b;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	pointer-events: auto;
	touch-action: manipulation;
	transition: none;
}

.kbl-dashboard-membership-card-mobile__close:hover,
.kbl-dashboard-membership-card-mobile__close:focus-visible {
	background: #ffffff;
	border-color: rgba(148, 163, 184, 0.38);
	color: #64748b;
	box-shadow: none;
	outline: none;
}

.kbl-dashboard-membership-card-mobile__eyebrow {
	grid-column: 1;
	margin: 0;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #1e3a5f;
	opacity: 0.72;
}

.kbl-dashboard-membership-card-mobile__title {
	grid-column: 1;
	margin: 0;
	font-size: 0.94rem;
	line-height: 1.16;
	color: #0f2746;
}

.kbl-dashboard-membership-card-mobile__copy {
	grid-column: 1;
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.28;
	color: #475569;
}

.kbl-dashboard-membership-card-mobile .kbl-dashboard-membership-cta {
	grid-column: 2;
	grid-row: 2 / span 2;
	width: auto;
	max-width: 100%;
	min-height: 32px;
	padding: 7px 10px;
	gap: 6px;
	align-self: center;
	justify-content: center;
	text-align: center;
	border-width: 1px;
	border-radius: 8px;
	background: #1e3a5f;
	border-color: #1e3a5f;
	color: #ffffff !important;
	box-shadow: none;
	animation: none;
	font-size: 0.72rem;
	line-height: 1;
	transform: none;
	transition: none;
}

.kbl-dashboard-membership-card-mobile .kbl-dashboard-membership-cta .kbl-membership-cta-shared__icon,
.kbl-dashboard-membership-card-mobile .kbl-dashboard-membership-cta .kbl-membership-cta-shared__icon svg {
	width: 12px;
	height: 12px;
}

.kbl-dashboard-membership-card-mobile .kbl-dashboard-membership-cta:hover,
.kbl-dashboard-membership-card-mobile .kbl-dashboard-membership-cta:focus-visible,
.kbl-dashboard-membership-card-mobile .kbl-dashboard-membership-cta:active,
.kbl-dashboard-membership-card-mobile .kbl-dashboard-membership-cta:visited {
	background: #1e3a5f;
	border-color: #1e3a5f;
	color: #ffffff !important;
	box-shadow: none;
	transform: none;
	outline: none;
}

@media (max-width: 390px) {
	.kbl-dashboard-membership-card-mobile {
		grid-template-columns: 1fr;
		padding-right: 2rem;
		row-gap: 0.3rem;
	}

	.kbl-dashboard-membership-card-mobile__title {
		font-size: 0.9rem;
	}

	.kbl-dashboard-membership-card-mobile__copy {
		font-size: 0.76rem;
	}

	.kbl-dashboard-membership-card-mobile .kbl-dashboard-membership-cta {
		grid-column: 1;
		grid-row: auto;
		justify-self: start;
		align-self: start;
		padding: 7px 10px;
		font-size: 0.71rem;
	}
}

@media (min-width: 1025px) {
	#section-tablero .kbl-tablero-desktop-intro {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 1.35rem;
		padding: 1.15rem 1.2rem;
		margin-top: 0.9rem;
	}

	#section-tablero .kbl-tablero-desktop-intro__activity.kbl-activity-card--desktop-inline {
		margin: 0;
		padding-left: 0 !important;
		flex: 0 1 auto;
		min-width: 0;
		max-width: 560px;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	#section-tablero .kbl-tablero-desktop-intro__divider {
		flex: 0 0 1px;
		width: 1px;
		height: 100%;
		min-height: 72px;
		background: rgba(148, 163, 184, 0.22);
	}

	#section-tablero .kbl-tablero-desktop-intro__welcome.kbl-dashboard-welcome-card {
		margin: 0;
		padding: 0;
		flex: 0 1 auto;
		min-width: 0;
		max-width: 620px;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	#section-tablero .kbl-dashboard-membership-cta-wrap {
		margin-top: 0.95rem;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.8rem 1rem;
	}

	#section-tablero .kbl-dashboard-membership-copy {
		margin: 0;
		max-width: 480px;
		font-size: 0.95rem;
		line-height: 1.45;
		color: #475569;
	}

	#section-tablero .kbl-dashboard-membership-cta {
		flex: 0 0 auto;
	}

	#section-tablero .kbl-tablero-desktop-intro__activity.kbl-activity-card--desktop-inline .kbl-card-title {
		margin-bottom: 0.38rem;
	}

	#section-tablero .kbl-tablero-desktop-intro__activity.kbl-activity-card--desktop-inline .kbl-card-desc {
		font-size: 1.08rem;
		line-height: 1.2;
		font-style: italic;
		color: var(--text-primary, #1e293b);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

/* ============================================
   CALENDARIO PÚBLICO - MEMBRESÍA
   ============================================ */
.kbl-public-calendar-wrapper {
	width: 100%;
}

.kbl-public-calendar-wrapper .calendar-container {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	overflow: hidden;
}

.kbl-public-calendar-wrapper .calendar-header-bar {
	padding: 0.75rem 1rem;
}

.kbl-public-calendar-wrapper .calendar-main {
	padding: 1rem;
}

.kbl-public-calendar-wrapper .calendar-grid {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.kbl-public-calendar-wrapper .calendar-header-row {
	margin-bottom: 0.5rem;
}

.kbl-public-calendar-wrapper .calendar-day-header {
	padding: 0.5rem;
	font-size: 0.75rem;
}

.kbl-public-calendar-wrapper .calendar-week-row {
	min-height: 140px;
}

.kbl-public-calendar-wrapper .calendar-cell {
	min-height: 130px;
	padding: 0.5rem;
}

/* ============================================
   TARJETAS PÚBLICAS
   ============================================ */
.kbl-public-calendar-wrapper .activity-card {
	background: white;
	border-radius: 6px;
	padding: 0.5rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	border-left: 3px solid #64748b;
	margin-bottom: 0.25rem;
}

.kbl-public-calendar-wrapper .activity-card.event-red { border-left-color: #ef4444; }
.kbl-public-calendar-wrapper .activity-card.event-blue { border-left-color: #3b82f6; }
.kbl-public-calendar-wrapper .activity-card.event-green { border-left-color: #22c55e; }
.kbl-public-calendar-wrapper .activity-card.event-purple { border-left-color: #a855f7; }
.kbl-public-calendar-wrapper .activity-card.event-orange { border-left-color: #f97316; }

/* TÍTULO */
.kbl-public-calendar-wrapper .activity-badge {
	font-size: 0.75rem;
	font-weight: 700;
}

/* DESCRIPCIÓN */
.kbl-public-calendar-wrapper .activity-subtitle {
	font-size: 10px;
	line-height: 1.3;
	color: #475569;
	margin: 0.25rem 0;
}

/* BANDERAS Y HORARIOS */
.kbl-public-calendar-wrapper .activity-schedule-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-top: 0.25rem;
}

.kbl-public-calendar-wrapper .schedule-item {
	display: flex;
	align-items: center;
	gap: 0.2rem;
	background: #e2e8f0;
	padding: 0.15rem 0.35rem;
	border-radius: 4px;
}

.kbl-public-calendar-wrapper .schedule-flag {
	font-size: 0.9rem;
}

.kbl-public-calendar-wrapper .schedule-time {
	font-size: 0.75rem;
	font-weight: 700;
	color: #1e3a5f;
}

/* BOTONES PROFESIONALES - AZUL/BLANCO CON HOVER */
.kbl-public-calendar-wrapper .activity-footer {
	display: flex;
	gap: 0.35rem;
	margin-top: 0.35rem;
}

.kbl-public-calendar-wrapper .btn-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: #3b82f6;
	border: 2px solid #3b82f6;
	color: white;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.kbl-public-calendar-wrapper .btn-action svg {
	width: 14px;
	height: 14px;
}

.kbl-public-calendar-wrapper .btn-action:hover {
	background: white;
	color: #3b82f6;
	border-color: #3b82f6;
}

.kbl-public-calendar-wrapper .btn-action.btn-youtube {
	background: #ef4444;
	border-color: #ef4444;
}

.kbl-public-calendar-wrapper .btn-action.btn-youtube:hover {
	background: white;
	color: #ef4444;
	border-color: #ef4444;
}

.kbl-public-calendar-wrapper .btn-action.btn-disabled {
	background: #e2e8f0;
	border-color: #e2e8f0;
	color: #94a3b8;
	cursor: not-allowed;
	opacity: 0.6;
}

.kbl-public-calendar-wrapper .btn-action.btn-disabled:hover {
	background: #e2e8f0;
	color: #94a3b8;
}

/* Ocultar preview de recursos */
.kbl-public-calendar-wrapper .activity-resources-preview {
	display: none;
}

/* ============================================
   MODAL DE RECURSOS - POPUP DESCARGA
   ============================================ */
.resources-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.resources-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
}

.resources-modal-content {
	position: relative;
	background: white;
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	max-width: 480px;
	width: 90%;
	max-height: 80vh;
	overflow: hidden;
	animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.resources-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
	color: white;
}

.resources-modal-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1rem;
	font-weight: 600;
}

.resources-modal-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background: rgba(255,255,255,0.1);
	border: none;
	color: white;
	cursor: pointer;
	transition: background 0.2s;
}

.resources-modal-close:hover {
	background: rgba(255,255,255,0.2);
}

.resources-modal-body {
	padding: 1rem;
	max-height: 400px;
	overflow-y: auto;
}

.resource-download-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	margin-bottom: 0.5rem;
	text-decoration: none;
	color: #1e293b;
	transition: all 0.2s;
}

.resource-download-item:hover {
	background: #f1f5f9;
	border-color: #3b82f6;
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.resource-icon {
	flex-shrink: 0;
}

.resource-name {
	flex: 1;
	font-size: 0.875rem;
	font-weight: 500;
	word-break: break-all;
}

.resource-download-btn {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.75rem;
	background: #3b82f6;
	color: white;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}

.resource-download-item:hover .resource-download-btn {
	background: #2563eb;
}

.no-resources {
	text-align: center;
	color: #64748b;
	padding: 2rem;
	font-size: 0.875rem;
}

.calendar-header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
	color: white;
}

.kbl-public-calendar-wrapper .calendar-header-bar {
	padding: 0.5rem 1rem;
	flex-shrink: 0;
}

.calendar-header-left {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.calendar-month-display {
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
}

.calendar-month {
	font-size: 1.5rem;
	font-weight: 700;
}

.calendar-year {
	font-size: 1rem;
	font-weight: 400;
	opacity: 0.8;
}

.calendar-selector-wrapper {
	position: relative;
}

.calendar-selector-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: rgba(255,255,255,0.15);
	border: 1px solid rgba(255,255,255,0.25);
	border-radius: 8px;
	color: white;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.2s;
}

.calendar-selector-btn:hover {
	background: rgba(255,255,255,0.25);
}

.selector-icon {
	width: 18px;
	height: 18px;
	opacity: 0.9;
}

.selector-chevron {
	width: 14px;
	height: 14px;
	opacity: 0.7;
}

.calendar-selector-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 220px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.15);
	z-index: 100;
	overflow: hidden;
}

.dropdown-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1rem;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.dropdown-title {
	font-size: 0.75rem;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.dropdown-count {
	font-size: 0.7rem;
	color: #94a3b8;
}

.dropdown-list {
	max-height: 200px;
	overflow-y: auto;
}

.dropdown-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	padding: 0.65rem 1rem;
	border: none;
	background: transparent;
	text-align: left;
	cursor: pointer;
	font-size: 0.875rem;
	color: #1e293b;
	transition: background 0.15s;
}

.dropdown-item:hover {
	background: #f1f5f9;
}

.dropdown-item.active {
	background: #e0f2fe;
	color: #0369a1;
}

.item-icon {
	width: 16px;
	height: 16px;
	color: #64748b;
}

.item-check {
	margin-left: auto;
	width: 16px;
	height: 16px;
	color: #0ea5e9;
}

/* Calendar Grid */
.calendar-main {
	padding: 1rem;
}

.calendar-grid {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.calendar-header-row {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 2px;
	margin-bottom: 0.5rem;
}

.calendar-day-header {
	text-align: center;
	padding: 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: #f8fafc;
	border-radius: 6px;
}

.kbl-public-calendar-wrapper .calendar-day-header {
	padding: 0.35rem;
	font-size: 0.7rem;
}

.kbl-public-calendar-wrapper .calendar-header-row {
	margin-bottom: 0.25rem;
}

.calendar-week-row {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 2px;
	min-height: 160px;
}

.calendar-cell {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 0.5rem;
	min-height: 150px;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	transition: all 0.2s;
	overflow: hidden;
}

.calendar-cell:hover {
	border-color: #cbd5e1;
	background: #f1f5f9;
}

.empty-cell-message {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #cbd5e1;
}

/* Activity Cards - Estilo Frontend */
.activity-card {
	background: #f8fafc !important;
	border-radius: 6px !important;
	padding: 7px !important;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
	border-left: 3px solid #1e3a5f !important;
	font-size: 0.75rem !important;
	min-height: 140px !important;
	height: 140px !important;
	max-height: 140px !important;
	display: flex !important;
	flex-direction: column !important;
	overflow: hidden !important;
	position: relative !important;
}

/* Asegurar que imágenes dentro de tarjetas no crezcan */
.activity-card img {
	max-width: 20px !important;
	max-height: 20px !important;
	width: 20px !important;
	height: 20px !important;
}

.activity-card.event-red { border-left-color: #ef4444 !important; }
.activity-card.event-blue { border-left-color: #3b82f6 !important; }
.activity-card.event-green { border-left-color: #22c55e !important; }
.activity-card.event-purple { border-left-color: #a855f7 !important; }
.activity-card.event-orange { border-left-color: #f97316 !important; }

.card-header-row {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	margin-bottom: 0 !important;
	flex-shrink: 0 !important;
	max-height: 30px !important;
}

/* Card Header Buttons - Container for admin buttons */
.card-header-buttons {
	display: flex;
	align-items: center;
	gap: 4px;
}

/* Card Title Icon - Icono junto al título (con !important para evitar conflictos) */
.card-title-icon,
.activity-badge img,
.activity-card .card-title-icon {
	width: 20px !important;
	height: 20px !important;
	max-width: 20px !important;
	max-height: 20px !important;
	min-width: 20px !important;
	min-height: 20px !important;
	object-fit: contain !important;
	margin-right: 6px !important;
	vertical-align: middle !important;
	flex-shrink: 0 !important;
	display: inline-block !important;
}

/* Admin Action Buttons - Edit/Delete */
.btn-admin-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 4px;
	background: transparent;
	border: none;
	color: #1e3a5f;
	cursor: pointer;
	transition: all 0.2s ease;
	padding: 0;
	flex-shrink: 0;
	font-size: 0 !important;
	line-height: 0 !important;
	text-indent: -9999px;
	overflow: hidden !important;
}

.btn-admin-action::before,
.btn-admin-action::after {
	display: none !important;
	content: none !important;
}

.btn-admin-action svg {
	width: 14px;
	height: 14px;
	text-indent: 0;
	font-size: 14px;
}

.btn-admin-action.btn-edit:hover {
	background: rgba(30, 58, 95, 0.1);
	color: #3b82f6;
}

.btn-admin-action.btn-delete:hover {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
}

/* Activity inactive state */
.activity-card.activity-inactive {
	opacity: 0.5;
}

.activity-badge {
	display: flex !important;
	align-items: center !important;
	gap: 0.25rem !important;
	font-size: 0.65rem !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.02em !important;
	color: #1e293b !important;
	max-height: 24px !important;
	overflow: hidden !important;
	flex: 1 !important;
	min-width: 0 !important;
}

.badge-icon {
	width: 14px;
	height: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.badge-icon svg {
	width: 12px;
	height: 12px;
}

.badge-red .badge-icon { color: #ef4444; }
.badge-blue .badge-icon { color: #3b82f6; }
.badge-green .badge-icon { color: #22c55e; }
.badge-purple .badge-icon { color: #a855f7; }
.badge-orange .badge-icon { color: #f97316; }

.activity-main {
	flex: 1;
	overflow: hidden;
	margin: 0 !important;
	padding: 0 !important;
	max-height: 40px !important;
}

.activity-subtitle {
	font-size: 0.7rem;
	color: #1e3a5f;
	line-height: 1.2;
	margin: 0 !important;
	padding: 2px 0 !important;
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
	max-height: 38px !important;
	overflow: hidden !important;
}

.activity-schedule-grid {
	display: none;
}

.schedule-item {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	font-size: 0.6rem;
	background: #f1f5f9;
	padding: 0.15rem 0.35rem;
	border-radius: 3px;
}

.schedule-flag {
	font-size: 0.7rem;
}

.schedule-time {
	font-weight: 600;
	color: #1e3a5f;
}

.activity-resources-preview {
	display: none;
}

.resource-chip {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	font-size: 0.55rem;
	background: #e0f2fe;
	color: #0369a1;
	padding: 0.15rem 0.35rem;
	border-radius: 3px;
}

/* Footer - Igual que frontend */
.activity-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.25rem;
	margin-top: auto;
	padding-top: 0.25rem;
	border-top: 1px solid #e2e8f0;
}

.activity-footer .footer-buttons {
	display: flex;
	gap: 0.35rem;
}

.activity-footer .footer-time {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.75rem;
	color: #1e3a5f;
	font-weight: 600;
}

.activity-footer .footer-time .user-flag {
	font-size: 1rem;
	line-height: 1;
}

.activity-footer .footer-time .time-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
	text-align: right;
}

.activity-footer .footer-time .time-text .date-line {
	font-size: 0.65rem;
	color: #1e3a5f;
	font-weight: 500;
}

.activity-footer .footer-time .time-text .hour-line {
	font-size: 0.8rem;
	color: #1e3a5f;
	font-weight: 700;
}

/* Action Buttons (Zoom, Resources, YouTube) */
.activity-footer .btn-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	min-width: 22px;
	min-height: 22px;
	border-radius: 4px;
	background-color: #3b82f6;
	border: 1px solid #3b82f6;
	color: #ffffff;
	cursor: default;
	transition: all 0.2s ease;
	text-decoration: none;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

.activity-footer .btn-action svg {
	width: 12px;
	height: 12px;
	display: block;
}

/* YouTube - Rojo */
.activity-footer .btn-youtube {
	background-color: #ef4444;
	border-color: #ef4444;
}

/* Deshabilitado - Gris */
.activity-footer .btn-disabled {
	background-color: #cbd5e1;
	border-color: #cbd5e1;
	color: #64748b;
	opacity: 0.7;
}

/* Has content indicator */
.activity-footer .btn-action.has-content {
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.activity-footer .btn-youtube.has-content {
	box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.btn-icon-small {
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	color: #94a3b8;
	cursor: pointer;
	transition: all 0.15s;
	text-decoration: none;
}

.btn-icon-small:hover {
	background: #f1f5f9;
	color: #64748b;
}

.btn-icon-small.has-content {
	background: #e0f2fe;
	border-color: #7dd3fc;
	color: #0369a1;
}

.btn-icon-small:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Calendar Footer / Legend */
.calendar-footer {
	padding: 1rem 1.5rem;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
}

.calendar-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	justify-content: center;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.legend-dot.legend-red { background: #ef4444; }
.legend-dot.legend-blue { background: #3b82f6; }
.legend-dot.legend-green { background: #22c55e; }

@media (min-width: 744px) and (max-width: 1024px) and (hover: none),
	(min-width: 744px) and (max-width: 1024px) and (pointer: coarse),
	(min-width: 744px) and (max-width: 1024px) and (any-pointer: coarse) {
	.content-viewport {
		padding: 0.7rem 0.7rem calc(78px + env(safe-area-inset-bottom, 0px)) !important;
	}

	#section-logros .achievements-section.compact > .section-title,
	#section-logros .crowns-section > .section-title,
	#section-logros .badges-section > .section-title {
		margin-bottom: 6px !important;
		font-size: 14px !important;
		line-height: 1.05 !important;
	}

	#section-logros .achievements-grid.compact {
		display: grid !important;
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 8px !important;
	}

	#section-logros .achievement-card {
		width: 100% !important;
		display: grid !important;
		grid-template-columns: 36px minmax(0, 1fr) !important;
		align-items: center !important;
		justify-content: start !important;
		text-align: left !important;
		gap: 6px !important;
		min-height: 104px !important;
		padding: 8px 6px !important;
	}

	#section-logros .ach-icon-wrapper,
	#section-logros .achievements-grid.compact .ach-icon-wrapper,
	#section-logros .achievements-grid.compact .ach-icon-wrapper .ach-icon {
		width: 36px !important;
		height: 36px !important;
	}

	#section-logros .achievements-grid.compact .ach-icon-wrapper .ach-icon svg {
		width: 16px !important;
		height: 16px !important;
	}

	#section-logros .ach-title,
	#section-logros .achievements-grid.compact .ach-title {
		font-size: 9px !important;
		line-height: 1.05 !important;
	}

	#section-logros .ach-desc,
	#section-logros .achievements-grid.compact .ach-desc {
		font-size: 8px !important;
		line-height: 1.05 !important;
		-webkit-line-clamp: 2 !important;
		line-clamp: 2 !important;
	}

	#section-logros .ach-info,
	#section-logros .achievements-grid.compact .ach-info {
		width: 100% !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		justify-content: center !important;
		text-align: left !important;
		gap: 2px !important;
	}

	#section-logros .badge-details,
	#section-logros .crown-details {
		text-align: center !important;
		align-items: center !important;
	}

	#section-logros .crowns-grid {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 8px !important;
	}

	#section-logros .crown-card {
		width: 100% !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: flex-start !important;
		text-align: center !important;
		gap: 6px !important;
		min-height: 182px !important;
		padding: 8px !important;
	}

	#section-logros .crown-badge-wrapper {
		width: 82px !important;
		height: 82px !important;
	}

	#section-logros .crown-title {
		font-size: 11px !important;
		line-height: 1.05 !important;
		min-height: 0 !important;
	}

	#section-logros .crown-subtitle {
		font-size: 8px !important;
		margin-bottom: 2px !important;
	}

	#section-logros .crown-requirement,
	#section-logros .progress-text {
		font-size: 8px !important;
		line-height: 1.05 !important;
	}

	#section-logros .progress-track {
		height: 5px !important;
		margin-bottom: 3px !important;
	}

	#section-logros .badges-grid {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 8px !important;
	}

	#section-logros .badge-card {
		width: 100% !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: center !important;
		text-align: center !important;
		gap: 6px !important;
		min-height: 148px !important;
		padding: 8px !important;
	}

	#section-logros .badge-img-wrapper {
		width: 65px !important;
		height: 65px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-inline: auto !important;
	}

	#section-logros .badge-progress-ring {
		inset: -7px !important;
	}

	#section-logros .badge-details {
		width: 100% !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 4px !important;
	}

	#section-logros .badge-title {
		font-size: 10px !important;
		line-height: 1.05 !important;
	}

	#section-logros .kbl-badge-progress-inline,
	#section-logros .badge-progress-text {
		font-size: 11px !important;
	}
}
.legend-dot.legend-purple { background: #a855f7; }
.legend-dot.legend-orange { background: #f97316; }

.legend-label {
	font-size: 0.7rem;
	color: #64748b;
}

.legend-separator {
	color: #cbd5e1;
	font-size: 0.75rem;
}

#section-logros .gamification-badges-layout {
	display: flex !important;
	flex-direction: column !important;
	gap: 1rem !important;
}

#section-logros .crowns-section,
#section-logros .badges-section {
	width: 100% !important;
	max-width: none !important;
}

#section-logros .crowns-grid,
#section-logros .badges-grid {
	width: 100% !important;
}

@media (max-width: 743px) {
	#section-logros .gamification-badges-layout {
		gap: 0.8rem !important;
	}

	#section-logros .crowns-grid {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 0.8rem !important;
	}
}

@media (min-width: 1025px) {
	#section-logros .gamification-badges-layout {
		gap: 0.85rem !important;
	}

	#section-logros .crowns-section > .section-title,
	#section-logros .badges-section > .section-title {
		margin-bottom: 0.65rem !important;
	}

	#section-logros .crowns-grid,
	#section-logros .badges-grid {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 10px !important;
		align-items: stretch !important;
	}

	#section-logros .crown-card {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		justify-content: flex-start !important;
		text-align: left !important;
		gap: 0.8rem !important;
		min-height: 142px !important;
		padding: 10px !important;
		border: 1.5px dashed #e2e8f0 !important;
		border-radius: 12px !important;
		background: #ffffff !important;
		box-shadow: none !important;
	}

	#section-logros .crown-badge-wrapper {
		width: 82px !important;
		height: 82px !important;
		flex: 0 0 82px !important;
	}

	#section-logros .crown-details {
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		justify-content: flex-start !important;
		gap: 0.26rem !important;
		width: 100% !important;
		text-align: left !important;
	}

	#section-logros .crown-title {
		margin: 0 !important;
		font-size: 14px !important;
		line-height: 1.08 !important;
		min-height: 0 !important;
	}

	#section-logros .crown-subtitle {
		margin: 0 !important;
		font-size: 9px !important;
		letter-spacing: 0.08em !important;
		text-align: left !important;
	}

	#section-logros .crown-requirement,
	#section-logros .progress-text {
		font-size: 10px !important;
		line-height: 1.12 !important;
		text-align: left !important;
	}

	#section-logros .progress-bar-wrapper {
		width: 100% !important;
		margin-top: 0.1rem !important;
	}

	#section-logros .progress-track {
		height: 5px !important;
		margin-bottom: 0.25rem !important;
	}

	#section-logros .badge-card {
		min-height: 126px !important;
		padding: 8px 10px !important;
		gap: 0.6rem !important;
	}

	#section-logros .badge-img-wrapper {
		width: 54px !important;
		height: 54px !important;
		flex: 0 0 54px !important;
	}

	#section-logros .badge-progress-ring {
		inset: -4px !important;
	}

	#section-logros .badge-title {
		font-size: 0.94rem !important;
		line-height: 0.98 !important;
	}

	#section-logros .badge-details {
		gap: 0.55rem !important;
		padding-right: 0 !important;
	}

	#section-logros .kbl-badge-progress-inline {
		min-width: 34px !important;
		padding: 3px 6px !important;
		font-size: 0.82rem !important;
	}
}

@media (max-width: 768px) {
	.sidebar {
		display: none !important;
	}

	.kbl-mobile-bottom-nav {
		display: block !important;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1100;
		padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
		background: #ffffff;
		border-top: 1px solid rgba(148, 163, 184, 0.18);
		box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
	}

	.kbl-mobile-bottom-nav__track {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(56px, 1fr);
		gap: 4px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.kbl-mobile-bottom-nav__track::-webkit-scrollbar {
		display: none;
	}

	.content-viewport {
		padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
	}
}