/* ==========================================================================
   NotiSUR! MX — hoja de estilos principal
   Móvil primero. Puntos de quiebre: 768px (tableta) y 1024px (escritorio).
   ========================================================================== */

/* ---------- Fuentes (subconjunto latino, licencia SIL OFL) ---------- */
@font-face {
	font-family: "Roboto Condensed";
	src: url("../fonts/roboto-condensed-var.woff") format("woff");
	font-weight: 500 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Roboto Condensed";
	src: url("../fonts/roboto-condensed-italic-900.woff") format("woff");
	font-weight: 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("../fonts/source-serif-4-var.woff") format("woff");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("../fonts/source-serif-4-italic.woff") format("woff");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	/* Color */
	--ns-red: #a3111f;          /* acciones y marca (7.0:1 con blanco) */
	--ns-red-hover: #8a0e1a;
	--ns-red-bright: #c8102e;   /* marco de tarjeta y logo */
	--ns-red-deep: #5c0a12;
	--ns-navy: #0e1b36;         /* cabecera */
	--ns-navy-2: #16284b;
	--ns-navy-3: #0a142a;       /* barra de titulares */
	--ns-ink: #16181d;
	--ns-ink-2: #3b3f47;
	--ns-gray-1: #f4f5f7;
	--ns-gray-2: #e6e8ec;
	--ns-gray-3: #c9cdd4;
	--ns-gray-4: #6b7280;       /* 4.8:1 sobre blanco */
	--ns-white: #fff;
	--ns-focus: #ffbf47;

	/* Tipografía */
	--ns-font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ns-font-head: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--ns-font-read: "Source Serif 4", Georgia, "Times New Roman", serif;

	/* Espacio, radios, sombras */
	--ns-s1: 4px; --ns-s2: 8px; --ns-s3: 12px; --ns-s4: 16px; --ns-s5: 24px; --ns-s6: 32px; --ns-s7: 48px;
	--ns-radius: 18px;
	--ns-radius-sm: 10px;
	--ns-shadow-card: 0 18px 40px -18px rgba(14, 27, 54, .45), 0 4px 12px rgba(14, 27, 54, .12);
	--ns-shadow-soft: 0 6px 24px rgba(14, 27, 54, .10);

	/* Cabecera (JS actualiza --ns-hdr-h con la altura real) */
	--ns-bar-h: 64px;
	--ns-nav-h: 44px;
	--ns-ticker-h: 40px;
	--ns-hdr-h: calc(var(--ns-bar-h) + var(--ns-nav-h) + var(--ns-ticker-h));
	--ns-logo-d: 72px;

	/* Movimiento */
	--ns-ease: cubic-bezier(.2, .8, .2, 1);
	--ns-dur: 380ms;

	--ns-sticky-h: 0px;
	--ns-side-w: 340px;
}

@media (min-width: 1024px) {
	:root {
		--ns-bar-h: 46px;
		--ns-nav-h: 58px;
		--ns-ticker-h: 44px;
		--ns-logo-d: 104px;
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	font: 16px/1.5 var(--ns-font-ui);
	color: var(--ns-ink);
	background: var(--ns-white);
	padding-bottom: var(--ns-sticky-h);
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ns-focus); outline-offset: 2px; }
.ns-sr, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ns-skip {
	position: absolute; left: var(--ns-s3); top: -100px; z-index: 1000;
	background: var(--ns-white); color: var(--ns-navy); padding: var(--ns-s2) var(--ns-s4); border-radius: var(--ns-radius-sm); font-weight: 700;
}
.ns-skip:focus { top: var(--ns-s3); }
.ns-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ns-i { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Botones ---------- */
.ns-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 44px; padding: .55em 1.1em; border: 2px solid transparent; border-radius: var(--ns-radius-sm);
	font: 700 1rem/1.1 var(--ns-font-head); letter-spacing: .01em; text-decoration: none;
	transition: background-color .15s, transform .15s, border-color .15s;
}
.ns-btn--primary { background: var(--ns-red); color: var(--ns-white); }
.ns-btn--primary:hover { background: var(--ns-red-hover); }
.ns-btn--primary:active { transform: translateY(1px); }
.ns-btn--ghost { background: transparent; color: var(--ns-navy); border-color: var(--ns-gray-3); }
.ns-btn--ghost:hover { border-color: var(--ns-navy); }
.ns-btn--block { width: 100%; }
.ns-btn[disabled], .ns-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.ns-btn .ns-i { width: 1.1em; height: 1.1em; }

.ns-iconbtn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
	background: transparent; border: 0; border-radius: 50%; color: inherit;
}
.ns-iconbtn:hover { background: rgba(255, 255, 255, .12); }
.ns-iconbtn .ns-i { width: 26px; height: 26px; }
.ns-iconbtn--light { color: var(--ns-white); }
.ns-iconbtn[aria-pressed="true"] .ns-i { fill: currentColor; }

.ns-roundbtn {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--ns-white); color: var(--ns-navy); border: 1px solid var(--ns-gray-2); box-shadow: var(--ns-shadow-soft);
}
.ns-roundbtn:hover { border-color: var(--ns-navy); }
.ns-roundbtn[disabled] { opacity: .35; cursor: default; }

.ns-tag {
	display: inline-flex; align-items: center; gap: .3em;
	background: var(--ns-red); color: var(--ns-white); text-decoration: none; text-transform: uppercase;
	font: 700 .8rem/1 var(--ns-font-head); letter-spacing: .04em; padding: .45em .6em; border-radius: 4px;
}
.ns-tag .ns-i { width: 1.1em; height: 1.1em; }
.ns-chip {
	display: inline-block; padding: .3em .7em; border-radius: 999px; background: var(--ns-gray-1);
	color: var(--ns-navy); font-size: .85rem; font-weight: 600; text-decoration: none;
}
.ns-live {
	display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: #ff3b3b;
	box-shadow: 0 0 0 0 rgba(255, 59, 59, .6); animation: ns-pulse 1.8s infinite;
}
@keyframes ns-pulse { 70% { box-shadow: 0 0 0 .5em rgba(255, 59, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); } }

/* ==========================================================================
   Cabecera
   ========================================================================== */
.ns-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--ns-navy); color: var(--ns-white);
	padding-top: env(safe-area-inset-top);
}
.ns-header__bar {
	position: relative; display: flex; align-items: center; justify-content: space-between;
	height: var(--ns-bar-h); padding: 0 max(var(--ns-s2), env(safe-area-inset-left));
	transition: height var(--ns-dur) var(--ns-ease);
}
.ns-header__date { display: none; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.ns-brand { margin: 0; position: absolute; left: 50%; top: calc((var(--ns-bar-h) - var(--ns-logo-d)) / 2 + 2px); transform: translateX(-50%); z-index: 3; }
.ns-brand__link {
	display: grid; place-items: center; width: var(--ns-logo-d); height: var(--ns-logo-d);
	border-radius: 50%; background: var(--ns-white);
	box-shadow: 0 0 0 3px var(--ns-navy), 0 6px 18px rgba(0, 0, 0, .35);
	transition: width var(--ns-dur) var(--ns-ease), height var(--ns-dur) var(--ns-ease);
}
.ns-brand .ns-logo { width: 84%; height: auto; }

.ns-nav { position: relative; height: var(--ns-nav-h); border-top: 1px solid rgba(255, 255, 255, .08); }
.ns-nav__row {
	display: flex; align-items: stretch; height: 100%; padding: 0 var(--ns-s3);
	overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.ns-nav__row::-webkit-scrollbar { display: none; }
.ns-nav__list { display: flex; align-items: stretch; gap: var(--ns-s1); margin: 0; padding: 0; list-style: none; }
.ns-nav__list > li { flex: none; scroll-snap-align: center; display: flex; }
.ns-nav__gap { display: none !important; }
.ns-nav__link {
	position: relative; display: inline-flex; align-items: center; gap: .25em; padding: 0 .7em;
	color: rgba(255, 255, 255, .86); text-decoration: none; background: none; border: 0;
	font: 600 .95rem/1 var(--ns-font-head); letter-spacing: .01em; white-space: nowrap;
}
.ns-nav__link:hover, .ns-nav__link[aria-current="page"], .ns-nav__link[data-current="true"] { color: var(--ns-white); }
.ns-nav__link[aria-current="page"]::after, .ns-nav__link[data-current="true"]::after {
	content: ""; position: absolute; left: .55em; right: .55em; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--ns-red-bright);
}
.ns-nav__toggle .ns-i { width: 1em; height: 1em; transition: transform .2s; }
.ns-nav__toggle[aria-expanded="true"] .ns-i { transform: rotate(180deg); }

/* Selector de estados */
.ns-estados {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
	background: var(--ns-white); color: var(--ns-ink); box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
	max-height: min(70vh, 560px); overflow: auto; overscroll-behavior: contain;
}
.ns-estados__inner { max-width: 1100px; margin: 0 auto; padding: var(--ns-s4); }
.ns-estados__head { display: flex; flex-wrap: wrap; gap: var(--ns-s2) var(--ns-s4); align-items: center; margin-bottom: var(--ns-s3); }
.ns-estados__label { font: 700 1.1rem/1.2 var(--ns-font-head); color: var(--ns-navy); }
.ns-estados__filter { flex: 1 1 220px; min-height: 44px; padding: 0 var(--ns-s3); border: 1px solid var(--ns-gray-3); border-radius: var(--ns-radius-sm); font: inherit; }
.ns-estados__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px var(--ns-s3); margin: 0; padding: 0; list-style: none; }
.ns-estados__list a { display: block; padding: .6em .5em; border-radius: 6px; text-decoration: none; font-weight: 600; }
.ns-estados__list a:hover, .ns-estados__list a[aria-current="page"] { background: var(--ns-gray-1); color: var(--ns-red); }
.ns-estados__list li[hidden] { display: none; }
@media (min-width: 768px) { .ns-estados__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Barra de titulares */
.ns-ticker {
	display: flex; align-items: center; gap: var(--ns-s2); height: var(--ns-ticker-h);
	padding: 0 var(--ns-s2) 0 var(--ns-s3); background: var(--ns-navy-3); border-top: 1px solid rgba(255, 255, 255, .06);
	font-size: .9rem;
}
.ns-ticker__badge {
	flex: none; display: inline-flex; align-items: center; gap: .45em; margin: 0;
	font: 800 .8rem/1 var(--ns-font-head); text-transform: uppercase; letter-spacing: .05em;
}
.ns-ticker__badge::after { content: ""; }
.ns-ticker__badge { padding: .35em .55em; background: var(--ns-red); border-radius: 4px; }
.ns-ticker__viewport {
	position: relative; flex: 1; min-width: 0; height: 100%; overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
}
.ns-ticker__track { display: flex; width: max-content; height: 100%; animation: ns-marquee var(--ns-ticker-speed, 45s) linear infinite; }
.ns-ticker__list { display: flex; margin: 0; padding: 0; list-style: none; }
.ns-ticker__item { display: flex; align-items: center; white-space: nowrap; }
.ns-ticker__item a { color: var(--ns-white); text-decoration: none; padding: 0 1.4em 0 0; }
.ns-ticker__item a::after { content: "•"; margin-left: 1.4em; color: var(--ns-red-bright); }
.ns-ticker__item a:hover { text-decoration: underline; }
.ns-ticker__time { color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; margin-right: .3em; }
.ns-ticker:hover .ns-ticker__track, .ns-ticker:focus-within .ns-ticker__track, .ns-ticker.is-paused .ns-ticker__track { animation-play-state: paused; }
@keyframes ns-marquee { to { transform: translateX(-50%); } }
.ns-ticker__controls { flex: none; display: flex; }
.ns-ticker__btn { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .85); }
.ns-ticker__btn:hover { background: rgba(255, 255, 255, .1); color: var(--ns-white); }
.ns-ticker__btn .ns-i { width: 18px; height: 18px; }
.ns-ticker__btn[data-ticker="prev"], .ns-ticker__btn[data-ticker="next"] { display: none; }
.ns-ticker.is-paused .ns-ticker__btn[data-ticker="prev"], .ns-ticker.is-paused .ns-ticker__btn[data-ticker="next"] { display: grid; }
.ns-ticker.is-paused .ns-ticker__viewport { overflow-x: auto; scrollbar-width: none; }
.ns-ticker.is-paused .ns-ticker__track { animation: none; transform: none; }

/* Cabecera compacta al leer */
.ns-view-read .ns-header.is-compact { --ns-bar-h: 48px; --ns-logo-d: 50px; }
.ns-view-read .ns-header.is-compact .ns-ticker { display: none; }

/* ==========================================================================
   Distribución
   ========================================================================== */
.ns-layout { width: 100%; max-width: 1240px; margin: 0 auto; }
.ns-main { min-width: 0; }
.ns-main:focus { outline: none; }
.ns-sidebar { display: none; }

@media (min-width: 1024px) {
	.ns-header__bar { padding: 0 var(--ns-s5); }
	.ns-header__menu { order: 0; }
	.ns-header__date { display: block; margin-right: auto; margin-left: var(--ns-s2); }
	.ns-brand { top: calc(var(--ns-bar-h) + (var(--ns-nav-h) - var(--ns-logo-d)) / 2); }
	.ns-nav__row { display: grid; grid-template-columns: 1fr calc(var(--ns-logo-d) + 56px) 1fr; overflow: visible; }
	.ns-nav__list { gap: var(--ns-s2); }
	.ns-nav__list--left { justify-content: flex-end; }
	.ns-nav__list--right { justify-content: flex-start; }
	.ns-nav__gap { display: block !important; }
	.ns-nav__link { font-size: 1.12rem; padding: 0 1em; }
	.ns-nav__estados .ns-nav__toggle {
		margin: 8px 0; padding: 0 1em; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; background: rgba(255, 255, 255, .06);
	}
	.ns-nav__estados .ns-nav__toggle::after { display: none; }
	.ns-ticker { padding-left: max(var(--ns-s5), calc((100vw - 1240px) / 2 + var(--ns-s5))); padding-right: var(--ns-s4); font-size: .98rem; }

	.ns-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--ns-side-w); gap: var(--ns-s6); padding: 0 var(--ns-s5); }
	.ns-sidebar {
		display: flex; flex-direction: column; gap: var(--ns-s5);
		position: sticky; top: calc(var(--ns-hdr-h) + var(--ns-s4)); align-self: start;
		padding: var(--ns-s4); margin-top: var(--ns-s4); background: var(--ns-white);
		border: 1px solid var(--ns-gray-2); border-radius: var(--ns-radius); box-shadow: var(--ns-shadow-soft);
		max-height: calc(100dvh - var(--ns-hdr-h) - var(--ns-s6)); overflow: auto; scrollbar-width: thin;
	}
	.ns-only-mobile { display: none !important; }
}

/* ==========================================================================
   Flujo de tarjetas
   ========================================================================== */
.ns-view-feed { overflow: hidden; height: 100dvh; } /* La página no se desplaza: lo hace la colección. */
.ns-view-feed .ns-layout { height: calc(100dvh - var(--ns-hdr-h)); }
.ns-view-feed .ns-main { height: 100%; min-height: 0; }
.ns-view-feed .ns-layout { grid-template-rows: minmax(0, 1fr); }
.ns-feed { position: relative; height: 100%; display: flex; flex-direction: column; }
.ns-feed__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ns-s3); padding: 0 var(--ns-s4); }
.ns-feed__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.ns-feed__filter { position: absolute; top: 8px; right: 14px; z-index: 5; font-size: .85rem; font-weight: 700; color: var(--ns-navy); background: var(--ns-white); padding: .3em .7em; border-radius: 999px; box-shadow: var(--ns-shadow-soft); text-decoration: none; }

.ns-stack {
	position: relative; flex: 1; min-height: 0;
	overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain;
	scroll-snap-type: y mandatory; scroll-behavior: smooth; scrollbar-width: none;
	touch-action: pan-y pinch-zoom;
}
.ns-stack::-webkit-scrollbar { display: none; }
.ns-stack:focus-visible { outline-offset: -4px; }

/* Cada hijo directo es un panel de la colección. */
.ns-stack > * {
	height: 100%; scroll-snap-align: start; scroll-snap-stop: always;
	display: grid; place-items: center; padding: 10px 12px 26px;
	container-type: size;
}

/* La tarjeta visible: 9:16 que cabe en el panel sin recortes (1080 × 1920). */
.ns-card__inner, .ns-card--ad .ns-ad__link {
	--w: min(100cqw, 100cqh * 9 / 16);
	position: relative; width: var(--w); aspect-ratio: 9 / 16; max-height: 100cqh;
	border-radius: var(--ns-radius); overflow: hidden; isolation: isolate;
	background: var(--ns-navy) linear-gradient(160deg, var(--ns-navy-2), var(--ns-red-deep));
	box-shadow: var(--ns-shadow-card);
	container-type: inline-size;
	transition: transform var(--ns-dur) var(--ns-ease), opacity var(--ns-dur) var(--ns-ease), filter var(--ns-dur);
}
/* Tarjetas apiladas: dos láminas asoman por debajo (sombras con extensión negativa, sin elementos extra). */
.ns-stack > .ns-card .ns-card__inner, .ns-stack > .ns-card--ad .ns-ad__link {
	overflow: hidden;
	box-shadow:
		0 9px 0 -5px #fff, 0 9px 0 -4px var(--ns-gray-3),
		0 18px 0 -11px #fff, 0 18px 0 -10px var(--ns-gray-2),
		var(--ns-shadow-card);
}
/* Animación de paso: la tarjeta activa al frente, las demás se retraen ligeramente. */
.js .ns-stack > .ns-card:not(.is-active) .ns-card__inner,
.js .ns-stack > .ns-card--ad:not(.is-active) .ns-ad__link { transform: scale(.92) translateY(var(--ns-shift, 4%)); opacity: .5; filter: saturate(.7); }
.js .ns-stack > .is-before .ns-card__inner, .js .ns-stack > .is-before .ns-ad__link { --ns-shift: -4%; }

.ns-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.ns-card__img--empty { background: radial-gradient(120% 80% at 30% 20%, var(--ns-navy-2), var(--ns-navy) 55%, var(--ns-red-deep)); }

/* Marco rojo: 10 px de grosor a 20 px del borde en una imagen de 1080 px de ancho → escala con la tarjeta. */
.ns-card__frame {
	--fi: calc(100cqw * 20 / 1080);
	--fb: max(2px, calc(100cqw * 10 / 1080));
	position: absolute; inset: var(--fi); border: var(--fb) solid var(--ns-red-bright); pointer-events: none; z-index: 1;
}
.ns-card__brand {
	position: absolute; left: 50%; top: calc(100cqw * 25 / 1080); transform: translate(-50%, -50%); z-index: 2;
	width: 32cqw; padding: 1.6cqw 3cqw; background: var(--ns-white); border-radius: 0 0 1.2cqw 1.2cqw;
	margin-top: 3.2cqw;
}
.ns-card__brand .ns-logo { width: 100%; }

.ns-card__body {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	padding: 18cqw 9cqw 9cqw;
	background: linear-gradient(to top, rgba(70, 6, 14, .96) 0%, rgba(110, 10, 22, .88) 34%, rgba(110, 10, 22, .55) 62%, rgba(110, 10, 22, 0) 100%);
	color: var(--ns-white);
}
.ns-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2.4cqw; margin: 0 0 2.4cqw; font-size: max(13px, 3.9cqw); }
.ns-card__meta .ns-tag { font-size: max(12px, 3.6cqw); }
.ns-card__time, .ns-card__state { color: rgba(255, 255, 255, .92); }
.ns-card__state { font-weight: 700; }
.ns-card__state--abierta::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .35em; border-radius: 50%; background: #3ddc84; vertical-align: .05em; }
.ns-card__title {
	margin: 0 0 5cqw; font: 800 max(20px, 8.6cqw)/1.02 var(--ns-font-head); letter-spacing: -.005em;
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
	text-wrap: balance;
}
.ns-card__title a { text-decoration: none; }
.ns-card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ns-card__actions { display: flex; align-items: center; gap: 2cqw; }
.ns-card__cta { white-space: nowrap; font-size: max(15px, 4.7cqw); padding: 2.6cqw 4.4cqw; margin-right: auto; border-radius: 1.8cqw; }
.ns-card__actions .ns-iconbtn .ns-i { width: max(24px, 7cqw); height: max(24px, 7cqw); }

/* Encuesta: mismo formato, otra acción. */
.ns-card--poll .ns-card__body { background: linear-gradient(to top, rgba(14, 27, 54, .97) 0%, rgba(14, 27, 54, .86) 38%, rgba(14, 27, 54, .45) 66%, rgba(14, 27, 54, 0) 100%); }
.ns-tag--poll { background: var(--ns-white); color: var(--ns-navy); }

/* Anuncio en el flujo (solo móvil/tableta). */
.ns-card--ad { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.ns-card--ad .ns-ad__label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ns-gray-4); }
.ns-card--ad .ns-ad__link { --w: min(100cqw, (100cqh - 24px) * 9 / 16); display: block; background: var(--ns-gray-1); }
.ns-card--ad .ns-ad__img { width: 100%; height: 100%; object-fit: cover; }
.ns-card--ad.ns-ad--house .ns-ad__link { display: grid; place-content: center; text-align: center; text-decoration: none; border: 1px dashed var(--ns-gray-3); background: linear-gradient(180deg, #fff, var(--ns-gray-1)); box-shadow: none; }

/* Final, vacío y controles */
.ns-stack__end { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: var(--ns-s4); text-align: center; }
.ns-stack__done { margin: 0; font: 700 1.3rem/1.2 var(--ns-font-head); color: var(--ns-navy); }
.ns-stack__end.is-loading::before { content: ""; display: block; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--ns-gray-2); border-top-color: var(--ns-red); animation: ns-spin .8s linear infinite; }
@keyframes ns-spin { to { transform: rotate(360deg); } }
.ns-empty { display: grid; place-content: center; gap: var(--ns-s4); text-align: center; padding: var(--ns-s6); }
.ns-empty__title { font: 700 1.25rem/1.25 var(--ns-font-head); color: var(--ns-navy); margin: 0; }
.ns-skeleton .ns-card__inner { background: linear-gradient(100deg, var(--ns-gray-1) 40%, #fff 50%, var(--ns-gray-1) 60%) 0 0 / 200% 100%; animation: ns-shimmer 1.2s linear infinite; box-shadow: none; }
@keyframes ns-shimmer { to { background-position: -200% 0; } }

.ns-feed__controls { display: none; }
.ns-feed__pos { margin: 0; font: 600 .85rem/1 var(--ns-font-ui); color: var(--ns-gray-4); font-variant-numeric: tabular-nums; }
.ns-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 7px; pointer-events: none; }
.ns-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--ns-gray-3); transition: background-color .2s, transform .2s; }
.ns-dots span.is-on { background: var(--ns-red); transform: scale(1.2); }
.ns-swipehint { display: none; }

.ns-footer-mini { font-size: .85rem; color: var(--ns-gray-4); }
.ns-footer-mini__menu { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ns-s2) var(--ns-s4); margin: 0 0 var(--ns-s2); padding: 0; list-style: none; }

/* Cambio de sección (gesto lateral) */
.ns-stack.is-leaving-left { animation: ns-out-left 220ms var(--ns-ease) forwards; }
.ns-stack.is-leaving-right { animation: ns-out-right 220ms var(--ns-ease) forwards; }
.ns-stack.is-entering-left { animation: ns-in-left 280ms var(--ns-ease); }
.ns-stack.is-entering-right { animation: ns-in-right 280ms var(--ns-ease); }
.ns-stack.is-bounce-left { animation: ns-bounce-l 300ms var(--ns-ease); }
.ns-stack.is-bounce-right { animation: ns-bounce-r 300ms var(--ns-ease); }
@keyframes ns-out-left { to { transform: translateX(-18%); opacity: 0; } }
@keyframes ns-out-right { to { transform: translateX(18%); opacity: 0; } }
@keyframes ns-in-left { from { transform: translateX(18%); opacity: 0; } }
@keyframes ns-in-right { from { transform: translateX(-18%); opacity: 0; } }
@keyframes ns-bounce-l { 40% { transform: translateX(-24px); } }
@keyframes ns-bounce-r { 40% { transform: translateX(24px); } }

@media (min-width: 768px) {
	.ns-stack > * { padding: 18px 70px 34px; }
	.ns-feed__controls {
		display: flex; flex-direction: column; align-items: center; gap: var(--ns-s3);
		position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 4;
	}
	.ns-feed[style*="--ns-card-w"] .ns-feed__controls { right: auto; left: min(calc(50% + var(--ns-card-w) / 2 + 18px), calc(100% - 52px));
	}
	.ns-dots { bottom: 10px; }
	.ns-swipehint { display: block; position: absolute; left: 0; right: 0; bottom: -2px; margin: 0; text-align: center; font-size: .78rem; color: var(--ns-gray-4); }
	.ns-dots { bottom: 22px; }
}
@media (min-width: 1024px) {
	.ns-stack > * { padding: 22px 76px 40px; }
	.ns-card__inner, .ns-card--ad .ns-ad__link { --w: min(100cqw, 100cqh * 9 / 16, 470px); }

}

/* ==========================================================================
   Barra lateral (escritorio)
   ========================================================================== */
.ns-ad { position: relative; }
.ns-ad__label { display: block; text-align: center; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ns-gray-4); margin-bottom: 4px; }
.ns-ad--lateral .ns-ad__link { display: block; aspect-ratio: 6 / 5; border-radius: var(--ns-radius-sm); overflow: hidden; background: var(--ns-gray-1); }
.ns-ad--lateral .ns-ad__img { width: 100%; height: 100%; object-fit: cover; }
.ns-ad--empty { aspect-ratio: 6 / 5; }
.ns-ad--house .ns-ad__house, .ns-ad--house .ns-ad__link {
	display: grid; place-content: center; gap: 6px; text-align: center; text-decoration: none;
	border: 1px solid var(--ns-gray-3); background: linear-gradient(180deg, #fafbfc, var(--ns-gray-1)); color: var(--ns-ink-2);
}
.ns-ad__house-title { font: 500 1.6rem/1.1 var(--ns-font-head); color: var(--ns-ink-2); }
.ns-ad__house-cta { font-size: .85rem; font-weight: 700; color: var(--ns-red); }
.ns-ad--house .ns-ad__label { position: absolute; top: 14px; left: 0; right: 0; z-index: 1; }

.ns-side__title {
	position: relative; margin: 0 0 var(--ns-s4); padding-bottom: 10px;
	font: 800 1.55rem/1.1 var(--ns-font-head); color: var(--ns-navy);
}
.ns-side__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--ns-red); border-radius: 2px; }
.ns-minipoll { display: grid; gap: var(--ns-s3); margin-bottom: var(--ns-s5); }
.ns-minipoll__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--ns-radius-sm); overflow: hidden; background: var(--ns-navy); container-type: inline-size; }
.ns-minipoll__media img { width: 100%; height: 100%; object-fit: cover; }
.ns-minipoll__frame { position: absolute; inset: 2.6cqw; border: 2px solid var(--ns-red-bright); }
.ns-minipoll__brand { position: absolute; left: 50%; top: 2.6cqw; transform: translate(-50%, -50%); width: 34cqw; padding: 1.4cqw 2.6cqw; background: #fff; border-radius: 4px; margin-top: 2px; }
.ns-minipoll__q { margin: 0; font: 800 1.35rem/1.15 var(--ns-font-head); color: var(--ns-navy); }
.ns-minipoll__q a { text-decoration: none; }
.ns-minipoll__q a:hover { text-decoration: underline; }
.ns-minipoll__state { margin: -4px 0 0; font-size: .85rem; color: var(--ns-gray-4); }
.ns-side__more { font-weight: 700; color: var(--ns-red); }

/* ==========================================================================
   Lectura
   ========================================================================== */
.ns-layout--read { padding-top: var(--ns-s4); }
.ns-article { max-width: 760px; margin: 0 auto; padding: 0 var(--ns-s4) var(--ns-s6); }
.ns-article__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ns-s2); margin-bottom: var(--ns-s4); }
.ns-back { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; font-weight: 700; color: var(--ns-navy); text-decoration: none; }
.ns-back:hover { color: var(--ns-red); }
.ns-article__kicker { margin: 0 0 var(--ns-s3); }
.ns-article__title { margin: 0 0 var(--ns-s3); font: 800 clamp(1.9rem, 1.2rem + 3.2vw, 3rem)/1.05 var(--ns-font-head); color: var(--ns-ink); text-wrap: balance; letter-spacing: -.01em; }
.ns-article__dek { margin: 0 0 var(--ns-s4); font: 400 clamp(1.12rem, 1rem + .5vw, 1.32rem)/1.45 var(--ns-font-read); color: var(--ns-ink-2); }
.ns-article__byline { display: flex; flex-wrap: wrap; gap: .3em 1em; margin: 0 0 var(--ns-s5); font-size: .9rem; color: var(--ns-gray-4); }
.ns-article__byline a { color: var(--ns-navy); font-weight: 700; }
.ns-article__figure { margin: 0 calc(-1 * var(--ns-s4)) var(--ns-s4); }
.ns-article__figure img { width: 100%; }
.ns-article__figure figcaption { padding: var(--ns-s2) var(--ns-s4) 0; font-size: .85rem; color: var(--ns-gray-4); }
.ns-article__share { display: flex; flex-wrap: wrap; gap: var(--ns-s2); margin-bottom: var(--ns-s5); }
.ns-article__share .ns-btn { min-height: 40px; font-size: .9rem; padding: .4em .9em; }
.ns-article__foot { margin-top: var(--ns-s6); padding-top: var(--ns-s4); border-top: 1px solid var(--ns-gray-2); font-size: .92rem; color: var(--ns-ink-2); }
@media (min-width: 768px) { .ns-article__figure { margin-inline: 0; } .ns-article__figure img { border-radius: var(--ns-radius-sm); } .ns-article__figure figcaption { padding-inline: 0; } }

.ns-prose { font: 400 1.16rem/1.7 var(--ns-font-read); color: var(--ns-ink); }
.ns-prose > * { margin: 0 0 1.1em; }
.ns-prose h2, .ns-prose h3 { font-family: var(--ns-font-head); font-weight: 800; line-height: 1.15; color: var(--ns-navy); margin-top: 1.6em; }
.ns-prose h2 { font-size: 1.6rem; } .ns-prose h3 { font-size: 1.3rem; }
.ns-prose a { color: var(--ns-red); text-underline-offset: 3px; }
.ns-prose blockquote { margin-inline: 0; padding: .2em 0 .2em 1.1em; border-left: 4px solid var(--ns-red); font-style: italic; color: var(--ns-ink-2); }
.ns-prose figure { margin-inline: 0; }
.ns-prose figcaption, .ns-prose .wp-element-caption { font: .85rem/1.4 var(--ns-font-ui); color: var(--ns-gray-4); margin-top: .4em; }
.ns-prose ul, .ns-prose ol { padding-left: 1.3em; }

.ns-related { max-width: 760px; margin: 0 auto; padding: 0 var(--ns-s4) var(--ns-s7); }
.ns-related__list { display: grid; gap: var(--ns-s3); margin: 0; padding: 0; list-style: none; }
.ns-related__item a { display: grid; grid-template-columns: 88px 1fr; gap: var(--ns-s3); align-items: center; text-decoration: none; font: 700 1.05rem/1.2 var(--ns-font-head); color: var(--ns-navy); }
.ns-related__item img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; }
.ns-related__item a:hover span { text-decoration: underline; }

/* Encuesta (pantalla) */
.ns-pollhero { position: relative; aspect-ratio: 16 / 10; border-radius: var(--ns-radius); overflow: hidden; margin-bottom: var(--ns-s4); container-type: inline-size; }
.ns-pollhero img { width: 100%; height: 100%; object-fit: cover; }
.ns-pollhero .ns-card__brand { width: 22cqw; padding: 1cqw 2cqw; top: calc(100cqw * 25 / 1080); }
.ns-poll { margin-top: var(--ns-s4); padding: var(--ns-s5) var(--ns-s4); border: 1px solid var(--ns-gray-2); border-radius: var(--ns-radius); background: var(--ns-gray-1); }
.ns-poll__state { display: inline-flex; align-items: center; gap: .45em; margin: 0 0 var(--ns-s3); font-weight: 700; font-size: .9rem; color: var(--ns-ink-2); }
.ns-poll__dot { width: .65em; height: .65em; border-radius: 50%; background: var(--ns-gray-3); }
.ns-poll__state--abierta .ns-poll__dot { background: #1f9d55; }
.ns-poll__state--cerrada .ns-poll__dot { background: var(--ns-red); }
.ns-poll fieldset { margin: 0; padding: 0; border: 0; }
.ns-poll__legend { padding: 0; margin-bottom: var(--ns-s2); font: 800 1.45rem/1.15 var(--ns-font-head); color: var(--ns-navy); }
.ns-poll__help { margin: 0 0 var(--ns-s4); font-size: .92rem; color: var(--ns-ink-2); }
.ns-poll__option {
	display: flex; align-items: center; gap: var(--ns-s3); min-height: 52px; margin-bottom: var(--ns-s2); padding: var(--ns-s3) var(--ns-s4);
	background: var(--ns-white); border: 2px solid var(--ns-gray-2); border-radius: var(--ns-radius-sm); cursor: pointer; font-weight: 600;
}
.ns-poll__option:hover { border-color: var(--ns-gray-3); }
.ns-poll__option:has(input:checked) { border-color: var(--ns-red); box-shadow: inset 0 0 0 1px var(--ns-red); }
.ns-poll__option input { width: 22px; height: 22px; accent-color: var(--ns-red); flex: none; }
.ns-poll__submit { margin-top: var(--ns-s3); width: 100%; min-height: 52px; font-size: 1.1rem; }
.ns-poll__msg { margin: 0 0 var(--ns-s3); padding: var(--ns-s3) var(--ns-s4); border-radius: var(--ns-radius-sm); font-weight: 700; }
.ns-poll__msg--ok { background: #e5f6ec; color: #145c34; }
.ns-poll__msg--warn { background: #fff3e0; color: #7a3f00; }
.ns-poll__rtitle { margin: var(--ns-s4) 0 var(--ns-s3); font: 800 1.2rem/1.2 var(--ns-font-head); color: var(--ns-navy); }
.ns-poll__bars { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--ns-s3); }
.ns-poll__bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--ns-s3); align-items: center; }
.ns-poll__blabel { font-weight: 600; }
.ns-poll__pct { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ns-navy); }
.ns-poll__bar { grid-column: 1 / -1; height: 10px; border-radius: 6px; background: var(--ns-gray-2); overflow: hidden; }
.ns-poll__fill { display: block; height: 100%; width: var(--p); background: var(--ns-red); border-radius: inherit; transition: width .6s var(--ns-ease); }
.ns-poll__total, .ns-poll__note { margin: var(--ns-s3) 0 0; font-size: .88rem; color: var(--ns-ink-2); }
.ns-poll__disclaimer { margin: var(--ns-s2) 0 0; font-size: .82rem; color: var(--ns-gray-4); }
.ns-poll__method { margin-top: var(--ns-s4); font-size: .88rem; color: var(--ns-ink-2); }
.ns-poll__method summary { cursor: pointer; font-weight: 700; color: var(--ns-navy); min-height: 32px; }

/* Franja publicitaria fija inferior (lectura) */
.ns-sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
	display: flex; justify-content: center; align-items: center;
	padding: 6px 52px calc(6px + env(safe-area-inset-bottom)) 12px; background: rgba(255, 255, 255, .97);
	border-top: 1px solid var(--ns-gray-2); box-shadow: 0 -8px 24px rgba(14, 27, 54, .12);
	transition: transform .25s var(--ns-ease);
}
.ns-sticky[hidden] { display: none; }
.ns-sticky.is-tucked { transform: translateY(110%); }
.ns-sticky .ns-ad { width: min(100%, 728px); }
.ns-sticky .ns-ad__label, .ns-sticky .ns-ad--house .ns-ad__label { position: static; transform: none; margin: 0 0 2px; text-align: left; font-size: .6rem; }
.ns-sticky .ns-ad__link { display: block; aspect-ratio: 32 / 5; max-height: 90px; border-radius: 6px; overflow: hidden; }
.ns-sticky .ns-ad__img { width: 100%; height: 100%; object-fit: cover; }
.ns-sticky .ns-ad--house .ns-ad__link { display: flex; align-items: center; justify-content: center; gap: 12px; aspect-ratio: auto; height: 50px; padding: 0 8px; }
.ns-sticky .ns-ad__house-title { font-size: 1.15rem; }
.ns-sticky__close { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ns-gray-1); color: var(--ns-ink); }
.ns-sticky__close .ns-i { width: 18px; height: 18px; }
@media (max-height: 480px) { .ns-sticky { display: none; } }

/* ==========================================================================
   Diálogos, menú lateral, aviso
   ========================================================================== */
.ns-dialog { border: 0; padding: 0; color: var(--ns-ink); background: var(--ns-white); }
.ns-dialog::backdrop { background: rgba(10, 20, 42, .55); backdrop-filter: blur(2px); }
.ns-drawer { margin: 0; height: 100dvh; max-height: none; width: min(86vw, 360px); padding: var(--ns-s4); padding-top: calc(var(--ns-s4) + env(safe-area-inset-top)); }
.ns-drawer[open] { animation: ns-drawer-in .28s var(--ns-ease); }
@keyframes ns-drawer-in { from { transform: translateX(-100%); } }
.ns-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--ns-s4); }
.ns-drawer__logo { width: 150px; }
.ns-drawer__list { margin: 0 0 var(--ns-s4); padding: 0; list-style: none; }
.ns-drawer__list a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--ns-s2); border-bottom: 1px solid var(--ns-gray-2); text-decoration: none; font: 700 1.15rem/1 var(--ns-font-head); color: var(--ns-navy); }
.ns-drawer__list a[aria-current="page"] { color: var(--ns-red); }
.ns-drawer__list--sub a { font: 600 1rem/1 var(--ns-font-ui); color: var(--ns-ink-2); }
.ns-search { margin: calc(var(--ns-s7) + env(safe-area-inset-top)) auto auto; width: min(94vw, 680px); border-radius: var(--ns-radius); }
.ns-search__form { display: flex; align-items: center; gap: var(--ns-s2); padding: var(--ns-s2) var(--ns-s2) var(--ns-s2) var(--ns-s4); }
.ns-search__form input { flex: 1; min-width: 0; min-height: 48px; border: 0; font: 400 1.1rem var(--ns-font-ui); outline: none; }
.ns-search__form .ns-i { color: var(--ns-gray-4); }

.ns-toast {
	position: fixed; left: 50%; bottom: calc(24px + var(--ns-sticky-h) + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90;
	padding: .7em 1.1em; border-radius: 999px; background: var(--ns-ink); color: var(--ns-white); font-weight: 600; font-size: .92rem; box-shadow: var(--ns-shadow-card);
}

.ns-footer { margin-top: var(--ns-s6); padding: var(--ns-s6) var(--ns-s4) calc(var(--ns-s6) + var(--ns-sticky-h)); background: var(--ns-navy); color: rgba(255, 255, 255, .8); text-align: center; }
.ns-footer__inner { max-width: 760px; margin: 0 auto; display: grid; justify-items: center; gap: var(--ns-s4); }
.ns-footer__brand { display: inline-block; background: #fff; padding: 10px 18px; border-radius: 999px; }
.ns-footer__brand .ns-logo { width: 150px; }
.ns-footer .ns-footer-mini { color: rgba(255, 255, 255, .75); }

/* ==========================================================================
   Movimiento reducido y alto contraste
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.ns-ticker__track { animation: none !important; }
	.ns-ticker__viewport { overflow-x: auto; scrollbar-width: none; }
	.ns-ticker__btn[data-ticker="prev"], .ns-ticker__btn[data-ticker="next"] { display: grid; }
	.ns-ticker__btn[data-ticker="toggle"] { display: none; }
	.js .ns-stack > .ns-card:not(.is-active) .ns-card__inner { transform: none; }
}
@media (forced-colors: active) {
	.ns-card__frame { border-color: CanvasText; }
	.ns-btn, .ns-tag { border: 1px solid ButtonText; }
}

/* ==========================================================================
   v0.2 — «Me gusta», redes oficiales, «Mandar noticia»
   ========================================================================== */

/* «Me gusta» */
.ns-like {
	display: inline-flex; align-items: center; gap: .3em; min-width: 44px; min-height: 44px; padding: 0 .55em;
	border: 0; border-radius: 999px; background: transparent; font: 700 1rem/1 var(--ns-font-head); font-variant-numeric: tabular-nums;
}
.ns-like .ns-i { width: 26px; height: 26px; transition: transform .2s var(--ns-ease), fill .2s; }
.ns-like--light { color: var(--ns-white); }
.ns-like--light:hover { background: rgba(255, 255, 255, .12); }
.ns-like--dark { color: var(--ns-ink-2); border: 2px solid var(--ns-gray-3); min-height: 40px; }
.ns-like--dark:hover { border-color: var(--ns-red); color: var(--ns-red); }
.ns-like[aria-pressed="true"] .ns-i { fill: currentColor; }
.ns-like--light[aria-pressed="true"] { color: #ff5a6e; }
.ns-like--dark[aria-pressed="true"] { color: var(--ns-red); border-color: var(--ns-red); }
.ns-like.is-pop .ns-i { animation: ns-pop .4s var(--ns-ease); }
@keyframes ns-pop { 40% { transform: scale(1.35); } }
.ns-card__actions .ns-like .ns-i { width: max(24px, 7cqw); height: max(24px, 7cqw); }
.ns-card__actions .ns-like { font-size: max(14px, 4.2cqw); }
.ns-like__n:empty { display: none; }

/* Redes oficiales */
.ns-social { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ns-social__link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: inherit; text-decoration: none; transition: background-color .15s, color .15s; }
.ns-social__link .ns-i { width: 22px; height: 22px; }
.ns-social--header { display: none; margin-left: auto; color: rgba(255, 255, 255, .85); }
.ns-social--header .ns-social__link:hover { background: rgba(255, 255, 255, .12); color: var(--ns-white); }
.ns-social--drawer, .ns-social--article { color: var(--ns-navy); }
.ns-social--drawer .ns-social__link, .ns-social--article .ns-social__link { border: 1px solid var(--ns-gray-2); }
.ns-social--drawer .ns-social__link:hover, .ns-social--article .ns-social__link:hover { background: var(--ns-navy); color: var(--ns-white); border-color: var(--ns-navy); }
.ns-social--footer { justify-content: center; margin-bottom: var(--ns-s3); }
.ns-footer .ns-social--footer { color: var(--ns-white); }
.ns-stack__end .ns-social--footer { color: var(--ns-navy); }
.ns-drawer__tip { margin: 0 0 var(--ns-s4); }
.ns-drawer__social h2 { font: 800 1.1rem/1 var(--ns-font-head); color: var(--ns-navy); margin: var(--ns-s4) 0 var(--ns-s2); }
.ns-article__follow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ns-s2) var(--ns-s3); margin: var(--ns-s4) 0; font-weight: 700; color: var(--ns-navy); }
@media (min-width: 1024px) {
	.ns-social--header { display: flex; margin-right: var(--ns-s2); }
	.ns-header__date { margin-right: 0; }
}

/* Botón «Mandar noticia» en la barra azul */
.ns-nav__tip { padding-left: var(--ns-s2); }
.ns-nav__cta {
	display: inline-flex; align-items: center; gap: .4em; align-self: center; height: 32px; padding: 0 .85em; margin-right: var(--ns-s3);
	border-radius: 999px; background: var(--ns-red-bright); color: var(--ns-white); text-decoration: none; white-space: nowrap;
	font: 700 .9rem/1 var(--ns-font-head); letter-spacing: .01em; box-shadow: 0 2px 10px rgba(200, 16, 46, .35);
}
.ns-nav__cta .ns-i { width: 1em; height: 1em; }
.ns-nav__cta:hover, .ns-nav__cta[aria-current="page"] { background: var(--ns-white); color: var(--ns-red); }
@media (min-width: 1024px) { .ns-nav__cta { height: 40px; font-size: 1.02rem; margin: 0 0 0 var(--ns-s2); } }

/* Formulario «Mandar noticia» */
.ns-tip { display: grid; gap: var(--ns-s4); margin-top: var(--ns-s4); }
.ns-tip__form { display: grid; gap: var(--ns-s5); }
.ns-tip__group { margin: 0; padding: var(--ns-s4); border: 1px solid var(--ns-gray-2); border-radius: var(--ns-radius); display: grid; gap: var(--ns-s3); }
.ns-tip__legend { padding: 0 6px; font: 800 1.2rem/1.2 var(--ns-font-head); color: var(--ns-navy); }
.ns-tip__legend small, .ns-tip__field small { font: 400 .85rem/1.3 var(--ns-font-ui); color: var(--ns-gray-4); }
.ns-tip__row { display: grid; gap: var(--ns-s3); }
@media (min-width: 640px) { .ns-tip__row { grid-template-columns: 1fr 1fr; } }
.ns-tip__field { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--ns-ink); min-width: 0; }
.ns-tip__field input, .ns-tip__field select, .ns-tip__field textarea {
	width: 100%; min-height: 48px; padding: .6em .8em; border: 1px solid var(--ns-gray-3); border-radius: var(--ns-radius-sm);
	font: 400 1rem/1.4 var(--ns-font-ui); color: var(--ns-ink); background: var(--ns-white);
}
.ns-tip__field textarea { min-height: 160px; resize: vertical; font-family: var(--ns-font-read); font-size: 1.08rem; }
.ns-tip__field input:focus, .ns-tip__field select:focus, .ns-tip__field textarea:focus { border-color: var(--ns-navy); outline: 2px solid var(--ns-focus); outline-offset: 1px; }
.ns-tip__count { justify-self: end; font-weight: 400; color: var(--ns-gray-4); font-variant-numeric: tabular-nums; }
.ns-tip__switch { display: inline-flex; align-items: center; gap: .6em; font-weight: 700; cursor: pointer; }
.ns-tip__switch input { width: 22px; height: 22px; accent-color: var(--ns-red); }
.ns-tip__drop {
	position: relative; display: grid; place-items: center; gap: 4px; padding: var(--ns-s5) var(--ns-s4); text-align: center; cursor: pointer;
	border: 2px dashed var(--ns-gray-3); border-radius: var(--ns-radius); background: var(--ns-gray-1); transition: border-color .15s, background-color .15s;
}
.ns-tip__drop:hover, .ns-tip__drop.is-over, .ns-tip__drop:focus-within { border-color: var(--ns-red); background: #fff5f6; }
.ns-tip__drop.is-full { opacity: .55; pointer-events: none; }
.ns-tip__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ns-tip__drop-title { font: 800 1.15rem/1.2 var(--ns-font-head); color: var(--ns-red); }
.ns-tip__drop-help { font-size: .88rem; color: var(--ns-ink-2); }
.ns-tip__files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--ns-s3); margin: 0; padding: 0; list-style: none; }
.ns-tip__file { border: 1px solid var(--ns-gray-2); border-radius: var(--ns-radius-sm); overflow: hidden; background: var(--ns-white); }
.ns-tip__file img, .ns-tip__file video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ns-navy); }
.ns-tip__file-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px; font-size: .8rem; color: var(--ns-ink-2); }
.ns-tip__badge { background: var(--ns-red); color: var(--ns-white); font: 700 .7rem/1 var(--ns-font-head); text-transform: uppercase; letter-spacing: .05em; padding: 4px 6px; border-radius: 4px; }
.ns-tip__remove { margin-left: auto; border: 0; background: none; color: var(--ns-red); font-weight: 700; text-decoration: underline; min-height: 32px; }
.ns-tip__note { margin: 0; font-size: .86rem; color: var(--ns-ink-2); }
.ns-tip__consent { display: flex; gap: .7em; align-items: flex-start; font-size: .95rem; }
.ns-tip__consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--ns-red); }
.ns-tip__submit { width: 100%; min-height: 54px; font-size: 1.15rem; }
.ns-tip__progress { display: flex; align-items: center; gap: var(--ns-s3); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ns-navy); }
.ns-tip__bar { flex: 1; height: 10px; border-radius: 6px; background: var(--ns-gray-2); overflow: hidden; }
.ns-tip__bar span { display: block; height: 100%; width: 0; background: var(--ns-red); transition: width .2s; }
.ns-tip__done { padding: var(--ns-s5); border-radius: var(--ns-radius); background: #e5f6ec; color: #145c34; display: grid; gap: var(--ns-s2); }
.ns-tip__done p { margin: 0; }
.ns-tip__done-title { font: 800 1.5rem/1.15 var(--ns-font-head); }
.ns-tip__folio { font-size: 1.2em; letter-spacing: .06em; }
.ns-tip__done:focus { outline: none; }

/* Encuesta incrustada en una nota */
.ns-poll--embed { font-family: var(--ns-font-ui); margin: 1.6em 0; }
.ns-prose .ns-poll--embed * { margin-top: 0; }

/* En móvil «Mandar noticia» queda fijo al borde derecho de la barra de secciones. */
@media (max-width: 1023px) {
	.ns-nav__row { gap: var(--ns-s1); }
	.ns-nav__list { display: contents; }
	.ns-nav__tip { position: sticky; right: 0; z-index: 2; margin-left: auto; padding-left: 26px; background: linear-gradient(90deg, rgba(14, 27, 54, 0), var(--ns-navy) 22px); }
	.ns-nav__cta { margin-right: 0; padding: 0 .7em; font-size: .85rem; }
}

