/* TYCH Academy — front end */
.tych-wrap,
.tych-my-courses {
	--tych-blue: #1f74c6;
	--tych-blue-dark: #155a9c;
	--tych-ink: #13233a;
	--tych-muted: #5d6b7e;
	--tych-line: #e3e8ef;
	--tych-soft: #f4f7fb;
	--tych-warn: #fff6e0;
	--tych-radius: 10px;
	color: var(--tych-ink);
	font-size: 16px;
	line-height: 1.6;
}

.tych-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: calc(48px + var(--tych-header-offset, 0px)) 16px 80px;
	box-sizing: border-box;
}

/* Themes whose header floats over the content (TYCH's adsett theme: 80 px). */
body.wp-theme-adsett, body.theme-adsett { --tych-header-offset: 90px; }

.tych-wrap *,
.tych-my-courses * {
	box-sizing: border-box;
}

.tych-muted { color: var(--tych-muted); }

.tych-eyebrow {
	margin: 0 0 8px;
	color: var(--tych-blue);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* Buttons */
.tych-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 22px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, transform .15s ease;
	cursor: pointer;
}
.tych-btn:active { transform: scale(.98); }
.tych-btn--primary { background: var(--tych-blue); color: #fff; }
.tych-btn--primary:hover,
.tych-btn--primary:focus-visible { background: var(--tych-blue-dark); color: #fff; }
.tych-btn--ghost { border-color: var(--tych-line); background: #fff; color: var(--tych-ink); }
.tych-btn--ghost:hover,
.tych-btn--ghost:focus-visible { border-color: var(--tych-blue); color: var(--tych-blue); }

.tych-notice {
	margin: 0 0 24px;
	padding: 14px 18px;
	border-radius: var(--tych-radius);
	background: var(--tych-soft);
}
.tych-notice--warn { background: var(--tych-warn); }

/* Course page */
.tych-course__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	grid-template-areas: "intro aside" "body aside";
	column-gap: 56px;
	align-items: start;
}
/* Hero band behind the title (rounded block; the buy box overlaps its right side). */
.tych-course__band {
	grid-column: 1 / -1;
	grid-row: 1;
	align-self: stretch;
	position: relative;
	z-index: 0;
	margin-top: -16px;
	overflow: hidden;
	border-radius: 20px;
	background:
		radial-gradient(600px 300px at 12% 20%, rgba(31, 116, 198, .16), transparent 70%),
		radial-gradient(500px 260px at 70% 100%, rgba(26, 138, 74, .08), transparent 70%),
		linear-gradient(135deg, #eaf3fd 0%, #f7fafe 100%);
}
.tych-course__band::before {
	content: "";
	position: absolute;
	inset: -40px;
	background-image:
		linear-gradient(rgba(31, 116, 198, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(31, 116, 198, .07) 1px, transparent 1px);
	background-size: 40px 40px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
	animation: tych-grid-drift 30s linear infinite;
}
@keyframes tych-grid-drift { to { transform: translate3d(40px, 40px, 0); } }

.tych-course__intro {
	grid-area: intro;
	grid-row: 1;
	position: relative;
	z-index: 1;
	padding: 24px 0 40px 36px;
}
.tych-course__intro .tych-eyebrow {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	padding: 5px 12px;
	border-radius: 99px;
	background: rgba(31, 116, 198, .1);
}
.tych-eyebrow__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tych-blue);
	box-shadow: 0 0 0 0 rgba(31, 116, 198, .5);
	animation: tych-pulse 2s ease-out infinite;
}
@keyframes tych-pulse {
	70% { box-shadow: 0 0 0 8px rgba(31, 116, 198, 0); }
	100% { box-shadow: 0 0 0 0 rgba(31, 116, 198, 0); }
}
.tych-course__title {
	margin: 14px 0 16px;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.15;
}
.tych-course__excerpt {
	max-width: 62ch;
	margin: 0 0 24px;
	color: var(--tych-muted);
	font-size: 18px;
}

.tych-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--tych-muted);
}
.tych-stats li {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	padding: 8px 14px 8px 8px;
	border: 1px solid var(--tych-line);
	border-radius: 99px;
	background: rgba(255, 255, 255, .85);
	font-size: 15px;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tych-stats li:hover { border-color: #b9d3ee; box-shadow: 0 6px 16px rgba(19, 35, 58, .08); transform: translateY(-2px); }
.tych-stats strong { color: var(--tych-ink); font-variant-numeric: tabular-nums; }
.tych-stat__icon {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #e6f0fb;
	position: relative;
}
.tych-stat__icon::after {
	content: "";
	position: absolute;
	inset: 7px;
	background: var(--tych-blue);
	-webkit-mask: var(--tych-ico) center / contain no-repeat;
	mask: var(--tych-ico) center / contain no-repeat;
}
.tych-stat__icon--modules { --tych-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 7.5 12 13l11-5.5L12 2zm0 13.2L3.4 10.9 1 12.1 12 17.6l11-5.5-2.4-1.2-8.6 4.3zm0 4.4-8.6-4.3L1 16.5 12 22l11-5.5-2.4-1.2-8.6 4.3z'/%3E%3C/svg%3E"); }
.tych-stat__icon--lessons { --tych-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-2 14.5v-9l6 4.5-6 4.5z'/%3E%3C/svg%3E"); }
.tych-stat__icon--hours { --tych-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 10.4 3.6 2.1-1 1.7L11 13.5V6h2v6.4z'/%3E%3C/svg%3E"); }
.tych-stat__icon--cert { --tych-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a7 7 0 0 0-4 12.7V23l4-2 4 2v-9.3A7 7 0 0 0 12 1zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8z'/%3E%3C/svg%3E"); }

/* Buy box: spans both rows and stays in view while scrolling. */
.tych-buybox {
	grid-area: aside;
	grid-row: 1 / span 2;
	position: sticky;
	top: calc(24px + var(--tych-header-offset, 0px));
	z-index: 2;
	overflow: hidden;
	border: 1px solid var(--tych-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 20px 48px rgba(19, 35, 58, .12);
}
.tych-buybox__media { overflow: hidden; }
.tych-buybox__media img { display: block; width: 100%; height: auto; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tych-buybox:hover .tych-buybox__media img { transform: scale(1.05); }
.tych-buybox__body { display: grid; gap: 16px; padding: 24px; }
.tych-buybox__body .tych-btn { width: 100%; }
.tych-buybox__status,
.tych-buybox__login { margin: 0; color: var(--tych-muted); font-size: 14px; }
.tych-buybox__perks { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.tych-buybox__perks li { display: flex; gap: 8px; align-items: center; }
.tych-buybox__perks li::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: #1a8a4a;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.3 14.3-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.3 14.3-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Button light sweep */
.tych-btn--shine { position: relative; overflow: hidden; box-shadow: 0 8px 20px rgba(31, 116, 198, .28); }
.tych-btn--shine::after {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg);
	animation: tych-shine 4.5s ease-in-out 1.2s infinite;
}
@keyframes tych-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.tych-btn--shine:hover { transform: translateY(-1px); }

.tych-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.tych-price__now { font-size: 34px; font-weight: 800; line-height: 1.1; }
.tych-price__was { color: var(--tych-muted); }
.tych-price__alt { flex-basis: 100%; color: var(--tych-muted); font-size: 14px; }

.tych-course__body { grid-area: body; min-width: 0; padding-top: 40px; }
.tych-section + .tych-section { margin-top: 56px; }
.tych-section h2 { margin: 0 0 20px; font-size: 26px; }
.tych-section__title { position: relative; padding-bottom: 12px; }
.tych-section__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--tych-blue), #4fb0ff);
	transform-origin: left;
	transition: transform .7s cubic-bezier(.2, .7, .2, 1) .2s;
}
.tych-reveal.is-pending .tych-section__title::after { transform: scaleX(0); }
.tych-content h2:not(.tych-section__title) { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; }
.tych-content h3 { font-size: clamp(19px, 2vw, 22px); line-height: 1.3; }
.tych-content img { max-width: 100%; height: auto; border-radius: var(--tych-radius); }

/* Entrance + scroll reveal */
.tych-in { animation: tych-fade-up .7s cubic-bezier(.2, .7, .2, 1) var(--tych-d, 0ms) both; }
@keyframes tych-fade-up { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
.tych-reveal,
.tych-curriculum .tych-module { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.tych-reveal.is-pending,
.tych-module.is-pending { opacity: 0; transform: translate3d(0, 24px, 0); }

/* Curriculum */
.tych-curriculum { display: grid; gap: 10px; }
.tych-curriculum { counter-reset: tych-mod; }
.tych-module {
	counter-increment: tych-mod;
	overflow: hidden;
	border: 1px solid var(--tych-line);
	border-radius: var(--tych-radius);
	background: #fff;
	transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1), border-color .2s ease, box-shadow .25s ease;
}
.tych-module:hover { border-color: #b9d3ee; box-shadow: 0 10px 24px rgba(19, 35, 58, .07); }
.tych-module[open] { border-color: #b9d3ee; }
.tych-module summary::before {
	content: counter(tych-mod, decimal-leading-zero);
	flex: none;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #e6f0fb;
	color: var(--tych-blue-dark);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	transition: background-color .25s ease, color .25s ease;
}
.tych-module[open] summary::before,
.tych-module summary:hover::before { background: var(--tych-blue); color: #fff; }
.tych-lesson-sidebar .tych-module summary::before { display: none; }
.tych-module summary {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}
.tych-module summary::-webkit-details-marker { display: none; }
.tych-module summary::after {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease;
}
.tych-module[open] summary::after { transform: rotate(-135deg); }
.tych-module__title { flex: 1; }
.tych-module__meta { color: var(--tych-muted); font-size: 13px; font-weight: 400; white-space: nowrap; }

.tych-lessons { margin: 0; padding: 0 0 8px; list-style: none; }
.tych-lesson {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 10px 20px;
	border-top: 1px solid var(--tych-soft);
	font-size: 15px;
	box-shadow: inset 0 0 0 transparent;
	transition: background-color .2s ease, box-shadow .2s ease;
}
.tych-course .tych-lesson:hover { background: #f7fafe; box-shadow: inset 3px 0 0 var(--tych-blue); }
.tych-lesson a { flex: 1; color: inherit; text-decoration: none; }
.tych-lesson a:hover,
.tych-lesson a:focus-visible { color: var(--tych-blue); }
.tych-lesson > span:not(.tych-icon):not(.tych-badge):not(.tych-lesson__time) { flex: 1; }
.tych-lesson.is-locked { color: var(--tych-muted); }
.tych-lesson.is-current { background: var(--tych-soft); font-weight: 700; }
.tych-lesson__time { color: var(--tych-muted); font-size: 13px; white-space: nowrap; }
.tych-badge {
	padding: 2px 8px;
	border-radius: 99px;
	background: #e6f0fb;
	color: var(--tych-blue-dark);
	font-size: 12px;
	font-weight: 700;
}

.tych-icon { flex: none; width: 16px; height: 16px; background: currentColor; }
.tych-icon--play {
	color: var(--tych-blue);
	clip-path: polygon(20% 10%, 90% 50%, 20% 90%);
}
.tych-icon--check {
	color: #1a8a4a;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.3 14.3-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.3 14.3-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tych-lesson.is-done a { color: var(--tych-muted); }

/* Progress */
.tych-progress { display: grid; gap: 6px; }
.tych-progress__label { display: flex; justify-content: space-between; font-size: 14px; }
.tych-progress__track { height: 8px; overflow: hidden; border-radius: 99px; background: var(--tych-line); }
.tych-progress__fill { display: block; height: 100%; border-radius: inherit; background: #1a8a4a; transition: width .4s ease; }
.tych-progress__meta { margin: 0; color: var(--tych-muted); font-size: 13px; }
.tych-lesson-sidebar .tych-progress { margin-bottom: 16px; }

.tych-complete-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin: 0 0 28px;
}
.tych-btn--done { border-color: #b8e2c8; background: #e9f7ef; color: #146c3a; }
.tych-btn--done:hover,
.tych-btn--done:focus-visible { border-color: #1a8a4a; color: #146c3a; }
.tych-complete-bar__note { color: var(--tych-muted); font-size: 14px; }
.tych-congrats {
	margin: 0 0 24px;
	padding: 16px 20px;
	border-radius: var(--tych-radius);
	background: #e9f7ef;
	color: #146c3a;
	font-weight: 700;
}

.tych-icon--lock {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 9V7a5 5 0 0 0-10 0v2H5v13h14V9h-2zM9 7a3 3 0 0 1 6 0v2H9V7z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 9V7a5 5 0 0 0-10 0v2H5v13h14V9h-2zM9 7a3 3 0 0 1 6 0v2H9V7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Lesson page */
.tych-player-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 40px;
	align-items: start;
}
.tych-back { display: inline-block; margin-bottom: 12px; color: var(--tych-muted); text-decoration: none; }
.tych-back:hover { color: var(--tych-blue); }
.tych-lesson-title { margin: 0 0 20px; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }

.tych-video {
	position: relative;
	overflow: hidden;
	margin-bottom: 28px;
	border-radius: var(--tych-radius);
	background: #000;
	aspect-ratio: 16 / 9;
}
.tych-video video,
.tych-video iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Protected player */
.tych-player { user-select: none; -webkit-user-select: none; }
.tych-player__mark {
	position: absolute;
	z-index: 2;
	max-width: 80%;
	overflow: hidden;
	color: rgba(255, 255, 255, .42);
	font-size: clamp(11px, 1.6vw, 16px);
	font-weight: 600;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
	white-space: nowrap;
	text-overflow: ellipsis;
	pointer-events: none;
	transition: left 1.2s ease, top 1.2s ease;
}
.tych-player__fs {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	opacity: 0;
	cursor: pointer;
	transition: opacity .2s ease, background-color .2s ease;
}
.tych-player:hover .tych-player__fs,
.tych-player__fs:focus-visible { opacity: 1; }
.tych-player__fs:hover { background: rgba(0, 0, 0, .8); }
.tych-player__fs svg { width: 20px; height: 20px; }
.tych-player.is-fullscreen { border-radius: 0; aspect-ratio: auto; }
.tych-player.is-fullscreen video { object-fit: contain; }
@media (hover: none) {
	.tych-player__fs { opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
	.tych-player__mark { transition: none; }
}

.tych-materials { margin-top: 32px; padding: 20px 24px; border-radius: var(--tych-radius); background: var(--tych-soft); }
.tych-materials h2 { margin: 0 0 12px; font-size: 18px; }
.tych-materials ul { margin: 0; padding-left: 20px; }

.tych-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	justify-content: space-between;
	margin-top: 32px;
	padding: 20px 24px;
	border: 1px solid #cfe0f3;
	border-radius: var(--tych-radius);
	background: #f0f6fd;
}
.tych-cta p { margin: 0; }

.tych-lesson-nav {
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--tych-line);
}

.tych-lesson-sidebar { position: sticky; top: calc(24px + var(--tych-header-offset, 0px)); max-height: calc(100vh - 48px - var(--tych-header-offset, 0px)); overflow-y: auto; }
.tych-sidebar-title { margin: 0 0 12px; font-size: 18px; }

/* My courses */
.tych-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.tych-card { overflow: hidden; border: 1px solid var(--tych-line); border-radius: var(--tych-radius); background: #fff; }
.tych-card__media { display: block; aspect-ratio: 16 / 9; background: var(--tych-soft); }
.tych-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tych-card__body { display: grid; gap: 8px; padding: 20px; }
.tych-card__title { margin: 0; font-size: 18px; line-height: 1.3; }
.tych-card__title a { color: inherit; text-decoration: none; }
.tych-card__body p { margin: 0; }

/* Currency: dollars for everyone; soles only for visitors in Peru (html[data-tych-pe]). */
.tych-price--pen { display: none; }
html[data-tych-pe] .tych-price--pen,
.tych-price--pen.is-only { display: flex; }
.tych-price--pen:not(.is-only) { gap: 2px 8px; padding: 10px 12px; border-radius: 8px; background: #f0f6fd; }
.tych-price--pen:not(.is-only) .tych-price__now { font-size: 22px; }
.tych-price__label { font-weight: 700; font-size: 14px; }
.tych-price__hint { flex-basis: 100%; color: var(--tych-muted, #5d6b7e); font-size: 12px; }
.tych-price__switch {
	display: none;
	padding: 0;
	border: 0;
	background: none;
	color: var(--tych-blue, #1f74c6);
	font: inherit;
	font-size: 13px;
	text-align: left;
	text-decoration: underline;
	cursor: pointer;
}
html[data-tych-pe] .tych-price__switch { display: inline; }

/* Checkout */
.tych-checkout .tych-course__title { margin-bottom: 24px; }
.tych-checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.tych-step { margin-bottom: 20px; padding: 24px; border: 1px solid var(--tych-line); border-radius: var(--tych-radius); background: #fff; }
.tych-step h2 { display: flex; gap: 12px; align-items: center; margin: 0 0 18px; font-size: 20px; }
.tych-step h2 span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tych-blue); color: #fff; font-size: 15px; }
.tych-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.tych-fields-grid label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.tych-fields-grid small { color: var(--tych-muted); font-weight: 400; }
.tych-span-2 { grid-column: 1 / -1; }
.tych-checkout input[type="text"],
.tych-checkout input[type="email"],
.tych-checkout input[type="tel"],
.tych-checkout input[type="file"] {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #c9d2de;
	border-radius: 8px;
	background: #fff;
	font-size: 16px;
}
.tych-checkout input:focus-visible { outline: 2px solid var(--tych-blue); outline-offset: 1px; }
.tych-checkout input[readonly] { background: var(--tych-soft); }
.tych-small { font-size: 13px; }
.tych-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tych-methods { display: grid; gap: 10px; }
.tych-method { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--tych-line); border-radius: 10px; cursor: pointer; }
.tych-method:has(input:checked) { border-color: var(--tych-blue); background: #f5f9fe; }
.tych-method input { width: 18px; height: 18px; accent-color: var(--tych-blue); }
.tych-method__name { font-weight: 700; }
.tych-method__body { display: none; grid-column: 2; gap: 16px; margin-top: 12px; align-items: flex-start; }
.tych-method input:checked ~ .tych-method__body { display: flex; flex-wrap: wrap; }
.tych-method__qr { width: 160px; height: auto; border-radius: 8px; }
.tych-method__text { flex: 1; min-width: 200px; font-size: 15px; }
.tych-method__amount { display: block; margin-top: 10px; font-size: 17px; }

.tych-check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: 14px; }
.tych-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--tych-blue); }
.tych-btn--block { width: 100%; min-height: 52px; font-size: 17px; }
.tych-btn:disabled { opacity: .6; cursor: progress; }

.tych-summary { position: sticky; top: calc(24px + var(--tych-header-offset, 0px)); overflow: hidden; border: 1px solid var(--tych-line); border-radius: var(--tych-radius); background: #fff; box-shadow: 0 12px 32px rgba(19, 35, 58, .08); }
.tych-summary__img { display: block; width: 100%; height: auto; }
.tych-summary__body { padding: 20px 22px; }
.tych-summary__course { margin: 0 0 12px; font-size: 18px; font-weight: 800; line-height: 1.3; }
.tych-summary__rows { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; margin: 0 0 16px; }
.tych-summary__rows dd { margin: 0; padding-left: 12px; text-align: right; }
.tych-summary__rows del { color: var(--tych-muted); font-size: 14px; }
.tych-summary__rows [hidden] { display: none; }
.tych-summary__total { padding-top: 10px; border-top: 1px solid var(--tych-line); font-size: 22px; font-weight: 800; }
.tych-coupon { margin-bottom: 12px; }
.tych-coupon label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.tych-coupon .tych-inline-form input { min-width: 120px; text-transform: uppercase; }
.tych-coupon__msg { min-height: 1em; margin: 6px 0 0; font-size: 13px; }
.tych-coupon__msg.is-ok { color: #146c3a; }
.tych-coupon__msg.is-error { color: #a1260d; }
.tych-notice ul { margin: 6px 0 0; padding-left: 20px; }
/* Card (Izipay) vs manual payment parts of the checkout. */
.tych-only-card { display: none; }
.tych-checkout__grid:has(input[name="method"][value="tarjeta"]:checked) .tych-only-manual { display: none; }
.tych-checkout__grid:has(input[name="method"][value="tarjeta"]:checked) .tych-only-card { display: inline; }
.tych-pay { max-width: 520px; }
.tych-pay__box { margin: 20px 0; padding: 24px; border: 1px solid var(--tych-line); border-radius: var(--tych-radius); background: #fff; box-shadow: 0 12px 32px rgba(19, 35, 58, .08); }
.tych-pay .kr-embedded { margin: 0 auto; }

.tych-done { max-width: 640px; }
.tych-done p { margin: 0 0 14px; }

@media (max-width: 960px) {
	.tych-checkout__grid { grid-template-columns: 1fr; }
	.tych-summary { position: static; grid-row: 1; }
}
@media (max-width: 600px) {
	.tych-fields-grid { grid-template-columns: 1fr; }
	.tych-step { padding: 18px 16px; }
}

/* Catalog [tych_cursos] */
.tych-catalog {
	--tych-blue: #1f74c6;
	--tych-blue-dark: #155a9c;
	--tych-ink: #13233a;
	--tych-muted: #5d6b7e;
	--tych-line: #e3e8ef;
	--tych-soft: #f4f7fb;
	--tych-radius: 12px;
	color: var(--tych-ink);
}
.tych-catalog * { box-sizing: border-box; }
.tych-catalog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.tych-product { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--tych-line); border-radius: var(--tych-radius); background: #fff; transition: box-shadow .25s ease, transform .25s ease; }
.tych-product:hover { box-shadow: 0 16px 40px rgba(19, 35, 58, .12); transform: translateY(-3px); }
.tych-product__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tych-soft); }
.tych-product__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tych-product__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 22px 24px 24px; }
.tych-product__title { margin: 0; font-size: 20px; line-height: 1.3; }
.tych-product__title a { color: inherit; text-decoration: none; }
.tych-product__title a:hover { color: var(--tych-blue); }
.tych-product__excerpt { margin: 0; color: var(--tych-muted); font-size: 15px; line-height: 1.55; }
.tych-product__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tych-product__facts li { padding: 3px 10px; border-radius: 99px; background: var(--tych-soft); color: var(--tych-ink); font-size: 13px; }
.tych-product__foot { display: grid; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--tych-line); }
.tych-product__foot .tych-price__now { font-size: 28px; }
.tych-product__actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.tych-tag-own { color: #146c3a; font-weight: 700; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .tych-product, .tych-product:hover { transition: none; transform: none; } }

/* Certificates */
.tych-card__certs { display: grid; gap: 6px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--tych-line); }
.tych-card__certs p { margin: 0; }
.tych-cert-link {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0 10px;
	align-items: baseline;
	padding: 8px 12px;
	border-radius: 8px;
	background: #e9f7ef;
	color: #146c3a;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}
.tych-cert-link::before { content: "↓"; grid-row: 1 / span 2; }
.tych-cert-link .tych-muted { grid-column: 2; font-weight: 400; font-size: 12px; }
.tych-cert-link:hover,
.tych-cert-link:focus-visible { background: #d5f0df; }
.tych-card__hint { margin: 4px 0 0; font-size: 13px; }

.tych-cert-name,
.tych-verify__form { max-width: 560px; margin-top: 32px; padding: 20px 24px; border: 1px solid var(--tych-line); border-radius: var(--tych-radius); background: #fff; }
.tych-cert-name p { margin: 4px 0 12px; font-size: 14px; }
.tych-inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.tych-inline-form input { flex: 1; min-width: 200px; min-height: 46px; padding: 8px 12px; border: 1px solid #c9d2de; border-radius: 8px; font-size: 16px; }
.tych-saved { margin: 10px 0 0 !important; color: #146c3a; font-weight: 700; }

.tych-verify { max-width: 760px; }
.tych-verify__card { margin: 24px 0; padding: 24px 28px; border: 1px solid var(--tych-line); border-radius: var(--tych-radius); background: #fff; }
.tych-verify__card.is-valid { border-color: #b8e2c8; }
.tych-verify__card.is-invalid { border-color: #f1c9a5; background: var(--tych-warn); }
.tych-verify__status { display: flex; gap: 10px; align-items: center; margin: 0 0 16px; font-size: 20px; font-weight: 800; }
.tych-verify__card.is-valid .tych-verify__status { color: #146c3a; }
.tych-verify__status .tych-icon { width: 24px; height: 24px; }
.tych-verify dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 16px; }
.tych-verify dt { color: var(--tych-muted); }
.tych-verify dd { margin: 0; font-weight: 700; }
.tych-verify__form label { display: block; margin-bottom: 8px; font-weight: 700; }

@media (max-width: 600px) {
	.tych-verify dl { grid-template-columns: 1fr; gap: 2px; }
	.tych-verify dd { margin-bottom: 10px; }
}

@media (max-width: 960px) {
	.tych-player-layout { grid-template-columns: 1fr; }
	.tych-course__layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "aside" "body"; }
	.tych-course__intro { padding: 20px 20px 28px; }
	.tych-course__band { margin-top: 0; }
	.tych-buybox { margin-top: 24px; }
	.tych-buybox { grid-row: 2; position: relative; top: auto; max-width: 480px; }
	.tych-course__body { grid-row: 3; }
	.tych-lesson-sidebar { position: static; max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
	.tych-btn,
	.tych-module summary::after { transition: none; }
	.tych-in,
	.tych-course__band::before,
	.tych-eyebrow__dot,
	.tych-btn--shine::after { animation: none; }
	.tych-reveal.is-pending,
	.tych-module.is-pending { opacity: 1; transform: none; }
	.tych-buybox__media img,
	.tych-stats li { transition: none; transform: none !important; }
}

/* "Mi cuenta": login + account bar */
.tych-login { max-width: 440px; margin: 0 auto; padding: 32px; border: 1px solid var(--tych-line); border-radius: 14px; background: #fff; box-shadow: 0 20px 48px rgba(19, 35, 58, .08); }
.tych-login__title { margin: 0 0 16px; font-size: 26px; }
.tych-login form p { margin: 0 0 14px; }
.tych-login label { display: block; margin-bottom: 4px; font-weight: 700; font-size: 14px; }
.tych-login input[type="text"],
.tych-login input[type="password"] { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #c9d2de; border-radius: 8px; font-size: 16px; }
.tych-login .login-remember label { display: inline; font-weight: 400; }
.tych-login input[type="submit"] { width: 100%; min-height: 46px; border: 0; border-radius: 8px; background: var(--tych-blue); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; }
.tych-login input[type="submit"]:hover { background: var(--tych-blue-dark); }
.tych-login__help { margin: 4px 0 8px; font-size: 14px; }
.tych-login__note { margin: 0; color: var(--tych-muted); font-size: 13px; }
.tych-account-bar { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; margin-bottom: 24px; padding: 14px 20px; border-radius: var(--tych-radius); background: var(--tych-soft); }
.tych-account-bar p { margin: 0; }
