/*
 * Header (reemplaza el template 6176 de Elementor).
 * Elementor aplica los "sticky effects" con offset 0 ya en scroll 0, asi que el estado
 * con blur y min-height 70px es el estado normal del header.
 */
@keyframes pm-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.pm-header {
	position: sticky;
	top: 0;
	z-index: 5000;
	/* gana al "header { background-color: #000 !important }" del Customizer */
	background-color: rgba(0, 0, 0, 0.4) !important;
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid var(--pm-line);
	letter-spacing: -0.27px;
	animation: pm-fade-in 1.25s both;
}

.pm-header__inner {
	display: flex;
	align-items: center;
	max-width: var(--pm-container);
	min-height: 70px;
	margin: 0 auto;
}

/* columnas: 25% / 70.439% / 4.561% */
.pm-header__logo,
.pm-header__nav,
.pm-header__end {
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	align-items: center;
	min-height: 1px;
}

.pm-header__logo {
	width: 25%;
	justify-content: center;
	padding-top: 5px;
}

.pm-header__logo-link {
	display: block;
}

/* el Customizer limita el logo a 80px de alto con proporcion */
.pm-header__logo-img {
	display: block;
	max-height: 80px;
	width: auto;
	height: auto;
	max-width: 100%;
	border: none;
}

.pm-header__nav {
	width: 70.439%;
}

.pm-header__end {
	width: 4.561%;
}

/* menu horizontal */
.pm-nav {
	display: flex;
	width: 100%;
}

.pm-nav__list,
.pm-nav__list li,
.pm-nav-dropdown__list,
.pm-nav-dropdown__list li {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: normal;
	border-width: 0;
	position: relative;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.pm-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	margin-inline-start: auto;
	z-index: 2;
}

.pm-nav__list > li {
	display: flex;
}

.pm-nav__list > li > a {
	position: relative;
	display: flex;
	flex-grow: 1;
	align-items: center;
	padding: 40px 20px;
	font-family: var(--pm-font-ui);
	font-size: 15px;
	font-weight: 500;
	line-height: 20px;
	color: #fff;
	fill: #fff;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: none;
	transition: 0.4s;
}

/* pointer underline de 5px con fundido */
.pm-nav__list > li > a::after {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 5px;
	z-index: 2;
	background-color: var(--pm-gold);
	transition: 0.3s;
	transition-timing-function: cubic-bezier(0.58, 0.3, 0.005, 1);
	opacity: 0;
}

.pm-nav__list > li > a:hover,
.pm-nav__list > li > a:focus,
.pm-nav__list > li.current-menu-item > a,
.pm-nav__list > li.current_page_item > a {
	color: var(--pm-gold);
	fill: var(--pm-gold);
}

.pm-nav__list > li > a:hover::after,
.pm-nav__list > li > a:focus::after,
.pm-nav__list > li.current-menu-item > a::after,
.pm-nav__list > li.current_page_item > a::after {
	opacity: 1;
}

/* el icono de Login/Logout ocupa el ancho del glifo menos el tracking heredado (-0.27px) */
.pm-nav__list .icon-text > i,
.pm-nav-dropdown__list .icon-text > i {
	margin-inline-end: -0.018em;
}

/* menu mobile: boton hamburguesa + desplegable a ancho completo */
.pm-nav-mobile {
	display: none;
	width: 100%;
}

.pm-nav-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	margin: 0 0 0 auto;
	padding: 0.25em;
	font-size: 25px;
	line-height: 1;
	color: #fff;
	background-color: rgba(0, 0, 0, 0.05);
	border: 0 solid;
	border-radius: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.pm-nav-toggle:hover,
.pm-nav-toggle:focus {
	color: #00ce1b;
}

/*
 * Iconos del boton (eicons "menu-bar" y "close") como SVG de 1em. La caja ocupa el ancho
 * del glifo menos el tracking heredado (24.73 x 25 px a 25px).
 */
.pm-nav-toggle__icon {
	display: block;
	width: 1em;
	height: 1em;
	max-width: none;
	margin-inline-end: -0.0108em;
	fill: currentColor;
}

.pm-nav-toggle[aria-expanded="true"] .pm-nav-toggle__icon--open,
.pm-nav-toggle:not([aria-expanded="true"]) .pm-nav-toggle__icon--close {
	display: none;
}

.pm-nav-dropdown {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 9997;
	margin-top: 45px;
	font-size: 13px;
	background-color: #F2F2F2;
	overflow: hidden;
	max-height: 0;
	transform: scaleY(0);
	transform-origin: top;
	transition: max-height 0.3s, transform 0.3s;
}

.pm-nav-toggle[aria-expanded="true"] + .pm-nav-dropdown {
	max-height: 100vh;
	overflow-y: auto;
	transform: scaleY(1);
}

.pm-nav-dropdown__list > li > a {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 10px 20px;
	font-family: var(--pm-font-ui);
	font-size: 15px;
	font-weight: 500;
	line-height: 20px;
	color: #000;
	fill: #000;
	text-decoration: none;
	box-shadow: none;
	transition: 0.4s;
}

.pm-nav-dropdown__list > li > a:hover,
.pm-nav-dropdown__list > li > a:focus,
.pm-nav-dropdown__list > li.current-menu-item > a,
.pm-nav-dropdown__list > li.current_page_item > a {
	color: var(--pm-gold);
	background-color: #5A5A5A;
}

/* tablet: <= 1024 */
@media (max-width: 1024px) {
	.pm-header {
		padding: 30px 20px;
	}

	.pm-header__inner {
		max-width: 1024px;
	}

	.pm-header__logo {
		padding-top: 0;
	}

	.pm-header__logo-link {
		margin-bottom: -36px;
	}

	.pm-nav {
		display: none;
	}

	.pm-nav-mobile {
		display: block;
	}
}

/* mobile: <= 767 */
@media (max-width: 767px) {
	.pm-header {
		padding: 20px;
	}

	.pm-header__inner {
		max-width: 767px;
	}

	.pm-header__logo {
		width: 50%;
	}

	.pm-header__logo-link {
		margin-bottom: -21px;
	}

	.pm-header__nav {
		width: 35%;
	}

	.pm-header__end {
		width: 15%;
	}

	.pm-nav-dropdown {
		margin-top: 35px;
	}
}

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