/* ==========================================================================
   Shop at New Horizons — estructura del sitio (cabecera, pie, inicio, páginas)
   ========================================================================== */

body { margin: 0; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 100;
	background: #fff; padding: 10px 16px; border-radius: var(--nh-radius-sm);
}

.nh-container {
	width: 100%;
	max-width: var(--nh-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--nh-gutter);
	padding-right: var(--nh-gutter);
}
.nh-block { margin-top: 64px; }

/* --- Cabecera ------------------------------------------------------------ */

.nh-topbar { background: var(--nh-ink); color: #C9D4E3; font-size: 13px; }
.nh-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.nh-topbar p { margin: 0; }
.nh-topbar strong { color: #fff; }
.nh-topbar__links { display: flex; gap: 18px; }
.nh-topbar a { color: #C9D4E3; text-decoration: none; }
.nh-topbar a:hover { color: #fff; }

.nh-hdr { display: flex; align-items: center; gap: 28px; padding-top: 16px; padding-bottom: 14px; }
.nh-hdr__logo img { height: var(--nh-logo-h, 56px); width: auto; display: block; }
.nh-hdr__search { flex: 1 1 auto; min-width: 0; }
.nh-hdr__actions { display: flex; align-items: center; gap: 22px; }
.nh-menu-toggle { display: none; }

.nh-search-form {
	display: flex;
	align-items: center;
	height: 54px;
	background: var(--nh-mist);
	border: 1.5px solid var(--nh-line);
	border-radius: var(--nh-pill);
	padding: 0 6px 0 20px;
}
.nh-search-form:focus-within { border-color: var(--nh-blue); box-shadow: 0 0 0 3px rgba(0,84,166,.12); }
.nh-search-form input[type="search"] {
	flex: 1; min-width: 0;
	border: 0; background: transparent; box-shadow: none;
	padding: 0 12px 0 0; font-size: 15px;
}
.nh-search-form input[type="search"]:focus { box-shadow: none; }
.nh-search-form button {
	width: 42px; height: 42px; flex: none;
	border: 0; border-radius: 50%;
	background: var(--nh-orange); color: #fff;
	display: grid; place-items: center; padding: 0; cursor: pointer;
}
.nh-search-form button:hover { background: var(--nh-orange-dark); }

.nh-account { display: flex; gap: 10px; align-items: center; color: var(--nh-ink); text-decoration: none; line-height: 1.2; white-space: nowrap; }
.nh-account:hover { color: var(--nh-blue); }
.nh-account small { display: block; color: var(--nh-muted); font-size: 12.5px; }
.nh-account b { font-size: 14px; }

.nh-catnav { border-bottom: 1px solid var(--nh-line); }
.nh-catnav-links > ul {
	list-style: none; margin: 0; padding: 0 0 14px;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px;
}
.nh-catnav-links li { position: relative; }
.nh-subnav {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; left: -12px; top: 100%; z-index: 40; min-width: 220px;
	background: #fff; border: 1px solid var(--nh-line); border-radius: 16px; box-shadow: var(--nh-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.nh-catnav-links li:hover > .nh-subnav, .nh-catnav-links li:focus-within > .nh-subnav { opacity: 1; visibility: visible; transform: none; }
.nh-subnav a { display: block !important; padding: 9px 12px !important; border-radius: 10px; font-weight: 500 !important; }
.nh-subnav a:hover { background: var(--nh-mist); }
.nh-catnav-links a {
	display: inline-flex; gap: 8px; align-items: center; white-space: nowrap;
	color: var(--nh-ink); font-weight: 600; font-size: 14.5px; text-decoration: none; padding: 6px 0;
}
.nh-catnav-links a .nh-icon { color: var(--nh-blue); }
.nh-catnav-links a:hover, .nh-catnav-links .is-current > a { color: var(--nh-blue); }

/* --- Inicio -------------------------------------------------------------- */

.nh-hero { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 20px; margin-top: 24px; }
.nh-hero--solo { grid-template-columns: 1fr; }
.nh-hero__main { position: relative; overflow: hidden; padding: 54px 56px; display: flex; flex-direction: column; gap: 18px; }
.nh-hero__main::before {
	content: ""; position: absolute; pointer-events: none;
	width: 520px; height: 520px; border-radius: 50%;
	background: #0B63BF; right: -140px; top: -170px;
}
.nh-hero__main > * { position: relative; margin: 0; }
.nh-hero__main h1 { color: #fff; font-size: clamp(34px, 4vw, 56px); max-width: 560px; }
.nh-hero__lead { color: #D6E6F7; font-size: 17px; max-width: 440px; }
.nh-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.nh-hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.nh-promo {
	position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
	padding: 30px; min-height: 240px; text-decoration: none; color: var(--nh-ink);
}
.nh-promo__text { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; max-width: 230px; }
.nh-promo__title { font-family: var(--nh-font-display); font-weight: 700; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; }
.nh-promo__desc { font-size: 14px; line-height: 1.45; color: var(--nh-muted); }
.nh-promo__link { font-weight: 700; font-size: 14.5px; text-decoration: underline; text-underline-offset: 4px; }
.nh-promo__img { position: absolute; right: 16px; bottom: 16px; max-width: 45%; max-height: 70%; width: auto; object-fit: contain; }
.nh-panel--orange.nh-promo { color: #fff; }
.nh-panel--orange .nh-promo__desc { color: #FFE3D3; }
.nh-promo:hover .nh-promo__link { text-decoration-thickness: 2px; }

.nh-trust { display: grid; grid-template-columns: repeat(var(--nh-trust-cols, 4), minmax(0, 1fr)); border: 1px solid var(--nh-line); border-radius: var(--nh-radius-lg); }
.nh-trust > div { display: flex; gap: 14px; align-items: center; padding: 20px 24px; }
.nh-trust > div + div { border-left: 1px solid var(--nh-line); }
.nh-trust__icon { width: 44px; height: 44px; border-radius: 14px; background: var(--nh-sky); color: var(--nh-blue); display: grid; place-items: center; flex: none; }
.nh-trust p { margin: 0; line-height: 1.35; }
.nh-trust b { display: block; font-size: 15px; }
.nh-trust span { font-size: 13px; color: var(--nh-muted); }

.nh-sh { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.nh-sh h2 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); }
.nh-sh a { font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap; }

.nh-cats { display: grid; grid-template-columns: repeat(var(--nh-cats-cols, 8), minmax(0, 1fr)); gap: 18px; }
.nh-cats__tile img { width: 72%; height: 72%; object-fit: contain; }
.nh-cats a {
	display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center;
	color: var(--nh-ink); font-weight: 600; font-size: 14.5px; text-decoration: none;
}
.nh-cats__tile {
	width: 100%; aspect-ratio: 1 / 1; border-radius: 26px;
	display: grid; place-items: center; color: var(--nh-blue);
	transition: transform .2s ease;
}
.nh-cats a:hover .nh-cats__tile { transform: translateY(-3px); }
.nh-tint-0 { background: var(--nh-sky); }
.nh-tint-1 { background: #E8EEF9; }
.nh-tint-2 { background: var(--nh-green-soft); }
.nh-tint-3 { background: var(--nh-peach); }

.nh-books {
	display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; align-items: center;
	background: var(--nh-ink); color: #fff; border-radius: 32px; padding: 56px;
}
.nh-books__text h2 { color: #fff; font-size: clamp(30px, 3vw, 44px); margin: 0; }
.nh-books__text p { color: #B9C6D8; font-size: 16.5px; margin: 16px 0 24px; }
.nh-books .woocommerce ul.products li.product .woocommerce-loop-product__title,
.nh-books .woocommerce ul.products li.product .price { color: #fff; }
.nh-books .woocommerce ul.products li.product a img { background: rgba(255,255,255,.06); }
.nh-books .nh-card-meta, .nh-books .woocommerce ul.products li.product .price del { color: #9FB0C5; }
.nh-books .nh-pickup { color: #7FD3A8; }

.nh-visit { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; padding: 40px; }
.nh-visit__text h2 { margin: 0 0 10px; }
.nh-visit__text p { margin: 0 0 14px; }

.nh-insta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.nh-insta h2 { margin: 0 0 6px; }
.nh-insta p { margin: 0; color: var(--nh-muted); }

/* --- Páginas ------------------------------------------------------------- */

.nh-page { padding-top: 28px; padding-bottom: 24px; }
.nh-page--narrow { max-width: 860px; }
.nh-page__header { margin-bottom: 24px; }
.nh-page__header h1 { margin: 0; }
.nh-page__img { border-radius: var(--nh-radius-lg); margin-bottom: 24px; }
.nh-prose { font-size: 16px; line-height: 1.7; }
.nh-prose > * + * { margin-top: 1em; }
.nh-page--shop .nh-page__header h1 { font-size: clamp(28px, 3vw, 40px); }

.nh-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.nh-post-card a { color: var(--nh-ink); text-decoration: none; }
.nh-post-card__img { border-radius: var(--nh-radius-lg); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.nh-post-card__title { font-size: 20px; margin: 14px 0 4px; }
.nh-post-card__meta { color: var(--nh-muted); font-size: 13px; margin: 0; }
.nh-empty { color: var(--nh-muted); }
.nh-404 { text-align: center; padding-top: 80px; padding-bottom: 80px; display: grid; justify-items: center; gap: 16px; }
.nh-404__search { width: min(560px, 100%); }

/* Tienda con barra lateral de filtros */
.nh-shop { padding-top: 4px; padding-bottom: 24px; }
.nh-shop--sidebar { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
.nh-shop__main { min-width: 0; }
.nh-widget { padding: 18px 0; border-bottom: 1px solid var(--nh-line); }
.nh-widget:first-child { padding-top: 22px; }
.nh-widget__title { font-size: 17px; margin: 0 0 12px; }
.nh-widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.nh-widget a { color: var(--nh-ink); text-decoration: none; }
.nh-widget a:hover { color: var(--nh-blue); }
.woocommerce-products-header__title { margin: 0 0 8px; }

/* --- Pie ----------------------------------------------------------------- */

.nh-site-footer { margin-top: 72px; background: var(--nh-mist); border-top: 1px solid var(--nh-line); color: var(--nh-muted); font-size: 14px; }
/* Fila de servicios arriba del pie */
.nh-ftr-svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; padding-top: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--nh-line); }
.nh-ftr-svc__item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--nh-line); color: var(--nh-ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.nh-ftr-svc__item:hover { border-color: var(--nh-blue); transform: translateY(-1px); color: var(--nh-ink); }
.nh-ftr-svc__icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--nh-sky); color: var(--nh-blue); display: grid; place-items: center; }
.nh-ftr-svc__item b { display: block; font-size: 14.5px; }
.nh-ftr-svc__item small { display: block; font-size: 12.5px; color: var(--nh-muted); line-height: 1.35; }
@media (max-width: 767px) { .nh-ftr-svc { grid-template-columns: 1fr 1fr; } .nh-ftr-svc__item { flex-direction: column; align-items: flex-start; } }
.nh-ftr { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr 1.2fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.nh-ftr .nh-logo img { height: 64px; width: auto; }
.nh-ftr__name { font-family: var(--nh-font-display); font-weight: 700; font-size: 20px; color: var(--nh-ink); margin: 16px 0 6px; }
.nh-ftr__about { margin: 0 0 12px; }
.nh-ftr__title { font-family: var(--nh-font-body); font-size: 15px; font-weight: 700; letter-spacing: 0; margin: 0 0 14px; }
.nh-ftr__links { display: grid; gap: 8px; }
.nh-ftr__links--2 { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.nh-ftr__links a { color: #3D4A5C; text-decoration: none; }
.nh-ftr__links a:hover { color: var(--nh-blue); }
.nh-ftr:has(> :nth-child(5)) { grid-template-columns: 1.4fr 1.3fr 1fr 1.1fr 1.2fr; gap: 32px; }
.nh-ftr__col--faq .nh-ftr__links { gap: 0; }
.nh-ftr__col--faq .nh-ftr__links a { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--nh-line); }
.nh-ftr__col--faq .nh-ftr__links a:last-child { border-bottom: 0; }
.nh-ftr__col--faq .nh-ftr__links a::before { content: ""; flex: none; width: 7px; height: 7px; border: solid var(--nh-orange); border-width: 2px 2px 0 0; transform: rotate(45deg); margin-right: 2px; }
.nh-ftr__contact { margin: 0 0 12px; }
.nh-ftr__contact a { color: inherit; text-decoration: none; }
.nh-panel--mist { color: var(--nh-ink); }
.nh-panel--blue.nh-promo { color: #fff; }
.nh-panel--blue .nh-promo__desc { color: #D6E6F7; }
.nh-ftr .nh-branches { gap: 10px; }
.nh-ftr .nh-branch { padding: 0; background: none; border-radius: 0; }
.nh-ftr .nh-branch strong { font-family: var(--nh-font-body); font-size: 13.5px; }
.nh-ftr .nh-branch span { font-size: 13.5px; }
.nh-ftr .nh-branch a { display: none; }
.nh-social { display: flex; gap: 10px; margin-top: 14px; }
.nh-social a {
	width: 38px; height: 38px; border-radius: 50%;
	background: #fff; border: 1px solid var(--nh-line); color: var(--nh-blue);
	display: grid; place-items: center;
}
.nh-ftr-bottom { border-top: 1px solid var(--nh-line); font-size: 13px; }
.nh-ftr-bottom__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 22px; }
.nh-ftr-bottom__end { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.nh-ftr-bottom__links { display: flex; gap: 14px; flex-wrap: wrap; }
.nh-ftr-badge { display: inline-flex; line-height: 0; }
.nh-ftr-badge img { display: block; height: auto; max-width: 100%; }
.nh-ftr button.nhr-cookie-link, .nh-ftr-bottom button.nhr-cookie-link { all: unset; cursor: pointer; color: #3D4A5C; }
.nh-ftr-bottom button.nhr-cookie-link { color: var(--nh-muted); text-decoration: underline; }
.nh-ftr button.nhr-cookie-link:hover, .nh-ftr button.nhr-cookie-link:focus-visible { color: var(--nh-blue); }
.nh-ftr__col--faq .nh-ftr__links button.nhr-cookie-link { display: flex; gap: 10px; align-items: center; padding: 9px 0; }
.nh-ftr-bottom p { margin: 0; }
.nh-ftr-bottom a { color: var(--nh-muted); }

/* --- Tableta ------------------------------------------------------------- */

@media (max-width: 1024px) {
	.nh-hero { grid-template-columns: 1fr; }
	.nh-hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
	.nh-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.nh-trust { grid-template-columns: repeat(min(2, var(--nh-trust-cols, 4)), minmax(0, 1fr)); }
	.nh-trust > div:nth-child(3) { border-left: 0; }
	.nh-trust > div:nth-child(n+3) { border-top: 1px solid var(--nh-line); }
	.nh-books, .nh-visit { grid-template-columns: 1fr; }
	.nh-ftr, .nh-ftr:has(> :nth-child(5)) { grid-template-columns: 1fr 1fr; }
	.nh-account span { display: none; }
	.nh-shop--sidebar { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
	.nh-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Celular ------------------------------------------------------------- */

@media (max-width: 767px) {
	.nh-block { margin-top: 44px; }
	.nh-topbar__inner { justify-content: center; text-align: center; }
	.nh-topbar__links { display: none; }

	.nh-hdr { flex-wrap: wrap; gap: 8px 12px; padding-top: 10px; }
	.nh-menu-toggle {
		display: grid; place-items: center; order: 1;
		width: 40px; height: 40px; border: 0; background: none; color: var(--nh-ink); padding: 0; border-radius: 50%;
	}
	.nh-hdr__logo { order: 2; flex: 1; display: flex; justify-content: center; }
	.nh-hdr__logo img { height: min(40px, var(--nh-logo-h, 56px)); }
	.nh-hdr__actions { order: 3; gap: 8px; }
	.nh-hdr__search { order: 4; flex: 1 1 100%; }
	.nh-search-form { height: 46px; }
	.nh-account { display: none; }

	.nh-catnav { display: none; border-bottom: 0; }
	.nh-catnav.is-open { display: block; border-bottom: 1px solid var(--nh-line); }
	.nh-catnav-links > ul { flex-direction: column; gap: 0; padding-bottom: 8px; }
	.nh-catnav-links a { padding: 12px 0; border-top: 1px solid var(--nh-line); width: 100%; }
	.nh-subnav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 4px 26px; min-width: 0; }
	.nh-subnav a { padding: 8px 0 !important; border-top: 0 !important; }

	.nh-hero { margin-top: 16px; }
	.nh-hero__main { padding: 28px 22px; border-radius: 24px; }
	.nh-hero__cta { flex-direction: column; }
	.nh-hero__cta .nh-btn { width: 100%; }
	.nh-hero__side { grid-template-columns: 1fr; }
	.nh-promo { min-height: 0; border-radius: 24px; padding: 24px; }
	.nh-promo__img { max-height: 80%; }

	.nh-trust { grid-template-columns: 1fr; }
	.nh-trust > div + div { border-left: 0; border-top: 1px solid var(--nh-line); }
	.nh-cats { display: flex; overflow-x: auto; gap: 12px; scrollbar-width: none; margin-left: calc(var(--nh-gutter) * -1); margin-right: calc(var(--nh-gutter) * -1); padding: 0 var(--nh-gutter); }
	.nh-cats::-webkit-scrollbar { display: none; }
	.nh-cats a { flex: 0 0 76px; font-size: 12px; }
	.nh-cats__tile { border-radius: 18px; }
	.nh-cats__tile .nh-icon { width: 28px; height: 28px; }

	.nh-books, .nh-visit { padding: 28px 20px; border-radius: 24px; }
	.nh-insta .nh-btn { width: 100%; }

	.nh-shop--sidebar { grid-template-columns: 1fr; }
	.nh-shop__sidebar { order: 2; }
	.nh-post-grid { grid-template-columns: 1fr; }

	.nh-ftr, .nh-ftr:has(> :nth-child(5)) { grid-template-columns: 1fr; gap: 28px; }
	.nh-ftr-bottom__inner { flex-direction: column; align-items: flex-start; }
	.nh-ftr-bottom__end { justify-content: flex-start; }
}

/* Slider en la portada (plugin NH Sliders) */
.nh-hero__slider { min-width: 0; display: flex; }
.nh-hero__slider .nhs { flex: 1; }

/* Selector de departamento del buscador */
.nh-search-form.has-dept { padding-left: 0; }
.nh-search-dept { position: relative; flex: none; align-self: stretch; display: flex; margin: 4px 12px 4px 4px; max-width: 42%; }
.nh-search-dept__label { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 16px; border-radius: 999px 6px 6px 999px; background: #E3E8EF; color: var(--nh-ink); font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.nh-search-dept__label span { overflow: hidden; text-overflow: ellipsis; }
.nh-search-dept__label i { flex: none; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .7; }
.nh-search-dept:hover .nh-search-dept__label { background: #D5DCE5; }
.nh-search-dept select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 15px; border: 0; appearance: none; }
.nh-search-dept:has(select:focus-visible) .nh-search-dept__label { outline: 2px solid var(--nh-blue); outline-offset: 1px; }
@media (max-width: 767px) {
	.nh-search-dept { margin-right: 8px; max-width: 34%; }
	.nh-search-dept__label { padding: 0 10px 0 12px; font-size: 12.5px; }
}

/* --- Ancho del sitio (Panel del tema > General) ---------------------------- */
body.nh-w-wide { --nh-max: 1920px; --nh-gutter: clamp(16px, 3vw, 48px); }
body.nh-w-full { --nh-max: none; --nh-gutter: clamp(16px, 2.5vw, 40px); }
@media (min-width: 1500px) {
	body.nh-w-wide .nh-hero, body.nh-w-full .nh-hero { grid-template-columns: minmax(0, 1fr) clamp(390px, 26vw, 560px); }
}
/* Una columna más de productos en monitores grandes, dos en los muy grandes. */
@media (min-width: 1700px) { body.nh-wcols { --nh-xcols: 1; } }
@media (min-width: 2300px) { body.nh-wcols { --nh-xcols: 2; } }
@media (min-width: 1700px) {
	body.nh-wcols.woocommerce ul.products, body.nh-wcols .woocommerce ul.products { grid-template-columns: repeat(calc(4 + var(--nh-xcols, 0)), minmax(0, 1fr)); }
	body.nh-wcols .woocommerce ul.products.columns-3 { grid-template-columns: repeat(calc(3 + var(--nh-xcols, 0)), minmax(0, 1fr)); }
	body.nh-wcols .woocommerce ul.products.columns-5 { grid-template-columns: repeat(calc(5 + var(--nh-xcols, 0)), minmax(0, 1fr)); }
	body.nh-wcols .woocommerce ul.products.columns-6 { grid-template-columns: repeat(calc(6 + var(--nh-xcols, 0)), minmax(0, 1fr)); }
	body.nh-wcols .nhm.nhm--grid .woocommerce ul.products { grid-template-columns: repeat(calc(var(--nhm-cols, 4) + var(--nh-xcols, 0)), minmax(0, 1fr)); }
	body.nh-wcols .nhm.nhm--carousel .woocommerce ul.products { grid-template-columns: none; grid-auto-columns: calc((100% - (var(--nhm-cols, 4) + var(--nh-xcols, 0) - 1) * var(--nhm-gap)) / (var(--nhm-cols, 4) + var(--nh-xcols, 0))); }
	body.nh-wcols .nh-cats { grid-template-columns: repeat(calc(var(--nh-cats-cols, 8) + var(--nh-xcols, 0)), minmax(0, 1fr)); }
}

/* --- Tarjetas de categorías (carrusel) ------------------------------------ */
.nh-cc { --cc-n: 4; --cc-gap: 16px; }
.nh-cc__wrap { position: relative; }
.nh-cc__track {
	display: grid; grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--cc-n) - 1) * var(--cc-gap)) / var(--cc-n));
	column-gap: var(--cc-gap);
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
	padding: 2px 2px 6px; margin: -2px -2px 0;
}
.nh-cc__track::-webkit-scrollbar { display: none; }
.nh-cc__card { scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--nh-line); border-radius: var(--nh-radius-lg); transition: box-shadow .2s, border-color .2s; }
.nh-cc__card:hover { border-color: #CBD5E1; box-shadow: 0 10px 28px rgba(15,30,51,.08); }
.nh-cc__title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; color: var(--nh-ink); text-decoration: none; }
.nh-cc__title h3 { margin: 0; font-size: 19px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nh-cc__title svg { flex: none; transition: transform .2s; }
.nh-cc__title:hover h3 { color: var(--nh-blue); }
.nh-cc__title:hover svg { transform: translateX(3px); color: var(--nh-blue); }
.nh-cc__grid { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; align-content: start; }
.nh-cc__grid--1, .nh-cc__grid--2 { grid-template-columns: minmax(0, 1fr); }
.nh-cc__grid--2 .nh-cc__img { aspect-ratio: 2 / 1; }
.nh-cc__grid--3 li:first-child { grid-column: 1 / -1; }
.nh-cc__grid--3 li:first-child .nh-cc__img { aspect-ratio: 2 / 1; }
.nh-cc__grid a { display: block; color: var(--nh-ink); text-decoration: none; }
.nh-cc__img { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; overflow: hidden; color: var(--nh-blue); }
.nh-cc__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.nh-cc__img.is-product img { object-fit: contain; padding: 10%; box-sizing: border-box; mix-blend-mode: multiply; }
.nh-cc__grid a:hover img { transform: scale(1.05); }
.nh-cc__lbl { display: block; margin-top: 7px; font-size: 13.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nh-cc__grid a:hover .nh-cc__lbl { color: var(--nh-blue); text-decoration: underline; text-underline-offset: 3px; }
.nh-cc__more { align-self: flex-start; margin-top: 16px; font-size: 14.5px; font-weight: 700; color: var(--nh-blue); text-decoration: none; }
.nh-cc__more:hover { text-decoration: underline; text-underline-offset: 4px; }
.nh-cc__nav { position: absolute; top: 50%; z-index: 2; width: 46px; height: 76px; transform: translateY(-50%); display: grid; place-items: center; padding: 0; border: 1px solid var(--nh-line); border-radius: 10px; background: rgba(255,255,255,.96); color: var(--nh-ink); box-shadow: 0 6px 20px rgba(15,30,51,.14); cursor: pointer; transition: background .15s, color .15s; }
.nh-cc__nav[hidden] { display: none; }
.nh-cc__nav:hover { background: var(--nh-ink); color: #fff; border-color: var(--nh-ink); }
.nh-cc__nav:focus-visible { outline: 3px solid var(--nh-orange); outline-offset: 2px; }
.nh-cc__nav--prev { left: -16px; }
.nh-cc__nav--next { right: -16px; }
@media (min-width: 1700px) { body.nh-wcols .nh-cc { --cc-n: calc(4 + var(--nh-xcols, 0)); } }
@media (max-width: 1100px) { .nh-cc { --cc-n: 3; } }
@media (max-width: 820px) { .nh-cc { --cc-n: 2; } }
@media (max-width: 560px) {
	.nh-cc { --cc-gap: 12px; }
	.nh-cc__track { grid-auto-columns: 82%; scroll-padding-left: 0; }
	.nh-cc__card { padding: 14px 14px 12px; }
	.nh-cc__title h3 { font-size: 17px; }
}
@media (hover: none) { .nh-cc__nav { display: none !important; } }

/* --- Menú grande (Panel del tema > Cabecera) ------------------------------ */
.nh-mega-toggle { display: none; }
@media (min-width: 768px) {
	.nh-catnav > .nh-container { position: relative; }
	.nh-catnav-links li.has-mega { position: static; }
	.nh-catnav-links li.has-mega > a { position: relative; }
	/* Puente invisible para que el panel no se cierre al bajar el mouse */
	.nh-catnav-links li.has-mega > a::after { content: ""; position: absolute; left: -12px; right: -12px; top: 100%; height: 22px; }
	.nh-catnav-links li.has-mega:hover > a, .nh-catnav-links li.has-mega.is-open > a { color: var(--nh-blue); }
	.nh-mega {
		position: absolute; left: var(--nh-gutter); right: var(--nh-gutter); top: 100%; z-index: 60;
		background: #fff; border: 1px solid var(--nh-line); border-top: 0; border-radius: 0 0 20px 20px;
		box-shadow: 0 34px 60px -30px rgba(15, 30, 51, .38);
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
	}
	.nh-catnav-links li.has-mega:hover > .nh-mega,
	.nh-catnav-links li.has-mega:focus-within > .nh-mega,
	.nh-catnav-links li.has-mega.is-open > .nh-mega { opacity: 1; visibility: visible; transform: none; transition-delay: .1s, .1s, 0s; }
	.nh-catnav-links li.has-mega.is-closed > .nh-mega { opacity: 0 !important; visibility: hidden !important; }
}
.nh-mega__inner { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; padding: 26px 30px 22px; }
.nh-mega__inner--solo { grid-template-columns: minmax(0, 1fr); }
.nh-mega__cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px 30px; align-content: start; }
.nh-catnav-links .nh-mega a { display: flex; white-space: normal; padding: 0; font-size: 14px; }
.nh-catnav-links .nh-mega .nh-mega__h { gap: 10px; align-items: center; font-weight: 700; font-size: 15px; color: var(--nh-ink); }
.nh-mega__thumb { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--nh-mist); overflow: hidden; display: grid; place-items: center; }
.nh-mega__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nh-mega__col ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.nh-catnav-links .nh-mega__col ul a { font-weight: 500; color: var(--nh-muted); }
.nh-catnav-links .nh-mega__col ul a:hover, .nh-catnav-links .nh-mega .nh-mega__h:hover { color: var(--nh-blue); text-decoration: underline; text-underline-offset: 3px; }
.nh-mega__empty { margin: 0; }
/* Títulos de columna como etiqueta (MAYÚSCULAS) */
.nh-catnav-links .nh-mega .nh-mega__cols--label .nh-mega__h { display: block; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--nh-ink); line-height: 1.35; }
.nh-mega__cols--label .nh-mega__col ul { margin-top: 12px; gap: 9px; }
.nh-catnav-links .nh-mega .nh-mega__cols--label .nh-mega__col ul a { font-size: 14.5px; font-weight: 400; color: #4A5565; }
.nh-catnav-links .nh-mega .nh-mega__h.is-label { cursor: default; }
.nh-catnav-links .nh-mega .nh-mega__h.is-label:hover { color: var(--nh-ink); text-decoration: none; }
/* Mosaico: subcategorías sin nada debajo */
.nh-mega__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; align-content: start; }
.nh-mega__tile { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.nh-catnav-links .nh-mega .nh-mega__tlink { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; padding: 10px 10px 8px; border-radius: 16px; color: var(--nh-ink); transition: background .15s; }
.nh-catnav-links .nh-mega .nh-mega__tlink:hover { background: var(--nh-mist); }
.nh-mega__tile ul { list-style: none; margin: 0; padding: 0 10px; display: grid; gap: 5px; }
.nh-catnav-links .nh-mega__tile ul a { font-size: 13.5px; font-weight: 500; color: var(--nh-muted); }
.nh-catnav-links .nh-mega__tile ul a:hover { color: var(--nh-blue); text-decoration: underline; text-underline-offset: 3px; }
.nh-mega__timg { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; background: var(--nh-mist); overflow: hidden; margin-bottom: 6px; color: var(--nh-blue); }
.nh-mega__timg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.nh-mega__timg.is-product img { object-fit: contain; padding: 12%; box-sizing: border-box; mix-blend-mode: multiply; }
.nh-catnav-links .nh-mega .nh-mega__tlink:hover img { transform: scale(1.05); }
.nh-mega__tt { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.nh-mega__tc { font-size: 12.5px; color: var(--nh-muted); font-weight: 500; }
.nh-catnav-links .nh-mega .nh-mega__tlink:hover .nh-mega__tt { color: var(--nh-blue); }
.nh-mega__side { border-left: 1px solid var(--nh-line); padding-left: 30px; display: grid; gap: 12px; align-content: start; }
.nh-mega__st { margin: 0 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--nh-muted); }
.nh-catnav-links .nh-mega .nh-mega__p { gap: 12px; align-items: center; color: var(--nh-ink); font-weight: 500; }
.nh-mega__pimg { flex: none; width: 64px; height: 64px; border-radius: 12px; background: var(--nh-mist); display: grid; place-items: center; overflow: hidden; }
.nh-mega__pimg img { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; mix-blend-mode: multiply; }
.nh-mega__pt { display: grid; gap: 3px; min-width: 0; }
.nh-mega__pt > span { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nh-mega__pt b { font-size: 14px; font-weight: 800; }
.nh-mega__pt b del { font-weight: 500; color: var(--nh-muted); font-size: 12px; margin-right: 4px; }
.nh-mega__pt b ins { text-decoration: none; }
.nh-catnav-links .nh-mega .nh-mega__p:hover .nh-mega__pt > span { color: var(--nh-blue); text-decoration: underline; }
.nh-mega__foot { border-top: 1px solid var(--nh-line); padding: 13px 30px; background: var(--nh-mist); border-radius: 0 0 20px 20px; }
.nh-catnav-links .nh-mega__foot a { display: inline-flex; gap: 6px; font-weight: 700; color: var(--nh-blue); }
@media (max-width: 1100px) and (min-width: 768px) { .nh-mega__inner { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; } }
@media (max-width: 767px) {
	.nh-catnav-links li.has-mega { display: flex; flex-wrap: wrap; align-items: center; }
	.nh-catnav-links li.has-mega > a { flex: 1; }
	.nh-mega-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--nh-line); background: none; color: var(--nh-ink); cursor: pointer; }
	.nh-mega-toggle svg { transition: transform .2s; }
	li.is-open > .nh-mega-toggle svg { transform: rotate(180deg); }
	.nh-mega { display: none; flex-basis: 100%; }
	li.is-open > .nh-mega { display: block; }
	.nh-mega__inner { grid-template-columns: 1fr; padding: 0 0 10px 26px; gap: 0; }
	.nh-mega__cols { grid-template-columns: 1fr; gap: 12px; }
	.nh-mega__side, .nh-mega__thumb { display: none; }
	.nh-mega__tiles { grid-template-columns: 1fr; gap: 0; }
	.nh-catnav-links .nh-mega .nh-mega__tlink { flex-direction: row; align-items: baseline; gap: 8px; padding: 8px 0; }
	.nh-mega__tile ul { padding: 0 0 6px 12px; }
	.nh-mega__timg { display: none; }
	.nh-mega__col ul { margin-top: 6px; padding-left: 12px; }
	.nh-mega__cols--label .nh-mega__col ul { margin-top: 4px; gap: 0; }
	.nh-catnav-links .nh-mega .nh-mega__cols--label .nh-mega__col ul a { padding: 7px 0; }
	.nh-catnav-links .nh-mega .nh-mega__cols--label .nh-mega__h { padding: 10px 0 2px; font-size: 12px; color: var(--nh-muted); }
	.nh-catnav-links .nh-mega a { border-top: 0; width: auto; }
	.nh-mega__foot { background: none; padding: 4px 0 12px 26px; border: 0; }
}
