/* Site header: ticker, red brand bar, local market menu. */

.nn-header {
	--nn-red-dark: #560404;
	--nn-red: #810000;
	--nn-navy: #17172f;
	--nn-blue: #2e8cff;
	--nn-line: #d8d6cf;
	--nn-sticky-top: 0px;
	font-family: "Brown", Arial, sans-serif;
	position: relative;
	z-index: 1000;
}

.nn-header *,
.nn-header *::before,
.nn-header *::after {
	box-sizing: border-box;
}

.nn-header a {
	text-decoration: none;
}

.nn-header ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nn-icon {
	display: block;
	fill: none;
	height: 20px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.25;
	width: 20px;
}

/* Row 1: ticker (unchanged look) */
.nn-ticker {
	align-items: center;
	background: linear-gradient(90deg, #2e8cff 59%, #17172f 100%);
	display: grid;
	gap: 14px;
	grid-template-columns: auto minmax(0, 1fr);
	min-height: 62px;
	padding: 3px clamp(10px, 2vw, 18px);
	position: relative;
}

.nn-ticker__icon img {
	border-radius: 6px;
	display: block;
	height: 38px;
	object-fit: contain;
	width: 38px;
}

.nn-ticker__text {
	color: #fff;
	font-family: "Oswald", sans-serif;
	font-size: 16px;
	line-height: 1.1;
	min-width: 0;
	overflow: hidden;
	text-transform: uppercase;
	white-space: nowrap;
}

.nn-ticker__text a {
	color: inherit;
}

.nn-ticker__text p,
.nn-ticker__text ul,
.nn-ticker__text ol {
	margin: 0;
}

.nn-ticker__text ul,
.nn-ticker__text ol {
	display: flex;
	gap: 24px;
	list-style: none;
	padding: 0;
}

/* Row 2: red brand bar — quick links | logo | search */
.nn-brand {
	align-items: center;
	background: linear-gradient(90deg, var(--nn-red-dark) 0%, var(--nn-red) 50%, var(--nn-red-dark) 100%);
	color: #fff;
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	min-height: 96px;
	padding: 0 clamp(14px, 3vw, 42px);
	position: relative;
	z-index: 3;
}

.nn-brand__left,
.nn-brand__right {
	align-items: center;
	display: flex;
	gap: 18px;
	min-width: 0;
}

.nn-brand__right {
	justify-content: flex-end;
}

.nn-brand__logo a {
	display: block;
}

.nn-brand__logo img {
	display: block;
	height: auto;
	max-height: 72px;
	max-width: min(260px, 42vw);
	object-fit: contain;
	width: auto;
}

.nn-quick {
	align-items: center;
	display: flex;
	gap: 14px;
}

.nn-live {
	align-items: center;
	background: #fff;
	border-radius: 999px;
	color: var(--nn-red) !important;
	display: inline-flex;
	font-family: "Brown Bold", "Brown", Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	gap: 8px;
	letter-spacing: 0.04em;
	line-height: 1;
	padding: 9px 16px 8px 13px;
	text-transform: uppercase;
	transition: background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.nn-live:hover,
.nn-live:focus-visible,
.nn-live[aria-current="page"] {
	background: var(--nn-navy);
	color: #fff !important;
	outline: none;
}

.nn-live__dot {
	animation: nn-live-pulse 1.6s ease-out infinite;
	background: #e10600;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.6);
	display: inline-block;
	height: 8px;
	width: 8px;
}

@keyframes nn-live-pulse {
	0% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.55); }
	70% { box-shadow: 0 0 0 7px rgba(225, 6, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.nn-live__dot { animation: none; }
}

.nn-more {
	position: relative;
}

.nn-more__toggle,
.nn-search__toggle,
.nn-burger,
.nn-drawer__close {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	height: 40px;
	justify-content: center;
	padding: 0;
	width: 40px;
}

.nn-more__toggle span,
.nn-more__toggle span::before,
.nn-more__toggle span::after {
	background: currentColor;
	border-radius: 50%;
	display: block;
	height: 5px;
	position: relative;
	width: 5px;
}

.nn-more__toggle span::before,
.nn-more__toggle span::after {
	content: "";
	position: absolute;
	top: 0;
}

.nn-more__toggle span::before { left: -9px; }
.nn-more__toggle span::after { left: 9px; }

.nn-more__toggle:hover,
.nn-more__toggle:focus-visible,
.nn-more__toggle[aria-expanded="true"],
.nn-search__toggle:hover,
.nn-search__toggle:focus-visible {
	background: rgba(255, 255, 255, 0.14);
	outline: none;
}

/* Dropdowns (Más and market submenus) */
.nn-dropdown {
	background: #fff;
	border: 1px solid var(--nn-line);
	border-radius: 6px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
	display: none;
	left: 0;
	min-width: 200px;
	padding: 6px 0 !important;
	position: absolute;
	top: calc(100% + 8px);
	z-index: 20;
}

.nn-dropdown.is-open,
.nn-local__item--parent:hover > .nn-dropdown,
.nn-local__item--parent:focus-within > .nn-dropdown {
	display: block;
}

.nn-dropdown a {
	color: var(--nn-navy);
	display: block;
	font-size: 15px;
	padding: 10px 18px;
	white-space: nowrap;
}

.nn-dropdown a:hover,
.nn-dropdown a:focus-visible {
	background: #f4f2ec;
	color: var(--nn-red);
	outline: none;
}

/* Search: icon that opens a field */
.nn-search {
	align-items: center;
	display: flex;
	position: relative;
}

.nn-search input {
	background: #fff;
	border: 0;
	border-radius: 999px;
	color: var(--nn-navy);
	font: 15px "Brown", Arial, sans-serif;
	height: 40px;
	margin-right: 6px;
	opacity: 0;
	padding: 0;
	pointer-events: none;
	transition: width 0.2s ease, opacity 0.2s ease, padding 0.2s ease;
	width: 0;
}

.nn-search.is-open input {
	opacity: 1;
	padding: 0 16px;
	pointer-events: auto;
	width: min(260px, 22vw);
}

.nn-brand__weather {
	display: none;
}

/* Row 3: local market bar */
.nn-local {
	background: #fff;
	position: relative;
	z-index: 2;
}

.nn-local__inner {
	align-items: center;
	border-bottom: 1px solid var(--nn-line);
	display: flex;
	gap: 6px;
	margin: 0 auto;
	max-width: 1440px;
	min-height: 52px;
	padding: 0 clamp(14px, 3vw, 42px);
}

.nn-local__market {
	color: var(--nn-red) !important;
	flex: 0 0 auto;
	font-family: "Brown Bold", "Brown", Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}

.nn-local__sep {
	background: var(--nn-line);
	flex: 0 0 1px;
	height: 20px;
	margin: 0 14px 0 12px;
}

.nn-local__menu {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	gap: 4px;
	min-width: 0;
}

.nn-local__item {
	align-items: center;
	display: flex;
	position: relative;
}

.nn-local__link {
	border-bottom: 3px solid transparent;
	color: var(--nn-navy) !important;
	display: block;
	font-size: 15px;
	line-height: 1;
	padding: 17px 10px 14px;
	white-space: nowrap;
}

.nn-local__link:hover,
.nn-local__link:focus-visible,
.nn-local__link[aria-current="page"] {
	border-bottom-color: var(--nn-red);
	color: var(--nn-red) !important;
	outline: none;
}

.nn-local__toggle {
	appearance: none;
	background: transparent;
	border: 0;
	color: var(--nn-navy);
	cursor: pointer;
	margin-left: -6px;
	padding: 4px;
}

.nn-chevron {
	display: block;
	fill: none;
	height: 12px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
	transition: transform 0.2s ease;
	width: 12px;
}

.nn-local__toggle[aria-expanded="true"] .nn-chevron {
	transform: rotate(180deg);
}

.nn-local__item--parent > .nn-dropdown {
	top: 100%;
}

.nn-local__weather {
	flex: 0 0 auto;
	margin-left: auto;
	padding-left: 16px;
}

.nn-local__weather .daw-simple-temp {
	color: var(--nn-navy) !important;
	font-size: 18px !important;
}

.nn-local__weather .daw-simple-icon {
	height: 24px;
	width: 24px;
}

.nn-brand-spacer {
	display: none;
}

/* Drawer (phones and tablets) */
.nn-burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	height: 44px;
	width: 44px;
}

.nn-burger span {
	background: currentColor;
	border-radius: 2px;
	display: block;
	height: 3px;
	width: 24px;
}

.nn-drawer {
	background: var(--nn-navy);
	color: #fff;
	inset: 0;
	overflow-y: auto;
	padding: 18px 22px 40px;
	position: fixed;
	z-index: 999999;
}

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

.nn-drawer__head {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 18px;
}

.nn-drawer__market {
	font-family: "Brown Bold", "Brown", Arial, sans-serif;
	font-size: 22px;
}

.nn-drawer__close {
	font-size: 40px;
	height: 48px;
	line-height: 1;
	width: 48px;
}

.nn-drawer__search {
	display: flex;
	margin-bottom: 18px;
	position: relative;
}

.nn-drawer__search input {
	border: 0;
	border-radius: 999px;
	font: 16px "Brown", Arial, sans-serif;
	height: 46px;
	padding: 0 52px 0 18px;
	width: 100%;
}

.nn-drawer__search button {
	align-items: center;
	background: var(--nn-red);
	border: 0;
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	height: 38px;
	justify-content: center;
	position: absolute;
	right: 4px;
	top: 4px;
	width: 38px;
}

.nn-live--drawer {
	margin-bottom: 14px;
}

.nn-drawer__menu > li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nn-drawer__link {
	color: #fff !important;
	display: block;
	font-family: "Oswald", sans-serif;
	font-size: 24px;
	padding: 14px 0;
	text-transform: uppercase;
}

.nn-drawer__link[aria-current="page"] {
	color: var(--nn-blue) !important;
}

.nn-drawer__sub {
	padding: 0 0 12px 14px !important;
}

.nn-drawer__sublink {
	color: rgba(255, 255, 255, 0.82) !important;
	display: block;
	font-size: 16px;
	padding: 7px 0;
}

.nn-drawer__label {
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
	letter-spacing: 0.08em;
	margin: 24px 0 4px;
	text-transform: uppercase;
}

.nn-drawer__menu--more .nn-drawer__link {
	font-size: 20px;
}

body.nn-drawer-open {
	overflow: hidden;
}

/* Tablets and phones */
@media (max-width: 1077px) {
	.nn-quick,
	.nn-search,
	.nn-local__weather {
		display: none;
	}

	.nn-burger,
	.nn-brand__weather {
		display: inline-flex;
	}

	.nn-brand {
		grid-template-columns: 64px minmax(0, 1fr) 64px;
		min-height: 90px;
		gap: 8px;
	}

	.nn-brand__logo {
		display: flex;
		justify-content: center;
	}

	.nn-brand__right {
		gap: 0;
	}

	.nn-brand__weather .daw-simple-temp {
		font-size: 1.1rem !important;
	}

	.nn-brand__weather .daw-simple-icon {
		height: 22px;
		width: 22px;
	}

	/* The market bar scrolls sideways instead of wrapping. */
	.nn-local__inner {
		overflow-x: auto;
		scrollbar-width: none;
	}

	.nn-local__inner::-webkit-scrollbar {
		display: none;
	}

	.nn-local__toggle,
	.nn-local__item--parent > .nn-dropdown {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.nn-ticker {
		min-height: 48px;
	}

	.nn-ticker__icon {
		display: none;
	}

	.nn-brand__logo img {
		max-height: 60px;
	}

	/* Pin a compact red bar once it reaches the top of the screen. */
	.nn-brand,
	.nn-brand__logo img {
		transition: min-height 180ms ease, max-height 180ms ease, box-shadow 180ms ease;
	}

	.nn-header.is-compact .nn-brand-spacer {
		display: block;
		height: var(--nn-brand-height, 90px);
	}

	.nn-header.is-compact .nn-brand {
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
		left: 0;
		min-height: 54px;
		position: fixed;
		right: 0;
		top: var(--nn-sticky-top, 0px);
		z-index: 99990;
	}

	.nn-header.is-compact .nn-brand__logo img {
		max-height: 36px;
	}

	.nn-local__link {
		font-size: 14px;
		padding: 15px 9px 12px;
	}
}

/* En vivo page */
.nn-live-page {
	margin: 28px auto 48px;
	max-width: 1320px;
	padding: 0 clamp(14px, 3vw, 42px);
}

.nn-live-page__head {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 18px;
}

.nn-live--badge {
	background: #810000;
	color: #fff !important;
}

.nn-live--badge .nn-live__dot {
	background: #fff;
}

.nn-live-page__title {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	margin: 0;
}

.nn-live-page__grid {
	align-items: start;
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	margin-bottom: 40px;
}

.nn-live-page__offline {
	align-items: center;
	aspect-ratio: 16 / 9;
	background: #17172f;
	border-radius: 8px;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 24px;
	text-align: center;
}

.nn-live-page__offline p {
	margin: 4px 0;
}

.nn-live-page__schedule {
	background: #fff;
	border: 1px solid #d8d6cf;
	border-radius: 8px;
	padding: 20px 22px;
}

.nn-live-page__schedule h2 {
	font-size: 1.25rem;
	margin: 0 0 12px;
}

.nn-schedule {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nn-schedule__item {
	align-items: baseline;
	border-top: 1px solid #ece9e1;
	display: grid;
	gap: 12px;
	grid-template-columns: 82px minmax(0, 1fr) auto;
	padding: 12px 0;
}

.nn-schedule__item:first-child {
	border-top: 0;
}

.nn-schedule__time {
	color: #810000;
	font-family: "Brown Bold", "Brown", Arial, sans-serif;
	font-size: 15px;
}

.nn-schedule__time small {
	color: #6b6b6b;
	display: block;
	font-family: "Brown", Arial, sans-serif;
	font-size: 12px;
}

.nn-schedule__title {
	color: #17172f;
	font-size: 15px;
}

.nn-schedule__now {
	background: #e10600;
	border-radius: 999px;
	color: #fff;
	font-size: 11px;
	letter-spacing: 0.06em;
	padding: 4px 8px;
	text-transform: uppercase;
}

.nn-schedule__item.is-live .nn-schedule__title {
	font-weight: 700;
}

.nn-schedule__empty {
	color: #555;
	margin: 0;
}

@media (max-width: 900px) {
	.nn-live-page__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Market bar Más (···): navy dots on white, menu opens to the left. */
.nn-local__more {
	color: var(--nn-navy);
	height: 34px;
	margin-left: 4px;
	width: 34px;
}

.nn-local__more:hover,
.nn-local__more:focus-visible,
.nn-local__more[aria-expanded="true"] {
	background: #f4f2ec;
	color: var(--nn-red);
}

.nn-local__more span,
.nn-local__more span::before,
.nn-local__more span::after {
	height: 4px;
	width: 4px;
}

.nn-local__more span::before { left: -7px; }
.nn-local__more span::after { left: 7px; }

.nn-dropdown--end {
	left: auto;
	right: 0;
}

.nn-local__item--more > .nn-dropdown {
	top: calc(100% + 6px);
}

@media (max-width: 1077px) {
	.nn-local__item--more {
		display: none;
	}
}
