/**
 * Tutor LMS — Ficha de curso (single course)
 * Consolidados / design2
 */

body.hexfly-tutor-course-single {
	--hexfly-course-primary: #0057d9;
	--hexfly-course-primary-hover: #003e9c;
	--hexfly-course-primary-rgb: 0, 87, 217;
	--hexfly-course-bg: #f5f7fa;
	--hexfly-course-surface: #ffffff;
	--hexfly-course-ink: #1f2937;
	--hexfly-course-muted: #6b7280;
	--hexfly-course-line: #e5e7eb;
	--hexfly-course-text-rgb: 31, 41, 55;
	--hexfly-course-sans: 'DM Sans', system-ui, sans-serif;
	--hexfly-course-display: 'Outfit', system-ui, sans-serif;

	background: var(--hexfly-course-bg) !important;
}

body.hexfly-tutor-course-single .tutor-wrap.tutor-full-width-course-top,
body.hexfly-tutor-course-single .tutor-course-top-info {
	font-family: var(--hexfly-course-sans);
	background: var(--hexfly-course-bg);
	padding-top: 1.5rem;
	padding-bottom: 3rem;
}

body.hexfly-tutor-course-single .tutor-course-details-page {
	max-width: min(1160px, 92vw);
}

/* ── Cabecera ── */

body.hexfly-tutor-course-single .tutor-course-details-header {
	margin-bottom: 1.75rem !important;
}

body.hexfly-tutor-course-single .tutor-course-details-ratings {
	margin-bottom: 0.25rem;
}

body.hexfly-tutor-course-single .tutor-course-details-ratings:empty,
body.hexfly-tutor-course-single .tutor-ratings-stars .tutor-icon-star-line:only-child {
	opacity: 0.35;
}

body.hexfly-tutor-course-single .tutor-course-details-title {
	font-family: var(--hexfly-course-display);
	font-size: clamp(1.5rem, 3.5vw, 2rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--hexfly-course-ink) !important;
}

body.hexfly-tutor-course-single .tutor-course-details-info {
	font-size: 0.85rem;
	color: var(--hexfly-course-muted);
}

body.hexfly-tutor-course-single .tutor-course-details-info a {
	color: var(--hexfly-course-primary);
	font-weight: 600;
	text-decoration: none;
}

body.hexfly-tutor-course-single .tutor-course-details-info a:hover {
	text-decoration: underline;
}

body.hexfly-tutor-course-single .tutor-course-details-actions .tutor-btn-ghost {
	padding: 0.45rem 0.85rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--hexfly-course-muted);
	background: var(--hexfly-course-surface);
	border: 1px solid var(--hexfly-course-line);
	border-radius: 999px;
}

body.hexfly-tutor-course-single .tutor-course-details-actions .tutor-btn-ghost:hover {
	color: var(--hexfly-course-primary);
	border-color: rgba(var(--hexfly-course-primary-rgb), 0.35);
	background: var(--hexfly-course-surface);
}

/* ── Imagen principal ── */

body.hexfly-tutor-course-single .tutor-course-thumbnail {
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(var(--hexfly-course-text-rgb), 0.1);
	border: 1px solid var(--hexfly-course-line);
}

body.hexfly-tutor-course-single .tutor-course-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* ── Tabs ── */

body.hexfly-tutor-course-single .tutor-course-details-tab .tutor-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	padding: 0 0 0.75rem;
	border-bottom: 1px solid var(--hexfly-course-line);
	list-style: none;
}

body.hexfly-tutor-course-single .tutor-course-details-tab .tutor-nav-item {
	margin: 0;
}

body.hexfly-tutor-course-single .tutor-course-details-tab .tutor-nav-link {
	display: inline-block;
	padding: 0.5rem 0.9rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--hexfly-course-muted);
	background: transparent;
	border: none;
	border-radius: 8px;
	text-decoration: none;
	transition: color 0.15s ease, background 0.15s ease;
}

body.hexfly-tutor-course-single .tutor-course-details-tab .tutor-nav-link:hover {
	color: var(--hexfly-course-primary);
	background: rgba(var(--hexfly-course-primary-rgb), 0.06);
}

body.hexfly-tutor-course-single .tutor-course-details-tab .tutor-nav-link.is-active {
	color: var(--hexfly-course-primary);
	background: rgba(var(--hexfly-course-primary-rgb), 0.1);
	border-bottom: none !important;
}

/* Anula borde inferior por defecto de Tutor en tabs activos */
body.hexfly-tutor-course-single .tutor-nav:not(.tutor-nav-pills):not(.tutor-nav-tabs) .tutor-nav-link.is-active {
	border-bottom-color: transparent !important;
	border-bottom-width: 0 !important;
}

body.hexfly-tutor-course-single .tutor-nav-more {
	display: none !important;
}

/* ── Contenido del curso ── */

body.hexfly-tutor-course-single .tutor-course-details-content h2,
body.hexfly-tutor-course-single .tutor-course-content-title {
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	color: var(--hexfly-course-ink) !important;
}

body.hexfly-tutor-course-single .tutor-course-details-content .tutor-fs-6,
body.hexfly-tutor-course-single .tutor-course-details-content {
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--hexfly-course-muted);
}

body.hexfly-tutor-course-single .tutor-course-details-content h3 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--hexfly-course-ink);
	margin: 1.25rem 0 0.5rem;
}

body.hexfly-tutor-course-single .tutor-course-details-content ul {
	padding-left: 1.15rem;
}

body.hexfly-tutor-course-single .tutor-course-details-content li {
	margin-bottom: 0.35rem;
}

/* Acordeón / contenido del curso */

body.hexfly-tutor-course-single .tutor-accordion {
	border: 1px solid var(--hexfly-course-line);
	border-radius: 14px;
	overflow: hidden;
	background: var(--hexfly-course-surface);
}

body.hexfly-tutor-course-single .tutor-accordion-item {
	border: none;
	border-bottom: 1px solid var(--hexfly-course-line);
}

body.hexfly-tutor-course-single .tutor-accordion-item:last-child {
	border-bottom: none;
}

body.hexfly-tutor-course-single .tutor-accordion-item-header {
	padding: 0.9rem 1.1rem;
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--hexfly-course-muted);
	background: var(--hexfly-course-surface);
	cursor: pointer;
}

body.hexfly-tutor-course-single .tutor-accordion-item-header.is-active {
	color: var(--hexfly-course-primary);
	background: rgba(var(--hexfly-course-primary-rgb), 0.05);
}

body.hexfly-tutor-course-single .tutor-course-content-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.hexfly-tutor-course-single .tutor-course-content-list-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 1.1rem;
	border-top: 1px solid var(--hexfly-course-line);
	transition: background 0.15s ease;
}

body.hexfly-tutor-course-single .tutor-course-content-list-item:hover {
	background: rgba(var(--hexfly-course-primary-rgb), 0.04);
}

body.hexfly-tutor-course-single .tutor-course-content-list-item-icon {
	color: var(--hexfly-course-primary);
	flex-shrink: 0;
}

body.hexfly-tutor-course-single .tutor-course-content-list-item-title {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--hexfly-course-ink);
	line-height: 1.4;
}

body.hexfly-tutor-course-single .tutor-course-content-list-item-duration {
	font-size: 0.75rem;
	color: var(--hexfly-course-muted);
}

/* Reseñas vacías */

body.hexfly-tutor-course-single .tutor-empty-state {
	padding: 2rem 1.5rem !important;
	background: var(--hexfly-course-surface);
	border: 1px dashed var(--hexfly-course-line);
	border-radius: 14px;
}

body.hexfly-tutor-course-single .tutor-empty-state img {
	max-width: 120px;
	margin-inline: auto;
	opacity: 0.6;
}

/* ── Sidebar ── */

body.hexfly-tutor-course-single .tutor-single-course-sidebar {
	position: sticky;
	top: 5rem;
}

body.hexfly-tutor-course-single .tutor-sidebar-card,
body.hexfly-tutor-course-single .tutor-card.tutor-sidebar-card {
	border: 1px solid var(--hexfly-course-line);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(var(--hexfly-course-text-rgb), 0.08);
	background: var(--hexfly-course-surface);
}

body.hexfly-tutor-course-single .tutor-sidebar-card .tutor-card-body {
	padding: 1.35rem 1.25rem 1rem;
}

body.hexfly-tutor-course-single .tutor-course-single-pricing span {
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	color: var(--hexfly-course-primary) !important;
}

/* Botón inscribirse — azul Consolidados (#0057d9) */

.tutor-course-top-info .tutor-enroll-course-button.tutor-btn-primary,
body.hexfly-tutor-course-single .tutor-enroll-course-button,
body.hexfly-tutor-course-single .tutor-enroll-course-button.tutor-btn,
body.hexfly-tutor-course-single .tutor-enroll-course-button.tutor-btn-primary,
body.hexfly-tutor-course-single .tutor-enroll-course-button.tutor-btn-lg,
body.hexfly-tutor-course-single .tutor-course-single-btn-group .tutor-btn-primary,
body.hexfly-tutor-course-single .tutor-course-single-btn-group button[type="submit"].tutor-btn-primary {
	padding: 0.85rem 1.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #fff !important;
	border-radius: 10px;
	background-color: #0057d9 !important;
	background: #0057d9 !important;
	border: 1px solid #0057d9 !important;
	border-color: #0057d9 !important;
	box-shadow: 0 4px 14px rgba(0, 87, 217, 0.35);
}

.tutor-course-top-info .tutor-enroll-course-button.tutor-btn-primary:hover,
body.hexfly-tutor-course-single .tutor-enroll-course-button:hover,
body.hexfly-tutor-course-single .tutor-enroll-course-button.tutor-btn-primary:hover,
body.hexfly-tutor-course-single .tutor-course-single-btn-group .tutor-btn-primary:hover,
body.hexfly-tutor-course-single .tutor-course-single-btn-group button[type="submit"].tutor-btn-primary:hover {
	color: #fff !important;
	background-color: #003e9c !important;
	background: #003e9c !important;
	border-color: #003e9c !important;
}

.tutor-course-top-info .tutor-enroll-course-button.tutor-btn-primary:focus,
body.hexfly-tutor-course-single .tutor-enroll-course-button:focus,
body.hexfly-tutor-course-single .tutor-enroll-course-button.tutor-btn-primary:focus {
	color: #fff !important;
	background-color: #003e9c !important;
	border-color: #003e9c !important;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 87, 217, 0.25);
}

body.hexfly-tutor-course-single .tutor-card-footer {
	padding: 1rem 1.25rem 1.15rem;
	background: var(--hexfly-course-bg);
	border-top: 1px solid var(--hexfly-course-line);
}

body.hexfly-tutor-course-single .tutor-card-footer .tutor-ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.hexfly-tutor-course-single .tutor-card-footer li {
	font-size: 0.85rem;
	color: var(--hexfly-course-muted);
}

body.hexfly-tutor-course-single .tutor-card-footer .tutor-icon-level,
body.hexfly-tutor-course-single .tutor-card-footer .tutor-icon-mortarboard,
body.hexfly-tutor-course-single .tutor-card-footer .tutor-icon-refresh-o {
	color: var(--hexfly-course-primary) !important;
}

/* Instructor */

body.hexfly-tutor-course-single .tutor-course-details-instructors {
	padding: 1.15rem 1.25rem;
	background: var(--hexfly-course-surface);
	border: 1px solid var(--hexfly-course-line);
	border-radius: 14px;
}

body.hexfly-tutor-course-single .tutor-course-details-instructors h3 {
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	color: var(--hexfly-course-ink) !important;
}

body.hexfly-tutor-course-single .tutor-course-details-instructors a {
	color: var(--hexfly-course-ink);
	text-decoration: none;
}

body.hexfly-tutor-course-single .tutor-course-details-instructors a:hover {
	color: var(--hexfly-course-primary);
}

body.hexfly-tutor-course-single .tutor-avatar-text {
	background: rgba(var(--hexfly-course-primary-rgb), 0.12);
	color: var(--hexfly-course-primary);
	font-weight: 700;
}

/* Modal login en curso */

body.hexfly-tutor-course-single .tutor-login-modal .tutor-modal-content-white {
	border-radius: 16px;
}

body.hexfly-tutor-course-single .tutor-login-modal .tutor-fs-4 {
	font-size: 1.2rem !important;
	font-weight: 700 !important;
	text-align: center;
	color: var(--hexfly-course-ink) !important;
}

body.hexfly-tutor-course-single .tutor-login-modal .tutor-form-control {
	padding: 0.75rem 1rem;
	border-radius: 10px;
	border: 1px solid var(--hexfly-course-line);
	background: var(--hexfly-course-bg);
}

body.hexfly-tutor-course-single .tutor-login-modal .tutor-form-control:focus {
	border-color: var(--hexfly-course-primary);
	box-shadow: 0 0 0 3px rgba(var(--hexfly-course-primary-rgb), 0.12);
	outline: none;
}

body.hexfly-tutor-course-single .tutor-login-modal .tutor-btn-primary.tutor-btn-block,
body.hexfly-tutor-course-single .tutor-login-modal button[type="submit"].tutor-btn-primary {
	padding: 0.85rem 1.25rem;
	font-weight: 600;
	color: #fff !important;
	background: var(--hexfly-course-primary) !important;
	border: 2px solid var(--hexfly-course-primary) !important;
	border-radius: 10px;
	box-shadow: none;
}

body.hexfly-tutor-course-single .tutor-login-modal .tutor-btn-primary.tutor-btn-block:hover,
body.hexfly-tutor-course-single .tutor-login-modal button[type="submit"].tutor-btn-primary:hover {
	color: #fff !important;
	background: var(--hexfly-course-primary-hover) !important;
	border-color: var(--hexfly-course-primary-hover) !important;
}

/* Modal compartir */

body.hexfly-tutor-course-single .tutor-modal-content-white {
	border-radius: 14px;
}

body.hexfly-tutor-course-single .tutor-modal .tutor-form-control {
	border-radius: 10px;
}

@media (max-width: 1199px) {
	body.hexfly-tutor-course-single .tutor-single-course-sidebar {
		position: static;
	}
}

@media (max-width: 640px) {
	body.hexfly-tutor-course-single .tutor-course-details-actions {
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	body.hexfly-tutor-course-single .tutor-course-details-actions .tutor-mr-16 {
		margin-right: 0 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.hexfly-tutor-course-single .tutor-course-content-list-item,
	body.hexfly-tutor-course-single .tutor-course-details-tab .tutor-nav-link {
		transition: none;
	}
}
