/*
 * ecomNinja — sistema de diseño «Radar».
 *
 * Un instrumento que mide el ecommerce español: papel blanco, tinta, y los
 * datos como único adorno. Cada tienda es un punto; ese motivo (puntos que
 * codifican recuentos reales) es lo único decorativo del sitio.
 *
 * Reglas:
 * - Todo selector va prefijado con `nj-` y es de una sola clase: no pelea con
 *   el Tailwind heredado que siguen usando las plantillas antiguas.
 * - El ámbar de la marca nunca es color de texto sobre blanco (no da
 *   contraste): solo rellenos, marcas y foco.
 * - Los colores de plataforma son colores de dato. No se usan para decorar.
 * - Mayúsculas solo donde lo pide la ortografía. Nada de etiquetas en versal.
 */

/* ───────────────────────── Tipografía ───────────────────────── */

@font-face {
	font-family: "Mona Sans";
	font-style: normal;
	font-weight: 200 900;
	font-stretch: 75% 125%;
	font-display: swap;
	src: url("../fonts/mona-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Mona Sans";
	font-style: normal;
	font-weight: 200 900;
	font-stretch: 75% 125%;
	font-display: swap;
	src: url("../fonts/mona-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ───────────────────────── Tokens ───────────────────────── */

:root {
	/* Papel y tinta */
	--nj-paper: #ffffff;
	--nj-paper-2: #f3f4f6;
	--nj-paper-3: #e9ebef;
	--nj-ink: #121417;
	--nj-ink-2: #464c56;
	--nj-ink-3: #5f6671; /* ≥4,5:1 también sobre --nj-paper-3 */
	--nj-rule: #e3e6ea;
	--nj-rule-2: #cdd2d9;

	/* Marca: el ámbar del logo. Solo rellenos y foco. */
	--nj-signal: #f2a91f;
	--nj-signal-soft: #fdf1d8;
	--nj-signal-ink: #7a4d00; /* texto sobre --nj-signal-soft: 7,4:1 */

	/* Datos: plataformas (colores de su propia marca, ajustados) */
	--nj-woo: #7f54b3;
	--nj-presta: #df0067;
	--nj-shopify: #4f8a2b;
	--nj-magento: #e8590c;
	--nj-wix: #1f6bff;
	--nj-other: #a3aab4;

	/* Estado */
	--nj-pos: #1d7a4a;
	--nj-neg: #c0392b;

	/* Tipografía */
	--nj-font: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--nj-wide: 118%;
	--nj-semi-wide: 108%;

	/* Escala (Elements of Typographic Style: 1.2 con saltos expresivos arriba) */
	--nj-fs-xs: 0.8125rem;
	--nj-fs-sm: 0.9063rem;
	--nj-fs-base: 1.0625rem;
	--nj-fs-md: 1.25rem;
	--nj-fs-lg: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
	--nj-fs-xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
	--nj-fs-2xl: clamp(2.2rem, 1.3rem + 3.6vw, 3.75rem);
	--nj-fs-3xl: clamp(2.6rem, 1.2rem + 5.4vw, 5.25rem);

	/* Espacio */
	--nj-gutter: clamp(1rem, 0.6rem + 1.6vw, 2rem);
	--nj-section: clamp(3.5rem, 2rem + 5vw, 7rem);
	--nj-max: 75rem;
	--nj-max-text: 42rem;

	--nj-radius-s: 6px;
	--nj-radius: 10px;
	--nj-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ───────────────────────── Base ───────────────────────── */

.nj-body {
	margin: 0;
	background: var(--nj-paper);
	color: var(--nj-ink);
	font-family: var(--nj-font);
	font-size: var(--nj-fs-base);
	line-height: 1.6;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.nj-body :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--nj-font);
	color: var(--nj-ink);
	margin: 0;
	text-wrap: balance;
}

.nj-body :where(p) {
	text-wrap: pretty;
}

.nj-body :where(a) {
	color: inherit;
}

.nj-body :where(:focus-visible) {
	outline: 2px solid var(--nj-ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--nj-signal);
	border-radius: 4px;
}

.nj-body ::selection {
	background: var(--nj-signal);
	color: var(--nj-ink);
}

@view-transition {
	navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 180ms;
}

@media (prefers-reduced-motion: reduce) {
	@view-transition {
		navigation: none;
	}
	.nj-body *,
	.nj-body *::before,
	.nj-body *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

.nj-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.nj-skip {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	background: var(--nj-ink);
	color: #fff;
	border-radius: var(--nj-radius-s);
	text-decoration: none;
}

.nj-skip:focus {
	top: 1rem;
}

/* ───────────────────────── Layout ───────────────────────── */

.nj-wrap {
	width: 100%;
	max-width: calc(var(--nj-max) + 2 * var(--nj-gutter));
	margin-inline: auto;
	padding-inline: var(--nj-gutter);
	box-sizing: border-box;
}

.nj-wrap--text {
	max-width: calc(var(--nj-max-text) + 2 * var(--nj-gutter));
}

.nj-section {
	padding-block: var(--nj-section);
}

.nj-section--tight {
	padding-block: calc(var(--nj-section) * 0.6);
}

.nj-section--tint {
	background: var(--nj-paper-2);
}

.nj-section--ruled {
	border-top: 1px solid var(--nj-rule);
}

.nj-section-head {
	display: grid;
	gap: 0.75rem 3rem;
	margin-bottom: clamp(1.75rem, 1rem + 2vw, 3rem);
	align-items: end;
}

@media (min-width: 900px) {
	.nj-section-head {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	}
}

.nj-grid {
	display: grid;
	gap: var(--nj-gutter);
}

@media (min-width: 720px) {
	.nj-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nj-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nj-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.nj-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nj-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Contenido + barra lateral pegajosa (fichas, artículos) */
.nj-split {
	display: grid;
	gap: clamp(2rem, 1rem + 3vw, 4rem);
}

@media (min-width: 1024px) {
	.nj-split {
		grid-template-columns: minmax(0, 1fr) 20rem;
		align-items: start;
	}
	.nj-split--left {
		grid-template-columns: 15rem minmax(0, 1fr);
	}
	.nj-split__aside {
		position: sticky;
		top: 5.5rem;
	}
}

.nj-stack > * + * {
	margin-top: var(--nj-stack-gap, 1rem);
}

/* ───────────────────────── Texto ───────────────────────── */

.nj-display {
	font-size: var(--nj-fs-3xl);
	font-weight: 800;
	font-stretch: var(--nj-wide);
	line-height: 0.98;
	letter-spacing: -0.025em;
}

.nj-h1 {
	font-size: var(--nj-fs-2xl);
	font-weight: 780;
	font-stretch: var(--nj-semi-wide);
	line-height: 1.02;
	letter-spacing: -0.02em;
}

.nj-h2 {
	font-size: var(--nj-fs-xl);
	font-weight: 740;
	font-stretch: var(--nj-semi-wide);
	line-height: 1.08;
	letter-spacing: -0.015em;
}

.nj-h3 {
	font-size: var(--nj-fs-md);
	font-weight: 680;
	line-height: 1.25;
	letter-spacing: -0.005em;
}

.nj-h4 {
	font-size: var(--nj-fs-base);
	font-weight: 680;
	line-height: 1.35;
}

.nj-lead {
	font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3rem);
	line-height: 1.5;
	color: var(--nj-ink-2);
	max-width: 40rem;
}

.nj-muted {
	color: var(--nj-ink-2);
}

.nj-faint {
	color: var(--nj-ink-3);
}

.nj-small {
	font-size: var(--nj-fs-sm);
	line-height: 1.5;
}

.nj-xs {
	font-size: var(--nj-fs-xs);
	line-height: 1.45;
}

/* Etiqueta de dato: minúscula, seminegrita, nunca versal. */
.nj-label {
	display: block;
	font-size: var(--nj-fs-xs);
	font-weight: 600;
	color: var(--nj-ink-2);
	letter-spacing: 0.005em;
}

/* Cifra: ancha y tabular, para que las columnas de números cuadren. */
.nj-num {
	font-variant-numeric: tabular-nums;
	font-stretch: var(--nj-wide);
	font-weight: 750;
	letter-spacing: -0.02em;
}

.nj-num--xl {
	font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
	line-height: 0.95;
}

.nj-num--lg {
	font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
	line-height: 1;
}

.nj-num--md {
	font-size: 1.35rem;
	line-height: 1.1;
}

.nj-tnum {
	font-variant-numeric: tabular-nums;
}

.nj-link {
	color: var(--nj-ink);
	text-decoration: underline;
	text-decoration-color: var(--nj-rule-2);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.2em;
	transition: text-decoration-color 0.15s;
}

.nj-link:hover {
	text-decoration-color: var(--nj-ink);
}

/* Enlace de bloque: toda la fila es pulsable, el subrayado aparece al pasar. */
.nj-block-link {
	color: inherit;
	text-decoration: none;
}

.nj-block-link:hover .nj-block-link__title {
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.2em;
}

/* ───────────────────────── Prosa larga ───────────────────────── */

.nj-prose {
	font-size: 1.0938rem;
	line-height: 1.72;
	color: var(--nj-ink);
	max-width: var(--nj-max-text);
}

.nj-prose > * + * {
	margin-top: 1.1em;
}

.nj-prose :where(h2) {
	font-size: var(--nj-fs-lg);
	font-weight: 740;
	font-stretch: var(--nj-semi-wide);
	line-height: 1.15;
	letter-spacing: -0.012em;
	margin-top: 2.2em;
	scroll-margin-top: 6rem;
}

.nj-prose :where(h3) {
	font-size: var(--nj-fs-md);
	font-weight: 690;
	line-height: 1.3;
	margin-top: 1.8em;
	scroll-margin-top: 6rem;
}

.nj-prose :where(h4) {
	font-size: var(--nj-fs-base);
	font-weight: 680;
	margin-top: 1.5em;
}

.nj-prose :where(h2 + *, h3 + *, h4 + *) {
	margin-top: 0.6em;
}

.nj-prose :where(a) {
	color: var(--nj-ink);
	text-decoration: underline;
	text-decoration-color: var(--nj-signal);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
}

.nj-prose :where(a:hover) {
	text-decoration-color: var(--nj-ink);
}

.nj-prose :where(strong, b) {
	font-weight: 680;
}

.nj-prose :where(ul, ol) {
	padding-left: 1.3em;
}

.nj-prose :where(ul) {
	list-style: disc;
}

.nj-prose :where(ol) {
	list-style: decimal;
}

.nj-prose :where(li) {
	padding-left: 0.2em;
}

.nj-prose :where(li + li) {
	margin-top: 0.45em;
}

.nj-prose :where(li::marker) {
	color: var(--nj-ink-3);
}

.nj-prose :where(blockquote) {
	margin-inline: 0;
	padding: 0.25em 0 0.25em 1.25em;
	border-left: 3px solid var(--nj-signal);
	color: var(--nj-ink-2);
}

.nj-prose :where(img) {
	max-width: 100%;
	height: auto;
	border-radius: var(--nj-radius);
}

.nj-prose :where(figure) {
	margin-inline: 0;
}

.nj-prose :where(figcaption) {
	font-size: var(--nj-fs-sm);
	color: var(--nj-ink-3);
	margin-top: 0.5em;
}

.nj-prose :where(code) {
	font-size: 0.9em;
	background: var(--nj-paper-2);
	padding: 0.1em 0.35em;
	border-radius: 4px;
}

.nj-prose :where(table) {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--nj-fs-sm);
	display: block;
	overflow-x: auto;
}

.nj-prose :where(th, td) {
	text-align: left;
	padding: 0.6em 0.75em;
	border-bottom: 1px solid var(--nj-rule);
	vertical-align: top;
}

.nj-prose :where(th) {
	font-weight: 650;
	border-bottom-color: var(--nj-ink);
}

.nj-prose :where(hr) {
	border: 0;
	border-top: 1px solid var(--nj-rule);
	margin-block: 2.5em;
}

/* ───────────────────────── Botones ───────────────────────── */

.nj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 2.75rem;
	padding: 0.65rem 1.15rem;
	border: 1.5px solid var(--nj-ink);
	border-radius: 999px;
	background: var(--nj-ink);
	color: #fff;
	font: inherit;
	font-size: var(--nj-fs-sm);
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s var(--nj-ease);
	white-space: nowrap;
}

.nj-btn:hover {
	background: #000;
}

.nj-btn:active {
	transform: translateY(1px);
}

.nj-btn--ghost {
	background: transparent;
	color: var(--nj-ink);
	border-color: var(--nj-rule-2);
}

.nj-btn--ghost:hover {
	background: var(--nj-paper-2);
	border-color: var(--nj-ink);
}

/* El botón que saca al usuario a la web de la herramienta. */
.nj-btn--go {
	background: var(--nj-signal);
	border-color: var(--nj-signal);
	color: var(--nj-ink);
}

.nj-btn--go:hover {
	background: #e59a0c;
	border-color: #e59a0c;
}

.nj-btn--block {
	width: 100%;
}

.nj-btn--sm {
	min-height: 2.25rem;
	padding: 0.4rem 0.85rem;
	font-size: var(--nj-fs-xs);
}

.nj-btn svg {
	width: 1em;
	height: 1em;
	flex: none;
}

/* ───────────────────────── Chips de tecnología ───────────────────────── */

.nj-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.nj-chip {
	--dot: var(--nj-ink-3);
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	padding: 0.32rem 0.7rem 0.32rem 0.6rem;
	border: 1px solid var(--nj-rule);
	border-radius: 999px;
	background: var(--nj-paper);
	font-size: var(--nj-fs-xs);
	font-weight: 560;
	line-height: 1.25;
	color: var(--nj-ink);
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.15s, background-color 0.15s;
}

.nj-chip::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--dot);
	flex: none;
}

.nj-chip--plain::before {
	display: none;
}

a.nj-chip:hover {
	border-color: var(--nj-ink);
}

.nj-chip[aria-pressed="true"],
.nj-chip--on {
	background: var(--nj-ink);
	border-color: var(--nj-ink);
	color: #fff;
}

.nj-chip img {
	width: 1rem;
	height: 1rem;
	border-radius: 3px;
	object-fit: contain;
}

/* Colores de dato por plataforma. Se aplican con data-platform. */
[data-platform="woocommerce"] { --dot: var(--nj-woo); }
[data-platform="prestashop"] { --dot: var(--nj-presta); }
[data-platform="shopify"] { --dot: var(--nj-shopify); }
[data-platform="magento"] { --dot: var(--nj-magento); }
[data-platform="wix"] { --dot: var(--nj-wix); }

/* ───────────────────────── Cabecera ───────────────────────── */

.nj-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--nj-rule);
	view-transition-name: nj-header;
}

.admin-bar .nj-header {
	top: 32px;
}

.nj-header__bar {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	height: 4rem;
}

.nj-logo {
	display: inline-flex;
	align-items: baseline;
	gap: 0;
	font-size: 1.3rem;
	font-stretch: var(--nj-wide);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--nj-ink);
	text-decoration: none;
	line-height: 1;
	flex: none;
}

.nj-logo__ecom {
	font-weight: 500;
	color: var(--nj-ink-2);
}

/* El punto del radar: el mismo punto que representa una tienda. */
.nj-logo__dot {
	width: 0.42em;
	height: 0.42em;
	margin-left: 0.12em;
	border-radius: 50%;
	background: var(--nj-signal);
	align-self: center;
	transform: translateY(0.18em);
}

.nj-nav {
	display: none;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 1000px) {
	.nj-nav {
		display: flex;
	}
}

.nj-nav a {
	display: inline-block;
	padding: 0.5rem 0.75rem;
	border-radius: 999px;
	font-size: var(--nj-fs-sm);
	font-weight: 560;
	color: var(--nj-ink-2);
	text-decoration: none;
	transition: color 0.15s, background-color 0.15s;
}

.nj-nav a:hover {
	color: var(--nj-ink);
	background: var(--nj-paper-2);
}

.nj-nav a[aria-current="page"],
.nj-nav a[aria-current="true"] {
	color: var(--nj-ink);
	background: var(--nj-paper-2);
}

.nj-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
}

.nj-search-trigger {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	height: 2.5rem;
	padding: 0 0.6rem 0 0.85rem;
	border: 1px solid var(--nj-rule-2);
	border-radius: 999px;
	background: var(--nj-paper);
	color: var(--nj-ink-2);
	font: inherit;
	font-size: var(--nj-fs-sm);
	cursor: pointer;
	transition: border-color 0.15s;
}

.nj-search-trigger:hover {
	border-color: var(--nj-ink);
	color: var(--nj-ink);
}

.nj-search-trigger svg {
	width: 1rem;
	height: 1rem;
}

.nj-search-trigger__text {
	display: none;
	min-width: 9rem;
	text-align: left;
}

@media (min-width: 720px) {
	.nj-search-trigger__text {
		display: inline;
	}
}

.nj-kbd {
	display: none;
	padding: 0.1rem 0.4rem;
	border: 1px solid var(--nj-rule-2);
	border-radius: 5px;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--nj-ink-3);
	line-height: 1.3;
}

@media (min-width: 720px) and (hover: hover) {
	.nj-kbd {
		display: inline-block;
	}
}

.nj-menu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--nj-rule-2);
	border-radius: 999px;
	background: var(--nj-paper);
	color: var(--nj-ink);
	cursor: pointer;
}

.nj-menu-btn svg {
	width: 1.1rem;
	height: 1.1rem;
}

@media (min-width: 1000px) {
	.nj-menu-btn {
		display: none;
	}
}

.nj-drawer {
	border-top: 1px solid var(--nj-rule);
	background: var(--nj-paper);
	padding-block: 0.75rem 1.25rem;
}

.nj-drawer[hidden] {
	display: none;
}

.nj-drawer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nj-drawer a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--nj-rule);
	font-size: 1.1rem;
	font-weight: 650;
	color: var(--nj-ink);
	text-decoration: none;
}

.nj-drawer a span {
	font-size: var(--nj-fs-xs);
	font-weight: 500;
	color: var(--nj-ink-3);
}

@media (min-width: 1000px) {
	.nj-drawer {
		display: none !important;
	}
}

/* ───────────────────────── Migas ───────────────────────── */

.nj-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--nj-fs-xs);
	color: var(--nj-ink-3);
}

.nj-crumbs li + li::before {
	content: "/";
	margin-right: 0.35rem;
	color: var(--nj-rule-2);
}

.nj-crumbs a {
	color: var(--nj-ink-2);
	text-decoration: none;
}

.nj-crumbs a:hover {
	color: var(--nj-ink);
	text-decoration: underline;
}

/* ───────────────────────── Cabecera de página ───────────────────────── */

.nj-pagehead {
	padding-block: clamp(2rem, 1rem + 3vw, 3.75rem) clamp(1.75rem, 1rem + 2vw, 2.75rem);
	border-bottom: 1px solid var(--nj-rule);
}

.nj-pagehead .nj-crumbs {
	margin-bottom: 1.25rem;
}

.nj-pagehead .nj-lead {
	margin-top: 1rem;
}

.nj-pagehead__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin-top: 1.25rem;
	font-size: var(--nj-fs-xs);
	color: var(--nj-ink-3);
}

/* ───────────────────────── Cifras clave ───────────────────────── */

.nj-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	border-top: 1px solid var(--nj-ink);
}

@media (min-width: 900px) {
	.nj-facts {
		grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
	}
}

.nj-facts > div {
	padding: 1rem 1rem 1.1rem 0;
	border-bottom: 1px solid var(--nj-rule);
}

@media (min-width: 900px) {
	.nj-facts > div + div {
		padding-left: 1.25rem;
		border-left: 1px solid var(--nj-rule);
	}
}

.nj-facts dt {
	font-size: var(--nj-fs-xs);
	font-weight: 600;
	color: var(--nj-ink-2);
}

.nj-facts dd {
	margin: 0.35rem 0 0;
	font-size: 1.15rem;
	font-weight: 680;
	line-height: 1.25;
	font-variant-numeric: tabular-nums;
}

.nj-facts dd small {
	display: block;
	margin-top: 0.2rem;
	font-size: var(--nj-fs-xs);
	font-weight: 500;
	color: var(--nj-ink-3);
}

/* ───────────────────────── Medidores ───────────────────────── */

/* Barra simple: share en --v (0–100). */
.nj-meter {
	--v: 0;
	--c: var(--nj-ink);
	position: relative;
	height: 0.5rem;
	border-radius: 999px;
	background: var(--nj-paper-3);
	overflow: hidden;
}

.nj-meter::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: calc(var(--v) * 1%);
	min-width: 2px;
	border-radius: inherit;
	background: var(--c);
}

/* Cien puntos: «x de cada 100 tiendas». El motivo del sitio en pequeño. */
.nj-dots100 {
	--n: 0;
	--c: var(--nj-ink);
	display: grid;
	grid-template-columns: repeat(20, 1fr);
	gap: 3px;
	width: 100%;
	max-width: 15rem;
	aspect-ratio: 4 / 1;
}

.nj-dots100 i {
	display: block;
	border-radius: 50%;
	background: var(--nj-paper-3);
	aspect-ratio: 1;
}

.nj-dots100 i.is-on {
	background: var(--c);
}

/* Barra 100 % apilada (reparto de plataformas). */
.nj-stackbar {
	display: flex;
	height: 0.75rem;
	border-radius: 3px;
	overflow: hidden;
	background: var(--nj-paper-3);
	gap: 2px;
}

.nj-stackbar > span {
	display: block;
	height: 100%;
	background: var(--dot, var(--nj-other));
	width: calc(var(--v) * 1%);
}

.nj-stackbar--lg {
	height: 2.25rem;
	border-radius: 4px;
}

/* ───────────────────────── Ranking ───────────────────────── */

.nj-rank {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: nj-rank;
}

.nj-rank__row {
	display: grid;
	grid-template-columns: 1.75rem minmax(0, 1fr) 4.5rem;
	align-items: center;
	gap: 0.25rem 0.75rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--nj-rule);
	color: inherit;
	text-decoration: none;
}

.nj-rank__row::before {
	counter-increment: nj-rank;
	content: counter(nj-rank);
	font-size: var(--nj-fs-xs);
	font-weight: 600;
	color: var(--nj-ink-3);
	font-variant-numeric: tabular-nums;
}

.nj-rank__name {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
	font-weight: 620;
	font-size: var(--nj-fs-sm);
}

.nj-rank__name span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nj-rank__val {
	text-align: right;
	font-variant-numeric: tabular-nums;
	font-weight: 680;
	font-size: var(--nj-fs-sm);
}

.nj-rank__bar {
	grid-column: 2 / 4;
}

a.nj-rank__row:hover .nj-rank__name span {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* ───────────────────────── Logos ───────────────────────── */

.nj-logo-tile {
	--size: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: var(--size);
	height: var(--size);
	border: 1px solid var(--nj-rule);
	border-radius: calc(var(--size) * 0.24);
	background: #fff;
	overflow: hidden;
	font-weight: 750;
	font-stretch: var(--nj-wide);
	font-size: calc(var(--size) * 0.42);
	color: var(--nj-ink-2);
}

.nj-logo-tile img {
	width: 72%;
	height: 72%;
	object-fit: contain;
}

.nj-logo-tile--sm { --size: 1.6rem; }
.nj-logo-tile--md { --size: 2.5rem; }
.nj-logo-tile--lg { --size: 4rem; }
.nj-logo-tile--xl { --size: 5.5rem; }

/* ───────────────────────── Listados de herramientas ───────────────────────── */

.nj-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--nj-ink);
}

.nj-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.35rem 1rem;
	align-items: center;
	padding: 1rem 0;
	border-bottom: 1px solid var(--nj-rule);
	color: inherit;
	text-decoration: none;
}

@media (min-width: 900px) {
	.nj-row {
		grid-template-columns: auto minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, 1fr) 7.5rem;
	}
}

.nj-row__title {
	font-weight: 680;
	font-size: 1.02rem;
	line-height: 1.3;
}

.nj-row__desc {
	margin-top: 0.15rem;
	font-size: var(--nj-fs-sm);
	color: var(--nj-ink-2);
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nj-row__cell {
	font-size: var(--nj-fs-sm);
	color: var(--nj-ink-2);
}

.nj-row__cell strong {
	display: block;
	color: var(--nj-ink);
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 899px) {
	.nj-row__cell {
		grid-column: 2;
	}
}

.nj-row:hover .nj-row__title {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* ───────────────────────── Tarjetas ───────────────────────── */

/* Se usan poco: solo cuando el contenido es de verdad un objeto aparte
   (una tienda con su captura, una comparativa). */
.nj-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--nj-rule);
	border-radius: var(--nj-radius);
	background: var(--nj-paper);
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s;
}

a.nj-card:hover {
	border-color: var(--nj-ink);
}

.nj-card__media {
	aspect-ratio: 16 / 10;
	background: var(--nj-paper-2);
	border-bottom: 1px solid var(--nj-rule);
	overflow: hidden;
}

.nj-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

.nj-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem 1.1rem 1.15rem;
	flex: 1;
}

.nj-card__title {
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.3;
}

.nj-card__text {
	font-size: var(--nj-fs-sm);
	color: var(--nj-ink-2);
	line-height: 1.5;
}

.nj-card__foot {
	margin-top: auto;
	padding-top: 0.5rem;
}

/* ───────────────────────── Tablas de datos ───────────────────────── */

.nj-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.nj-table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--nj-fs-sm);
	font-variant-numeric: tabular-nums;
}

.nj-table th,
.nj-table td {
	padding: 0.7rem 0.75rem 0.7rem 0;
	border-bottom: 1px solid var(--nj-rule);
	text-align: left;
	vertical-align: middle;
}

.nj-table thead th {
	font-size: var(--nj-fs-xs);
	font-weight: 600;
	color: var(--nj-ink-2);
	border-bottom: 1px solid var(--nj-ink);
	white-space: nowrap;
}

.nj-table .is-num {
	text-align: right;
}

.nj-table tbody th {
	font-weight: 620;
}

/* ───────────────────────── Notas y avisos ───────────────────────── */

.nj-note {
	padding: 1rem 1.15rem;
	border-radius: var(--nj-radius);
	background: var(--nj-paper-2);
	font-size: var(--nj-fs-sm);
	color: var(--nj-ink-2);
	line-height: 1.55;
}

.nj-note strong {
	color: var(--nj-ink);
}

.nj-note--signal {
	background: var(--nj-signal-soft);
	color: var(--nj-signal-ink);
}

.nj-note--signal strong {
	color: var(--nj-signal-ink);
}

/* ───────────────────────── Veredicto ───────────────────────── */

.nj-verdict {
	display: grid;
	gap: 1rem 2rem;
	padding: clamp(1.25rem, 1rem + 1vw, 2rem);
	border: 1px solid var(--nj-ink);
	border-radius: var(--nj-radius);
}

@media (min-width: 760px) {
	.nj-verdict {
		grid-template-columns: 9rem minmax(0, 1fr);
	}
}

.nj-score {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.nj-score__value {
	font-size: 2.6rem;
	line-height: 1;
	font-weight: 800;
	font-stretch: var(--nj-wide);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.03em;
}

.nj-score__value small {
	font-size: 1rem;
	font-weight: 600;
	color: var(--nj-ink-3);
	letter-spacing: 0;
}

.nj-score__word {
	font-size: var(--nj-fs-sm);
	font-weight: 650;
}

/* Pros y contras */
.nj-proscons {
	display: grid;
	gap: 1.5rem 2.5rem;
}

@media (min-width: 760px) {
	.nj-proscons {
		grid-template-columns: 1fr 1fr;
	}
}

.nj-proscons h3 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 0.6rem;
	margin-bottom: 0.25rem;
	border-bottom: 2px solid currentColor;
	font-size: var(--nj-fs-base);
	font-weight: 700;
}

.nj-proscons__pros h3 {
	color: var(--nj-pos);
}

.nj-proscons__cons h3 {
	color: var(--nj-neg);
}

.nj-proscons ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nj-proscons li {
	position: relative;
	padding: 0.7rem 0 0.7rem 1.4rem;
	border-bottom: 1px solid var(--nj-rule);
	font-size: var(--nj-fs-sm);
	line-height: 1.55;
	color: var(--nj-ink-2);
}

.nj-proscons li strong {
	color: var(--nj-ink);
	font-weight: 650;
}

.nj-proscons li::before {
	position: absolute;
	left: 0;
	top: 0.7rem;
	font-weight: 800;
}

.nj-proscons__pros li::before {
	content: "+";
	color: var(--nj-pos);
}

.nj-proscons__cons li::before {
	content: "−";
	color: var(--nj-neg);
}

/* ───────────────────────── Índice de la página ───────────────────────── */

.nj-toc {
	font-size: var(--nj-fs-sm);
}

.nj-toc ol,
.nj-toc ul {
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
	border-left: 1px solid var(--nj-rule);
}

.nj-toc a {
	display: block;
	padding: 0.35rem 0 0.35rem 0.9rem;
	margin-left: -1px;
	border-left: 2px solid transparent;
	color: var(--nj-ink-2);
	text-decoration: none;
	line-height: 1.35;
}

.nj-toc a:hover {
	color: var(--nj-ink);
}

.nj-toc a[aria-current="true"] {
	color: var(--nj-ink);
	font-weight: 650;
	border-left-color: var(--nj-ink);
}

/* Barra de secciones horizontal (fichas), pegajosa bajo la cabecera. */
.nj-tabs {
	position: sticky;
	top: 4rem;
	z-index: 40;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--nj-rule);
}

.admin-bar .nj-tabs {
	top: calc(4rem + 32px);
}

.nj-tabs ul {
	display: flex;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.nj-tabs ul::-webkit-scrollbar {
	display: none;
}

.nj-tabs a {
	display: block;
	padding: 0.85rem 0.75rem;
	font-size: var(--nj-fs-sm);
	font-weight: 580;
	color: var(--nj-ink-2);
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.nj-tabs a:hover {
	color: var(--nj-ink);
}

.nj-tabs a[aria-current="true"] {
	color: var(--nj-ink);
	border-bottom-color: var(--nj-ink);
}

/* ───────────────────────── Preguntas frecuentes ───────────────────────── */

.nj-faq {
	border-top: 1px solid var(--nj-ink);
}

.nj-faq details {
	border-bottom: 1px solid var(--nj-rule);
}

.nj-faq summary {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.05rem 0;
	font-weight: 650;
	cursor: pointer;
	list-style: none;
}

.nj-faq summary::-webkit-details-marker {
	display: none;
}

.nj-faq summary::after {
	content: "+";
	flex: none;
	font-weight: 500;
	font-size: 1.35rem;
	line-height: 1;
	color: var(--nj-ink-3);
	transition: transform 0.2s var(--nj-ease);
}

.nj-faq details[open] summary::after {
	transform: rotate(45deg);
}

.nj-faq__a {
	padding: 0 0 1.25rem;
	color: var(--nj-ink-2);
	max-width: var(--nj-max-text);
}

.nj-faq__a > * + * {
	margin-top: 0.75em;
}

/* ───────────────────────── Formularios ───────────────────────── */

.nj-input {
	width: 100%;
	min-height: 2.9rem;
	padding: 0.6rem 1rem;
	border: 1.5px solid var(--nj-rule-2);
	border-radius: 999px;
	background: var(--nj-paper);
	color: var(--nj-ink);
	font: inherit;
	font-size: var(--nj-fs-base);
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.nj-input:hover {
	border-color: var(--nj-ink-3);
}

.nj-input:focus {
	outline: none;
	border-color: var(--nj-ink);
	box-shadow: 0 0 0 4px var(--nj-signal-soft);
}

.nj-input::placeholder {
	color: var(--nj-ink-3);
}

.nj-inline-form {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.nj-inline-form .nj-input {
	flex: 1 1 14rem;
	width: auto;
}

/* Filtros de listados */
.nj-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: center;
	margin-bottom: 1.25rem;
}

.nj-filters__search {
	flex: 1 1 18rem;
	max-width: 26rem;
}

.nj-filters .nj-chips {
	flex: 1 1 100%;
}

.nj-select {
	min-height: 2.5rem;
	padding: 0.45rem 2.2rem 0.45rem 0.9rem;
	border: 1.5px solid var(--nj-rule-2);
	border-radius: 999px;
	background: var(--nj-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23464c56'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5'/%3E%3C/svg%3E") no-repeat right 0.7rem center / 1rem;
	-webkit-appearance: none;
	appearance: none;
	font: inherit;
	font-size: var(--nj-fs-sm);
	color: var(--nj-ink);
	cursor: pointer;
}

.nj-empty {
	padding: 2.5rem 0;
	text-align: center;
	color: var(--nj-ink-2);
}

/* ───────────────────────── Paginación ───────────────────────── */

.nj-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: center;
	margin-top: 2.5rem;
}

.nj-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border: 1px solid var(--nj-rule-2);
	border-radius: 999px;
	font-size: var(--nj-fs-sm);
	font-weight: 600;
	color: var(--nj-ink);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

.nj-pager .page-numbers:hover {
	border-color: var(--nj-ink);
}

.nj-pager .page-numbers.current {
	background: var(--nj-ink);
	border-color: var(--nj-ink);
	color: #fff;
}

.nj-pager .page-numbers.dots {
	border-color: transparent;
}

/* ───────────────────────── Pie ───────────────────────── */

.nj-footer {
	margin-top: auto;
	background: var(--nj-paper-2);
	border-top: 1px solid var(--nj-rule);
	font-size: var(--nj-fs-sm);
}

.nj-footer__top {
	display: grid;
	gap: 2.5rem;
	padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

@media (min-width: 900px) {
	.nj-footer__top {
		grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	}
}

.nj-footer h2 {
	font-size: var(--nj-fs-sm);
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.nj-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nj-footer li + li {
	margin-top: 0.45rem;
}

.nj-footer a {
	color: var(--nj-ink-2);
	text-decoration: none;
}

.nj-footer a:hover {
	color: var(--nj-ink);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.nj-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding-block: 1.25rem 1.75rem;
	border-top: 1px solid var(--nj-rule-2);
	color: var(--nj-ink-3);
	font-size: var(--nj-fs-xs);
}

/* ───────────────────────── Buscador (⌘K) ───────────────────────── */

.nj-cmdk {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(0.75rem, 8vh, 6rem) 0.75rem 0.75rem;
	background: rgba(18, 20, 23, 0.42);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.nj-cmdk[hidden] {
	display: none;
}

.nj-cmdk__panel {
	width: 100%;
	max-width: 40rem;
	max-height: min(36rem, 100%);
	display: flex;
	flex-direction: column;
	background: var(--nj-paper);
	border-radius: 14px;
	box-shadow: 0 24px 60px -12px rgba(18, 20, 23, 0.35), 0 0 0 1px rgba(18, 20, 23, 0.08);
	overflow: hidden;
	animation: nj-pop 0.16s var(--nj-ease);
}

@keyframes nj-pop {
	from { opacity: 0; transform: translateY(-6px) scale(0.985); }
	to { opacity: 1; transform: none; }
}

.nj-cmdk__field {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0 1.1rem;
	border-bottom: 1px solid var(--nj-rule);
}

.nj-cmdk__field svg {
	width: 1.15rem;
	height: 1.15rem;
	color: var(--nj-ink-3);
	flex: none;
}

.nj-cmdk__input {
	flex: 1;
	min-width: 0;
	height: 3.5rem;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 1.1rem;
	color: var(--nj-ink);
}

.nj-cmdk__input:focus {
	outline: none;
}

.nj-cmdk__results {
	overflow-y: auto;
	padding: 0.4rem;
	overscroll-behavior: contain;
}

.nj-cmdk__group {
	padding: 0.65rem 0.75rem 0.3rem;
	font-size: var(--nj-fs-xs);
	font-weight: 650;
	color: var(--nj-ink-3);
}

.nj-cmdk__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.6rem 0.75rem;
	border-radius: 8px;
	color: var(--nj-ink);
	text-decoration: none;
}

.nj-cmdk__item[aria-selected="true"] {
	background: var(--nj-paper-2);
}

.nj-cmdk__item-title {
	font-weight: 620;
	font-size: var(--nj-fs-sm);
}

.nj-cmdk__item-meta {
	margin-left: auto;
	font-size: var(--nj-fs-xs);
	color: var(--nj-ink-3);
	white-space: nowrap;
}

.nj-cmdk__foot {
	display: flex;
	gap: 1rem;
	padding: 0.6rem 1rem;
	border-top: 1px solid var(--nj-rule);
	font-size: var(--nj-fs-xs);
	color: var(--nj-ink-3);
}

.nj-cmdk__empty {
	padding: 2rem 1rem;
	text-align: center;
	color: var(--nj-ink-2);
	font-size: var(--nj-fs-sm);
}

/* ───────────────────────── Campo de puntos (portada / radar) ───────────────────────── */

/* Cada punto es una tienda analizada, agrupadas por plataforma. Se dibuja
   como SVG en el servidor (un rectángulo con patrón de puntos por plataforma),
   así que no cuesta 10 000 nodos en el DOM ni necesita JavaScript. */
.nj-dotfield {
	position: relative;
}

.nj-dotfield svg {
	display: block;
	width: 100%;
	height: auto;
}

.nj-dotfield__group {
	transition: opacity 0.25s;
}

.nj-dotfield[data-focus] .nj-dotfield__group {
	opacity: 0.12;
}

.nj-dotfield[data-focus="woocommerce"] .nj-dotfield__group[data-platform="woocommerce"],
.nj-dotfield[data-focus="prestashop"] .nj-dotfield__group[data-platform="prestashop"],
.nj-dotfield[data-focus="shopify"] .nj-dotfield__group[data-platform="shopify"],
.nj-dotfield[data-focus="magento"] .nj-dotfield__group[data-platform="magento"],
.nj-dotfield[data-focus="wix"] .nj-dotfield__group[data-platform="wix"],
.nj-dotfield[data-focus="otras"] .nj-dotfield__group[data-platform="otras"] {
	opacity: 1;
}

/* El único momento coreografiado del sitio: el barrido del radar al cargar. */
/* Se recorta el contenedor HTML (no el <g> del SVG): clip-path sobre
   elementos SVG no es fiable en Safari. Sin animaciones, se ve entero. */
.nj-dotfield {
	animation: nj-sweep 1.6s var(--nj-ease) 0.15s both;
}

@keyframes nj-sweep {
	from { clip-path: inset(0 100% 0 0); }
	to { clip-path: inset(0 0 0 0); }
}

.nj-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nj-legend button,
.nj-legend a {
	--dot: var(--nj-other);
	display: inline-flex;
	align-items: baseline;
	gap: 0.5rem;
	padding: 0.45rem 0.7rem 0.45rem 0.6rem;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	font: inherit;
	color: var(--nj-ink);
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
}

.nj-legend button:hover,
.nj-legend button[aria-pressed="true"],
.nj-legend a:hover {
	border-color: var(--nj-rule-2);
	background: var(--nj-paper);
}

.nj-legend__dot {
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: var(--dot);
	align-self: center;
	flex: none;
}

.nj-legend__name {
	font-size: var(--nj-fs-sm);
	font-weight: 620;
}

.nj-legend__val {
	font-size: var(--nj-fs-sm);
	font-variant-numeric: tabular-nums;
	color: var(--nj-ink-2);
}

/* ───────────────────────── Cita / fuente ───────────────────────── */

.nj-source {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	margin-top: 1rem;
	font-size: var(--nj-fs-xs);
	color: var(--nj-ink-3);
}

.nj-source a {
	color: var(--nj-ink-2);
}

/* ───────────────────────── Utilidades mínimas ───────────────────────── */

.nj-mt-0 { margin-top: 0 !important; }
.nj-mt-s { margin-top: 0.75rem; }
.nj-mt-m { margin-top: 1.5rem; }
.nj-mt-l { margin-top: 2.5rem; }
.nj-mt-xl { margin-top: 4rem; }
.nj-row-gap { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.nj-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.75rem 2rem; }
.nj-hide-sm { display: none; }

@media (min-width: 720px) {
	.nj-hide-sm { display: revert; }
}

@media print {
	.nj-header,
	.nj-footer,
	.nj-tabs,
	.nj-cmdk {
		display: none !important;
	}
}

/* ───────────────────────── Newsletter ───────────────────────── */

.nj-newsletter {
	position: relative;
	max-width: 28rem;
}

.nj-check {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	color: var(--nj-ink-2);
	cursor: pointer;
}

.nj-check input {
	width: 1.05rem;
	height: 1.05rem;
	margin-top: 0.1rem;
	accent-color: var(--nj-ink);
	flex: none;
}

/* ───────────────────────── Campo de puntos anotado ───────────────────────── */

.nj-field {
	margin: 0;
}

.nj-field__labels {
	position: relative;
	height: 3.4rem;
}

.nj-field__label {
	--dot: var(--nj-ink);
	position: absolute;
	left: calc(var(--at) * 1%);
	bottom: 0.45rem;
	padding-left: 0.55rem;
	border-left: 2px solid var(--dot);
	font-size: var(--nj-fs-xs);
	font-weight: 600;
	line-height: 1.2;
	color: var(--nj-ink-2);
	white-space: nowrap;
}

.nj-field__label b {
	display: block;
	font-size: clamp(1.05rem, 0.8rem + 0.9vw, 1.6rem);
	color: var(--nj-ink);
	line-height: 1.05;
}

.nj-dotfield__tall {
	display: none !important;
}

@media (max-width: 719px) {
	.nj-dotfield__wide {
		display: none !important;
	}
	.nj-dotfield__tall {
		display: block !important;
	}
	.nj-field__label {
		font-size: 0.72rem;
	}
}

/* ───────────────────────── Hallazgos ───────────────────────── */

.nj-findings {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--nj-ink);
}

@media (min-width: 900px) {
	.nj-findings {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: clamp(1.5rem, 1rem + 2vw, 3rem);
	}
}

.nj-findings li {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: 1rem;
	align-items: baseline;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--nj-rule);
}

.nj-findings .nj-num {
	font-size: 1.6rem;
	line-height: 1;
}

.nj-findings p {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.5;
}

/* ───────────────────────── Mapa de calor (tabla) ───────────────────────── */

.nj-heat td.is-heat {
	text-align: right;
	font-weight: 620;
	background: color-mix(in oklab, var(--c, var(--nj-ink)) calc(var(--v) * 1.6%), #fff);
}

.nj-heat td.is-heat.is-dark {
	color: #fff;
}

.nj-heat th[scope="col"] {
	text-align: right;
}

.nj-heat th[scope="col"] .nj-legend__dot {
	display: inline-block;
	margin-right: 0.35rem;
	vertical-align: -0.05rem;
	width: 0.6rem;
	height: 0.6rem;
}

/* ───────────────────────── Sectores ───────────────────────── */

.nj-sectors {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--nj-ink);
}

.nj-sectors li {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.5rem 1.5rem;
	align-items: center;
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--nj-rule);
}

@media (min-width: 800px) {
	.nj-sectors li {
		grid-template-columns: 15rem minmax(0, 1fr) 11rem;
	}
}

.nj-sectors__name {
	font-weight: 650;
	font-size: var(--nj-fs-sm);
}

.nj-sectors__name small {
	display: block;
	font-weight: 500;
	color: var(--nj-ink-3);
	font-size: var(--nj-fs-xs);
	font-variant-numeric: tabular-nums;
}

.nj-sectors__lead {
	font-size: var(--nj-fs-xs);
	color: var(--nj-ink-2);
}

.nj-sectors__lead strong {
	color: var(--nj-ink);
	font-variant-numeric: tabular-nums;
}

/* ───────────────────────── Bloque de cita ───────────────────────── */

.nj-cite {
	display: grid;
	gap: 0.75rem;
	padding: 1.25rem;
	border: 1px solid var(--nj-rule-2);
	border-radius: var(--nj-radius);
	background: var(--nj-paper);
}

.nj-cite p {
	margin: 0;
	font-size: var(--nj-fs-sm);
	line-height: 1.55;
}

.nj-heat tbody th {
	min-width: 9rem;
}

@media (max-width: 719px) {
	.nj-heat tbody th .nj-faint {
		display: none !important;
	}
}

.nj-prose > :first-child {
	margin-top: 0;
}

/* El panel ya marca el foco; el campo no necesita anillo propio. */
.nj-cmdk__input:focus-visible {
	outline: none;
	box-shadow: none;
}
