/**
 * Catálogo craft v2 — showroom B2B industrial.
 * 3 cols · cards creativas · toolbar/sidebar premium · sin gradients · radius 0.
 */

.hm-catalog {
	background: var(--hm-paper, #f3f3f5);
}

.hm-catalog-hero {
	padding: clamp(1.85rem, 3.4vw, 2.6rem) 0;
}

.hm-catalog-hero h1 {
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.hm-catalog-hero__lead,
.hm-catalog-hero p {
	font-weight: 300;
	letter-spacing: 0.01em;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88);
}

.hm-catalog-layout {
	gap: clamp(1.5rem, 3vw, 2.5rem);
	padding-top: clamp(1.85rem, 3.5vw, 2.75rem);
	padding-bottom: clamp(2.75rem, 5vw, 4rem);
}

/* —— Sidebar premium —— */
.hm-catalog-sidebar {
	position: sticky;
	top: calc(var(--hm-header-h, 76px) + 12px);
}

.hm-catalog-cats,
.hm-catalog-filters {
	padding: 1.15rem 1.1rem 1.25rem;
	margin-bottom: 1rem;
	background: #fff;
	border: 1px solid var(--hm-line, #e5e5e8);
	border-radius: 0;
}

.hm-catalog-panel__head {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	min-width: 0;
	margin-bottom: 1.05rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--hm-line, #e5e5e8);
	overflow: hidden;
}

/* Beat contemporaneo `body.hm-site h2` display clamp (~1.75–2.45rem). */
body.hm-site .hm-catalog-sidebar .hm-catalog-panel__head h2,
body.hm-site .hm-catalog-panel__head h2,
body.hm-site h2.hm-catalog-panel__title {
	margin: 0;
	min-width: 0;
	flex: 1 1 auto;
	font-family: "Montserrat", "Segoe UI", sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.25;
	text-transform: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--hm-brand, #200c80);
}

.hm-catalog-panel__ico {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border: 1px solid var(--hm-line, #e5e5e8);
	background: var(--hm-paper, #f3f3f5);
	color: var(--hm-brand, #200c80);
	border-radius: 0;
}

.hm-catalog-cats__link {
	font-weight: 400;
	letter-spacing: 0.005em;
	min-height: 48px;
	padding: 0.55rem 0.65rem;
	border: 1px solid transparent;
	transition:
		background 160ms ease,
		border-color 160ms ease,
		color 160ms ease;
}

.hm-catalog-cats__link:hover {
	background: var(--hm-paper, #f3f3f5);
	border-color: var(--hm-line, #e5e5e8);
}

.hm-catalog-cats__item.is-current > .hm-catalog-cats__row > .hm-catalog-cats__link,
.hm-catalog-cats__link.is-current {
	background: var(--hm-brand, #200c80);
	border-color: var(--hm-brand, #200c80);
	color: #fff;
}

.hm-catalog-cats__icon {
	width: 34px;
	height: 34px;
	border: 1px solid var(--hm-line, #e5e5e8);
	background: var(--hm-paper, #f3f3f5);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0;
}

.hm-catalog-cats__item.is-current > .hm-catalog-cats__row > .hm-catalog-cats__link .hm-catalog-cats__icon,
.hm-catalog-cats__link.is-current .hm-catalog-cats__icon {
	border-color: rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.12);
}

.hm-catalog-advise {
	margin: 0 0 1rem;
	padding: 1.35rem 1.2rem 1.4rem;
	background: #fff;
	border: 1.5px solid var(--hm-brand, #200c80);
	border-radius: 0;
}

.hm-catalog-advise__ico {
	width: 44px;
	height: 44px;
	border: 1px solid var(--hm-line, #e5e5e8);
	background: var(--hm-paper, #f3f3f5);
	color: var(--hm-brand, #200c80);
	border-radius: 0;
}

.hm-catalog-advise p {
	font-size: 0.9rem;
	font-weight: 300;
	line-height: 1.55;
	color: var(--hm-muted, #5c5c68);
}

.hm-catalog-advise .hm-btn--whatsapp {
	background: var(--hm-wa, #25d366);
	border-color: var(--hm-wa, #25d366);
	color: #fff !important;
	font-weight: 400;
	border-radius: 0;
}

.hm-catalog-advise .hm-btn--whatsapp:hover {
	background: var(--hm-wa-dark, #1ebe57);
	border-color: var(--hm-wa-dark, #1ebe57);
	color: #fff !important;
}

/* —— Toolbar premium —— */
.hm-catalog-toolbar {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 0.85rem 1.15rem;
	align-items: center;
	margin-bottom: 1.5rem;
	padding: 0.95rem 1.15rem;
	background: #fff;
	border: 1px solid var(--hm-line, #e5e5e8);
	border-left: 3px solid var(--hm-brand, #200c80);
	border-radius: 0;
}

.hm-catalog-toolbar__count {
	margin: 0;
	font-size: 0.86rem;
	font-weight: 300;
	color: var(--hm-muted, #5c5c68);
	white-space: nowrap;
}

.hm-catalog-toolbar__count strong,
.hm-catalog-toolbar__count [data-count] {
	font-weight: 500;
	color: var(--hm-ink, #12121a);
}

.hm-catalog-toolbar__search {
	position: relative;
	max-width: none;
	margin: 0;
	width: 100%;
}

.hm-catalog-toolbar__search input {
	width: 100%;
	min-height: 44px;
	padding: 0 1rem 0 2.65rem;
	border: 1px solid var(--hm-line, #e5e5e8);
	border-radius: 0;
	background: var(--hm-paper, #f3f3f5);
	font-size: 0.9rem;
	font-weight: 300;
	transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.hm-catalog-toolbar__search input:focus {
	outline: none;
	border-color: var(--hm-brand, #200c80);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(32, 12, 128, 0.08);
}

.hm-catalog-toolbar__icon {
	color: var(--hm-brand, #200c80);
}

.hm-catalog-toolbar__sort label {
	font-size: 0.8rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: var(--hm-muted, #5c5c68);
}

.hm-catalog-toolbar__sort select {
	min-height: 44px;
	padding: 0 0.9rem;
	border: 1px solid var(--hm-line, #e5e5e8);
	border-radius: 0;
	background: #fff;
	font-size: 0.88rem;
	font-weight: 400;
	color: var(--hm-ink, #12121a);
}

/* —— Grid 3 cols + cards creativas —— */
.hm-catalog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.4rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hm-catalog-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--hm-line, #e5e5e8);
	border-radius: 0;
	overflow: hidden;
	transition:
		border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hm-catalog-card:hover {
	border-color: var(--hm-brand, #200c80);
	box-shadow: var(--hm-shadow-sm, 0 4px 12px rgba(18, 18, 26, 0.045));
	transform: none;
}

.hm-catalog-card__media {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--hm-paper, #f3f3f5);
	overflow: hidden;
	border-bottom: 1px solid var(--hm-line, #e5e5e8);
}

.hm-catalog-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hm-catalog-card:hover .hm-catalog-card__media img {
	transform: scale(1.05);
}

.hm-catalog-card__shine {
	position: absolute;
	inset: 0;
	border: 0;
	pointer-events: none;
	box-shadow: inset 0 0 0 0 transparent;
	transition: box-shadow 220ms ease;
}

.hm-catalog-card:hover .hm-catalog-card__shine {
	box-shadow: inset 0 0 0 2px var(--hm-brand, #200c80);
}

.hm-catalog-card__ph {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--hm-paper, #f3f3f5);
}

.hm-catalog-card__badge {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	padding: 0.35rem 0.7rem;
	background: var(--hm-brand, #200c80);
	color: #fff;
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: 0;
}

.hm-catalog-card__body {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	flex: 1;
	padding: 1.05rem 1.1rem 1.15rem;
	text-align: left;
}

.hm-catalog-card__cat {
	margin: 0 0 0.4rem;
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--hm-brand, #200c80);
}

.hm-catalog-card__cat a {
	color: inherit;
	text-decoration: none;
}

.hm-catalog-card__cat a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hm-catalog-card__title,
body.hm-site h2.hm-catalog-card__title {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.01em;
	text-transform: none;
}

.hm-catalog-card__title a {
	color: var(--hm-ink, #12121a);
	text-decoration: none;
	transition: color 160ms ease;
}

.hm-catalog-card__title a:hover {
	color: var(--hm-brand, #200c80);
	text-decoration: none;
}

.hm-catalog-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.85rem;
	border-top: 1px solid var(--hm-line, #e5e5e8);
}

.hm-catalog-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.86rem;
	font-weight: 500;
	color: var(--hm-brand, #200c80);
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: gap 160ms ease;
}

.hm-catalog-card__more:hover {
	gap: 0.5rem;
	text-decoration: none;
}

.hm-catalog-card__consult {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 400;
	color: var(--hm-muted, #5c5c68);
	text-decoration: none;
	transition: color 160ms ease;
}

.hm-catalog-card__consult:hover {
	color: var(--hm-brand, #200c80);
	letter-spacing: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Legacy btn hidden if present */
.hm-catalog-card__btn {
	display: none;
}

.hm-catalog-empty {
	border: 1px solid var(--hm-line, #e5e5e8);
	background: #fff;
	border-radius: 0;
}

.hm-catalog-pagination .page-numbers {
	border-radius: 0;
}

.hm-catalog-bottom-cta__inner {
	background: #fff;
	border: 1px solid var(--hm-line, #e5e5e8);
	border-left: 3px solid var(--hm-brand, #200c80);
	border-radius: 0;
}

.hm-catalog-bottom-cta__inner::after {
	display: none;
}

.hm-catalog-bottom-cta .hm-btn--whatsapp,
.hm-catalog-bottom-cta .hm-btn--wa {
	border-radius: 0;
	background: var(--hm-wa, #25d366);
	color: #fff !important;
	border: 1.5px solid var(--hm-wa, #25d366);
	font-weight: 400;
	box-shadow: none;
}

.hm-catalog-bottom-cta .hm-btn--whatsapp:hover,
.hm-catalog-bottom-cta .hm-btn--wa:hover {
	background: var(--hm-wa-dark, #1ebe57);
	border-color: var(--hm-wa-dark, #1ebe57);
	color: #fff !important;
}

@media (max-width: 980px) {
	.hm-catalog-sidebar {
		position: static;
		order: 2;
	}

	.hm-catalog-main {
		order: 1;
	}

	.hm-catalog-toolbar {
		grid-template-columns: 1fr;
		justify-items: stretch;
	}

	.hm-catalog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.hm-catalog-grid {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin-inline: auto;
	}

	.hm-catalog-card__foot {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-catalog-card:hover .hm-catalog-card__media img,
	.hm-catalog-card__more:hover {
		transform: none;
		gap: 0.35rem;
	}
}
