/* ═══════════════════════════════════════════════
   GICELL — Cuenta / perfil del alumno (dashboard).
   Enqueue site-wide; todo scopeado bajo .gicell-account.
   ═══════════════════════════════════════════════ */

.gicell-account {
	max-width: 1080px;
	margin: 0 auto;
	padding: 8px 0 72px;
	font-family: var(--font-body);
	color: var(--ink);
}

/* ═══════════ HERO / PERFIL ═══════════ */
.gicell-account__hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding: 28px 30px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: linear-gradient(180deg, var(--paper-2) 0%, var(--white) 100%);
}
.gicell-account__id { display: flex; align-items: center; gap: 20px; min-width: 0; }
.gicell-account__avatar {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 30px;
	color: #14110a;
	background: linear-gradient(135deg, var(--gold-soft), var(--gold));
	box-shadow: 0 6px 18px rgba(201, 168, 106, 0.35);
}
.gicell-account__idtext { min-width: 0; }
.gicell-account__idtext h1 {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 500;
	color: var(--ink);
	margin: 0 0 6px;
	line-height: 1.15;
}
.gicell-account__meta {
	font-family: var(--font-body);
	font-size: 13.5px;
	color: var(--muted);
	margin: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.gicell-account__sep { color: var(--line); }
.gicell-account__role {
	display: inline-flex;
	align-items: center;
	padding: 3px 11px;
	border-radius: 999px;
	background: rgba(201, 168, 106, 0.14);
	color: #96762f;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.gicell-account__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gicell-account__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: 13.5px;
	font-weight: 500;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.gicell-account__btn .ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gicell-account__btn--ghost { border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.gicell-account__btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.gicell-account__btn--logout { border: 1px solid transparent; color: var(--muted); }
.gicell-account__btn--logout:hover { color: #b4483f; }

/* ═══════════ STATS ═══════════ */
.gicell-account__stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: 20px;
}
.gicell-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}
.gicell-stat__icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(201, 168, 106, 0.12);
	color: var(--gold);
	margin-bottom: 6px;
}
.gicell-stat__icon .ic { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gicell-stat__n { font-family: var(--font-display); font-size: 30px; font-weight: 500; color: var(--ink); line-height: 1; }
.gicell-stat__label { font-size: 12.5px; color: var(--muted); }

/* ═══════════ SECCIONES ═══════════ */
.gicell-account__section { margin-top: 40px; }
.gicell-account__h2 {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 500;
	color: var(--ink);
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}
.gicell-account__h3 {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 24px 0 14px;
}

/* Cards de curso (En curso / Completados). */
.gicell-account__courses--cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}
.gicell-course-progress-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--white);
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.gicell-course-progress-card:hover {
	box-shadow: 0 12px 30px rgba(14, 14, 14, .1);
	border-color: var(--gold-soft);
	transform: translateY(-2px);
}
.gicell-course-progress-card__img,
.gicell-course-progress-card__thumb--placeholder {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}
.gicell-course-progress-card__thumb--placeholder {
	background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 100%);
	filter: none;
}
.gicell-course-progress-card__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}
.gicell-course-progress-card__title {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 0;
	color: var(--ink);
	text-decoration: none;
}
.gicell-course-progress-card__title:hover { color: var(--gold); }
.gicell-progress {
	position: relative;
	height: 8px;
	border-radius: 999px;
	background: var(--paper-2);
	overflow: hidden;
}
.gicell-progress__fill {
	position: absolute;
	inset: 0 auto 0 0;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--gold-soft), var(--gold));
}
.gicell-progress__label { font-size: .8rem; color: var(--muted); }
.gicell-course-progress-card__cta {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 10px;
	font-weight: 600;
	text-decoration: none;
	background: var(--gold);
	color: #14110a;
	transition: background .2s ease, color .2s ease;
}
.gicell-course-progress-card__cta:hover { background: var(--black); color: var(--gold); }
.gicell-course-progress-card__cta.is-done {
	background: var(--paper-2);
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--gold-soft);
	pointer-events: none;
}

/* ═══════════ CERTIFICADOS ═══════════ */
.gicell-account__certs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gicell-cert-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.gicell-cert-row:hover { border-color: var(--gold-soft); box-shadow: 0 8px 20px rgba(14,14,14,.06); }
.gicell-cert-row__seal {
	flex: 0 0 auto;
	width: 44px; height: 44px;
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--gold-soft);
	color: var(--gold);
}
.gicell-cert-row__seal .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.gicell-cert-row__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gicell-cert-row__title { font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--ink); }
.gicell-cert-row__sub { font-size: 12.5px; color: var(--muted); }
.gicell-cert-row__dl {
	flex: 0 0 auto;
	display: inline-flex; align-items: center; gap: 7px;
	padding: 9px 16px;
	border-radius: 999px;
	border: 1px solid var(--gold-soft);
	color: #96762f;
	font-size: 13px; font-weight: 500;
	text-decoration: none;
	transition: background .2s ease, color .2s ease;
}
.gicell-cert-row__dl:hover { background: var(--gold); color: #14110a; border-color: var(--gold); }
.gicell-cert-row__dl .ic { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ═══════════ DATOS + FACTURACIÓN ═══════════ */
.gicell-account__grid2 {
	margin-top: 40px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.gicell-account__panel {
	padding: 24px 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}
.gicell-account__panel .gicell-account__h2 { font-size: 18px; }
.gicell-account__data { margin: 0 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.gicell-account__data dt { color: var(--muted); font-size: 13px; }
.gicell-account__data dd { margin: 0; color: var(--ink); font-size: 14px; }
.gicell-account__link {
	display: inline-flex;
	align-items: center;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	color: var(--gold);
	text-decoration: none;
}
.gicell-account__link:hover { color: #96762f; }

/* Notas de sección vacía. */
.gicell-account__note { font-family: var(--font-body); color: var(--muted); font-size: .92rem; }
.gicell-account__note a { color: var(--gold); }

/* Empty state global (sin cursos). */
.gicell-account__empty {
	text-align: center;
	padding: 48px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}
.gicell-account__empty-icon .ic { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.gicell-account__empty h2 { font-family: var(--font-display); font-weight: 500; margin: 14px 0 8px; color: var(--ink); }
.gicell-account__empty p { font-family: var(--font-body); color: var(--muted); margin: 0 0 20px; }
.gicell-account__empty-cta {
	display: inline-flex;
	align-items: center;
	padding: 12px 26px;
	border-radius: 999px;
	background: var(--gold);
	color: #14110a;
	font-family: var(--font-body);
	font-weight: 500;
	text-decoration: none;
}
.gicell-account__empty-cta:hover { background: #b8965a; }

/* Guest. */
.gicell-account--guest { max-width: 480px; margin: 60px auto; text-align: center; }
.gicell-account--guest a { color: var(--gold); }

/* Oculta el título de página redundante del tema ("Mi cuenta"). */
.gicell-account-page .page-header { display: none; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 860px) {
	.gicell-account__stats { grid-template-columns: 1fr 1fr; }
	.gicell-account__grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.gicell-account__hero { padding: 22px; }
	.gicell-account__avatar { width: 60px; height: 60px; font-size: 26px; }
	.gicell-account__idtext h1 { font-size: 24px; }
	.gicell-account__actions { width: 100%; }
	.gicell-cert-row { flex-wrap: wrap; }
}
