/* Visión de Negocios — header personalizado (3 niveles). */
/* Escala estándar: espaciados en múltiplos de 4px, tipografía en rangos
   convencionales de portales de noticias (13px utilidades, 14px nav, 32px logo). */

.vn-site-header {
	background-color: var(--vn-color-black);
	color: var(--vn-color-white);
}

/* Nivel 1: Top bar (~44px de alto). */
.vn-topbar {
	color: inherit;
}

.vn-topbar__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.875rem 1.5rem; /* 14px 24px */
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem; /* 20px */
}

.vn-topbar__left {
	display: flex;
	align-items: center;
	gap: 1.25rem; /* 20px */
}

.vn-menu-toggle,
.vn-search-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem; /* 8px */
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	padding: 0.5rem; /* 8px — objetivo táctil cómodo */
}

.vn-menu-toggle {
	font-size: 0.9375rem; /* 15px */
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.vn-menu-toggle__icon svg {
	width: 1.5rem; /* 24px */
	height: 1.5rem;
	fill: currentColor;
	display: block;
}

.vn-menu-toggle__icon--close {
	display: none;
}

.vn-menu-toggle.is-open .vn-menu-toggle__icon--open {
	display: none;
}

.vn-menu-toggle.is-open .vn-menu-toggle__icon--close {
	display: block;
}

.vn-search-toggle {
	font-size: 1.25rem; /* 20px */
}

.vn-topbar__center {
	font-size: 0.9375rem; /* 15px */
	color: var(--vn-color-white);
	opacity: 0.85;
	white-space: nowrap;
	text-transform: capitalize;
}

.vn-topbar__right {
	display: flex;
	align-items: center;
	gap: 1.25rem; /* 20px */
}

.vn-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	font-size: 1.375rem; /* 22px */
	opacity: 0.9;
	transition: opacity 0.15s ease, color 0.15s ease;
}

.vn-social-link:hover {
	opacity: 1;
	color: var(--vn-color-accent);
}

.vn-search-panel {
	display: none;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.25rem 1rem;
}

.vn-search-panel.is-open {
	display: block;
}

.vn-search-panel .search-form {
	max-width: 420px;
}

/* Nivel 2: Branding (logo centrado, ~100-130px de alto según logo). */
.vn-branding {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 2.5rem 1.25rem; /* 40px 20px */
	text-align: center;
}

.vn-branding__logo img {
	max-height: 5.625rem; /* 90px */
	width: auto;
	height: auto;
}

.vn-branding__site-title {
	font-size: 2.75rem; /* 44px */
	font-weight: 800;
	color: var(--vn-color-white);
	text-decoration: none;
	letter-spacing: -0.01em;
}

/* Nivel 3: Navegación (~44px de alto por fila, objetivo táctil estándar). */
.vn-primary-nav {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.vn-primary-menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem; /* 4px */
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
}

.vn-primary-menu a {
	display: block;
	padding: 1.125rem 1.5rem; /* 18px 24px */
	color: var(--vn-color-white);
	text-decoration: none;
	font-weight: 700;
	font-size: 1rem; /* 16px */
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.vn-primary-menu a:hover {
	color: var(--vn-color-accent);
}

/* Header editorial de dos niveles. */
.vn-utility-bar { background: #000; color: #fff; border-bottom: 1px solid rgba(255,255,255,.15); }
.vn-utility-bar__inner { display: flex; align-items: center; width: min(100% - 3rem, 1200px); min-height: 44px; margin: 0 auto; font-size: .82rem; font-weight: 700; }
.vn-utility-bar__inner time { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.vn-utility-bar__location { margin-left: .35em; }
.vn-utility-bar .vn-header-socials { display: flex; flex: 0 0 auto; grid-column: auto; grid-row: auto; justify-content: flex-end; gap: .5rem; margin-left: auto; }
.vn-utility-bar .vn-header-socials .vn-social-link { width: 30px; height: 30px; background: #fff; color: #000; }
.vn-utility-bar .vn-header-socials .vn-social-link__icon svg { width: 15px; height: 15px; }
.vn-site-header { --vn-header-width: 1200px; background: #000; border-top: 0; color: #fff; }
.vn-header-main__inner, .vn-nav-bar__inner { width: min(100% - 3rem, var(--vn-header-width)); margin: 0 auto; display: grid; align-items: center; }
.vn-header-main__inner { grid-template-columns: 1fr auto 1fr; min-height: 104px; gap: 2rem; }
.vn-header-socials, .vn-header-actions, .vn-nav-tools { display: flex; align-items: center; }
.vn-header-socials { grid-column: 3; grid-row: 1; justify-content: flex-end; gap: .65rem; }
.vn-header-socials .vn-social-link { width: 42px; height: 42px; justify-content: center; border-radius: 50%; background: #fff; color: #000; font-size: 1.15rem; text-decoration: none; transition: color .2s, background-color .2s, transform .2s; }
.vn-header-socials .vn-social-link:hover, .vn-header-socials .vn-social-link:focus-visible { background: var(--vn-color-accent); color: #fff; transform: translateY(-2px); }
.vn-social-link__glyph { font-family: Arial, Helvetica, sans-serif; font-weight: 800; line-height: 1; }
.vn-social-link__icon { display: inline-flex; align-items: center; justify-content: center; }
.vn-social-link__icon svg { display: block; width: 19px; height: 19px; fill: currentColor; }
.vn-social-link--instagram .vn-social-link__icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.vn-social-link--instagram .vn-social-icon__dot { fill: currentColor; stroke: none; }
.vn-branding { display: flex; grid-column: 2; grid-row: 1; justify-content: center; align-items: center; padding: 0; text-align: center; }
.vn-branding__heading { margin: 0; display: flex; align-items: center; justify-content: center; font: inherit; }
.vn-branding__logo img { display: block; width: auto; height: auto; max-width: 230px; max-height: 68px; }
.vn-branding__site-title { max-width: 440px; color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; line-height: 1; text-decoration: none; text-transform: uppercase; }
.vn-header-actions { grid-column: 1; grid-row: 1; justify-content: flex-start; gap: 1.15rem; }
.vn-nav-bar { --vn-header-width: 1200px; position: sticky; z-index: 1000; top: var(--vn-sticky-offset, 0px); background: #000; border-top: 1px solid rgba(255,255,255,.15); box-shadow: 0 3px 10px rgba(0,0,0,.16); }
.vn-nav-bar__inner { grid-template-columns: 48px minmax(0, 1fr) 48px; min-height: 56px; gap: 1.5rem; }
.vn-nav-mobile-logo { display: none; }
.vn-mobile-menu-search { display: none; }
.vn-menu-toggle, .vn-search-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.vn-menu-toggle:hover, .vn-search-toggle:hover, .vn-menu-toggle:focus-visible, .vn-search-toggle:focus-visible { color: var(--vn-color-accent); }
.vn-menu-toggle__icon svg { display: block; width: 27px; height: 27px; fill: currentColor; }
.vn-search-toggle svg { display: block; width: 20px; height: 20px; fill: currentColor; }

/* Cinta editorial de noticias recientes. */
.vn-latest-bar { padding-top: 10px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); position: relative; z-index: 1; }
.vn-latest-bar__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); width: min(100% - 2rem, 1440px); min-height: 48px; margin: 0 auto; background: #fff; }
.vn-latest-bar__label { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .65rem; padding: 0 1.35rem; background: var(--vn-color-accent); color: #fff; font-size: .88rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.vn-latest-bar__label > span { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.22); }
.vn-latest-bar__label > span::after { content: ""; position: absolute; inset: -6px; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; animation: vn-live-pulse 1.8s ease-out infinite; }
.vn-latest-bar__viewport {
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
	mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.vn-latest-bar__track { display: flex; width: max-content; min-height: 48px; animation: vn-latest-scroll 38s linear infinite; }
.vn-latest-bar__viewport:hover .vn-latest-bar__track,
.vn-latest-bar__viewport:focus-within .vn-latest-bar__track { animation-play-state: paused; }
.vn-latest-bar__group { display: flex; align-items: stretch; flex-shrink: 0; }
.vn-latest-bar__item { display: inline-flex; align-items: center; gap: .6rem; min-width: 430px; max-width: 680px; padding: .65rem 2.25rem; color: #000; font-size: .92rem; font-weight: 700; line-height: 1.25; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s ease; }
.vn-latest-bar__item:hover { color: var(--vn-color-accent); }
.vn-latest-bar__item::before { content: ""; flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: var(--vn-color-accent); }
@keyframes vn-latest-scroll { to { transform: translateX(-50%); } }
@keyframes vn-live-pulse {
	0% { opacity: .9; transform: scale(.55); }
	75%, 100% { opacity: 0; transform: scale(1.35); }
}
@media (prefers-reduced-motion: reduce) {
	.vn-latest-bar__track { width: auto; animation: none; }
	.vn-latest-bar__group { overflow-x: auto; }
	.vn-latest-bar__group[aria-hidden="true"] { display: none; }
	.vn-latest-bar__label > span::after { animation: none; opacity: .45; transform: none; }
}
.vn-menu-toggle__icon--close, .vn-menu-toggle.is-open .vn-menu-toggle__icon--open { display: none; }
.vn-menu-toggle.is-open .vn-menu-toggle__icon--close { display: block; }
.vn-primary-nav { border: 0; }
.vn-primary-menu { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.vn-primary-menu a { display: block; padding: 1.35rem 1.2rem; color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: .03em; line-height: 1.15; text-decoration: none; text-transform: uppercase; }
.vn-primary-menu a:hover, .vn-primary-menu a:focus-visible, .vn-primary-menu .current-menu-item > a { color: var(--vn-color-accent); }
.vn-primary-menu li { position: relative; }
.vn-primary-menu .sub-menu { display: none; position: absolute; z-index: 40; top: 100%; left: 0; min-width: 230px; margin: 0; padding: .5rem 0; list-style: none; background: #000; box-shadow: 0 12px 24px rgba(0,0,0,.3); }
.vn-primary-menu .sub-menu a { padding: .85rem 1rem; font-size: .85rem; line-height: 1.25; text-transform: none; }
.vn-primary-menu li:hover > .sub-menu, .vn-primary-menu li:focus-within > .sub-menu { display: block; }
.vn-nav-tools { position: relative; justify-content: flex-end; gap: .1rem; }
.vn-search-toggle { border-radius: 50%; font-size: 1.1rem; transition: color .2s, background-color .2s; }
.vn-search-toggle:hover, .vn-search-toggle:focus-visible, .vn-search-toggle[aria-expanded="true"] { background: var(--vn-color-accent); color: #fff; }
.vn-search-toggle[aria-expanded="true"] i { display: none; }
.vn-search-toggle[aria-expanded="true"]::before { content: "×"; font-size: 1.65rem; font-weight: 300; line-height: 1; }
.vn-search-panel { display: none; position: absolute; z-index: 10; top: 50%; right: 52px; width: 290px; margin: 0; padding: 0; transform: translateY(-50%); background: transparent; }
.vn-search-panel.is-open { display: block; }
.vn-search-panel .search-form { display: block; max-width: none; margin: 0; }
.vn-search-panel label { flex: 1; margin: 0; }
.vn-search-panel .search-field { width: 100%; min-height: 40px; margin: 0; padding: .55rem 1rem; border: 1px solid #fff; border-radius: 999px; background: #000; color: #fff; font-size: .95rem; outline: 0; }
.vn-search-panel .search-field::placeholder { color: #fff; }
.vn-search-panel .search-field:focus { border-color: var(--vn-color-accent); box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.vn-search-panel .search-submit { display: none; }
