/**
 * Gicell Academy — Course Catalog (archive-course) styles.
 * Loaded only on the courses archive, course-category taxonomy, and single course pages.
 * Typography is intentionally NOT set here — it inherits the theme's existing fonts.
 */

.gicell-courses-page {
	/* Marca: reusar los tokens globales (gicell-tokens.css) en vez de la paleta local.
	   Al remapear las variables, TODO el archivo (que ya usa var(--g-*)) hereda la marca. */
	--g-ink: var(--ink);        /* #0E0E0E */
	--g-muted: var(--muted);    /* #6F6B65 gris cálido (antes frío #6b7280) */
	--g-line: var(--line);      /* #E6E1D9 hairline cálida (antes #ececec) */
	--g-soft: var(--paper-2);   /* #F1EDE7 banda alterna (antes #f7f7f8) */
	--g-star: var(--gold);      /* #C9A86A (antes ámbar #f59e0b) */
	--g-accent: var(--gold);    /* #C9A86A dorado (antes rosa #c2185b) */

	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 20px 72px;
	color: var(--g-ink);
	font-family: var(--font-body);
}

.gicell-courses-layout {
	display: flex;
	align-items: flex-start;
	gap: 32px;
}

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

.gicell-sidebar {
	flex: 0 0 250px;
	width: 250px;
}

.gicell-filter-section {
	padding: 20px 0;
	border-bottom: 1px solid var(--g-line);
}

.gicell-filter-section:first-child {
	padding-top: 0;
}

.gicell-filter-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 700;
	color: var(--g-ink);
}

.gicell-chevron {
	color: var(--g-muted);
	font-size: 12px;
}

.gicell-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gicell-filter-row {
	margin-bottom: 10px;
}

.gicell-filter-row:last-child {
	margin-bottom: 0;
}

.gicell-checkbox-label,
.gicell-radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--g-ink);
	cursor: pointer;
}

.gicell-checkbox-label input,
.gicell-radio-label input {
	accent-color: var(--g-accent);
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
}

.gicell-checkbox-label a {
	color: var(--g-ink);
	text-decoration: none;
}

.gicell-checkbox-label a:hover {
	color: var(--g-accent);
	text-decoration: underline;
}

.gicell-count {
	color: var(--g-muted);
	font-size: 13px;
	margin-left: 2px;
}

.gicell-filter-row--extra {
	display: none;
}

.gicell-filter-row--extra.gicell-show {
	display: block;
}

.gicell-see-more {
	margin-top: 6px;
}

.gicell-see-more-btn {
	background: none;
	border: none;
	padding: 0;
	color: var(--g-accent);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.gicell-see-more-btn:hover {
	text-decoration: underline;
}

/* Cabecera de filtros + botón Limpiar */
.gicell-filter-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}
.gicell-filter-heading {
	font-size: 18px;
	font-weight: 700;
	color: var(--g-ink);
	margin: 0;
}
.gicell-filter-head .gicell-clear-filters {
	background: none;
	border: none;
	padding: 0;
	color: var(--g-accent);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.gicell-filter-head .gicell-clear-filters:hover,
.gicell-filter-head .gicell-clear-filters:focus {
	text-decoration: underline;
	background: none;
	color: var(--g-accent);
	outline: none;
}
/* El reset de Tutor fuerza display:inline-block en [type=button] y pisa el atributo
   hidden; forzamos display:none con más especificidad (0,2,0). */
.gicell-clear-filters[hidden] {
	display: none;
}

/* Neutraliza el hover/focus rosa (#cc3366) del reset de Tutor en botones del sidebar (0,2,1). */
.gicell-sidebar button:hover,
.gicell-sidebar button:focus {
	background: none;
	outline: none;
}

/* Poster real (frame de Drive) en las cards del loop */
.gicell-media-poster {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: var(--g-soft);
	transition: transform 0.6s ease;
}
.gicell-card-media-link:hover .gicell-media-poster {
	transform: scale(1.05);
}

.gicell-filter-empty {
	color: var(--g-muted);
	font-size: 13px;
}

/* ============ MAIN AREA ============ */

.gicell-main {
	flex: 1 1 auto;
	min-width: 0;
}

.gicell-results-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	gap: 16px;
	flex-wrap: wrap;
}

.gicell-results-count {
	margin: 0;
	color: var(--g-muted);
	font-size: 14px;
}

.gicell-sort {
	appearance: none;
	-webkit-appearance: none;
	background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%236b7280'/></svg>") no-repeat right 14px center;
	border: 1px solid var(--g-line);
	border-radius: 8px;
	padding: 10px 36px 10px 14px;
	font-size: 14px;
	color: var(--g-ink);
	cursor: pointer;
}

/* ============ GRID ============ */

.gicell-course-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 992px) {
	.gicell-course-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.gicell-course-grid {
		grid-template-columns: 1fr;
	}

	.gicell-courses-layout {
		flex-direction: column;
	}

	.gicell-sidebar {
		width: 100%;
		flex: 1 1 auto;
	}
}

.gicell-no-courses {
	grid-column: 1 / -1;
	color: var(--g-muted);
	font-size: 15px;
}

/* ============ CARD ============ */

.gicell-course-card {
	background: #fff;
	border: 1px solid var(--g-line);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}

.gicell-course-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.gicell-card-media-link {
	display: block;
}

.gicell-card-media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--g-soft);
	overflow: hidden;
}

.gicell-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}

.gicell-card-media-link:hover .gicell-card-media img {
	transform: scale(1.05);
}

.gicell-media-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--paper-2), var(--line));
}

.gicell-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #111;
	color: #fff;
	text-transform: uppercase;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 5px 10px;
	border-radius: 999px;
	z-index: 1;
}

.gicell-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.gicell-card-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
	font-size: 13px;
}

.gicell-rating-value {
	font-weight: 700;
	color: var(--ink);
}

.gicell-stars {
	letter-spacing: 1px;
}

.gicell-star--filled {
	color: var(--g-star);
}

.gicell-star--empty {
	color: var(--g-line);
}

.gicell-rating-year {
	color: var(--g-muted);
}

.gicell-card-title {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gicell-card-title a {
	color: var(--g-ink);
	text-decoration: none;
}

.gicell-card-title a:hover {
	color: var(--g-accent);
}

.gicell-card-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.gicell-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: var(--g-muted);
}

.gicell-meta-icon {
	font-size: 13px;
	line-height: 1;
}

.gicell-card-divider {
	border: none;
	border-top: 1px solid #f0f0f0;
	margin: 0 0 14px;
}

.gicell-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
}

.gicell-card-instructor {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.gicell-instructor-avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.gicell-instructor-name {
	font-size: 13px;
	color: var(--g-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gicell-card-price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	white-space: nowrap;
}

.gicell-price-regular {
	color: var(--g-muted);
	text-decoration: line-through;
	font-size: 13px;
}

.gicell-price-sale,
.gicell-price-current {
	color: var(--g-ink);
	font-weight: 700;
	font-size: 15px;
}

/* ============ PAGINATION ============ */

.gicell-pagination {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.gicell-pagination .nav-links {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.gicell-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--g-line);
	color: var(--g-ink);
	text-decoration: none;
	font-size: 14px;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.gicell-pagination .page-numbers:hover {
	border-color: var(--g-accent);
	color: var(--g-accent);
}

.gicell-pagination .page-numbers.current {
	background: #111;
	border-color: #111;
	color: #fff;
}

.gicell-pagination .page-numbers.dots {
	border: none;
	color: var(--g-muted);
}

/* ============================================================
   SINGLE COURSE PAGE (Gicell Academy course detail)
   ============================================================ */

.gicell-single-course {
	/* Marca: remapeo a tokens globales, idéntico al catálogo.
	   --g-soft → var(--paper): en single se usa SOLO para superficies claras
	   (chips de compartir, placeholder del media dentro de la purchase-card blanca);
	   el hero oscuro NO consume --g-soft, tiene su propio fondo var(--black). */
	--g-ink: var(--ink);        /* #0E0E0E (antes #1a1a1a) */
	--g-muted: var(--muted);    /* #6F6B65 cálido (antes frío #6b7280) */
	--g-line: var(--line);      /* #E6E1D9 hairline (antes #ececec) */
	--g-soft: var(--paper);     /* #FAF8F5 superficie clara (antes #f7f7f8) */
	--g-star: var(--gold);      /* #C9A86A (antes ámbar #f59e0b) */
	--g-accent: var(--gold);    /* #C9A86A dorado (antes rosa #c2185b) */

	color: var(--g-ink);
	font-family: var(--font-body);
}

.gicell-single-course .tutor-container {
	max-width: 1280px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* ---------------- HERO ---------------- */

.gicell-course-hero {
	background: var(--black);
	color: var(--white);
	padding: 56px 0 240px;
}

.gicell-hero-left {
	max-width: 640px;
}

.gicell-pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.gicell-pill {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.gicell-pill--outline {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: var(--white);
}

/* "Más comprado": pill dorado sólido con texto oscuro (antes verde #1e7e34/#fff). */
.gicell-pill--green {
	background: var(--gold);
	color: var(--ink);
}

/* g-accent ahora es dorado: texto oscuro para mantener contraste (antes #fff). */
.gicell-pill--accent {
	background: var(--g-accent);
	color: var(--ink);
}

.gicell-hero-title {
	margin: 0 0 16px;
	font-family: var(--font-display);
	font-size: 36px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--white);
}

.gicell-hero-desc {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

.gicell-hero-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 20px;
}

.gicell-hero-rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.gicell-hero-rating strong {
	color: var(--g-star);
	font-weight: 700;
}

.gicell-hero-stars {
	letter-spacing: 1px;
	color: var(--g-star);
}

.gicell-hero-stars .gicell-star--empty {
	color: rgba(255, 255, 255, 0.3);
}

.gicell-hero-rating-count {
	color: rgba(255, 255, 255, 0.65);
}

.gicell-hero-dot {
	color: rgba(255, 255, 255, 0.4);
}

.gicell-hero-instructor {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
}

.gicell-hero-instructor-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
}

/* ---------------- BODY / GRID ---------------- */

.gicell-course-body {
	background: var(--white);
	position: relative;
	z-index: 2;
}

.gicell-body-grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 32px;
	align-items: start;
}

.gicell-body-main {
	min-width: 0;
	padding-top: 40px;
	padding-bottom: 60px;
}

.gicell-purchase-card-wrap {
	margin-top: -260px;
}

.gicell-purchase-card {
	position: sticky;
	/* 140px del header fijo + 16px de aire para que no quede debajo al scrollear. */
	top: 156px;
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.gicell-card-media-wrap {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--g-soft);
}

.gicell-card-media-wrap img.gicell-card-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Intro video (preview) dentro de la card — cubre el thumbnail. */
.gicell-card-video {
	position: absolute;
	inset: 0;
	background: #000;
}
.gicell-card-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.gicell-card-media-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--paper-2), var(--line));
}

.gicell-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ═══════════ PREVIEW: poster + play + "Vista previa gratis" ═══════════ */
/* Doble clase (0,2,0) para ganarle al reset de Tutor: [type="button"] { display:inline-block }. */
.gicell-card-media-wrap.gicell-preview-trigger {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	cursor: pointer;
	font: inherit;
	color: inherit;
	background: var(--g-soft);
}
.gicell-preview-trigger:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: -3px;
}

.gicell-preview-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 100%);
	transition: background 0.25s ease;
}
.gicell-preview-trigger:hover .gicell-preview-overlay,
.gicell-preview-trigger:focus-visible .gicell-preview-overlay {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.gicell-preview-poster {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: var(--g-soft);
}

/* CTA centrado: play + "Ver introducción" debajo. */
.gicell-preview-cta {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	pointer-events: none;
	text-align: center;
}

.gicell-preview-play {
	width: 66px;
	height: 66px;
	border-radius: 50%;
	background: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s ease;
}
.gicell-preview-play svg {
	margin-left: 3px; /* centra ópticamente el triángulo */
}
.gicell-preview-trigger:hover .gicell-preview-play,
.gicell-preview-trigger:focus-visible .gicell-preview-play {
	transform: scale(1.08);
}

.gicell-preview-label {
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

/* ═══════════ PREVIEW MODAL (lightbox) ═══════════ */
body.gicell-modal-open {
	overflow: hidden;
}

.gicell-preview-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.gicell-preview-modal.is-open {
	display: flex;
}

.gicell-preview-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.82);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.gicell-preview-modal__dialog {
	position: relative;
	width: min(960px, 100%);
	border-radius: var(--radius);
	overflow: hidden;
	background: #000;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.gicell-preview-modal.is-open .gicell-preview-modal__dialog {
	animation: gicellPreviewIn 0.24s ease;
}
@keyframes gicellPreviewIn {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.gicell-preview-modal__label {
	position: absolute;
	top: 14px;
	left: 16px;
	z-index: 2;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(20, 20, 20, 0.7);
	color: var(--white);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.gicell-preview-modal .gicell-preview-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #141414;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, background 0.2s ease;
}
/* (0,2,1) para ganarle al reset de Tutor: button:hover/:focus { background:#c33 }. */
.gicell-preview-modal .gicell-preview-modal__close:hover,
.gicell-preview-modal .gicell-preview-modal__close:focus,
.gicell-preview-modal .gicell-preview-modal__close:focus-visible {
	background: var(--white);
	transform: scale(1.06);
	outline: none;
}

.gicell-preview-modal__body {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}
.gicell-preview-modal__body iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.gicell-preview-modal.is-open .gicell-preview-modal__dialog {
		animation: none;
	}
	.gicell-preview-play,
	.gicell-preview-overlay,
	.gicell-preview-modal__close {
		transition: none;
	}
}

.gicell-card-content {
	padding: 20px;
}

.gicell-price-row {
	display: flex;
	font-family: var(--font-display);
	align-items: baseline;
	gap: 10px;
	margin-bottom: 12px;
}

.gicell-price-sale {
	font-size: 26px;
	font-weight: 800;
	color: var(--g-ink);
}

.gicell-price-regular {
	font-size: 15px;
	color: var(--g-muted);
	text-decoration: line-through;
}

.gicell-buy-btn-wrap .tutor-btn,
.gicell-buy-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: var(--gold) !important;
	border-color: var(--gold) !important;
	color: #14110a !important;
	border-radius: var(--radius) !important;
	font-weight: 700 !important;
	text-decoration: none;
}

.gicell-buy-btn-wrap .tutor-btn:hover,
.gicell-buy-btn:hover {
	background: var(--black) !important;
	color: var(--gold) !important;
}

.gicell-enrolled-note {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--g-muted);
	text-align: center;
}

.gicell-guarantee {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--g-muted);
	text-align: center;
}

/* CTA de inscripción del curso + beneficios (certificado / acceso). */
.gicell-buy-btn--enroll {
	padding: 15px 20px !important;
	font-size: 15px !important;
}
.gicell-buy-perks {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}
.gicell-buy-perks li {
	display: flex;
	align-items: center;
	gap: 9px;
	font-family: var(--font-body);
	font-size: 13.5px;
	color: var(--g-muted);
}
.gicell-buy-perks .ic {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	fill: none;
	stroke: var(--gold);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.gicell-meta-list {
	list-style: none;
	margin: 20px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--g-line);
}

.gicell-meta-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	font-size: 14px;
}

.gicell-meta-list li:last-child {
	margin-bottom: 0;
}

.gicell-meta-list-icon {
	flex: 0 0 auto;
	font-size: 14px;
}

.gicell-meta-list-label {
	color: var(--g-ink);
	font-weight: 600;
}

.gicell-meta-list-value {
	margin-left: auto;
	color: var(--g-muted);
}

.gicell-share-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--g-line);
}

.gicell-share-label {
	font-size: 13px;
	color: var(--g-muted);
}

.gicell-share-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--g-soft);
	color: var(--g-ink);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid var(--g-line);
}

.gicell-share-icon:hover {
	background: var(--g-accent);
	border-color: var(--g-accent);
	color: var(--ink);
}

.gicell-share-icon--static {
	cursor: default;
}

.gicell-share-icon--static:hover {
	background: var(--g-soft);
	border-color: var(--g-line);
	color: var(--g-ink);
}

/* ---------------- TABS ---------------- */

.gicell-tabs {
	display: flex;
	gap: 28px;
	border-bottom: 1px solid var(--g-line);
	margin-bottom: 28px;
}

/* Especificidad .gicell-tabs .gicell-tab-btn (0,2,0) para ganar al reset del tema
   padre ([type="button"]{border/color:#cc3366}, que empata a 0,1,0 y carga después). */
.gicell-tabs .gicell-tab-btn {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	padding: 12px 2px;
	font-size: 15px;
	font-weight: 600;
	color: var(--g-muted);
	cursor: pointer;
}

/* (0,3,0) para neutralizar el hover/focus rosa (#cc3366) del reset de Tutor,
   que en los estados repinta el fondo del botón. */
.gicell-tabs .gicell-tab-btn:hover,
.gicell-tabs .gicell-tab-btn:focus,
.gicell-tabs .gicell-tab-btn:active {
	background: none;
	color: var(--g-ink);
}

.gicell-tabs .gicell-tab-btn:focus {
	outline: none;
}
.gicell-tabs .gicell-tab-btn:focus-visible {
	outline: 2px solid var(--g-accent);
	outline-offset: 3px;
	border-radius: 3px;
}

.gicell-tabs .gicell-tab-btn.is-active {
	color: var(--g-ink);
	border-bottom-color: var(--g-accent);
}

.gicell-tab-panel {
	/* panels toggled via inline style + JS */
}

.gicell-section-title {
	font-size: 19px;
	font-weight: 700;
	color: var(--g-ink);
	margin: 0 0 16px;
}

.gicell-mt-32 {
	margin-top: 32px;
}

.gicell-description {
	font-size: 15px;
	line-height: 1.7;
	color: var(--g-ink);
}

.gicell-description.is-collapsed {
	max-height: 260px;
	overflow: hidden;
	position: relative;
	mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.gicell-see-more-toggle {
	display: none;
	margin-top: 10px;
	background: none;
	border: none;
	padding: 0;
	color: var(--g-accent);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
}

.gicell-check-list,
.gicell-bullet-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px 24px;
}

.gicell-check-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.5;
}

.gicell-check-icon {
	color: var(--gold);
	font-weight: 700;
	flex: 0 0 auto;
}

.gicell-bullet-list {
	display: block;
}

.gicell-bullet-list li {
	position: relative;
	padding-left: 18px;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 8px;
}

.gicell-bullet-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--g-muted);
}

/* ---------------- RELATED (dark band) ---------------- */

.gicell-related-section {
	background: var(--black);
	color: var(--white);
	padding: 56px 0;
}

.gicell-related-title {
	margin: 0 0 6px;
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 800;
	color: var(--white);
}

.gicell-related-subtitle {
	margin: 0 0 28px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
}

.gicell-related-row {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	padding-bottom: 12px;
	scroll-snap-type: x proximity;
}

.gicell-related-card {
	flex: 0 0 280px;
	scroll-snap-align: start;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 992px) {
	.gicell-course-hero {
		padding-bottom: 40px;
	}

	.gicell-body-grid {
		grid-template-columns: 1fr;
	}

	.gicell-purchase-card-wrap {
		margin-top: 24px;
	}

	.gicell-purchase-card {
		position: static;
	}

	.gicell-check-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.gicell-hero-title {
		font-size: 27px;
	}

	.gicell-tabs {
		gap: 18px;
		overflow-x: auto;
	}
}

/* --- Purchase card: dedupe reused Tutor partial's price, restyle its button --- */
.gicell-purchase-card .tutor-course-sidebar-card-pricing,
.gicell-purchase-card .tutor-course-sidebar-card-pricing + .tutor-color-muted {
	display: none !important;
}
.gicell-purchase-card .tutor-add-to-cart-button,
.gicell-purchase-card .tutor-woocommerce-view-cart {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 16px;
	padding: 14px 20px;
	border-radius: var(--radius);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}
/* CTA primaria (add-to-cart): dorado con texto oscuro, hover invierte a negro/oro. */
.gicell-purchase-card .tutor-add-to-cart-button {
	background: var(--gold);
	color: #14110a;
	border: 0;
}
.gicell-purchase-card .tutor-add-to-cart-button:hover {
	/* Antes #333: sobre base dorada, invertir a negro/oro mantiene contraste
	   (un simple var(--ink-2) dejaría texto oscuro sobre fondo oscuro). */
	background: var(--black);
	color: var(--gold);
}
/* CTA secundaria (ver carrito): outline neutro de marca, hover rellena en ink. */
.gicell-purchase-card .tutor-woocommerce-view-cart {
	background: var(--white);
	color: var(--ink);
	border: 1.5px solid var(--ink);
}
.gicell-purchase-card .tutor-woocommerce-view-cart:hover {
	background: var(--ink);
	color: var(--white);
}

/* ═══════════ Marca (tokens globales) — tipografía y fondo ═══════════ */

/* Fondo blanco cálido en catálogo y archivos de categoría (single-course conserva su hero). */
body.post-type-archive-courses,
body.tax-course-category {
	background: var(--paper);
}

/* Títulos de card y de filtros → Playfair (display), como en el home. */
.gicell-card-title,
.gicell-card-title a,
.gicell-filter-title {
	font-family: var(--font-display);
	font-weight: 500;
}

/* Precio y rating destacados → Playfair, coherentes con las cards del home. */
.gicell-price-current,
.gicell-price-sale,
.gicell-price-regular,
.gicell-rating-value {
	font-family: var(--font-display);
}

/* Eyebrow dorado en el conteo de resultados (matiz de marca). */
.gicell-results-count {
	letter-spacing: 0.04em;
}

/* Íconos de línea del meta de card (reemplazan los emojis del template). */
.gicell-meta-icon .ic {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	color: var(--gold);
	vertical-align: middle;
}

/* Íconos de línea de la meta-list del purchase card (single-course). */
.gicell-meta-list-icon .ic {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	color: var(--gold);
	vertical-align: middle;
}

/* Íconos sociales SVG del share (reemplazan las letras f/𝕏/in/IG). */
.gicell-share-icon .ic {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.gicell-share-icon .ic--fill {
	fill: currentColor;
	stroke: none;
}
