/* SUITE COMFORT · CABECERA */

.scn-header {
	--scn-blue: #24385e;
	--scn-blue-dark: #142542;
	--scn-text: #263651;
	--scn-border: #e5e8ed;
	--scn-hover: #eef1f6;

	position: relative;
	z-index: 100;
	width: 100%;
	background: #ffffff;
	border-bottom: 1px solid var(--scn-border);
	color: var(--scn-text);
	font-family: Arial, Helvetica, sans-serif;
	text-align: left;
	isolation: isolate;
}

.scn-header,
.scn-header * {
	box-sizing: border-box;
}

.scn-header .scn-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	width: 100%;
	max-width: 1200px;
	min-height: 84px;
	margin: 0 auto;
	padding: 14px 24px;
}

.scn-header a {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

.scn-header button {
	margin: 0;
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
}

.scn-header a:focus-visible,
.scn-header button:focus-visible {
	outline: 2px solid var(--scn-blue);
	outline-offset: 4px;
}

/* Logo original: recorta visualmente su espacio transparente. */

.scn-header .scn-brand {
	display: flex;
	flex: 0 0 120px;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 52px;
	overflow: hidden;
}

.scn-header .scn-brand img {
	display: block;
	flex-shrink: 0;
	width: 120px;
	min-width: 120px;
	max-width: none;
	height: 120px;
	object-fit: contain;
	border: 0;
	border-radius: 0;
}

/* Navegación principal */

.scn-header .scn-nav {
	min-width: 0;
	margin-left: auto;
}

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

.scn-header .scn-list {
	display: flex;
	align-items: center;
	gap: 4px;
}

.scn-header .scn-nav li {
	position: relative;
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.scn-header .scn-list > li {
	display: flex;
	align-items: center;
	border-radius: 5px;
}

.scn-header .scn-list > li > a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 12px 11px;
	color: var(--scn-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	white-space: nowrap;
	border-radius: 5px;
	transition: background-color .16s, color .16s;
}

.scn-header .scn-list > li:hover,
.scn-header .scn-list > li.scn-expanded {
	background: var(--scn-hover);
}

.scn-header .scn-list > li > a:hover {
	color: var(--scn-blue);
}

.scn-header .scn-list > .current-menu-item > a::after,
.scn-header .scn-list > .current-menu-ancestor > a::after {
	content: "";
	position: absolute;
	right: 11px;
	bottom: 3px;
	left: 11px;
	height: 2px;
	background: var(--scn-blue);
}

/* Botones de submenú */

.scn-header .scn-sub-toggle {
	display: inline-flex;
	flex: 0 0 32px;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: var(--scn-blue);
}

.scn-header .menu-item-has-children > a {
	padding-right: 3px;
}

.scn-header .scn-sub-toggle:hover {
	background: #dde4ef;
}

.scn-header .scn-sub-toggle svg {
	display: block;
	width: 16px;
	height: 16px;
	transition: transform .16s;
}

.scn-header .scn-sub-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* Paneles desplegables */

.scn-header .scn-nav .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 10;
	width: 320px;
	max-width: calc(100vw - 24px);
	margin: 0;
	padding: 8px;
	border: 1px solid #e2e6ed;
	border-radius: 9px;
	background: #ffffff;
	box-shadow: 0 12px 28px rgba(24, 44, 74, .10);
}

.scn-header .scn-nav .scn-expanded > .sub-menu {
	display: block;
}

.scn-header .scn-nav [hidden] {
	display: none !important;
}

.scn-header .sub-menu > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	border-radius: 4px;
}

.scn-header .sub-menu > li > a {
	display: block;
	flex: 1 1 0;
	min-width: 0;
	padding: 11px 12px;
	border-radius: 4px;
	color: var(--scn-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	white-space: normal;
	overflow-wrap: anywhere;
	transition: background-color .16s, color .16s;
}

.scn-header .sub-menu > li:hover,
.scn-header .sub-menu > li:focus-within {
	background: var(--scn-blue);
}

.scn-header .sub-menu > li:hover > a,
.scn-header .sub-menu > li:hover > .scn-sub-toggle,
.scn-header .sub-menu > li:focus-within > a,
.scn-header .sub-menu > li:focus-within > .scn-sub-toggle {
	color: #ffffff;
}

.scn-header .sub-menu .scn-sub-toggle:hover {
	background: var(--scn-blue-dark);
}

/* Niveles adicionales: se expanden dentro del panel. */

.scn-header .sub-menu .sub-menu {
	position: static;
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	margin: 4px 0 0;
	padding: 5px;
	border: 0;
	border-radius: 4px;
	background: #f4f6f9;
	box-shadow: none;
}

/* Reserva */

.scn-header .scn-reserve {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 12px 17px;
	border: 1px solid var(--scn-blue);
	border-radius: 5px;
	background: var(--scn-blue);
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	white-space: nowrap;
	transition: background-color .16s, border-color .16s;
}

.scn-header .scn-reserve:hover {
	border-color: var(--scn-blue-dark);
	background: var(--scn-blue-dark);
	color: #ffffff;
}

.scn-header .scn-reserve svg {
	display: block;
	width: 17px;
	height: 17px;
}

/* Botón móvil */

.scn-header .scn-mobile-toggle {
	display: none;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #dce2ea;
	border-radius: 5px;
	background: #ffffff;
	color: var(--scn-blue);
}

.scn-header .scn-mobile-toggle svg {
	display: block;
	width: 22px;
	height: 22px;
}

.scn-header .scn-mobile-toggle .scn-close-icon {
	display: none;
}

.scn-header.scn-mobile-open .scn-mobile-toggle .scn-menu-icon {
	display: none;
}

.scn-header.scn-mobile-open .scn-mobile-toggle .scn-close-icon {
	display: block;
}

/* Ajuste para escritorio estrecho */

@media (min-width: 761px) and (max-width: 1000px) {
	.scn-header .scn-inner {
		gap: 12px;
		padding-right: 16px;
		padding-left: 16px;
	}

	.scn-header .scn-brand {
		flex-basis: 108px;
		width: 108px;
	}

	.scn-header .scn-brand img {
		width: 108px;
		min-width: 108px;
		height: 108px;
	}

	.scn-header .scn-list {
		gap: 0;
	}

	.scn-header .scn-list > li > a {
		padding-right: 8px;
		padding-left: 8px;
		font-size: 13px;
	}

	.scn-header .scn-list > .menu-item-has-children > a {
		padding-right: 0;
	}

	.scn-header .scn-reserve {
		gap: 6px;
		padding-right: 12px;
		padding-left: 12px;
		font-size: 13px;
	}
}

/* Móvil */

@media (max-width: 760px) {
	.scn-header .scn-inner {
		flex-wrap: wrap;
		gap: 12px;
		min-height: 76px;
		padding: 12px 16px;
	}

	.scn-header .scn-brand {
		flex-basis: 108px;
		width: 108px;
		height: 48px;
		margin-right: auto;
	}

	.scn-header .scn-brand img {
		width: 108px;
		min-width: 108px;
		height: 108px;
	}

	.scn-header .scn-reserve {
		min-height: 44px;
		padding: 11px 12px;
		font-size: 13px;
	}

	.scn-header .scn-reserve svg {
		display: none;
	}

	.scn-header .scn-mobile-toggle {
		display: inline-flex;
	}

	.scn-header .scn-nav {
		display: none;
		order: 4;
		flex: 0 0 100%;
		width: 100%;
		margin: 0;
		padding: 8px 0 2px;
		border-top: 1px solid var(--scn-border);
	}

	.scn-header.scn-mobile-open .scn-nav {
		display: block;
	}

	.scn-header .scn-list {
		display: block;
	}

	.scn-header .scn-list > li {
		flex-wrap: wrap;
		width: 100%;
	}

	.scn-header .scn-list > li > a {
		flex: 1 1 0;
		min-width: 0;
		min-height: 46px;
		padding: 12px;
		font-size: 14px;
		white-space: normal;
	}

	.scn-header .scn-sub-toggle {
		flex-basis: 44px;
		width: 44px;
		height: 46px;
	}

	.scn-header .scn-list > .current-menu-item > a::after,
	.scn-header .scn-list > .current-menu-ancestor > a::after {
		top: 12px;
		right: auto;
		bottom: 12px;
		left: 0;
		width: 2px;
		height: auto;
	}

	.scn-header .scn-nav .sub-menu {
		position: static;
		flex: 0 0 calc(100% - 10px);
		width: calc(100% - 10px);
		max-width: 100%;
		margin: 4px 0 8px 10px;
		padding: 4px 0 4px 8px;
		border: 0;
		border-left: 2px solid #d7dfeb;
		border-radius: 0;
		background: #ffffff;
		box-shadow: none;
	}

	.scn-header .sub-menu > li > a {
		display: flex;
		align-items: center;
		min-height: 46px;
		padding: 11px 10px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.scn-header *,
	.scn-header *::before,
	.scn-header *::after {
		transition: none !important;
	}
}
/* En entradas individuales el menú usa el mismo HTML y CSS del snippet de Suite Comfort. */
.hps-site-nav-region .scn-header{width:100%;}
