/* Chrome Exposición: menú, miembro en una línea, pie de dos columnas.
 * El panel es hermano de la barra. container-type haría que un fixed
 * interior solo cubriera el alto del encabezado.
 * El corte de 980px es el del sistema (container). matchMedia(981px)
 * puede diferir unos 15px por la barra de scroll.
 * El menú no anima: prefers-reduced-motion no tiene transición que cortar.
 */

.vm-exp.vm-exp-bar {
	position: sticky;
	top: 0;
	z-index: 120;
}

.vm-exp.vm-exp-bar.is-open {
	z-index: 210;
}

body.admin-bar .vm-exp.vm-exp-bar {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .vm-exp.vm-exp-bar {
		top: 46px;
	}
}

.vm-exp .vm-exp-member {
	white-space: nowrap !important;
	flex-shrink: 0;
	min-height: 44px;
}

.vm-exp .vmx-nav {
	gap: clamp(12px, 2vw, 34px);
}

.vm-exp .vm-menu {
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--cream);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.vm-exp .vm-menu span {
	display: block;
	width: 18px;
	height: 1.5px;
	background: currentColor;
}

.vm-exp .vm-menu[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}

.vm-exp .vm-menu[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.vm-exp .vm-menu[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

.vm-exp.vm-exp-menu {
	position: fixed;
	inset: 0;
	z-index: 110;
	margin: 0;
	background: var(--bg);
	color: var(--cream);
	overflow: auto;
	overscroll-behavior: contain;
	padding: 104px 24px 48px;
}

.vm-exp.vm-exp-menu[hidden] {
	display: none !important;
}

.vm-exp.vm-exp-menu a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 0 8px 14px;
	font-family: "Archivo", "Archivo Fallback", system-ui, sans-serif;
	font-stretch: 62%;
	font-weight: 800;
	font-size: clamp(28px, 8vw, 42px);
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--cream);
	border-bottom: 1px solid var(--line);
}

.vm-exp.vm-exp-menu a[aria-current="page"] {
	box-shadow: inset 2px 0 0 var(--red);
}

html.vm-exp-lock,
html.vm-exp-lock body {
	overflow: hidden;
}

/* Pie único (diseño 6-nov-2026): marca y tres columnas, Navega · Aprende · Legal.
   Escala de espacios 64 / 96 / 128 (celular 48 / 64 / 96). */
.vm-exp .vm-foot {
	padding-block: 64px;
}

.vm-exp .vm-footgrid.vm-exp-footgrid {
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
	grid-template-areas: "brand nav learn legal";
	gap: 40px;
	padding-bottom: 0;
}

.vm-exp .vm-exp-foot-brand {
	grid-area: brand;
}

.vm-exp .vm-exp-foot-nav {
	grid-area: nav;
}

.vm-exp .vm-exp-foot-learn {
	grid-area: learn;
}

.vm-exp .vm-exp-foot-legal {
	grid-area: legal;
}

.vm-exp .vm-exp-footcol {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.vm-exp .vm-exp-footcol > p.vm-label {
	margin-bottom: 8px;
	color: var(--cream);
}

.vm-exp .vm-exp-footcol > a {
	padding-block: 4px;
	line-height: 1.3;
}

@container (max-width: 980px) {
	.vm-exp .vm-foot {
		padding-block: 48px;
	}

	.vm-exp .vm-footgrid.vm-exp-footgrid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-areas:
			"brand brand"
			"nav legal"
			"learn learn";
		gap: 32px 24px;
	}
}

/* El escritorio es el ancho de la ventana, no el del contenedor:
   la barra de scroll puede dejar el contenedor unos 15px por debajo. */
@media (max-width: 980px) {
	.vm-exp .vmx-wrap {
		padding-inline: 20px;
	}

	.vm-exp .vm-hdr .vmx-wrap {
		height: 68px;
		gap: 12px;
	}

	.vm-exp .vm-logo {
		width: 112px;
	}

	.vm-exp .vmx-nav,
	.vm-exp .vm-hide-sm {
		display: none !important;
	}

	.vm-exp .vm-menu {
		display: inline-flex !important;
	}
}

@media (min-width: 981px) {
	.vm-exp .vm-menu {
		display: none !important;
	}

	.vm-exp .vmx-nav {
		display: flex !important;
	}

	.vm-exp .vm-hdr-r > a.vm-hide-sm {
		display: inline-flex !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vm-exp.vm-exp-bar,
	.vm-exp.vm-exp-bar *,
	.vm-exp.vm-exp-menu,
	.vm-exp.vm-exp-menu * {
		animation: none !important;
		transition: none !important;
	}
}

body.vm-exp-on.elementor-template-canvas:has(#vm-exp-header) .elementor-widget-nav-menu,
body.vm-exp-on.elementor-template-canvas:has(#vm-exp-header) .elementor-widget-theme-site-logo {
	display: none !important;
}

body.vm-exp-on.elementor-template-canvas:has(#vm-exp-footer) footer.elementor-top-section {
	display: none !important;
}
