/* Academia Pro - Estilos del frontend */

.academia-courses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.course-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.course-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-thumbnail {
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #f0f0f0;
}

.course-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.course-content {
	padding: 15px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.course-content h3 {
	margin: 0 0 10px 0;
	font-size: 18px;
}

.course-content h3 a {
	color: #333;
	text-decoration: none;
}

.course-content h3 a:hover {
	color: #0073aa;
}

.course-excerpt {
	font-size: 14px;
	color: #666;
	margin-bottom: 15px;
	flex: 1;
}

.course-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid #eee;
	padding-top: 10px;
}

.course-type {
	font-size: 12px;
	text-transform: uppercase;
	font-weight: 600;
	color: #0073aa;
}

.course-price {
	font-size: 18px;
	font-weight: 700;
	color: #333;
}

.academia-dashboard {
	margin: 30px 0;
}

.dashboard-section {
	background: #fff;
	padding: 20px;
	border: 1px solid #eee;
	border-radius: 8px;
	margin-bottom: 20px;
}

.dashboard-section h2 {
	margin-top: 0;
	border-bottom: 2px solid #eee;
	padding-bottom: 10px;
}

.my-courses-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 15px;
}

.course-progress-item {
	background: #f9f9f9;
	padding: 15px;
	border-radius: 5px;
	border: 1px solid #eee;
}

.course-progress-item h3 {
	margin-top: 0;
	font-size: 16px;
}

.progress-bar {
	width: 100%;
	height: 20px;
	background: #eee;
	border-radius: 10px;
	overflow: hidden;
	margin: 10px 0;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #0073aa, #00a0d2);
	transition: width 0.3s ease;
}

.course-progress-item p {
	margin: 10px 0;
	font-weight: 600;
}

.button {
	display: inline-block;
	padding: 8px 16px;
	background: #0073aa;
	color: #fff;
	text-decoration: none;
	border-radius: 3px;
	border: none;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s ease;
}

.button:hover {
	background: #005a87;
}

.button-primary {
	background: #00a0d2;
}

.button-primary:hover {
	background: #0086a0;
}

.academia-lesson-container {
	max-width: 100%;
	margin: 20px 0;
}

.lesson-video {
	margin-bottom: 20px;
	border-radius: 5px;
	overflow: hidden;
}

.lesson-content {
	background: #fff;
	padding: 20px;
	border: 1px solid #eee;
	border-radius: 5px;
	line-height: 1.6;
}

.lesson-content p {
	margin-bottom: 15px;
}

.academia-completed {
	color: #28a745;
	font-weight: 600;
	margin: 15px 0;
}

.academia-completed:before {
	content: "✓ ";
	margin-right: 5px;
}

@media (max-width: 768px) {
	.academia-courses-grid {
		grid-template-columns: 1fr;
	}

	.my-courses-list {
		grid-template-columns: 1fr;
	}
}
