/* ==========================================================================
   Cabecera · Header · Corporativo (Figma 6:27 / 48:458), Mega-menú (92:4969)
   y Menú · Mobile (92:5104).
   ≥1440: Figma exacto · 1280–1439: mismo diseño más compacto ·
   ≤1279: cabecera móvil con botón de menú (tablet y móvil del Figma).
   ========================================================================== */

/* --- Iconos (máscara SVG, color = currentColor) -------------------------- */
.vs-ico {
	display: inline-block;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask: var(--vs-ico) center / contain no-repeat;
	mask: var(--vs-ico) center / contain no-repeat;
}

.vs-ico--chevron-down { --vs-ico: url('../../icons/chevron-down.svg'); }
.vs-ico--login        { --vs-ico: url('../../icons/login.svg'); }
.vs-ico--login-24     { --vs-ico: url('../../icons/login.svg'); width: 24px; height: 24px; }
.vs-ico--menu         { --vs-ico: url('../../icons/menu.svg'); width: 24px; height: 24px; }
.vs-ico--close        { --vs-ico: url('../../icons/close.svg'); width: 24px; height: 24px; }
.vs-ico--chevron-24   { --vs-ico: url('../../icons/chevron-down-24.svg'); width: 24px; height: 24px; }
.vs-ico--mail         { --vs-ico: url('../../icons/mail.svg'); }
.vs-ico--location     { --vs-ico: url('../../icons/location.svg'); }
.vs-ico--external     { --vs-ico: url('../../icons/external.svg'); }
.vs-ico--arrow-right  { --vs-ico: url('../../icons/arrow-right.svg'); }
.vs-ico--play         { --vs-ico: url('../../icons/play.svg?v=2'); }
.vs-ico--phone        { --vs-ico: url('../../icons/phone.svg'); }
.vs-ico--chevron-right { --vs-ico: url('../../icons/chevron-right.svg'); }
.vs-ico--download     { --vs-ico: url('../../icons/download.svg?v=2'); }
.vs-ico--link         { --vs-ico: url('../../icons/link.svg'); }

/* Acento degradado (Linears/Linear I) */
.vs-accent {
	display: block;
	width: 28px;
	height: 3px;
	border-radius: 2px;
	background-image: linear-gradient(9.04deg, #2B5F9E 11.92%, #11A1D8 17.73%, #2CAAA0 53.31%, #98C21D 90.08%, #D1D82C 106.69%);
}

/* --- Reset local (Impreza da estilos a button/ul/p) ----------------------- */
.vs-header button,
.vs-mmenu button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	color: inherit;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.vs-header ul,
.vs-mmenu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-header li,
.vs-mmenu li {
	margin: 0;
	padding: 0;
}

.vs-header p,
.vs-mmenu p {
	margin: 0;
	padding: 0;
}

/* --- Cabecera --------------------------------------------------------------- */
.vs-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 1000;
	font-family: var(--vs-font);
}

.vs-header__bar {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	height: 88px;
	background: var(--vs-white);
	border-bottom: 1px solid var(--vs-neutral-10);
}

.vs-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	padding: 20px var(--vs-pad-menu);
}

.vs-header__logo {
	display: block;
	flex: 0 0 auto;
	line-height: 0;
}

.vs-header__logo-img {
	display: block;
	width: 169px;
	height: 48px;
	object-fit: contain;
}

/* Navegación */
.vs-nav {
	display: flex;
	align-items: center;
}

.vs-nav__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-sizing: border-box;
	padding: 6px 12px !important;
	border-radius: var(--vs-radius-s) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 20px !important;
	color: var(--vs-primary-base) !important;
	white-space: nowrap;
	transition: color var(--vs-transition);
}

.vs-nav__tab:hover {
	color: var(--vs-primary-300) !important;
}

.vs-nav__tab.is-active {
	min-width: 80px;
	padding: 8px 12px !important;
	border-radius: 0 !important;
	box-shadow: inset 0 -2px 0 var(--vs-primary-base) !important;
	color: var(--vs-primary-base) !important;
}

.vs-nav__tab.is-section {
	border-radius: 0 !important;
	box-shadow: inset 0 -2px 0 var(--vs-primary-base) !important; /* sección actual, sin abrir el desplegable */
}

.vs-nav__tab .vs-ico {
	transition: transform var(--vs-transition);
}

.vs-nav__tab.is-active .vs-ico {
	transform: rotate(180deg);
}

.vs-nav__tab:focus-visible,
.vs-acc__row:focus-visible,
.vs-icon-btn:focus-visible,
.vs-lang__link:focus-visible {
	outline: 2px solid var(--vs-primary-300);
	outline-offset: 2px;
}

/* Acciones */
.vs-header__actions {
	display: flex;
	align-items: center;
	gap: 24px;
	flex: 0 0 auto;
}

/* Idiomas «ES · CA · EN» */
.vs-lang {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-lang > li {
	margin: 0;
	padding: 0;
	line-height: 0;
}

.vs-lang__link {
	display: inline-block;
	font-family: var(--vs-font);
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
	color: var(--vs-neutral-40);
	text-decoration: none;
	transition: color var(--vs-transition);
}

.vs-lang__link:hover {
	color: var(--vs-primary-base);
}

.vs-lang__link.is-current {
	color: var(--vs-primary-base);
}

.vs-lang__sep {
	font-size: 14px;
	line-height: var(--vs-lh-text-s) !important;
	color: var(--vs-neutral-40);
}

/* Botón Acceso socios (us-btn-style_12 + icono) */
.vs-btn-socios.w-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: 311px;
	white-space: nowrap;
}

.vs-btn-socios .w-btn-label {
	display: inline;
}

/* Botones de icono circulares 44 (móvil) */
.vs-icon-btn {
	display: none;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	padding: 0 !important;
	border-radius: 100px !important;
	text-decoration: none;
	transition: background-color var(--vs-transition);
}

.vs-icon-btn--primary {
	background: var(--vs-primary-base) !important;
	color: var(--vs-white) !important;
}

.vs-icon-btn--primary:hover {
	background: var(--vs-primary-300) !important;
}

.vs-icon-btn--soft {
	display: inline-flex;
	background: var(--vs-primary-100) !important;
	color: var(--vs-primary-base) !important;
}

.vs-icon-btn--soft:hover {
	background: var(--vs-primary-200) !important;
}

.vs-header__burger {
	display: none;
}

/* --- Mega-menú ------------------------------------------------------------ */
.vs-mega {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1;
	box-sizing: border-box;
	background: var(--vs-white);
	border-top: 1px solid var(--vs-neutral-10);
	box-shadow: 0 2px 8px 0 rgba(43, 86, 129, .08);
	max-height: calc(100vh - 88px - var(--wp-admin--admin-bar--height, 0px));
	overflow-y: auto;
}

.vs-mega[hidden] {
	display: none;
}

.vs-mega__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 40px var(--vs-pad-menu) 48px;
}

.vs-mega__cols {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.vs-mega__col {
	display: flex;
	flex: 1 0 0;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.vs-mega__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.vs-mega__links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.vs-mega__links .vs-link {
	padding: 8px 0;
	text-align: left;
}

/* El enlace externo del Link S lleva py 6 (Acceso socios) */
.vs-mega__links .vs-link--external {
	padding: 6px 0;
}

/* Banda socios */
.vs-socios-band {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 32px;
	border-radius: var(--vs-radius-card);
	background: var(--vs-neutral-05);
}

.vs-socios-band__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vs-socios-band__title {
	font-size: var(--vs-fs-xxs);
	font-weight: 600;
	line-height: var(--vs-lh-xxs);
	color: var(--vs-primary-600);
}

.vs-socios-band__desc {
	font-size: 14px;
	font-weight: 400;
	line-height: var(--vs-lh-text-s);
	color: var(--vs-neutral-40);
}

/* Velo */
.vs-veil {
	position: fixed;
	inset: 0;
	z-index: 999;
	background: rgba(4, 45, 77, .6);
}

.vs-veil[hidden] {
	display: none;
}

/* --- Menú móvil (panel a pantalla completa) ------------------------------ */
.vs-mmenu {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1001;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--vs-white);
	font-family: var(--vs-font);
}

.vs-mmenu[hidden] {
	display: none;
}

.vs-mmenu__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
	padding: 16px var(--vs-pad);
	border-bottom: 1px solid var(--vs-neutral-10);
}

.vs-mmenu .vs-header__logo-img {
	width: 113px;
	height: 32px;
}

.vs-mmenu__sections {
	display: flex;
	flex-direction: column;
	padding: 8px var(--vs-pad) 0;
}

.vs-acc {
	border-bottom: 1px solid var(--vs-neutral-10);
}

.vs-acc__row {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 16px 0 !important;
	text-align: left;
	color: var(--vs-primary-base) !important;
}

.vs-acc__title {
	font-size: var(--vs-fs-xxs);
	font-weight: 600;
	line-height: var(--vs-lh-xxs);
	color: var(--vs-primary-600);
}

.vs-acc__row .vs-ico {
	transition: transform var(--vs-transition);
}

.vs-acc__row[aria-expanded="true"] .vs-ico {
	transform: rotate(180deg);
}

.vs-acc__panel {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 0 0 16px 16px;
}

.vs-acc__panel[hidden] {
	display: none;
}

.vs-acc__panel .vs-link {
	justify-content: flex-start;
	width: 100%;
	text-align: left;
}

.vs-acc__hub {
	padding: 12px 0 !important;
}

.vs-acc__divider {
	display: block;
	height: 1px;
	background: var(--vs-neutral-20);
}

.vs-acc__link {
	padding: 14px 0 !important;
}

.vs-mmenu__foot {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	padding: 24px var(--vs-pad) 32px;
}

.vs-mmenu .vs-socios-band {
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	width: 100%;
	box-sizing: border-box;
	padding: 24px;
}

.vs-mmenu .vs-socios-band .vs-btn-socios {
	width: 100%;
}

html.vs-mmenu-open,
html.vs-mmenu-open body {
	overflow: hidden;
}

/* --- 1280–1439: misma cabecera, más compacta ----------------------------- */
@media (max-width: 1439px) {
	.vs-header__inner,
	.vs-mega__inner {
		--vs-pad-menu: 32px;
	}

	.vs-nav__tab,
	.vs-nav__tab.is-active {
		padding-left: 8px !important;
		padding-right: 8px !important;
	}
}

/* --- ≤1279: cabecera móvil ------------------------------------------------- */
@media (max-width: 1279px) {
	.vs-header__bar {
		height: 72px;
	}

	.vs-header__inner {
		padding: 16px var(--vs-pad-menu);
	}

	.vs-header__bar .vs-header__logo-img {
		width: 113px;
		height: 32px;
	}

	.vs-header__nav,
	.vs-header__lang,
	.vs-header__socios,
	.vs-mega,
	.vs-veil {
		display: none !important;
	}

	.vs-header__actions {
		gap: 12px;
	}

	.vs-header__socios-icon,
	.vs-header__burger {
		display: inline-flex;
	}
}

/* 1025–1279: el panel móvil usa el padding de tablet */
@media (min-width: 1025px) and (max-width: 1279px) {
	.vs-mmenu {
		--vs-pad: 56px;
	}

	.vs-header__inner {
		--vs-pad-menu: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vs-nav__tab .vs-ico,
	.vs-acc__row .vs-ico {
		transition: none;
	}
}
