/**
 * 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
 * @since 1.0.0
 */

/* ============================================
   DASHBOARD SAAS UNIFICATION & BASE
   ============================================ */
:root {
	--radius-form: 6px;
	--h-input: 40px;
}

body.dashboard-body {
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

.content-viewport {
	position: relative;
}

.dashboard-exit-btn {
	position: absolute;
	top: 8px;
	right: 2rem;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: var(--radius-form);
	border: none;
	background: #ffffff;
	color: #1e3a5f;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: all 0.2s ease;
}

.dashboard-exit-btn:hover {
	background: #e6effa;
	color: #132a44;
}

.dashboard-exit-btn svg {
	width: 18px;
	height: 18px;
}

/* Sync Modal Styles with SaaS Login */
.kbl-modal__dialog {
	max-width: 440px !important;
	border-radius: 8px !important;
}

#modal-support .kbl-modal__dialog {
	max-width: 1080px !important;
	width: min(1080px, 95vw) !important;
}

#modal-support .kbl-modal__body {
	display: block;
	overflow: visible;
}

.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;
	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;
	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;
}

.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: 4px;
	right: 4px;
	width: 38px;
	height: 38px;
	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);
}

.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;
}

.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;
	overflow: hidden;
}

.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: space-between;
	margin-bottom: 0.5rem;
}

.kbl-support-history-count {
	font-size: 0.75rem;
	font-weight: 700;
	color: #1e3a5f;
	background: #e2e8f0;
	padding: 2px 8px;
	border-radius: 999px;
}

.kbl-support-history-table-wrap {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	max-height: 210px;
	overflow-y: auto;
	background: #fff;
}

.kbl-support-history-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.72rem;
}

.kbl-support-history-table th,
.kbl-support-history-table td {
	padding: 7px 8px;
	border-bottom: 1px solid #f1f5f9;
	text-align: left;
	vertical-align: middle;
}

.kbl-support-history-table th {
	font-size: 0.66rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #64748b;
	background: #f8fafc;
	position: sticky;
	top: 0;
	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;
	transition: opacity var(--transition-normal);
}

.viewport-section {
	display: none;
	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;
}

/* ============================================
   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: 768px) {
	.dashboard-container {
		grid-template-columns: 1fr;
	}

	.sidebar {
		display: none;
	}

	.content-viewport {
		padding: 1rem;
	}

	.section-title {
		font-size: 1.5rem;
	}
}

/* ============================================
   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: 992px) {
	.kbl-activity-content {
		grid-template-columns: 1fr;
		gap: 24px;
		text-align: center;
	}

	.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: 900px) {

	.certificates-grid,
	.special-certificates-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 500px) {

	.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;
}

/* Tarjeta ocupa el espacio necesario sin estirar */
.kbl-continue-watching-grid .kbl-continue-card {
	width: 100%;
	max-width: 100%;
}

.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;
	}
}

/* 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;
}

/* Tablero: cursos en progreso (más compacto) */
.kbl-continue-watching-grid--courses .kbl-continue-card {
	min-height: 132px;
}

.kbl-continue-watching-grid--courses .kbl-card-thumb {
	width: 132px;
}

.kbl-continue-watching-grid--courses .kbl-card-info {
	padding: 0.55rem 0.8rem;
	gap: 0.15rem;
}

.kbl-continue-watching-grid--courses .kbl-card-title {
	font-size: 0.96rem;
	line-height: 1.2;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.kbl-continue-watching-grid--courses .kbl-card-desc {
	font-size: 0.8rem;
	line-height: 1.2;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.kbl-continue-watching-grid--courses .kbl-progress-badge {
	font-size: 0.85rem;
	padding: 3px 8px;
}

.kbl-continue-watching-grid--courses .btn-course,
.kbl-continue-watching-grid--courses .btn-join-live {
	padding: 7px 12px;
	font-size: 0.84rem;
}

.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;
}

/* ============================================
   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-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;
}

@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-plugin-card {
	border-radius: 10px;
	min-height: 330px;
}

#section-cursos .kbl-card-hero {
	height: 110px;
}

#section-cursos .kbl-card-body {
	padding: 7px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

#section-cursos .kbl-card-title-row {
	margin-bottom: 4px;
}

#section-cursos .kbl-card-title-h3 {
	font-size: 0.86rem;
}

#section-cursos .kbl-card-status-label {
	font-size: 0.55rem;
	padding: 2px 5px;
}

#section-cursos .kbl-card-excerpt {
	font-size: 0.68rem;
	margin: 0 0 4px 0;
	min-height: 2.2em;
	-webkit-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;
}

#section-cursos .kbl-rating-label {
	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: 6px;
}

#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: 3px;
	padding-top: 4px;
}

#section-cursos .kbl-card-meta-label,
#section-cursos .kbl-card-meta-value {
	font-size: 0.6rem;
}

#section-cursos .kbl-card-progress-spacer {
	min-height: 22px;
	margin-bottom: 6px;
}

#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: hidden;
	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);
	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;
}

#section-cursos .kbl-card-badge-pill::after {
	content: '';
	position: absolute;
	top: -20%;
	left: -120%;
	width: 60%;
	height: 140%;
	background: rgba(255, 255, 255, 0.45);
	transform: skewX(-20deg);
	transition: none;
	pointer-events: none;
}

#section-cursos .kbl-plugin-card:hover .kbl-card-badge-pill::after {
	animation: kbl-badge-sweep 0.6s linear;
}

@keyframes kbl-badge-sweep {
	0% {
		transform: translateX(0) skewX(-20deg);
	}
	100% {
		transform: translateX(260%) skewX(-20deg);
	}
}

.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-plugin-card.kbl-course-locked .kbl-card-body > *:not(.kbl-course-enroll-btn):not(.kbl-course-action-row) {
	opacity: 0.5;
	filter: grayscale(0.35);
}

.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 {
	border-color: rgba(30, 58, 95, 0.28);
	color: #1e3a5f;
}

.kbl-card-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.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;
}

.kbl-card-badge-pill .placeholder-dot {
	width: 36px;
	height: 36px;
	background: #3b82f6;
	border-radius: 50%;
}

.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;
	-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: 34px;
	height: 34px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.85);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	z-index: 1;
	pointer-events: none;
}

.kbl-card-body {
	position: relative;
	z-index: 2;
}

.kbl-card-lock-overlay .kbl-lock-icon {
	width: 18px;
	height: 18px;
}

.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.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;
}

/* ============================================
   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: flex;
	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-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;
}

/* ============================================
   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: center;
	position: relative;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	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 0 0.5rem 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: #475569;
}

.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) {

	.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;
	}
}

/* ============================================
   STREAMING & EVENTS
   ============================================ */
.kbl-streaming-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 2rem;
}

.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-event-thumb {
	position: relative;
	background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
	overflow: hidden;
	height: 100%;
	min-height: 266px;
}

.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-event-title-h3 {
	margin: 0;
	font-size: 1.375rem;
	color: var(--text-primary);
	line-height: 1.3;
	font-weight: 700;
}

.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-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;
}

/* Grid de próximos eventos (5 columnas) */
.kbl-upcoming-events-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0.875rem;
}

.kbl-upcoming-event-card {
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	transition: all 0.2s;
}

.kbl-upcoming-event-card:hover {
	border-color: var(--color-primary);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.kbl-upcoming-event-thumb {
	width: 100%;
	height: 154px;
	object-fit: cover;
}

.kbl-upcoming-event-body {
	padding: 0.75rem;
}

.kbl-badge-date {
	background: #f1f5f9;
	padding: 6px;
	border-radius: 6px;
	text-align: center;
	min-width: 44px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.kbl-badge-date .day {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	color: var(--text-primary);
}

.kbl-badge-date .month {
	font-size: 0.625rem;
	margin-top: 1px;
	color: var(--text-secondary);
	font-weight: 700;
}

/* ============================================
   MI CUENTA
   ============================================ */
.kbl-account__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.kbl-account__card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.5rem;
	transition: all 0.2s ease;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.kbl-account__card:hover {
	border-color: var(--color-primary);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transform: translateY(-2px);
}

.kbl-account__card-icon {
	width: 40px;
	height: 40px;
	background: #f1f5f9;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary);
}

.kbl-account__card-icon svg {
	width: 20px;
	height: 20px;
	stroke-width: 2;
}

.kbl-account__card-title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--text-primary);
}

.kbl-account__card-desc {
	margin: 0;
	font-size: 0.85rem;
	color: var(--text-secondary);
	line-height: 1.5;
}

/* Media Query Streaming */
@media (max-width: 1300px) {
	.kbl-streaming-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 1100px) {
	.kbl-upcoming-events-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.kbl-event-layout {
		grid-template-columns: 1fr;
	}

	.kbl-event-thumb,
	.kbl-event-info {
		height: auto;
	}

	.kbl-upcoming-events-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.kbl-upcoming-events-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   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;
}

/* 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-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;
}

/* ============================================
   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;
}

/* ============================================
   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; }
.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;
}