/*
 * Home — nicolasrodriguez.dev (portada)
 * Todo va bajo .nr-hm para no tocar nada fuera de esta página.
 * Colores y medidas: cambia solo las variables de abajo.
 * Imagen de fondo del hero y del cierre: la IMAGEN DESTACADA de la página (--nr-bg-img, la pone functions.php).
 */

.nr-hm {
	--nr-ink: #0b1b36;
	--nr-muted: #3b4862;
	--nr-dark: #002c70;
	--nr-darker: #001a44;
	--nr-on-dark: #ffffff;
	--nr-on-dark-muted: rgba(255, 255, 255, .86);
	--nr-line-dark: rgba(255, 255, 255, .16);
	--nr-accent: #002c70;
	--nr-highlight: #8ab4ff;
	--nr-cta-grad: linear-gradient(180deg, #ff7b5c 0%, #ff552c 100%);
	--nr-bg: #ffffff;
	--nr-bg-alt: #f4f6fa;
	--nr-line: #dfe5ee;
	--nr-radius: 12px;
	--nr-wrap: 1160px;
	--nr-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	color: var(--nr-ink);
	background: var(--nr-bg);
	font-family: inherit;
	font-weight: 400;
	line-height: 1.65;
	overflow-x: clip;
}
body .nr-hm p,
body .nr-hm li,
body .nr-hm dd,
body .nr-hm dt { font-weight: 400; }
.nr-hm strong,
.nr-hm b { font-weight: 600; }

.nr-hm *,
.nr-hm *::before,
.nr-hm *::after { box-sizing: border-box; }

.nr-hm h1,
.nr-hm h2,
.nr-hm h3 { color: var(--nr-ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
.nr-hm h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.02em; }
.nr-hm h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.01em; }
.nr-hm h3 { font-size: 1.15rem; }
.nr-hm p  { margin: 0 0 1em; }
.nr-hm a  { color: var(--nr-accent); text-underline-offset: 3px; }

/* ---------- Layout ---------- */
.nr-hm__wrap   { max-width: var(--nr-wrap); margin: 0 auto; padding: 0 20px; }
.nr-hm__narrow { max-width: 820px; }
.nr-hm__section { padding: clamp(64px, 9vw, 112px) 0; }
.nr-hm__section--alt { background: var(--nr-bg-alt); }
.nr-hm .nr-hm__small { font-size: .95rem; color: var(--nr-muted); margin-top: 1.5em; }

.nr-hm__split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .nr-hm__split { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- Fondos oscuros ---------- */
.nr-hm__hero,
.nr-hm__section--dark { background-color: var(--nr-dark); color: var(--nr-on-dark-muted); }
.nr-hm .nr-hm__hero h1,
.nr-hm .nr-hm__section--dark h2,
.nr-hm .nr-hm__section--dark h3 { color: var(--nr-on-dark); }
.nr-hm .nr-hm__hero a:not(.nr-hm__btn),
.nr-hm .nr-hm__section--dark a:not(.nr-hm__btn) { color: var(--nr-highlight); }
.nr-hm .nr-hm__section--dark .nr-hm__small { color: var(--nr-on-dark-muted); }
.nr-hm__section--dark strong { color: var(--nr-on-dark); }

.nr-hm__bg-img {
	background-image:
		linear-gradient(100deg, rgba(0, 44, 112, .97) 0%, rgba(0, 44, 112, .9) 50%, rgba(0, 44, 112, .72) 100%),
		var(--nr-bg-img, none);
	background-size: cover;
	background-position: center;
}

/* ---------- Botones ---------- */
.nr-hm__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.nr-hm__ctas--center { justify-content: center; }
.nr-hm__btn {
	display: inline-block; padding: 15px 28px; border-radius: 999px;
	font-weight: 600; text-decoration: none; line-height: 1.25; text-align: center;
	transition: transform .15s ease, border-color .15s ease, filter .15s ease;
}
.nr-hm__btn:hover { transform: translateY(-1px); }
.nr-hm__btn:focus-visible { outline: 3px solid var(--nr-highlight); outline-offset: 3px; }
.nr-hm .nr-hm__btn--primary { background: var(--nr-cta-grad); color: #fff; box-shadow: 0 8px 20px rgba(255, 85, 44, .3); }
.nr-hm .nr-hm__btn--primary:hover { color: #fff; filter: brightness(1.05); }
.nr-hm .nr-hm__btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .45); }
.nr-hm .nr-hm__btn--ghost:hover { color: #fff; border-color: #fff; }
.nr-hm a.nr-hm__btn,
.nr-hm a.nr-hm__btn:hover,
.nr-hm a.nr-hm__btn:focus { text-decoration: none; }

.nr-hm .nr-hm__arrow { font-weight: 600; text-decoration: none; }
.nr-hm .nr-hm__arrow::after { content: " →"; }
.nr-hm .nr-hm__arrow:hover { text-decoration: underline; }

/* ---------- 1 · Hero ---------- */
.nr-hm__hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.nr-hm__hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .nr-hm__hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; } }
.nr-hm .nr-hm__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--nr-on-dark); max-width: 640px; }
.nr-hm .nr-hm__lead2 { color: var(--nr-on-dark-muted); max-width: 600px; }
.nr-hm .nr-hm__markets { margin-top: 1.6em; padding-top: 1em; border-top: 1px solid var(--nr-line-dark); font-size: .95rem; color: var(--nr-on-dark-muted); max-width: 600px; }
.nr-hm .nr-hm__markets a { font-weight: 600; }

/* La lente: dos capas apiladas; la de datos solo se ve dentro del círculo (mask-image).
   --x / --y = centro de la lente, --r = radio. JS los mueve; sin JS queda fija en la cara. */
.nr-hm__stage {
	--x: 50%; --y: 30%; --r: clamp(90px, 14vw, 140px);
	position: relative; width: 100%; max-width: 420px; justify-self: center;
	aspect-ratio: 768 / 1280; border-radius: 20px; overflow: hidden;
	background: var(--nr-darker);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
	touch-action: pan-y; cursor: crosshair; user-select: none; -webkit-user-select: none;
}
@media (max-width: 899px) { .nr-hm__stage { max-width: min(78vw, 360px); } }
.nr-hm .nr-hm__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.nr-hm__entity {
	position: absolute; inset: 0;
	background-color: var(--nr-darker);
	background-image: radial-gradient(rgba(138, 180, 255, .35) 1px, transparent 1.4px);
	background-size: 9px 9px;
	-webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 97%, transparent 100%);
	        mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 97%, transparent 100%);
}
.nr-hm .nr-hm__photo--data { filter: grayscale(1) contrast(1.5) brightness(.9); mix-blend-mode: luminosity; opacity: .35; }
.nr-hm__code {
	position: absolute; inset: 0; padding: 6% 4%;
	display: flex; flex-direction: column; justify-content: space-around; text-align: center;
	font-family: var(--nr-mono); font-size: clamp(11px, 1.15vw, 14px); line-height: 1.4; color: #fff;
}
.nr-hm .nr-hm__code p { margin: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.nr-hm__code .k { display: block; color: var(--nr-highlight); font-size: .85em; }
.nr-hm__code .v { display: block; font-weight: 600; }
.nr-hm__ring {
	position: absolute; left: calc(var(--x) - var(--r)); top: calc(var(--y) - var(--r));
	width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, .85);
	box-shadow: 0 0 0 1px rgba(0, 26, 68, .5), 0 10px 30px rgba(0, 0, 0, .35);
	pointer-events: none;
}
.nr-hm .nr-hm__hint {
	position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0;
	padding: 8px 12px; border-radius: 999px; text-align: center;
	background: rgba(0, 26, 68, .78); color: #fff; font-size: .85rem; line-height: 1.3;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none;
}
.nr-hm__hint-touch { display: none; }
@media (hover: none) {
	.nr-hm__hint-desk { display: none; }
	.nr-hm__hint-touch { display: inline; }
}
/* Sin movimiento: corte fijo a la mitad, sin lente */
.nr-hm__stage[data-static] .nr-hm__entity {
	-webkit-mask-image: linear-gradient(90deg, transparent 50%, #000 50%);
	        mask-image: linear-gradient(90deg, transparent 50%, #000 50%);
}
.nr-hm__stage[data-static] .nr-hm__ring { display: none; }
.nr-hm__stage[data-static] .nr-hm__hint-desk,
.nr-hm__stage[data-static] .nr-hm__hint-touch { display: none; }

/* ---------- 2 · Franja de logos (sobre blanco: los logos tienen fondo blanco) ---------- */
.nr-hm__strip { background: var(--nr-bg); padding: 36px 0 28px; border-bottom: 1px solid var(--nr-line); }
.nr-hm .nr-hm__strip-title { text-align: center; font-size: .95rem; color: var(--nr-muted); margin-bottom: 12px; }
.nr-hm__logos {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 18px;
}
.nr-hm__logos li { margin: 0; }
.nr-hm__logos img {
	display: block; width: 84px; height: 84px; object-fit: contain;
	filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .75;
	transition: opacity .2s ease, filter .2s ease;
}
.nr-hm__logos img:hover { filter: none; opacity: 1; }
.nr-hm__logos .nr-hm__logo-text { font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; color: #6b7487; padding: 0 6px; }
.nr-hm .nr-hm__strip-note { text-align: center; font-size: .8rem; color: var(--nr-muted); margin: 6px 0 0; }
@media (max-width: 600px) { .nr-hm__logos img { width: 64px; height: 64px; } }

/* ---------- 3 · Caso Caracol ---------- */
.nr-hm__case-head { max-width: 780px; }
.nr-hm__chart { margin: 2em 0 0; padding: 20px 16px 14px; border-radius: var(--nr-radius); background: rgba(0, 26, 68, .55); border: 1px solid var(--nr-line-dark); }
.nr-hm__svg { display: block; width: 100%; height: auto; }
/* En móvil el gráfico no se encoge hasta ser ilegible: mantiene 640 px y se desliza dentro de su caja */
.nr-hm__chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) { .nr-hm__svg { min-width: 640px; } }
.nr-hm__chart figcaption { font-size: .85rem; color: rgba(255, 255, 255, .7); margin-top: 8px; }
.nr-hm__grid { stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.nr-hm__axis { fill: rgba(255, 255, 255, .62); font-size: 12px; font-family: inherit; }
.nr-hm__ref { stroke: rgba(255, 255, 255, .55); stroke-dasharray: 4 4; }
.nr-hm__avg { stroke: rgba(255, 255, 255, .5); stroke-dasharray: 2 3; }
.nr-hm__label { fill: rgba(255, 255, 255, .78); font-size: 12.5px; font-family: inherit; }
.nr-hm__label--strong { fill: #fff; font-weight: 600; }
.nr-hm__label--new { fill: var(--nr-highlight); font-weight: 600; }
.nr-hm__line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.nr-hm__line--old { stroke: rgba(255, 255, 255, .5); stroke-width: 2; }
.nr-hm__line--new { stroke: var(--nr-highlight); stroke-width: 3; }
/* Animación al entrar en pantalla (solo si hay JS; sin JS se ve completo) */
.nr-hm--js .nr-hm__line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s cubic-bezier(.3, .6, .2, 1); }
.nr-hm--js .nr-hm__line--new { transition-delay: .5s; }
.nr-hm--js .is-visible .nr-hm__line { stroke-dashoffset: 0; }
.nr-hm--js .nr-hm__avg,
.nr-hm--js .nr-hm__label { opacity: 0; transition: opacity .6s ease 2.2s; }
.nr-hm--js .is-visible .nr-hm__avg,
.nr-hm--js .is-visible .nr-hm__label { opacity: 1; }

.nr-hm__facts { list-style: none; margin: 2em 0 0; padding: 0; display: grid; gap: 0 32px; }
@media (min-width: 800px) { .nr-hm__facts { grid-template-columns: repeat(3, 1fr); } }
.nr-hm__facts li { padding: 18px 0; border-top: 2px solid var(--nr-highlight); }
.nr-hm__facts strong { display: block; font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.1; margin-bottom: 6px; color: #fff; font-weight: 700; }

/* ---------- 4 · Tres mercados: mapa de puntos ---------- */
.nr-hm .nr-mk__intro { color: var(--nr-muted); margin-bottom: 1.5em; }
.nr-hm .nr-mk__stage { position: relative; }
.nr-hm .nr-mk__svg { display: block; width: 100%; height: auto; overflow: visible; }
.nr-hm .nr-mk__dots { fill: none; stroke-linecap: round; stroke-width: 4.2; }
.nr-hm .nr-mk__dots--base { stroke: #c9d3e3; }
.nr-hm .nr-mk__dots--hl { stroke: var(--nr-dark); stroke-width: 5; transition: stroke .3s ease; }
.nr-hm .nr-mk__arc { fill: none; stroke: var(--nr-dark); stroke-width: 2; opacity: .45; }
.nr-hm .nr-mk__pin { cursor: pointer; }
.nr-hm .nr-mk__dot { fill: var(--nr-dark); stroke: #fff; stroke-width: 3; }
.nr-hm .nr-mk__pulse { fill: var(--nr-dark); opacity: .18; transform-box: fill-box; transform-origin: center; animation: nr-mk-pulse 2.4s ease-out infinite; }
.nr-hm .nr-mk__num { fill: #fff; font-size: 11px; font-weight: 700; font-family: inherit; pointer-events: none; }
.nr-hm .nr-mk__pin-s { transform-box: fill-box; transform-origin: center; }
@media (max-width: 699px) { .nr-hm .nr-mk__pin-s { transform: scale(2.1); } .nr-hm .nr-mk__arc { stroke-width: 3.5; } }
@keyframes nr-mk-pulse { 0% { transform: scale(.6); opacity: .35; } 100% { transform: scale(2.2); opacity: 0; } }
.nr-hm .nr-mk__pin.is-active .nr-mk__dot { fill: #ff552c; }
.nr-hm .nr-mk__pin.is-active .nr-mk__pulse { fill: #ff552c; }

.nr-hm .nr-mk__cards { display: grid; gap: 14px; margin-top: 20px; }
.nr-hm .nr-mk__card { position: relative; background: #fff; border: 1px solid var(--nr-line); border-radius: var(--nr-radius); padding: 18px 20px 18px 60px; box-shadow: 0 12px 30px -18px rgba(0, 44, 112, .35); transition: border-color .2s, box-shadow .2s; }
.nr-hm .nr-mk__card h3 { margin-bottom: .3em; font-size: 1.15rem; }
.nr-hm .nr-mk__card p { color: var(--nr-muted); margin-bottom: .6em; font-size: .95rem; }
.nr-hm .nr-mk__badge { position: absolute; left: 18px; top: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--nr-dark); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.nr-hm .nr-mk__card.is-active { border-color: #ff552c; box-shadow: 0 14px 34px -16px rgba(255, 85, 44, .45); }
.nr-hm .nr-mk__card.is-active .nr-mk__badge { background: #ff552c; }
.nr-hm .nr-mk__clock { font-size: .85rem !important; color: var(--nr-dark) !important; font-weight: 600; }
.nr-hm .nr-mk__clock time { font-variant-numeric: tabular-nums; }

/* Escritorio: las tarjetas flotan sobre el mapa, junto a su punto */
@media (min-width: 1000px) {
	.nr-hm .nr-mk__stage { padding-top: 110px; }
	.nr-hm .nr-mk__cards { position: absolute; inset: 0; margin: 0; display: block; pointer-events: none; }
	.nr-hm .nr-mk__card { position: absolute; width: 29%; pointer-events: auto; }
	.nr-hm .nr-mk__card[data-card="esp"] { right: 0; top: 46%; }
	.nr-hm .nr-mk__card[data-card="col"] { left: 0; top: 62%; }
	.nr-hm .nr-mk__card[data-card="usa"] { left: 7%; top: 0; width: 40%; }
}

/* Animación de entrada (solo con JS y sin "reducir movimiento") */
.nr-hm.nr-hm--anim .nr-mk__dots--base { opacity: 0; transition: opacity .8s ease; }
.nr-hm.nr-hm--anim .nr-mk__dots--hl { opacity: 0; transition: opacity .8s ease .4s; }
.nr-hm.nr-hm--anim .nr-mk__arc { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s ease; }
.nr-hm.nr-hm--anim .nr-mk__pin { opacity: 0; transition: opacity .4s ease; }
.nr-hm.nr-hm--anim .nr-mk__card { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease, border-color .2s, box-shadow .2s; }
.nr-hm.nr-hm--anim .nr-mk.is-in .nr-mk__dots--base,
.nr-hm.nr-hm--anim .nr-mk.is-in .nr-mk__dots--hl { opacity: 1; }
.nr-hm.nr-hm--anim .nr-mk .nr-mk__pin.is-on { opacity: 1; }
.nr-hm.nr-hm--anim .nr-mk .nr-mk__card.is-on { opacity: 1; transform: none; }
.nr-hm.nr-hm--anim .nr-mk .nr-mk__arc.is-on { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .nr-hm .nr-mk__pulse { animation: none; opacity: 0; } }

/* ---------- 5 · Servicios: selector por problema + muestra animada ---------- */
.nr-hm .nr-sv__intro { font-size: 1.1rem; margin-bottom: 1.2em; }
.nr-hm .nr-sv__tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 28px; }
@media (min-width: 900px) { .nr-hm .nr-sv__tabs { grid-template-columns: repeat(4, 1fr); } }
/* "all: unset" + doble clase: gana a los estilos globales de botón de Elementor/Astra */
.nr-hm .nr-sv__tab {
	all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; width: 100%; height: 100%;
	padding: 14px 16px; border-radius: 14px; border: 1px solid var(--nr-line-dark); background: rgba(255, 255, 255, .04);
	color: #fff; font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.3; text-align: left;
	transition: background .2s, border-color .2s, transform .15s;
}
.nr-hm .nr-sv__tab small { font-weight: 400; font-size: .82rem; color: var(--nr-on-dark-muted); }
.nr-hm .nr-sv__tab:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.nr-hm .nr-sv__tab:focus-visible { outline: 3px solid var(--nr-highlight); outline-offset: 2px; }
.nr-hm .nr-sv__tab[aria-selected="true"] { background: #fff; color: var(--nr-dark); border-color: #fff; transform: translateY(-2px); }
.nr-hm .nr-sv__tab[aria-selected="true"] small { color: var(--nr-muted); }

.nr-hm .nr-sv__panel { display: grid; gap: 32px; align-items: center; padding: 32px 0 8px; border-top: 1px solid var(--nr-line-dark); }
.nr-hm .nr-sv__panel + .nr-sv__panel { margin-top: 24px; }
@media (min-width: 900px) { .nr-hm .nr-sv__panel { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.nr-hm .nr-sv--js .nr-sv__panel[hidden] { display: none; }
.nr-hm .nr-sv__get { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 8px; }
.nr-hm .nr-sv__get li { position: relative; padding-left: 26px; }
.nr-hm .nr-sv__get li::before { content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 2px; background: var(--nr-highlight); }
.nr-hm .nr-sv__price { color: #fff; font-size: .92rem; background: rgba(255, 255, 255, .07); border-radius: 10px; padding: 10px 14px; }
.nr-hm .nr-sv__price strong { display: block; font-size: 1.15rem; }
.nr-hm .nr-sv__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 1.2em; }

/* Muestras: tarjeta común */
.nr-hm .nr-sv__demo { position: relative; border-radius: 16px; background: var(--nr-darker); border: 1px solid var(--nr-line-dark); padding: 38px 20px 20px; min-height: 340px; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6); overflow: hidden; }
.nr-hm .nr-sv__demo-label { position: absolute; top: 12px; left: 20px; font-size: .72rem; color: rgba(255, 255, 255, .55); }
.nr-hm .nr-sv__demo-head { font-size: .85rem; color: var(--nr-on-dark-muted); margin-bottom: 14px; }
.nr-hm .nr-sv__demo-head b { color: #fff; }
.nr-hm.nr-hm--anim .nr-sv__step { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.nr-hm.nr-hm--anim .nr-sv__step.is-on { opacity: 1; transform: none; }

/* Diagnóstico */
.nr-hm .nr-sv__issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nr-hm .nr-sv__issues li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .05); color: #fff; font-size: .92rem; line-height: 1.35; }
.nr-hm .nr-sv__sev { width: 10px; height: 10px; border-radius: 50%; }
.nr-hm .nr-sv__sev--a { background: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, .18); }
.nr-hm .nr-sv__sev--m { background: #facc15; box-shadow: 0 0 0 4px rgba(250, 204, 21, .15); }
.nr-hm .nr-sv__tag { font-size: .72rem; color: var(--nr-on-dark-muted); }
.nr-hm .nr-sv__prio { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--nr-highlight); color: #fff; font-size: .92rem; }
.nr-hm .nr-sv__prio b { color: var(--nr-highlight); }

/* Respuesta de IA */
.nr-hm .nr-sv__q { margin: 0 0 14px auto; max-width: 85%; background: rgba(255, 255, 255, .1); color: #fff; padding: 10px 14px; border-radius: 14px 14px 4px 14px; font-size: .92rem; }
.nr-hm .nr-sv__a { color: #fff; font-size: .95rem; line-height: 1.6; min-height: 7.5em; }
.nr-hm .nr-sv__caret { display: inline-block; width: 2px; height: 1em; background: #fff; vertical-align: -2px; animation: nr-hm-blink 1s steps(2) infinite; }
@keyframes nr-hm-blink { to { opacity: 0; } }
.nr-hm .nr-sv__cite { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 4px; margin: 0 2px; border-radius: 999px; background: rgba(138, 180, 255, .18); color: var(--nr-highlight); font-size: .82rem; font-weight: 600; vertical-align: 1px; }
.nr-hm .nr-sv__cite i { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--nr-highlight); color: var(--nr-darker); font-size: .7rem; }
.nr-hm .nr-sv__sources { margin-top: 14px; display: grid; gap: 8px; }
.nr-hm .nr-sv__src { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: .85rem; }
.nr-hm .nr-sv__src span:last-child { white-space: nowrap; color: var(--nr-on-dark-muted); }
.nr-hm .nr-sv__src--you { background: rgba(138, 180, 255, .14); outline: 1px solid var(--nr-highlight); color: #fff; }

/* Ficha → texto */
.nr-hm .nr-sv__brief { display: grid; gap: 8px; font-size: .88rem; }
.nr-hm .nr-sv__field { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.nr-hm .nr-sv__field span:first-child { color: var(--nr-highlight); font-family: var(--nr-mono); font-size: .8rem; padding-top: 2px; }
.nr-hm .nr-sv__field span:last-child { color: #fff; }
.nr-hm .nr-sv__arrow { text-align: center; color: var(--nr-highlight); font-size: 1.4rem; margin: 6px 0; }
.nr-hm .nr-sv__page { background: #fff; color: var(--nr-ink); border-radius: 10px; padding: 14px 16px; font-size: .86rem; line-height: 1.5; }
.nr-hm .nr-sv__page p { margin: 0; color: var(--nr-muted); }
.nr-hm .nr-sv__page .nr-sv__page-h { margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: var(--nr-ink); }
.nr-hm .nr-sv__page mark { background: #e3edff; color: var(--nr-dark); padding: 0 3px; border-radius: 3px; }

/* Cuadrícula de mapa */
.nr-hm .nr-sv__grid-head { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.nr-hm .nr-sv__chip { padding: 4px 12px; border-radius: 999px; font-size: .78rem; border: 1px solid var(--nr-line-dark); color: var(--nr-on-dark-muted); }
.nr-hm .nr-sv__chip.is-on { background: #fff; color: var(--nr-dark); border-color: #fff; font-weight: 600; }
.nr-hm .nr-sv__map { max-width: 380px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 18px; border-radius: 12px;
	background: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 28px 28px, rgba(255, 255, 255, .03); }
.nr-hm .nr-sv__pin { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: var(--nr-darker); font-weight: 700; font-size: .85rem; transition: background-color .6s ease; }
.nr-hm .nr-sv__pin.r1 { background: #4ade80; } .nr-hm .nr-sv__pin.r2 { background: #a3e635; } .nr-hm .nr-sv__pin.r3 { background: #facc15; }
.nr-hm .nr-sv__pin.r4 { background: #fb923c; } .nr-hm .nr-sv__pin.r5 { background: #f87171; }
.nr-hm .nr-sv__pin.is-center { outline: 3px solid #fff; outline-offset: 2px; }
.nr-hm .nr-sv__legend { max-width: 380px; margin: 10px auto 0; display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--nr-on-dark-muted); }

.nr-hm .nr-hm__links { font-size: .95rem; font-weight: 600; }
.nr-hm__extra { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--nr-line-dark); }

/* ---------- 6 · Cómo trabajo ---------- */
.nr-hm__how { display: grid; gap: 40px; }
@media (min-width: 900px) { .nr-hm__how { grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; } }
.nr-hm__steps { counter-reset: nr-step; list-style: none; margin: 1em 0 0; padding: 0; display: grid; gap: 18px; }
.nr-hm__steps li { counter-increment: nr-step; position: relative; padding: 4px 0 4px 58px; min-height: 42px; }
.nr-hm__steps li::before {
	content: counter(nr-step, decimal-leading-zero); position: absolute; left: 0; top: 0;
	font-size: 1.5rem; font-weight: 700; color: var(--nr-dark); line-height: 1.2;
}
.nr-hm__not { background: var(--nr-bg-alt); border-left: 4px solid var(--nr-dark); border-radius: 0 var(--nr-radius) var(--nr-radius) 0; padding: 26px 28px; }
.nr-hm__not ul { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; color: var(--nr-muted); }

/* ---------- 7 · Otros casos: tres tarjetas con foto ---------- */
.nr-hm .nr-cs__lead { max-width: 640px; margin: 0 0 2.4em; }
.nr-hm .nr-cs__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
@media (min-width: 900px) { .nr-hm .nr-cs__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.nr-hm .nr-cs__card a { display: block; color: inherit; text-decoration: none; }
.nr-hm .nr-cs__media { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: #0a3a85; }
@media (min-width: 900px) { .nr-hm .nr-cs__media { aspect-ratio: 4 / 5; } }
.nr-hm .nr-cs__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nr-hm .nr-cs__card a:hover img, .nr-hm .nr-cs__card a:focus-visible img { transform: scale(1.04); }
.nr-hm .nr-cs__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 44, 112, 0) 35%, rgba(0, 30, 80, .92) 100%); }
.nr-hm .nr-cs__over { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1; }
.nr-hm .nr-cs__tag { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: .82rem; font-weight: 500; }
.nr-hm .nr-cs__t { margin: 0; color: #fff; font-size: 1.45rem; line-height: 1.2; font-weight: 700; }
.nr-hm .nr-cs__p { margin: 30px 4px 12px; font-size: .98rem; line-height: 1.55; }
.nr-hm .nr-cs__more { margin: 0 4px; color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.nr-hm .nr-cs__card a:hover .nr-cs__more { border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .nr-hm .nr-cs__media img { transition: none; } }

/* ---------- 8 · Reseñas ---------- */
.nr-hm__section--reviews { background: var(--nr-bg); }

/* ---------- 9 · Blog (shortcode nr_ultimos_posts) ---------- */
.nr-hm .nr-posts { list-style: none; margin: 1em 0 0; padding: 0; }
.nr-hm .nr-posts li { padding: 18px 0; border-top: 1px solid var(--nr-line-dark); display: grid; gap: 4px; }
.nr-hm .nr-posts li:last-child { border-bottom: 1px solid var(--nr-line-dark); }
.nr-hm .nr-posts a { color: #fff; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.nr-hm .nr-posts a:hover { color: var(--nr-highlight); }
.nr-hm .nr-posts time { font-size: .85rem; color: rgba(255, 255, 255, .65); }

/* ---------- 10 · FAQ ---------- */
.nr-hm__faq details { border-bottom: 1px solid var(--nr-line); }
.nr-hm__faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.05rem; }
.nr-hm__faq summary::-webkit-details-marker { display: none; }
.nr-hm__faq summary::after {
	content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	font-size: 1.5rem; font-weight: 400; color: var(--nr-accent);
}
.nr-hm__faq details[open] summary::after { content: "−"; }
.nr-hm__faq details p { padding-bottom: 20px; margin: 0; color: var(--nr-muted); }

/* ---------- Cierre ---------- */
.nr-hm__closing { text-align: center; }
.nr-hm__closing .nr-hm__narrow { margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
	.nr-hm .nr-sv__caret { animation: none; }
	.nr-hm__btn { transition: none; }
	.nr-hm__btn:hover { transform: none; }
}
