/* ==========================================================================
   Atonika — Catálogo de cursos (home + /courses/)
   Mockup cliente 2026-10-26: hero con foto + vías + filtros + grilla 3x3.
   Paleta: navy #011E41 · gold #BC996C · crema #FDF7EC
   ========================================================================== */

.atk-catalog {
	--cat-navy: #011e41;
	--cat-gold: #bc996c;
	--cat-gold-dark: #a98653;
	--cat-cream: #fdf7ec;
	--cat-ink: #101828;
	--cat-soft: #667085;
	--cat-line: #e9e6df;
	--cat-white: #fff;
	background: var(--cat-white);
	color: var(--cat-ink);
	min-height: 60vh;
}

.atk-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------- Hero */

.atk-catalog .atk-cat__hero {
	position: relative;
	overflow: hidden;
	background: #f3efe8;
	min-height: 300px;
	display: flex;
	align-items: center;
}

.atk-catalog .atk-cat__hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.atk-catalog .atk-cat__hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 42%;
	display: block;
}

.atk-catalog .atk-cat__hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .97) 20%, rgba(255, 255, 255, .88) 36%, rgba(255, 255, 255, .58) 55%, rgba(255, 255, 255, .14) 74%, rgba(255, 255, 255, 0) 86%);
}

.atk-catalog .atk-cat__hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 52px 24px;
}

.atk-catalog .atk-cat__hero-text {
	max-width: 500px;
}

.atk-catalog .atk-cat__eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--cat-gold-dark);
	margin-bottom: 14px;
}

.atk-catalog .atk-cat__title {
	font-size: clamp(32px, 3.4vw, 46px);
	line-height: 1.08;
	font-weight: 800;
	color: var(--cat-navy);
	margin: 0 0 16px;
	letter-spacing: -.015em;
}

.atk-catalog .atk-cat__sub {
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--cat-soft);
	max-width: 430px;
	margin: 0;
}

/* ---------------------------------------------------------- Wrap */

.atk-catalog .atk-cat__wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 28px 24px 72px;
}

/* ---------------------------------------------------------- Tabs */

.atk-catalog .atk-cat__tabs {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 22px;
}

.atk-catalog .atk-cat__tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 18px 8px 16px;
	background: var(--cat-white);
	border: 1px solid var(--cat-line);
	border-radius: 14px;
	text-decoration: none;
	color: var(--cat-navy);
	transition: border-color .18s, box-shadow .18s, transform .18s;
}

.atk-catalog .atk-cat__tab:hover {
	border-color: var(--cat-gold);
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(1, 30, 65, .07);
}

.atk-catalog .atk-cat__tab.is-active {
	border-color: var(--cat-gold);
	box-shadow: 0 0 0 1px var(--cat-gold);
}

.atk-catalog .atk-cat__tab-circle {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--cat-navy);
	flex: 0 0 auto;
}

.atk-catalog .atk-cat__tab-circle svg {
	width: 28px;
	height: 28px;
	stroke-width: 1.8;
}

.atk-catalog .atk-cat__tab-label {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--cat-navy);
	line-height: 1;
}

/* ---------------------------------------------------------- Filters */

.atk-catalog .atk-cat__filters {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	background: var(--cat-white);
	border: 1px solid var(--cat-line);
	border-radius: 14px;
	padding: 12px 14px;
	margin-bottom: 26px;
}

.atk-catalog .atk-cat__filters-left,
.atk-catalog .atk-cat__filters-right {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.atk-catalog .atk-cat__pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--cat-navy);
	background: #fff;
	border: 1px solid var(--cat-line);
	border-radius: 11px;
	padding: 5px 16px 5px 5px;
	min-height: 44px;
	white-space: nowrap;
}

.atk-catalog .atk-cat__pill-circle {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--cat-navy);
}

.atk-catalog .atk-cat__pill-circle svg {
	width: 16px;
	height: 16px;
}

.atk-catalog .atk-cat__select {
	appearance: none;
	-webkit-appearance: none;
	background: var(--cat-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
	border: 1px solid var(--cat-line);
	border-radius: 10px;
	padding: 10px 38px 10px 14px;
	font-size: 13.5px;
	font-weight: 500;
	font-family: inherit;
	color: var(--cat-ink);
	min-height: 44px;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}

.atk-catalog .atk-cat__select:hover {
	border-color: #d3ccc0;
}

.atk-catalog .atk-cat__select:focus-visible {
	border-color: var(--cat-gold);
	box-shadow: 0 0 0 3px rgba(188, 153, 108, .18);
	outline: none;
}

.atk-catalog .atk-cat__count {
	font-size: 13px;
	color: var(--cat-soft);
	margin: 0;
	white-space: nowrap;
}

.atk-catalog .atk-cat__apply {
	background: var(--cat-navy);
	color: #fff;
	border: 0;
	border-radius: 9px;
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

/* ---------------------------------------------------------- Grid */

.atk-catalog .atk-cat__results {
	position: relative;
	transition: opacity .18s ease;
}

.atk-catalog.is-loading .atk-cat__results {
	opacity: .4;
	pointer-events: none;
}

.atk-catalog.is-loading .atk-cat__results::after {
	content: "";
	position: absolute;
	top: 90px;
	left: 50%;
	width: 30px;
	height: 30px;
	margin-left: -15px;
	border: 2px solid rgba(1, 30, 65, .14);
	border-top-color: var(--cat-gold);
	border-radius: 50%;
	animation: atk-cat-spin .7s linear infinite;
}

@keyframes atk-cat-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.atk-catalog.is-loading .atk-cat__results::after {
		animation: none;
	}
}

.atk-catalog .atk-cat__pill-label {
	font-weight: 700;
}

.atk-catalog .atk-cat__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 36px;
}

/* ---------------------------------------------------------- Card */

.atk-catalog .atk-ccard {
	background: var(--cat-white);
	border: 1px solid #f0ede7;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-width: 0;
	transition: box-shadow .2s, transform .2s, border-color .2s;
}

.atk-catalog .atk-ccard:hover {
	box-shadow: 0 14px 34px rgba(1, 30, 65, .09);
	border-color: #e6e1d7;
	transform: translateY(-3px);
}

.atk-catalog .atk-ccard__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #efeae2;
}

.atk-catalog .atk-ccard__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}

.atk-catalog .atk-ccard:hover .atk-ccard__img {
	transform: scale(1.04);
}

.atk-catalog .atk-ccard__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--cat-navy);
	opacity: .35;
}

.atk-catalog .atk-ccard__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--cat-white);
	color: var(--cat-navy);
	font-size: 11.5px;
	font-weight: 700;
	padding: 6px 10px;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(1, 30, 65, .14);
	line-height: 1;
	letter-spacing: .01em;
}

.atk-catalog .atk-ccard__badge svg {
	width: 12px;
	height: 12px;
}

.atk-catalog .atk-ccard__fav {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .92);
	color: var(--cat-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .15s, color .15s, transform .15s;
}

.atk-catalog .atk-ccard__fav svg {
	width: 17px;
	height: 17px;
}

.atk-catalog .atk-ccard__fav:hover {
	background: #fff;
	transform: scale(1.06);
}

.atk-catalog .atk-ccard__fav.is-on {
	color: #d1495b;
}

.atk-catalog .atk-ccard__fav.is-on svg {
	fill: currentColor;
}

.atk-catalog .atk-ccard__body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}

.atk-catalog .atk-ccard__title-link {
	text-decoration: none;
}

.atk-catalog .atk-ccard__title {
	font-size: 15.5px;
	line-height: 1.35;
	font-weight: 700;
	color: var(--cat-navy);
	margin: 0 0 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.atk-catalog .atk-ccard__teacher {
	font-size: 13px;
	color: var(--cat-soft);
	margin: 0 0 8px;
}

.atk-catalog .atk-ccard__meta {
	font-size: 12px;
	color: #98a2b3;
	margin: 0 0 12px;
}

.atk-catalog .atk-ccard__foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 26px;
}

.atk-catalog .atk-ccard__rating {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	color: var(--cat-soft);
	line-height: 1;
}

.atk-catalog .atk-ccard__rating svg {
	width: 13px;
	height: 13px;
	color: var(--cat-gold);
}

.atk-catalog .atk-ccard__rating strong {
	font-weight: 700;
	color: var(--cat-ink);
}

.atk-catalog .atk-ccard__save {
	border: 0;
	background: transparent;
	color: #98a2b3;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	border-radius: 6px;
	transition: color .15s, background .15s;
}

.atk-catalog .atk-ccard__save svg {
	width: 17px;
	height: 17px;
}

.atk-catalog .atk-ccard__save:hover {
	color: var(--cat-navy);
	background: #f6f4ef;
}

.atk-catalog .atk-ccard__save.is-on {
	color: var(--cat-gold-dark);
}

.atk-catalog .atk-ccard__save.is-on svg {
	fill: currentColor;
}

/* ---------------------------------------------------------- Empty */

.atk-catalog .atk-cat__empty {
	text-align: center;
	padding: 60px 20px;
	border: 1px dashed var(--cat-line);
	border-radius: 16px;
	margin-bottom: 32px;
}

.atk-catalog .atk-cat__empty-icon {
	display: inline-flex;
	color: var(--cat-gold);
	margin-bottom: 12px;
}

.atk-catalog .atk-cat__empty h2 {
	font-size: 20px;
	color: var(--cat-navy);
	margin: 0 0 8px;
}

.atk-catalog .atk-cat__empty p {
	color: var(--cat-soft);
	font-size: 14px;
	margin: 0 0 18px;
}

/* ---------------------------------------------------------- Pager */

.atk-catalog .atk-cat__pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 40px;
}

.atk-catalog .atk-cat__page {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--cat-soft);
	text-decoration: none;
	background: transparent;
	border: 1px solid transparent;
	transition: background .15s, color .15s, border-color .15s;
}

.atk-catalog .atk-cat__page:hover {
	background: #f6f4ef;
	color: var(--cat-navy);
}

.atk-catalog .atk-cat__page.is-active {
	background: var(--cat-navy);
	color: #fff;
}

.atk-catalog .atk-cat__page--next svg {
	width: 16px;
	height: 16px;
}

/* ---------------------------------------------------------- CTA band */

.atk-catalog .atk-cat__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	background: var(--cat-cream);
	border-radius: 14px;
	padding: 18px 22px;
}

.atk-catalog .atk-cat__cta-text {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.atk-catalog .atk-cat__cta-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--cat-navy);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.atk-catalog .atk-cat__cta-icon svg {
	width: 20px;
	height: 20px;
}

.atk-catalog .atk-cat__cta-text strong {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: var(--cat-navy);
	line-height: 1.3;
}

.atk-catalog .atk-cat__cta-text p {
	font-size: 13px;
	color: var(--cat-soft);
	margin: 2px 0 0;
}

.atk-catalog .atk-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 9px;
	padding: 12px 20px;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s, transform .15s;
	white-space: nowrap;
}

.atk-catalog .atk-btn--gold {
	background: var(--cat-gold);
	color: #fff;
}

.atk-catalog .atk-btn--gold:hover {
	background: var(--cat-gold-dark);
	transform: translateY(-1px);
}

.atk-catalog .atk-btn--navy {
	background: var(--cat-navy);
	color: #fff;
}

.atk-catalog .atk-btn__arrow {
	width: 16px;
	height: 16px;
}

/* ---------------------------------------------------------- Header modo catálogo */

body.atk-cat-page .site-header {
	background: #fff;
	border-bottom: 1px solid #ece9e2;
	color: var(--cat-navy, #011e41);
}

body.atk-cat-page .site-header__bar {
	height: 68px;
}

body.atk-cat-page .site-nav a,
body.atk-cat-page .site-nav__list--desktop a {
	color: #011e41;
}

body.atk-cat-page .site-nav a:hover,
body.atk-cat-page .site-nav__list--desktop a:hover {
	background: #f5f2ec;
	color: #011e41;
}

body.atk-cat-page .site-nav a.nav-plus,
body.atk-cat-page .site-nav__list--desktop a.nav-plus {
	color: #011e41;
}

body.atk-cat-page .site-search {
	position: relative;
	flex: 0 0 auto;
	max-width: none;
	margin-left: auto;
}

body.atk-cat-page .site-search::before {
	display: none;
}

body.atk-cat-page .site-search__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #011e41;
	cursor: pointer;
	transition: background .15s;
}

body.atk-cat-page .site-search__toggle:hover {
	background: #f5f2ec;
}

body.atk-cat-page .site-search__panel {
	display: none;
}

body.atk-cat-page .site-search.is-open .site-search__panel {
	display: block;
	position: absolute;
	right: 0;
	top: calc(100% + 12px);
	width: 300px;
	background: #fff;
	border: 1px solid #e9e6df;
	border-radius: 12px;
	padding: 8px;
	box-shadow: 0 18px 40px rgba(1, 30, 65, .14);
	z-index: 60;
}

body.atk-cat-page .site-search .search-field {
	background: #fff;
	border: 1px solid #e9e6df;
	color: #101828;
}

body.atk-cat-page .site-search .search-field::placeholder {
	color: #98a2b3;
}

body.atk-cat-page .site-search .search-field:focus {
	background: #fff;
	border-color: #bc996c;
	box-shadow: 0 0 0 3px rgba(188, 153, 108, .18);
}

body.atk-cat-page .site-actions .btn,
body.atk-cat-page .site-actions .btn--brand {
	background: #bc996c;
	color: #fff;
	border-color: #bc996c;
}

body.atk-cat-page .site-actions .btn:hover,
body.atk-cat-page .site-actions .btn--brand:hover {
	background: #a98653;
	border-color: #a98653;
	color: #fff;
}

html body.atk-cat-page .site-header .btn--brand,
html body.atk-cat-page .site-header .btn--brand:hover {
	background: #bc996c;
	border-color: #bc996c;
	color: #fff;
}

html body.atk-cat-page .site-header .btn--brand:hover {
	background: #a98653;
}

body.atk-cat-page .site-actions .action-link--login {
	color: #011e41;
}

/* ---------------------------------------------------------- Responsive */

@media (max-width: 1024px) {
	.atk-catalog .atk-cat__tabs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.atk-catalog .atk-cat__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.atk-catalog .atk-cat__hero {
		min-height: 260px;
	}

	.atk-catalog .atk-cat__hero-inner {
		padding: 40px 24px;
	}
}

@media (max-width: 767px) {
	.atk-catalog .atk-cat__hero {
		min-height: 0;
	}

	.atk-catalog .atk-cat__hero-media::after {
		background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .88) 55%, rgba(255, 255, 255, .55) 100%);
	}

	.atk-catalog .atk-cat__hero-inner {
		padding: 34px 20px 38px;
	}

	.atk-catalog .atk-cat__title {
		font-size: 30px;
	}

	.atk-catalog .atk-cat__wrap {
		padding: 20px 20px 56px;
	}

	.atk-catalog .atk-cat__tabs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
	}

	.atk-catalog .atk-cat__tab {
		padding: 14px 6px 12px;
		gap: 8px;
	}

	.atk-catalog .atk-cat__tab-circle {
		width: 50px;
		height: 50px;
	}

	.atk-catalog .atk-cat__tab-circle svg {
		width: 23px;
		height: 23px;
	}

	.atk-catalog .atk-cat__tab-label {
		font-size: 12.5px;
	}

	.atk-catalog .atk-cat__filters {
		padding: 12px;
	}

	.atk-catalog .atk-cat__filters-left,
	.atk-catalog .atk-cat__filters-right {
		width: 100%;
	}

	.atk-catalog .atk-cat__select {
		flex: 1 1 100%;
		width: 100%;
	}

	.atk-catalog .atk-cat__count {
		margin-right: auto;
	}

	.atk-catalog .atk-cat__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.atk-catalog .atk-cat__cta {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 18px;
	}

	.atk-catalog .atk-cat__cta .atk-btn {
		width: 100%;
		justify-content: center;
	}
}
