/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: "Noto Sans", "Noso Sans", serif, "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
	background-color: #ffffff;
}

h1,
h2,
h3 {
	font-weight: 600;
}

/* ========================================
   TOP ACTION BAR
   ======================================== */

.top-action-bar {
	background: white;
	padding: 8px 30px;
	display: flex;
	justify-content: flex-end;
	border-bottom: 1px solid #e0e0e0;
}

.action-icons {
	display: flex;
	gap: 20px;
}

.action-icons i {
	font-size: 18px;
	color: #666;
	cursor: pointer;
	transition: color 0.3s ease;
}

.action-icons i:hover {
	color: #333;
}

/* ========================================
   USER GREETING SECTION
   ======================================== */

.user-greeting-wrapper {
	background: white;
	width: 100%;
	padding: 25px 0 20px;
	margin-bottom: 0;
}

.user-greeting-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 30px;
}

.greeting-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
	padding-bottom: 0;
	border-bottom: none;
}

.greeting-left {
	flex: 1;
}

.user-greeting {
	font-size: 34px;
	font-weight: 300;
	color: #666;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
	line-height: 1.2;
	cursor: pointer;
	user-select: none;
}

.user-dropdown-container {
	position: relative;
	display: inline-block;
}

.user-dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background-color: white;
	min-width: 180px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	border-radius: 8px;
	padding: 8px 0;
	border: 1px solid #eee;
	margin-top: 5px;
}

.user-dropdown-menu.show {
	display: block;
	animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.user-dropdown-item {
	padding: 10px 20px;
	text-decoration: none;
	display: flex;
	align-items: center;
	color: #555;
	transition: background-color 0.2s;
	font-size: 14px;
}

.user-dropdown-item:hover {
	background-color: #f9f9f9;
	color: #333;
}

.user-dropdown-item i {
	margin-right: 10px;
	width: 16px;
	text-align: center;
	color: #999;
	transition: color 0.2s;
}

.user-dropdown-item:hover i {
	color: #B2C344;
}

.apellido-underline {
	position: relative;
	display: inline-block;
}

.apellido-underline::after {
	content: "";
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: #B2C344;
}

.dropdown-icon {
	font-size: 14px;
	color: #999;
	cursor: pointer;
	margin-left: 5px;
}

.welcome-message {
	font-size: 15px;
	color: #888;
	margin: 0;
}

.greeting-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.header-icons {
	display: flex;
	gap: 18px;
	margin-bottom: 5px;
}

.header-icons i {
	font-size: 20px;
	color: #999;
	cursor: pointer;
	transition: color 0.3s ease;
}

.header-icons i:hover {
	color: #666;
}

.btn-sigaprep {
	background: #B3C100;
	color: white;
	border: none;
	padding: 8px 28px;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-sigaprep:hover {
	background: #a0ad00;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* ========================================
   MAIN CONTAINER & LAYOUT
   ======================================== */

.main-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 350px;
	gap: 20px;
	background-color: #ffffff;
	padding: 20px 30px;
	max-width: 1400px;
	margin: 0 auto;
}

.content {
	background: transparent;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
}

.content-box {
	background: white;
	border-radius: 18px;
	padding: 25px 30px;
	margin-bottom: 18px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.user-greeting-section {
	margin-bottom: 0;
}

/* ========================================
   RECENT COURSES SECTION
   ======================================== */

.recent-courses-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 15px;
	background: #f9f9f9;
	border-radius: 6px;
	margin-bottom: 20px;
}

.courses-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #555;
}

.courses-title i {
	color: #7cb342;
	font-size: 16px;
}

.collapse-icon {
	color: #999;
	font-size: 14px;
	cursor: pointer;
}

/* ========================================
   VIEW TOGGLE
   ======================================== */

.view-toggle {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
	justify-content: flex-end;
}

.toggle-btn-single {
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 13px;
	color: #666;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 6px;
}

.toggle-btn-single:hover {
	background: #f9f9f9;
	border-color: #B6D433;
}

.toggle-btn-single.active {
	background: #B6D433;
	color: white;
	border-color: #B6D433;
}

.toggle-btn-single i {
	font-size: 12px;
}

/* ========================================
   MODULES SECTION & CAROUSEL
   ======================================== */

.modules-section {
	margin-bottom: 0;
}

.section-header-inline {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
}

.section-header-inline i {
	color: #7cb342;
	font-size: 14px;
}

.section-title-inline {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin: 0;
}

.carousel-container {
	display: flex;
	align-items: center;
	gap: 15px;
	position: relative;
	width: 100%;
	max-width: 1000px;
	padding-top: 10px;
	padding-bottom: 10px;
	/* Limit to ~3 cards width to prevent sidebar push */
	/
	/*height: 200px;*/
	/* Fixed height to prevent sidebar displacement */
}

.carousel-btn {
	background: white;
	border: 2px solid #ddd;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	flex-shrink: 0;
	z-index: 10;
	margin: 0 5px;
	/* Reverted spacing */
}

.carousel-btn:hover {
	background: #f5f5f5;
	border-color: #a57f2c;
}

.carousel-btn i {
	color: #666;
	font-size: 16px;
}

.carousel-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

/* View All Mode */
.carousel-container.view-all .carousel-btn {
	display: none;
}

.carousel-container.view-all .modules-wrapper {
	overflow: visible;
}

.carousel-container.view-all .modules-track {
	display: grid;
	/* Fixed 350px columns to match carousel card size exactly */
	grid-template-columns: repeat(auto-fill, 350px);
	gap: 20px;
	transform: none !important;
	justify-content: center;
	/* Center the grid */
}

.carousel-container.view-all {
	height: auto;
	display: block;
	/* Override the 1000px limit to fill container */
	/* Add padding to mimic the space taken by buttons */
	/* Reduced to 25px to ensure 3 columns fit in standard layout */
	padding: 0 25px;
}

/* Specific override for modules content box to remove parent padding constraints */
.content-box.modules-content-box {
	padding-left: 0;
	padding-right: 0;
}

/* Restore padding for header and toggle button inside the borderless box */
.content-box.modules-content-box .section-header-inline,
.content-box.modules-content-box .view-toggle {
	padding: 0 30px;
	/* Matches original content-box padding */
}

.modules-wrapper {
	flex: 1;
	overflow: hidden;
	/* Clips content */
	height: 100%;
	min-width: 0;
	position: relative;
	padding-top: 10px;
	padding-bottom: 10px;
}

.modules-track {
	display: flex;
	flex-wrap: nowrap;
	/* Ensures single row */
	gap: 20px;
	height: 100%;
	transition: transform 0.3s ease;
}

/* ========================================
   MODULE CARDS
   ======================================== */

.module-card-new {
	flex: 0 0 350px;
	/* Fixed flex basis */
	width: 350px;
	/* Explicit width */
	height: 100%;
	/* Fills container height */
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	/*display: flex;*/
	flex-direction: column;
}

/* Allow cards to expand in grid view - DISABLED to maintain carousel size consistency */
.carousel-container.view-all .module-card-new {
	width: 350px;
	/* Force strict width to match carousel */
	min-width: 350px;
	max-width: 350px;
	flex: 0 0 350px;
}

.module-card-new:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.module-header-colored {
	padding: 10px 12px;
	color: white;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* ... headers colors unchanged ... */

.module-badge-new {
	background: white;
	color: #333;
	font-weight: bold;
	font-size: 15px;
	/* Larger badge as seen in screenshot */
	padding: 2px 8px;
	border-radius: 4px;
	flex-shrink: 0;
}

.module-title-new {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
}

.module-body {
	padding: 12px;
	background: white;
	flex: 1;
	/* Ensure it fills but doesn't overflow */
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* Center content vertically if sparse */
}

.module-subtitle-new {
	font-size: 12px;
	color: #666;
	line-height: 1.4;
	margin-bottom: 12px;
}

.module-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.module-number-new {
	font-size: 11px;
	color: #888;
}

.module-tag {
	background: #e8f5e9;
	color: #4caf50;
	font-size: 10px;
	padding: 3px 8px;
	border-radius: 10px;
	font-weight: 600;
}

.module-progress-new {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.progress-bar-new {
	background: #e0e0e0;
	height: 6px;
	border-radius: 3px;
	overflow: hidden;
}

.progress-fill-new {
	background: #8D4F99;
	height: 100%;
	border-radius: 3px;
	transition: width 0.3s ease;
}

.progress-text-new {
	font-size: 10px;
	color: #888;
}

/* ========================================
   TABLA PENDIENTES (Tarjeta Asesor/Tutor)
   ======================================== */

.tabla-pendientes {
	width: 100%;
	border-collapse: collapse;
	font-size: 11px;
	margin-top: 8px;
}

.tabla-pendientes thead tr {
	background: #f4f4f4;
}

.tabla-pendientes th {
	padding: 4px 6px;
	text-align: left;
	color: #555;
	font-weight: 600;
	border-bottom: 1px solid #e0e0e0;
}

.tabla-pendientes th:last-child {
	text-align: center;
}

.tabla-pendientes td {
	padding: 3px 6px;
	color: #444;
	border-bottom: 1px solid #f0f0f0;
	line-height: 1.3;
}

.tabla-pendientes td:last-child {
	text-align: center;
	font-weight: 600;
}

.tabla-pendientes tbody tr:last-child td {
	border-bottom: none;
}

.sin-actividades {
	font-size: 11px;
	color: #999;
	text-align: center;
	margin-top: 8px;
}

/* ========================================
   ICON SECTIONS (CONÓCENOS & SERVICIOS)
   ======================================== */


.icon-section {
	margin-bottom: 0;
}

.section-title-gold {
	font-size: 18px;
	font-weight: 600;
	color: #a57f2c;
	margin-bottom: 20px;
	text-align: center;
}

.icon-grid {
	display: grid;
	gap: 15px;
}

.icon-grid-5 {
	grid-template-columns: repeat(5, 1fr);
}

.icon-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.icon-card-minimal {
	background: white;
	border: 1px solid #e8e8e8;
	border-radius: 6px;
	padding: 20px 15px;
	text-align: center;
	transition: all 0.3s ease;
	cursor: pointer;
}

.icon-card-minimal:hover {
	border-color: #a57f2c;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.icon-card-minimal img {
	width: 50px;
	height: 50px;
	margin-bottom: 10px;
	opacity: 0.75;
	transition: opacity 0.3s ease;
}

.icon-card-minimal:hover img {
	opacity: 1;
}

.icon-card-minimal p {
	font-size: 12px;
	color: #555;
	line-height: 1.4;
	margin: 0;
	font-weight: 500;
}

.subtitle-small {
	font-size: 10px;
	color: #888;
	font-weight: 400;
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
	display: flex;
	flex-direction: column;
	gap: 0px;
	position: sticky;
	top: 130px;
	align-self: flex-start;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
}

/* Ocultar toggle en desktop */
.sidebar-toggle {
	display: none;
}

.sidebar-section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sidebar-title {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin-bottom: 5px;
}

.btn-menu-new {
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 10px 12px;
	text-align: left;
	font-size: 14px;
	color: #555;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	line-height: 1.4;
}

.btn-menu-new:hover {
	background: #f9f9f9;
	border-color: #B6D433;
}

.menu-indicator {
	color: #B6D433;
	font-size: 6px;
	margin-top: 5px;
	flex-shrink: 0;
}

.btn-menu-expandable .menu-content {
	display: flex;
	gap: 8px;
	width: 100%;
}

.menu-text {
	flex: 1;
}

.menu-text .fa-globe {
	font-size: 11px;
	color: #999;
}

.submenu-item {
	display: block;
	margin-top: 4px;
	color: #777;
}

.submenu-item .fa-angle-right {
	font-size: 11px;
	margin-right: 4px;
}

/* ========================================
   SIDEBAR BLOCKS (COLLAPSIBLE)
   ======================================== */

.sidebar-block {
	background: white;
	border: 1px solid #ced4da;
	border-radius: 18px;
	margin-bottom: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
}

.sidebar-block-header {
	padding: 10px 12px;
	background: white;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
	font-size: 15px;
	color: #333;
	border-bottom: 1px solid #ced4da;
	transition: background 0.3s ease;
}

.sidebar-block-header:hover {
	background: #f9f9f9;
}

.toggle-icon {
	color: #B2C344;
	font-size: 18px;
	transition: transform 0.3s ease;
}

.sidebar-block-content {
	padding: 8px 0;
	max-height: 500px;
	overflow: hidden;
	transition: max-height 0.3s ease, padding 0.3s ease;
}

.sidebar-block-content.collapsed {
	max-height: 0;
	padding: 0;
}

.sidebar-item {
	padding: 2px 15px;
	display: flex;
	align-items: flex-start;
	font-size: 15px;
	color: #333;
	cursor: pointer;
	transition: background-color 0.2s;
	gap: 8px;
}

.item-dot {
	color: #B2C344;
	font-size: 6px;
	margin-top: 6px;
	flex-shrink: 0;
}

.sidebar-item-nested {
	padding: 2px 15px 2px 15px;
}

.item-content {
	flex: 1;
}

.item-content .fa-globe {
	font-size: 11px;
	color: #999;
}

.nested-link {
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid #e9ecef;
	color: #777;
}

.nested-link .fa-angle-right {
	font-size: 11px;
	margin-right: 4px;
}

/* ========================================
   ADDRESS RIBBON (FOOTER)
   ======================================== */

.address-ribbon {
	background: #f9f5e8;
	border-top: 1px solid #e8dcc0;
	padding: 15px 0;
	margin-top: 30px;
}

.address-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.address-text {
	display: flex;
	gap: 10px;
	font-size: 12px;
	color: #666;
	line-height: 1.5;
}

.address-text i {
	color: #a57f2c;
	font-size: 14px;
	margin-top: 2px;
}

.social-icons {
	display: flex;
	gap: 15px;
}

.social-icons a {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid #ccc;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
	text-decoration: none;
	transition: all 0.3s ease;
}

.social-icons a:hover {
	background: #a57f2c;
	border-color: #a57f2c;
	color: white;
}

.social-icons i {
	font-size: 14px;
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Tablets and smaller desktops (1024px and below) */
@media (max-width: 1024px) {
	.main-container {
		display: flex !important;
		flex-direction: column !important;
		padding: 5px 20px 10px;
		gap: 0;
	}

	.user-greeting-wrapper {
		padding-bottom: 15px;
	}

	.content {
		order: 0 !important;
	}

	.sidebar {
		width: 100%;
		margin-top: 0;
		margin-bottom: 15px;
		order: -1 !important;
		/* Mantener sidebar arriba */
		position: relative !important;
		top: 0 !important;
		max-height: none;
	}

	/* Botón toggle para sidebar en móvil */
	.sidebar-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 15px 20px;
		background: linear-gradient(135deg, #B2C344 0%, #9BAF3A 100%);
		color: white;
		border-radius: 12px;
		cursor: pointer;
		margin-bottom: 10px;
		font-weight: 600;
		font-size: 16px;
		box-shadow: 0 2px 8px rgba(178, 195, 68, 0.2);
		transition: all 0.3s ease;
	}

	.sidebar-toggle:hover {
		transform: translateY(-2px);
		box-shadow: 0 4px 12px rgba(178, 195, 68, 0.3);
	}

	.sidebar-toggle i {
		transition: transform 0.3s ease;
	}

	.sidebar-toggle.active i {
		transform: rotate(180deg);
	}

	/* Contenido del sidebar colapsable */
	.sidebar-content {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.4s ease;
	}

	.sidebar-content.active {
		max-height: 2000px;
	}

	.user-greeting-container {
		padding: 0 20px;
	}

	.user-greeting {
		font-size: 28px;
	}

	.icon-grid-5 {
		grid-template-columns: repeat(3, 1fr);
	}

	.carousel-container {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.module-card-new {
		min-width: 200px;
		max-width: 200px;
	}
}

/* Mobile devices (768px and below) */
@media (max-width: 768px) {
	.main-container {
		padding: 10px 15px;
	}

	.user-greeting-wrapper {
		padding: 20px 0 15px;
	}

	.user-greeting-container {
		padding: 0 15px;
	}

	.greeting-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.greeting-right {
		width: 100%;
		align-items: flex-start;
	}

	.header-icons {
		order: 2;
		margin-top: 10px;
	}

	.btn-sigaprep {
		order: 1;
		width: 100%;
	}

	.user-greeting {
		font-size: 24px;
	}

	.content-box {
		padding: 20px 15px;
		margin-bottom: 15px;
	}

	.icon-grid-5,
	.icon-grid-3 {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}

	.carousel-container {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.carousel-btn {
		display: none;
	}

	.modules-wrapper {
		overflow: visible;
	}

	.modules-track {
		flex-direction: column;
		transform: none !important;
		gap: 15px;
	}

	.module-card-new {
		min-width: 100%;
		max-width: 100%;
	}

	.course-filters {
		flex-direction: column;
		gap: 10px;
		align-items: flex-start;
	}

	.filter-right {
		width: 100%;
		justify-content: space-between;
	}

	.sidebar-block {
		margin-bottom: 10px;
	}

	.sidebar-block-header {
		padding: 12px 15px;
		font-size: 13px;
	}

	.sidebar-item {
		font-size: 12px;
		padding: 6px 0;
	}

	.address-content {
		flex-direction: column;
		gap: 15px;
		text-align: center;
	}

	.address-text {
		flex-direction: column;
		align-items: center;
	}
}

/* Small mobile devices (480px and below) */
@media (max-width: 480px) {
	.user-greeting {
		font-size: 20px;
	}

	.welcome-message {
		font-size: 13px;
	}

	.header-icons {
		gap: 12px;
	}

	.header-icons i {
		font-size: 18px;
	}

	.icon-grid-5,
	.icon-grid-3 {
		grid-template-columns: 1fr;
	}

	.content-box {
		padding: 15px 12px;
	}

	.section-title-inline {
		font-size: 16px;
	}

	.section-title-gold {
		font-size: 18px;
	}

	.module-header-colored {
		padding: 12px 15px;
	}

	.module-badge-new {
		font-size: 11px;
		padding: 3px 8px;
	}

	.module-title-new {
		font-size: 13px;
	}

	.module-body {
		padding: 12px 15px;
	}
}

/* ========================================
   RESPONSIVE DESIGN REFINEMENTS
   ======================================== */

/* Tablets and smaller desktops (1024px and below) */
@media (max-width: 1024px) {

	/* Stack sidebar below content on tablets */
	.main-container {
		grid-template-columns: 1fr !important;
		padding: 15px 20px;
	}

	/* Sidebar full width below content */
	.sidebar {
		width: 100%;
		margin-top: 20px;
	}

	/* Adjust user greeting container */
	.user-greeting-container {
		padding: 0 20px;
	}

	.user-greeting {
		font-size: 28px;
	}

	/* Keep 3 columns for icon grids on tablets */
	.icon-grid-5 {
		grid-template-columns: repeat(3, 1fr) !important;
		gap: 20px;
	}

	.icon-grid-3 {
		grid-template-columns: repeat(3, 1fr) !important;
		gap: 20px;
	}

	/* Module cards in 2 columns on tablets */
	.modules-track {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 15px;
		transform: none !important;
	}

	.module-card-new {
		min-width: auto !important;
		max-width: 100% !important;
	}

	/* Hide carousel buttons on tablets */
	.carousel-btn {
		display: none;
	}

	.modules-wrapper {
		overflow: visible;
	}
}

/* Mobile devices (768px and below) */
@media (max-width: 768px) {

	/* Adjust main container padding */
	.main-container {
		padding: 10px 15px;
	}

	/* User greeting section */
	.user-greeting-wrapper {
		padding: 20px 0 15px;
	}

	.user-greeting-container {
		padding: 0 15px;
	}

	.greeting-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}

	.greeting-left {
		width: 100%;
	}

	.greeting-right {
		width: 100%;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.header-icons {
		order: 1;
		margin: 0;
		gap: 15px;
	}

	.btn-sigaprep {
		order: 2;
		width: auto;
		padding: 8px 24px;
	}

	.user-greeting {
		font-size: 24px;
	}

	/* Content boxes with less padding */
	.content-box {
		padding: 18px 15px;
		margin-bottom: 15px;
	}

	/* Icon grids to 2 columns */
	.icon-grid-5,
	.icon-grid-3 {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 15px;
	}

	/* Module cards - stack vertically */
	.modules-track {
		display: flex !important;
		flex-direction: column !important;
		gap: 15px;
	}

	.module-card-new {
		min-width: 100% !important;
		max-width: 100% !important;
	}

	/* Course filters stack on mobile */
	.course-filters {
		flex-direction: column;
		gap: 10px;
		align-items: flex-start;
		padding: 10px 12px;
	}

	.filter-right {
		width: 100%;
		justify-content: space-between;
	}

	/* Sidebar blocks */
	.sidebar-block {
		margin-bottom: 10px;
	}

	.sidebar-block-header {
		padding: 12px 15px;
		font-size: 13px;
	}

	.sidebar-item {
		font-size: 12px;
		padding: 6px 0;
	}

	/* Section titles */
	.section-title-inline {
		font-size: 17px;
	}

	.section-title-gold {
		font-size: 20px;
	}
}

/* Small mobile devices (480px and below) */
@media (max-width: 480px) {

	/* Even tighter spacing */
	.main-container {
		padding: 8px 12px;
	}

	.user-greeting-container {
		padding: 0 12px;
	}

	.user-greeting {
		font-size: 22px;
	}

	.welcome-message {
		font-size: 13px;
	}

	/* Stack icons and button vertically on very small screens */
	.greeting-right {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.btn-sigaprep {
		width: 100%;
		order: 1;
	}

	.header-icons {
		order: 2;
		gap: 12px;
	}

	.header-icons i {
		font-size: 18px;
	}

	/* Single column for all icon grids */
	.icon-grid-5,
	.icon-grid-3 {
		grid-template-columns: 1fr !important;
		gap: 12px;
	}

	/* Smaller content boxes */
	.content-box {
		padding: 15px 12px;
	}

	/* Section titles */
	.section-title-inline {
		font-size: 16px;
	}

	.section-title-gold {
		font-size: 18px;
	}

	/* Module card adjustments */
	.module-header-colored {
		padding: 12px 15px;
	}

	.module-badge-new {
		font-size: 11px;
		padding: 3px 8px;
	}

	.module-title-new {
		font-size: 13px;
	}

	.module-body {
		padding: 12px 15px;
	}

	/* Icon cards */
	.icon-card-minimal {
		padding: 15px 10px;
	}

	.icon-card-minimal img {
		max-width: 50px;
		height: auto;
	}

	.icon-card-minimal p {
		font-size: 13px;
		margin-top: 8px;
	}
}

/* Prevent horizontal scroll */
@media (max-width: 768px) {
	body {
		overflow-x: hidden;
	}

	.main-container,
	.content,
	.content-box {
		max-width: 100%;
		overflow-x: hidden;
	}
}



/* ADJUST SIDEBAR TO STAY VISIBLE UNTIL 1024px */
@media (min-width: 1025px) and (max-width: 1200px) {
	.main-container {
		grid-template-columns: 1fr 350px !important;
		display: grid !important;
		padding: 15px 20px;
		max-width: 100%;
	}

	.content {
		min-width: 0;
		/* Allow content to shrink */
		overflow-x: auto;
	}

	.sidebar {
		width: 350px !important;
		min-width: 350px;
		margin-top: 0;
	}

	/* Make content boxes more compact */
	.content-box {
		padding: 20px 15px;
	}

	/* Adjust module cards to be smaller */
	.module-card-new {
		min-width: 180px;
		max-width: 180px;
	}

	/* Reduce icon grid gaps */
	.icon-grid-5,
	.icon-grid-3 {
		gap: 15px;
	}
}



/* ========================================
   MODULE CARDS - MATCH ejemplo2.png
   ======================================== */

/* Module Badge - Remove white background, make text larger */
.module-badge-new {
	background: transparent !important;
	color: white !important;
	font-size: 24px !important;
	font-weight: 700 !important;
	padding: 0 !important;
	margin-right: 10px !important;
	border-radius: 0 !important;
}

/* Module Title in Header */
.module-title-new {
	color: white !important;
	font-size: 16px !important;
	font-weight: 500 !important;
}

/* Update Header Colors to Match Reference */
.module-cyan {
	background: #3498db !important;
}

.module-purple {
	background: #9b59b6 !important;
}

.module-green {
	background: #2ecc71 !important;
}

/* Small Tag "Ordinarios" */
.module-tag-small {
	display: block;
	font-size: 11px;
	color: #888;
	margin-bottom: 4px;
	font-weight: 400;
}

/* Module Number - Dark Purple, Bold */
.module-number-new {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #4a2c6d !important;
	margin: 0 0 10px 0 !important;
}

/* Progress Bar - Thicker and Purple */
.progress-bar-new {
	height: 8px !important;
	background-color: #eee !important;
	border-radius: 4px !important;
	overflow: hidden;
	margin-bottom: 6px !important;
}

.progress-fill-new {
	height: 100% !important;
	background-color: #4a2c6d !important;
	transition: width 0.3s ease;
}

.progress-text-new {
	font-size: 12px !important;
	color: #666 !important;
}

/* Module Body - Adjust Padding */
.module-body {
	padding: 15px !important;
}

/* Remove old styles that conflict */
.module-subtitle-new {
	display: none;
}

.module-info {
	display: none;
}

.module-tag {
	display: none;
}

/* ========================================
   SIDEBAR SPACING REFINEMENT
   ======================================== */

/* Reduce spacing between sidebar blocks */
.sidebar-block {
	margin-bottom: 12px !important;
	padding: 0 !important;
}

/* Compact block headers */
.sidebar-block-header {
	padding: 10px 12px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
}

/* Reduce spacing between sidebar items */
.sidebar-item {
	padding: 4px 12px !important;
	font-size: 15px !important;
	margin: 0 !important;
}

/* Nested items - even more compact */
.sidebar-item-nested {
	padding: 4px 12px 4px 18px;
}

.sidebar-item-nested .item-content {
	padding-left: 8px !important;
}

.sidebar-item-nested .item-content div {
	margin: 1px 0;
	line-height: 1.3;
}

.sidebar-item-nested .nested-link {
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid #e9ecef;
}

/* Reduce dot spacing */
.item-dot {
	font-size: 6px !important;
}

/* Compact toggle icons */
.toggle-icon {
	font-size: 16px !important;
}

/* Reduce block content padding */
.sidebar-block-content {
	padding: 4px 0;
}

.sidebar-block-content.collapsed {
	padding: 0 !important;
}

/* Nested item collapse functionality */
.nested-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	width: 100%;
}

.nested-toggle {
	font-size: 10px;
	color: #999;
	transition: transform 0.3s ease;
}

.nested-header.collapsed .nested-toggle {
	transform: rotate(-90deg);
}

.nested-details {
	max-height: 100px;
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.3s ease;
	opacity: 1;
}

.nested-details.collapsed {
	max-height: 0;
	opacity: 0;
}

/* ============================================
   SUPLANTACION BAR STYLES
   ============================================ */

.suplantacion-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
	color: white;
	padding: 12px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 10000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
	from {
		transform: translateY(-100%);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.suplantacion-info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.suplantacion-bar .icon {
	font-size: 22px;
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.1);
	}
}

.suplantacion-bar .text {
	font-size: 14px;
	line-height: 1.4;
}

.suplantacion-bar .text strong {
	font-weight: 600;
}

.suplantacion-bar .separator {
	opacity: 0.6;
	margin: 0 8px;
}

.suplantacion-actions {
	display: flex;
	align-items: center;
}

.btn-stop-suplantacion {
	background: white;
	color: #ff6b6b;
	padding: 8px 20px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	text-decoration: none;
}

.btn-stop-suplantacion:hover {
	background: #f8f9fa;
	color: #ee5a6f;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-stop-suplantacion:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
	.suplantacion-bar {
		flex-direction: column;
		gap: 12px;
		padding: 12px 15px;
	}

	.suplantacion-info {
		flex-direction: column;
		gap: 8px;
		text-align: center;
		width: 100%;
	}

	.suplantacion-bar .separator {
		display: none;
	}

	.suplantacion-actions {
		width: 100%;
	}

	.btn-stop-suplantacion {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.suplantacion-bar .text {
		font-size: 12px;
	}

	.btn-stop-suplantacion {
		font-size: 13px;
		padding: 6px 16px;
	}
}

/* ========================================
   ADMIN PANEL STYLES
   ======================================== */

.admin-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 30px;
}

.admin-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}

.admin-title {
	font-size: 28px;
	font-weight: 600;
	color: #333;
}

/* Content Box Styles */
.content-box-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.content-box-header h2 {
	font-size: 28px;
	font-weight: 600;
	color: #333;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.btn-primary {
	background: #B2C344;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.btn-primary:hover {
	background: #9fb030;
	box-shadow: 0 3px 8px rgba(178, 195, 68, 0.3);
}

.btn-secondary {
	background: #6c757d;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
}

.btn-secondary:hover {
	background: #5a6268;
}

.btn-danger {
	background: #dc3545;
	color: white;
	border: none;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-danger:hover {
	background: #c82333;
}

/* Search Bar */
.search-bar {
	margin-bottom: 20px;
	display: flex;
	gap: 10px;
}

.search-input {
	flex: 1;
	max-width: 400px;
	padding: 10px 15px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 14px;
}

.search-input:focus {
	outline: none;
	border-color: #B2C344;
	box-shadow: 0 0 0 3px rgba(178, 195, 68, 0.1);
}

/* Data Table */
.data-table {
	width: 100%;
	background: white;
	border-radius: 8px;
	overflow-x: auto;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.data-table table {
	width: 100%;
	border-collapse: collapse;
}

.data-table thead {
	background: #f8f9fa;
	border-bottom: 2px solid #e0e0e0;
}

.data-table th {
	padding: 12px 10px;
	text-align: left;
	font-weight: 600;
	font-size: 13px;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	white-space: nowrap;
}

.data-table td {
	padding: 12px 10px;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
	color: #333;
	white-space: nowrap;
}

/* Text overflow para elementos largos */
.data-table td code,
.data-table td small {
	max-width: 200px;
	display: inline-block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: middle;
}

.data-table tr:hover {
	background: #f9f9f9;
}

.data-table tr:last-child td {
	border-bottom: none;
}

/* Toggle Switch */
.toggle-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 24px;
}

.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: 0.3s;
	border-radius: 24px;
}

.toggle-slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.3s;
	border-radius: 50%;
}

input:checked+.toggle-slider {
	background-color: #B2C344;
}

input:checked+.toggle-slider:before {
	transform: translateX(26px);
}

/* Badge */
.badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

.badge-success {
	background: #d4edda;
	color: #155724;
}

.badge-warning {
	background: #fff3cd;
	color: #856404;
}

.badge-info {
	background: #d1ecf1;
	color: #0c5460;
}

.badge-primary {
	background: #e8f4d7;
	color: #5a7a1f;
}

/* Action Buttons */
.action-buttons {
	display: flex;
	gap: 8px;
}

.btn-icon {
	background: none;
	border: none;
	color: #666;
	cursor: pointer;
	padding: 6px;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.btn-icon:hover {
	background: #f0f0f0;
	color: #333;
}

.btn-icon.edit:hover {
	color: #007bff;
}

.btn-icon.delete:hover {
	color: #dc3545;
}

/* Form Styles */
.form-container {
	max-width: 800px;
	margin: 0 auto;
	background: white;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-group {
	margin-bottom: 20px;
}

.form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

.form-input,
.form-select,
.form-textarea {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
	outline: none;
	border-color: #B2C344;
	box-shadow: 0 0 0 3px rgba(178, 195, 68, 0.1);
}

.form-textarea {
	resize: vertical;
	min-height: 100px;
}

.form-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
}

.form-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.form-error {
	color: #dc3545;
	font-size: 12px;
	margin-top: 5px;
}

.form-help {
	color: #6c757d;
	font-size: 12px;
	margin-top: 5px;
}

.form-actions {
	display: flex;
	gap: 10px;
	margin-top: 30px;
}

/* Alert Messages */
.alert {
	padding: 15px 20px;
	border-radius: 6px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.alert-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.alert-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.alert-info {
	background: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin-top: 20px;
}

.pagination a,
.pagination span {
	padding: 8px 12px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	font-size: 14px;
}

.pagination a:hover {
	background: #f0f0f0;
}

.pagination .active {
	background: #B2C344;
	color: white;
	border-color: #B2C344;
}

/* Permissions Grid */
.permissions-grid {
	display: grid;
	gap: 20px;
}

.permission-module {
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
}

.module-title {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.permission-list {
	display: grid;
	gap: 10px;
}

.permission-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border-radius: 4px;
	transition: background 0.2s ease;
}

.permission-item:hover {
	background: #f9f9f9;
}

.permission-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.permission-label {
	flex: 1;
	font-size: 14px;
	color: #333;
}

.permission-description {
	font-size: 12px;
	color: #666;
}

/* Info Box */
.info-box {
	background: #e8f4d7;
	border: 1px solid #d0e8b8;
	border-radius: 6px;
	padding: 15px;
	margin-bottom: 20px;
	font-size: 14px;
	color: #5a7a1f;
}

/* Hierarchical Table (for menu items) */
.hierarchical-row {
	position: relative;
}

.hierarchical-row.child {
	background: #f9f9f9;
}

.hierarchical-row.child td:first-child {
	padding-left: 40px;
}

.hierarchical-row.child td:first-child:before {
	content: "└─";
	position: absolute;
	left: 20px;
	color: #999;
}

/* Drag Handle */
.drag-handle {
	cursor: move;
	color: #999;
	padding: 5px;
}

.drag-handle:hover {
	color: #666;
}

/* Icon Preview */
.icon-preview {
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
	border-radius: 4px;
	font-size: 14px;
	color: #666;
}

/* Loading Spinner */
.spinner {
	border: 3px solid #f3f3f3;
	border-top: 3px solid #B2C344;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	animation: spin 1s linear infinite;
	display: inline-block;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Responsive */
@media (max-width: 768px) {
	.admin-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}

	.form-container {
		padding: 20px;
	}

	.action-buttons {
		flex-direction: column;
	}
}

/* Desktop Adjustments - Compact table */
@media (min-width: 1201px) {
	.content-box {
		padding: 20px 15px;
	}

	.data-table {
		overflow-x: auto;
	}
}

/* Responsive - Mobile/Tablet */
@media (max-width: 1200px) {
	.data-table {
		overflow-x: auto;
	}

	.content-box {
		padding: 15px 10px;
	}
}