/* ==========================================================================
   ANATO Capacita: Perfil de usuario (anato-perfil.php). Requiere anato-base.css.

   Reestiliza el perfil de LearnPress sin tocar su marcado. Los selectores van
   anclados a .ach #learn-press-profile porque el CSS adicional del Personalizador
   usa IDs y !important sobre estos mismos elementos; donde él usa !important,
   aquí también.

   1. Hero y acceso (invitado)
   2. Estructura (barra lateral + contenido)
   3. Barra lateral y navegación
   4. Estadísticas y filtros
   5. Mis módulos (cartas) y tablas (cuestionarios)
   6. Constancias
   7. Ajustes y formularios
   8. Formulario de ingreso
   9. Responsive
   ========================================================================== */

/* 1. Hero y acceso (invitado)
   ========================================================================== */
.ach-profile-hero {
	position: relative;
	overflow: hidden;
	padding: 48px 0 40px;
	background: linear-gradient(180deg, #f4fafc 0%, #fff 100%);
}

.ach-profile-hero::before {
	content: '';
	position: absolute;
	width: 420px;
	height: 420px;
	right: -140px;
	top: -220px;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 40%, rgba(67, 215, 203, .3), rgba(7, 92, 168, .05) 60%, transparent 72%);
}

.ach-profile-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
}

.ach .ach-profile-hero h1,
.ach .ach-login h1 {
	margin: 14px 0 10px;
	font-size: clamp(34px, 4.4vw, 56px);
	line-height: 1.02;
	letter-spacing: -.045em;
	color: var(--ach-navy);
}

.ach-profile-hero h1 span,
.ach-login h1 span {
	color: var(--ach-teal);
}

.ach .ach-profile-hero p,
.ach .ach-login__copy > p {
	max-width: 560px;
	margin: 0;
	font-size: 15px;
	color: var(--ach-muted);
}

.ach-profile-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ach-profile-main {
	padding: 0;
}

.ach-login {
	position: relative;
	overflow: hidden;
	padding: 72px 0 96px;
	background: linear-gradient(180deg, #f4fafc 0%, #fff 100%);
}

.ach-login::before {
	content: '';
	position: absolute;
	width: 520px;
	height: 520px;
	right: -160px;
	top: -250px;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 40%, rgba(67, 215, 203, .32), rgba(7, 92, 168, .06) 60%, transparent 72%);
}

.ach-login__grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
	gap: 64px;
	align-items: center;
}

/* 2. Estructura (barra lateral + contenido)
   ========================================================================== */
.ach #learn-press-profile.lp-user-profile {
	position: static;
	margin: 0;
	padding: 0;
	background: transparent !important;
	font-family: inherit;
	color: var(--ach-ink);
}

/* Sidebar a la izquierda en todo el alto; a la derecha, migas + encabezado (.ach-profile-head) y contenido.
   Al estar en el flujo, si el menú es más alto que el contenido la grilla crece y no se corta. */
.ach #learn-press-profile.lp-user-profile:not(.guest) > .lp-content-area {
	display: grid;
	position: static;
	grid-template-columns: 280px minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	gap: 0;
	align-items: start;
	max-width: none !important; /* LearnPress: max-width: var(--lp-cotainer-max-with) !important */
	margin: 0;
	padding: 0;
}

/* Avisos de LearnPress sobre el perfil ("¡Acceso correcto!", ajustes guardados, errores):
   franja bajo el header en lugar de la caja gris con barra azul e ícono del tema. */
.ach .ach-profile > .learnpress > .learn-press-message {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: none !important;
	margin: 0 !important;
	padding: 14px 20px;
	border: 0;
	border-bottom: 1px solid #caece8;
	border-radius: 0;
	background: var(--ach-teal-soft);
	font-size: 14px;
	font-weight: 700;
	color: var(--ach-teal-dark);
}

.ach .ach-profile > .learnpress > .learn-press-message.error {
	border-bottom-color: #f1d3d3;
	background: #fdf3f3;
	color: #a13d3d;
}

.ach .ach-profile > .learnpress > .learn-press-message::before,
.ach .ach-profile > .learnpress > .learn-press-message::after,
.ach .ach-profile > .learnpress > .learn-press-message > i.fa {
	display: none;
}

/* El clearfix de LearnPress (::before/::after) contaría como celda de la grilla. */
.ach #learn-press-profile.lp-user-profile > .lp-content-area::before,
.ach #learn-press-profile.lp-user-profile > .lp-content-area::after {
	display: none;
}

.ach #learn-press-profile.lp-user-profile .ach-profile-head {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
}

.ach #learn-press-profile.lp-user-profile #profile-content {
	grid-column: 2;
	grid-row: 2;
	float: none;
	width: min(var(--ach-max), calc(100% - 40px));
	min-width: 0;
	margin: 0 auto;
	padding: 32px 0 96px;
	border: 0 !important;
	background: transparent !important;
}

.ach #learn-press-profile.lp-user-profile .profile-heading {
	margin: 0 0 18px;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--ach-navy);
}

/* 3. Barra lateral y navegación
   ========================================================================== */
.ach #learn-press-profile.lp-user-profile #profile-sidebar {
	position: static;
	grid-column: 1;
	grid-row: 1 / span 2;
	align-self: stretch;
	float: none;
	width: auto;
	height: auto;
	margin: 0;
	overflow: hidden;
	background: #fff;
	border: 0;
	border-right: 1px solid var(--ach-line) !important;
	border-left: 0 !important;
	border-radius: 0;
	box-shadow: none;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar .wrapper-profile-header {
	position: static;
	height: auto;
	min-height: 0;
	left: auto;
	right: auto;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 22px;
	transform: none;
	background: linear-gradient(155deg, var(--ach-navy), var(--ach-blue)) !important;
	color: #fff;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar .wrapper-profile-header::before,
.ach #learn-press-profile.lp-user-profile #profile-sidebar .wrapper-profile-header::after {
	display: none;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar .lp-profile-content-area {
	display: block;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar .wrapper-profile-header .lp-profile-left {
	display: flex;
	align-items: center;
	gap: 14px;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	text-align: left;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar .wrapper-profile-header .lp-user-profile-avatar {
	flex: none;
	width: auto;
	margin: 0;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar .wrapper-profile-header .lp-user-profile-avatar img {
	width: 56px;
	height: 56px;
	margin: 0;
	border: 2px solid rgba(255, 255, 255, .5);
	border-radius: 16px;
	object-fit: cover;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar .wrapper-profile-header .lp-user-username-social {
	min-width: 0;
	margin: 0;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar .wrapper-profile-header .lp-profile-left .lp-profile-username {
	margin: 0;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
	color: #fff;
	white-space: normal;
	text-overflow: clip;
	overflow-wrap: normal;
	word-break: normal;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav {
	padding: 10px;
	border-left: 0 !important;
	background: #fff !important;
	border: 0;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: transparent;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs li::before,
.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs li::after {
	display: none;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs li {
	position: static;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent !important;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li > a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 10px 12px;
	border: 0;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	color: #24435b !important;
	opacity: 1;
	transition: background-color .2s, color .2s;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li > a > i,
.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li > a > i::before {
	position: static;
	flex: none;
	width: 18px;
	margin: 0;
	font-size: 16px;
	text-align: center;
	transform: none;
	color: var(--ach-blue) !important;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li:hover > a,
.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li > a:hover,
.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li > a:focus-visible {
	background: var(--ach-soft);
	color: var(--ach-navy) !important;
	opacity: 1;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li:hover > a > i,
.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li:hover > a > i::before,
.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li:hover > a::after {
	color: var(--ach-navy) !important;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li.active > a {
	background: var(--ach-teal-soft);
	color: var(--ach-teal-dark) !important;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li.active > a > i,
.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li.active > a > i::before {
	color: var(--ach-teal-dark) !important;
}

/* Flecha del submenú de Ajustes */
.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li.has-child > a::after {
	margin-left: auto;
	color: #8398a8;
}

/* Submenú de Ajustes: visible solo dentro de Ajustes, sin menú flotante */
.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs .profile-tab-sections {
	position: static;
	display: none;
	visibility: visible;
	opacity: 1;
	width: auto;
	margin: 2px 0 4px 30px;
	padding: 0;
	list-style: none;
	background: transparent;
	border: 0;
	box-shadow: none;
	transform: none;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs li.active > .profile-tab-sections {
	display: grid;
	gap: 2px;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs .profile-tab-sections li a {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 700;
	color: #597184 !important;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs .profile-tab-sections li a i,
.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs .profile-tab-sections li a i::before {
	color: #8398a8 !important;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs .profile-tab-sections li.active a,
.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs .profile-tab-sections li a:hover {
	background: var(--ach-soft);
	color: var(--ach-blue) !important;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li.logout {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--ach-line);
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li.logout > a {
	color: #8a4b4b !important;
}

.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li.logout > a > i,
.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li.logout > a > i::before {
	color: #b06b6b !important;
}

/* 4. Estadísticas y filtros
   ========================================================================== */
.ach #learn-press-profile #profile-content .learn-press-profile-course__tab {
	padding: 0 !important;
	background: transparent;
	border: 0;
}

.ach #learn-press-profile #profile-content .learn-press-profile-course__statistic {
	margin: 0 0 24px;
}

.ach #learn-press-profile #profile-content .dashboard-statistic__row {
	background: transparent;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
}

.ach #learn-press-profile #profile-content .dashboard-statistic__row .statistic-box {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	align-items: flex-start;
	gap: 8px;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 18px;
	text-align: left;
	background: #fff;
	border: 1px solid var(--ach-line);
	border-radius: 18px;
	box-shadow: none;
}

.ach #learn-press-profile #profile-content .statistic-box .statistic-box__number {
	text-align: left;
	font-size: 32px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.03em;
	color: var(--ach-navy);
}

.ach #learn-press-profile #profile-content .statistic-box .statistic-box__text {
	margin: 0;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #718394;
}

.ach #learn-press-profile #profile-content .learn-press-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	background: transparent;
	border: 0;
}

.ach #learn-press-profile #profile-content .learn-press-filters > li {
	flex: none;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.ach #learn-press-profile #profile-content .learn-press-filters > li::after {
	display: none;
}

.ach #learn-press-profile #profile-content .learn-press-filters > li > a,
.ach #learn-press-profile #profile-content .learn-press-filters > li > span {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--ach-line);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 800;
	color: #456175;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}

.ach #learn-press-profile #profile-content .learn-press-filters > li > a:hover,
.ach #learn-press-profile #profile-content .learn-press-filters > li > a.active,
.ach #learn-press-profile #profile-content .learn-press-filters > li > span {
	background: var(--ach-navy);
	border-color: var(--ach-navy);
	color: #fff !important;
}

/* 5. Mis módulos (cartas) y tablas (cuestionarios)
   ========================================================================== */
.ach #learn-press-profile #profile-content .lp-list-table {
	width: 100%;
	margin: 0;
	border: 1px solid var(--ach-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	font-size: 13px;
}

.ach #learn-press-profile #profile-content .lp-list-table th {
	padding: 13px 16px;
	background: var(--ach-soft);
	border: 0;
	border-bottom: 1px solid var(--ach-line);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-align: left;
	text-transform: uppercase;
	color: #597184;
}

.ach #learn-press-profile #profile-content .lp-list-table td {
	padding: 12px 16px;
	border: 0;
	border-top: 1px solid var(--ach-line);
	vertical-align: middle;
	text-align: left;
	color: #365267;
	background: #fff;
}

.ach #learn-press-profile #profile-content .lp-list-table tbody tr:first-child td {
	border-top: 0;
}

.ach #learn-press-profile #profile-content .lp-list-table td a:hover {
	color: var(--ach-blue);
}

.ach #learn-press-profile #profile-content .lp-list-table td a {
	font-weight: 700;
	color: #27475f;
}

.ach #learn-press-profile #profile-content .lp-list-table .lp-label,
.ach #learn-press-profile #profile-content .lp-list-table .result-percent {
	display: inline-flex;
	align-items: center;
	margin: 2px 6px 2px 0;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
}

.ach #learn-press-profile #profile-content .lp-list-table .result-percent {
	background: #edf5fa;
	color: var(--ach-blue);
}

.ach #learn-press-profile #profile-content .lp-list-table .lp-label {
	background: var(--ach-teal-soft);
	color: var(--ach-teal-dark);
}

.ach #learn-press-profile #profile-content .lp-list-table .lp-label.label-failed {
	background: #fdeeee;
	color: #a13d3d;
}

.ach #learn-press-profile #profile-content .lp-list-table tfoot td {
	background: var(--ach-soft);
	font-size: 12px;
	color: #718394;
}

/* Mis módulos: cartas (learnpress-v4/profile/tabs/courses/course-list.php) */
.ach #learn-press-profile #profile-content .ach-my-courses {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
	width: 100%;
	border: 0;
	background: transparent; /* Personalizador: .lp_profile_course_progress { background: #ddd } */
}

.ach #learn-press-profile #profile-content .ach-my-course {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ach-line);
	border-radius: 20px;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}

.ach #learn-press-profile #profile-content .ach-my-course:hover {
	transform: translateY(-4px);
	border-color: #c9dceb;
	box-shadow: var(--ach-shadow);
}

.ach #learn-press-profile #profile-content .ach-my-course__cover {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--ach-soft);
}

.ach #learn-press-profile #profile-content .ach-my-course__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ach #learn-press-profile #profile-content .ach-my-course__icon svg {
	width: 44px;
	height: 44px;
	color: var(--ach-blue);
}

.ach #learn-press-profile #profile-content .ach-my-course__state {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .05em;
	text-transform: uppercase;
	background: #fff4e5;
	color: #a15c00;
}

.ach #learn-press-profile #profile-content .ach-my-course--passed .ach-my-course__state {
	background: var(--ach-teal-soft);
	color: var(--ach-teal-dark);
}

.ach #learn-press-profile #profile-content .ach-my-course--finished .ach-my-course__state {
	background: #edf5fa;
	color: var(--ach-blue);
}

.ach #learn-press-profile #profile-content .ach-my-course--failed .ach-my-course__state {
	background: #fdeeee;
	color: #a13d3d;
}

.ach #learn-press-profile #profile-content .ach-my-course__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	padding: 18px 18px 20px;
}

.ach #learn-press-profile #profile-content .ach-my-course__number {
	margin-bottom: -8px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #718394;
}

.ach #learn-press-profile #profile-content .ach-my-course h3 {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -.01em;
	text-transform: none;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ach #learn-press-profile #profile-content .ach-my-course__link {
	color: var(--ach-navy);
}

/* Toda la carta es clicable */
.ach #learn-press-profile #profile-content .ach-my-course__link::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}

.ach #learn-press-profile #profile-content .ach-my-course__link:focus-visible {
	outline: 0;
}

.ach #learn-press-profile #profile-content .ach-my-course:has(.ach-my-course__link:focus-visible) {
	outline: 3px solid rgba(13, 118, 189, .35);
	outline-offset: 2px;
}

.ach #learn-press-profile #profile-content .ach-my-course__progress-label {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 7px;
	font-size: 12px;
	color: var(--ach-muted);
}

.ach #learn-press-profile #profile-content .ach-my-course__progress-label b {
	font-weight: 800;
	color: var(--ach-navy);
}

.ach #learn-press-profile #profile-content .ach-my-course__bar {
	height: 6px;
	overflow: hidden;
	border-radius: 999px;
	background: #e8f0f5;
}

.ach #learn-press-profile #profile-content .ach-my-course__bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--ach-blue);
}

.ach #learn-press-profile #profile-content .ach-my-course--passed .ach-my-course__bar span {
	background: var(--ach-teal);
}

.ach #learn-press-profile #profile-content .ach-my-course__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid var(--ach-line);
}

.ach #learn-press-profile #profile-content .ach-my-course__meta dt {
	margin: 0 0 2px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #8398a8;
}

.ach #learn-press-profile #profile-content .ach-my-course__meta dd {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: #27475f;
}

.ach #learn-press-profile #profile-content .ach-my-course .ach-link-arrow {
	margin-top: auto;
	font-size: 13px;
}

.ach #learn-press-profile #profile-content .ach-my-course:hover .ach-link-arrow span {
	transform: translateX(4px);
}

/* Botones "Ver más" / paginación */
.ach #learn-press-profile #profile-content .lp_profile_course_progress__nav {
	margin-top: 16px;
	text-align: center;
}

.ach #learn-press-profile #profile-content .lp_profile_course_progress__nav button,
.ach #learn-press-profile #profile-content #certificates-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 0 20px;
	border: 1px solid #d7e6f1;
	border-radius: 14px;
	background: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	color: var(--ach-blue);
	cursor: pointer;
}

.ach #learn-press-profile #profile-content .lp_profile_course_progress__nav button:hover,
.ach #learn-press-profile #profile-content #certificates-load-more:hover {
	border-color: #9fc7df;
	background: #fff;
	color: var(--ach-blue);
}

/* 6. Constancias
   ========================================================================== */
.ach #learn-press-profile #profile-content .profile-certificates {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ach #learn-press-profile #profile-content .profile-certificates .certificate-item {
	float: none;
	width: auto;
	margin: 0;
	padding: 12px 12px 14px;
	background: #fff;
	border: 1px solid var(--ach-line);
	border-radius: 18px;
	transition: transform .25s, box-shadow .25s;
}

.ach #learn-press-profile #profile-content .profile-certificates .certificate-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--ach-shadow);
}

.ach #learn-press-profile #profile-content .certificate-thumbnail {
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--ach-line);
	border-radius: 12px;
	background: var(--ach-soft);
}

/* Imagen final de la constancia: el addon la fija a 250px con object-fit: cover y la recorta. */
.ach #learn-press-profile #profile-content .certificate-thumbnail .certificate-result {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* El addon dibuja la constancia en un canvas con tamaño fijo; aquí se escala al ancho de la tarjeta. */
.ach #learn-press-profile #profile-content .certificate-preview .canvas-container {
	width: 100% !important;
	height: auto !important;
}

.ach #learn-press-profile #profile-content .certificate-preview .lower-canvas {
	position: relative !important;
	display: block;
	width: 100% !important;
	height: auto !important;
}

.ach #learn-press-profile #profile-content .certificate-preview .upper-canvas {
	width: 100% !important;
	height: 100% !important;
}

.ach #learn-press-profile #profile-content .certificate-item .course-title {
	margin: 12px 4px 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.ach #learn-press-profile #profile-content .certificate-item .course-title a {
	color: #27475f;
}

.ach #learn-press-profile #profile-content .certificate-item .course-title a:hover {
	color: var(--ach-blue);
}

.ach #learn-press-profile #profile-content .wrap-content-certificates {
	text-align: center;
}

.ach #learn-press-profile #profile-content .wrap-content-certificates .profile-certificates {
	text-align: left;
}

.ach #learn-press-profile #profile-content #certificates-load-more {
	margin-top: 20px;
}

/* 7. Ajustes y formularios
   ========================================================================== */
.ach #learn-press-profile #profile-content .learn-press-tabs {
	margin: 0 0 18px;
	background: transparent;
	border: 0;
}

.ach #learn-press-profile #profile-content .learn-press-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: transparent;
	border: 0;
}

.ach #learn-press-profile #profile-content .learn-press-tabs__tab {
	flex: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.ach #learn-press-profile #profile-content .learn-press-tabs__tab::before,
.ach #learn-press-profile #profile-content .learn-press-tabs__tab::after {
	display: none;
}

.ach #learn-press-profile #profile-content .learn-press-tabs__tab label,
.ach #learn-press-profile #profile-content .learn-press-tabs__tab label a {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	cursor: pointer;
}

.ach #learn-press-profile #profile-content .learn-press-tabs__tab label a {
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--ach-line);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 800;
	color: #456175;
}

.ach #learn-press-profile #profile-content .learn-press-tabs__tab.active label a,
.ach #learn-press-profile #profile-content .learn-press-tabs__tab label a:hover {
	background: var(--ach-navy);
	border-color: var(--ach-navy);
	color: #fff;
}

.ach #learn-press-profile.lp-user-profile #profile-content .learn-press-form {
	float: none;
	width: auto;
	margin: 0;
	padding: 28px;
	background: #fff !important;
	border: 1px solid var(--ach-line);
	border-radius: 22px;
}

.ach #learn-press-profile.lp-user-profile :is(#profile-content, .lp-content-area) .learn-press-form .form-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ach #learn-press-profile.lp-user-profile :is(#profile-content, .lp-content-area) .learn-press-form .form-fields .form-field {
	grid-column: 1 / -1;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

.ach #learn-press-profile.lp-user-profile :is(#profile-content, .lp-content-area) .learn-press-form .form-fields .form-field.form-field__50 {
	grid-column: auto;
}

.ach #learn-press-profile.lp-user-profile :is(#profile-content, .lp-content-area) .learn-press-form .form-fields .form-field label {
	display: block;
	margin: 0 0 7px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .02em;
	color: #456175;
}

.ach #learn-press-profile.lp-user-profile :is(#profile-content, .lp-content-area) .learn-press-form .form-fields .form-field .required {
	color: #c0392b;
}

.ach #learn-press-profile.lp-user-profile :is(#profile-content, .lp-content-area) .learn-press-form .form-fields .form-field input[type="text"],
.ach #learn-press-profile.lp-user-profile :is(#profile-content, .lp-content-area) .learn-press-form .form-fields .form-field input[type="email"],
.ach #learn-press-profile.lp-user-profile :is(#profile-content, .lp-content-area) .learn-press-form .form-fields .form-field input[type="password"],
.ach #learn-press-profile.lp-user-profile :is(#profile-content, .lp-content-area) .learn-press-form .form-fields .form-field input[type="url"],
.ach #learn-press-profile.lp-user-profile :is(#profile-content, .lp-content-area) .learn-press-form .form-fields .form-field textarea,
.ach #learn-press-profile.lp-user-profile :is(#profile-content, .lp-content-area) .learn-press-form .form-fields .form-field select {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--ach-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: none;
	font-family: inherit;
	font-size: 14px;
	color: var(--ach-ink);
	transition: border-color .2s, box-shadow .2s;
}

.ach #learn-press-profile.lp-user-profile :is(#profile-content, .lp-content-area) .learn-press-form .form-fields .form-field textarea {
	height: auto;
	min-height: 110px;
	padding: 12px 14px;
}

.ach #learn-press-profile.lp-user-profile :is(#profile-content, .lp-content-area) .learn-press-form .form-fields .form-field input:focus,
.ach #learn-press-profile.lp-user-profile :is(#profile-content, .lp-content-area) .learn-press-form .form-fields .form-field textarea:focus,
.ach #learn-press-profile.lp-user-profile :is(#profile-content, .lp-content-area) .learn-press-form .form-fields .form-field select:focus {
	outline: 0;
	border-color: #9dc7de;
	box-shadow: 0 0 0 4px rgba(13, 118, 189, .1);
}

.ach #learn-press-profile.lp-user-profile :is(#profile-content, .lp-content-area) .learn-press-form .form-fields .form-field .description {
	margin: 6px 0 0;
	font-size: 12px;
	color: #718394;
}

.ach #learn-press-profile.lp-user-profile .learn-press-form input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0 8px 0 0;
	vertical-align: middle;
	accent-color: var(--ach-teal);
}

.ach #learn-press-profile.lp-user-profile .learn-press-form button,
.ach #learn-press-profile.lp-user-profile .learn-press-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	margin: 22px 0 0;
	padding: 0 24px;
	border: 0;
	border-radius: 14px;
	background: var(--ach-blue);
	box-shadow: 0 10px 28px rgba(7, 92, 168, .22);
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	transition: background-color .22s, transform .22s;
}

.ach #learn-press-profile.lp-user-profile .learn-press-form button:hover,
.ach #learn-press-profile.lp-user-profile .learn-press-form input[type="submit"]:hover {
	background: var(--ach-blue-dark);
	color: #fff;
	transform: translateY(-2px);
}

/* 8. Formulario de ingreso (invitado)
   ========================================================================== */
html body .ach #learn-press-profile.lp-user-profile.guest .lp-content-area {
	max-width: none;
	margin: 0;
	padding: 0;
}

html body .ach #learn-press-profile.lp-user-profile .learn-press-form.learn-press-form-login {
	float: none;
	width: auto !important;
	margin: 0;
	padding: 32px;
	background: #fff !important;
	border: 1px solid var(--ach-line) !important;
	border-radius: 26px;
	box-shadow: var(--ach-shadow);
}

html body .ach #learn-press-profile.lp-user-profile .learn-press-form.learn-press-form-login h3 {
	margin: 0 0 22px;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -.03em;
	text-align: left;
	color: var(--ach-navy);
}

html body .ach #learn-press-profile.lp-user-profile .learn-press-form.learn-press-form-login .form-fields {
	grid-template-columns: 1fr;
	gap: 16px;
}

html body .ach #learn-press-profile.lp-user-profile .learn-press-form-login .form-fields .form-field input[type="text"],
html body .ach #learn-press-profile.lp-user-profile .learn-press-form-login .form-fields .form-field input[type="password"] {
	border: 1px solid var(--ach-line);
	border-radius: 12px;
}

.ach #learn-press-profile .learn-press-form-login .lp-password-input {
	position: relative;
	display: block;
}

.ach #learn-press-profile .learn-press-form-login .lp-show-password-input {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
}

.ach #learn-press-profile .learn-press-form-login .fomr-field,
.ach #learn-press-profile .learn-press-form-login form > p {
	margin: 0;
	font-size: 13px;
	color: #456175;
}

.ach #learn-press-profile .learn-press-form-login .fomr-field label,
.ach #learn-press-profile .learn-press-form-login form > p label {
	display: block;
	margin: 0;
	line-height: 1.5;
	font-size: 13px;
	font-weight: 600;
	color: #456175;
}

.ach #learn-press-profile .learn-press-form-login form > p {
	margin-top: 16px;
}

.ach #learn-press-profile .learn-press-form-login a {
	font-weight: 700;
	color: var(--ach-blue);
}

.ach #learn-press-profile .learn-press-form-login a:hover {
	text-decoration: underline;
}

html body .ach #learn-press-profile.lp-user-profile .learn-press-form.learn-press-form-login button[type="submit"] {
	width: 100%;
	margin: 0 0 14px;
	background: var(--ach-blue) !important;
	background-image: none !important;
}

html body .ach #learn-press-profile.lp-user-profile .learn-press-form.learn-press-form-login button[type="submit"]:hover {
	background: var(--ach-blue-dark) !important;
}

/* 9. Responsive
   ========================================================================== */
@media (max-width: 980px) {
	/* Una columna: migas + encabezado, menú en fila y contenido. */
	.ach #learn-press-profile.lp-user-profile:not(.guest) > .lp-content-area {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
	}

	.ach #learn-press-profile.lp-user-profile .ach-profile-head {
		grid-column: 1;
		grid-row: 1;
	}

	.ach #learn-press-profile.lp-user-profile #profile-content {
		grid-column: 1;
		grid-row: 3;
		padding-top: 24px;
	}

	.ach #learn-press-profile.lp-user-profile #profile-sidebar {
		grid-column: 1;
		grid-row: 2;
		border-right: 0 !important;
		border-bottom: 1px solid var(--ach-line);
	}

	/* Navegación del perfil en una fila deslizable */
	.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs {
		display: flex;
		gap: 6px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs::-webkit-scrollbar {
		display: none;
	}

	.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li {
		flex: none;
		width: auto;
		max-width: none; /* LearnPress lo limita a 80px (<560px) para mostrar solo íconos */
	}

	.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li > a {
		white-space: nowrap;
	}

	.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li.logout {
		margin: 0;
		padding: 0;
		border: 0;
	}

	.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs li.active > .profile-tab-sections,
	.ach #learn-press-profile.lp-user-profile #profile-sidebar #profile-nav .lp-profile-nav-tabs > li.has-child > a::after {
		display: none;
	}

	.ach-login__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}
}

@media (max-width: 680px) {
	.ach-profile-hero { padding: 36px 0 28px; }
	.ach-profile-hero__actions,
	.ach-profile-hero__actions .ach-btn { width: 100%; }
	.ach #learn-press-profile.lp-user-profile #profile-content { padding-bottom: 64px; }

	.ach-login { padding: 40px 0 64px; }
	html body .ach #learn-press-profile.lp-user-profile .learn-press-form.learn-press-form-login { padding: 24px 20px; }

	.ach #learn-press-profile #profile-content .dashboard-statistic__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ach #learn-press-profile.lp-user-profile #profile-content .learn-press-form { padding: 20px; }
	.ach #learn-press-profile.lp-user-profile :is(#profile-content, .lp-content-area) .learn-press-form .form-fields { grid-template-columns: minmax(0, 1fr); }

	/* Tablas: la primera columna ocupa la fila; el resto debajo */
	.ach #learn-press-profile #profile-content .lp-list-table,
	.ach #learn-press-profile #profile-content .lp-list-table tbody {
		display: block;
	}

	.ach #learn-press-profile #profile-content .lp-list-table thead {
		display: none;
	}

	.ach #learn-press-profile #profile-content .lp-list-table tbody tr {
		display: flex;
		flex-wrap: wrap;
		gap: 4px 14px;
		padding: 14px 16px;
		border-top: 1px solid var(--ach-line);
	}

	.ach #learn-press-profile #profile-content .lp-list-table tbody tr:first-child {
		border-top: 0;
	}

	.ach #learn-press-profile #profile-content .lp-list-table td {
		padding: 0;
		border: 0;
		font-size: 12px;
		background: transparent;
	}

	.ach #learn-press-profile #profile-content .lp-list-table td:first-child {
		flex: 1 1 100%;
		margin-bottom: 6px;
	}

	.ach #learn-press-profile #profile-content .lp-list-table tfoot {
		display: block;
	}
}
