/* =========================================================================
   Noble Vínculo — cabecera y menú
   Depende de las variables declaradas en style-noble.css
   ========================================================================= */

.nv-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1100;
	background: var(--nv-gold);
	color: var(--nv-navy);
	padding: 14px 22px;
	font-family: var(--nv-sans);
	font-size: 15px;
	text-decoration: none;
}
.nv-skip:focus { left: 12px; top: 12px; }

/* ------------------------------- Cabecera ------------------------------- */

.nv-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 1000;
	height: 80px;
	background: transparent;
	box-shadow: none;
	transition: height 0.3s var(--nv-ease),
	            background-color 0.3s var(--nv-ease),
	            box-shadow 0.3s var(--nv-ease);
}

.nv-header.is-sticky {
	height: 70px;
	background: var(--nv-navy);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nv-header__inner {
	max-width: var(--nv-wrap);
	height: 100%;
	margin-inline: auto;
	padding-inline: var(--nv-gut);
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 32px;
}

/* --------------------------------- Logo --------------------------------- */

.nv-logo {
	font-family: var(--nv-serif);
	font-weight: 700;
	font-size: 24px;
	line-height: 1;
	color: var(--nv-gold);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.3s var(--nv-ease);
}
.nv-logo:hover { color: var(--nv-gold-soft); }

/* ------------------------------ Navegación ------------------------------ */

.nv-nav { margin-inline: auto; }

.nv-nav__list {
	display: flex;
	align-items: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-nav__link {
	position: relative;
	display: inline-block;
	font-family: var(--nv-sans);
	font-weight: 400;
	font-size: 15px;
	color: var(--nv-cream);
	text-decoration: none;
	padding-block: 6px;
	transition: color 0.3s var(--nv-ease);
}

/* Subrayado dorado que crece desde el centro */
.nv-nav__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--nv-gold);
	transform: scaleX(0);
	transition: transform 0.3s var(--nv-ease);
}

.nv-nav__link:hover,
.nv-nav__link:focus-visible { color: var(--nv-gold); }
.nv-nav__link:hover::after,
.nv-nav__link:focus-visible::after { transform: scaleX(1); }

/* -------------------------------- Botones ------------------------------- */

.nv-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nv-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--nv-sans);
	font-weight: 500;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	padding: 13px 24px;
	min-height: 44px;
	border-radius: 2px;
	border: 1px solid transparent;
	box-sizing: border-box;
	cursor: pointer;
	transition: background-color 0.3s var(--nv-ease),
	            color 0.3s var(--nv-ease),
	            border-color 0.3s var(--nv-ease),
	            transform 0.3s var(--nv-ease);
}

.nv-cta--ghost {
	background: transparent;
	color: var(--nv-gold);
	border-color: rgba(197, 160, 89, 0.6);
}
.nv-cta--ghost:hover,
.nv-cta--ghost:focus-visible {
	background: var(--nv-gold);
	color: var(--nv-navy);
	border-color: var(--nv-gold);
}

.nv-cta--solid {
	background: var(--nv-gold);
	color: var(--nv-navy);
	border-color: var(--nv-gold);
}
.nv-cta--solid:hover,
.nv-cta--solid:focus-visible {
	background: #B8944F;
	border-color: #B8944F;
	color: var(--nv-navy);
	transform: scale(1.02);
}

.nv-header a:focus-visible,
.nv-header button:focus-visible,
.nv-drawer a:focus-visible,
.nv-drawer button:focus-visible {
	outline: 2px solid var(--nv-gold);
	outline-offset: 3px;
}

/* ------------------------------ Hamburguesa ----------------------------- */

.nv-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
}

.nv-burger__bar {
	display: block;
	width: 24px;
	height: 2px;
	margin-inline: auto;
	background: var(--nv-cream);
	border-radius: 2px;
	transition: transform 0.3s var(--nv-ease),
	            opacity 0.2s var(--nv-ease);
}

.nv-burger.is-open .nv-burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nv-burger.is-open .nv-burger__bar:nth-child(2) { opacity: 0; }
.nv-burger.is-open .nv-burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------- Overlay ------------------------------- */

.nv-overlay {
	position: fixed;
	inset: 0;
	z-index: 1001;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.3s var(--nv-ease);
}
.nv-overlay.is-visible { opacity: 1; }

/* ------------------------------ Panel lateral --------------------------- */

.nv-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1002;
	width: 100%;
	max-width: 320px;
	background: var(--nv-navy);
	border-left: 1px solid rgba(197, 160, 89, 0.22);
	padding: 84px 28px 36px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.3s var(--nv-ease);
}
.nv-drawer.is-open { transform: translateX(0); }

.nv-drawer__close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	color: var(--nv-cream);
	cursor: pointer;
	transition: color 0.3s var(--nv-ease);
}
.nv-drawer__close:hover { color: var(--nv-gold); }
.nv-drawer__close svg { width: 24px; height: 24px; }

.nv-drawer__list {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.nv-drawer__link {
	display: block;
	font-family: var(--nv-sans);
	font-size: 17px;
	color: var(--nv-cream);
	text-decoration: none;
	padding: 20px 0;
	border-bottom: 1px solid rgba(249, 247, 242, 0.1);
	transition: color 0.3s var(--nv-ease);
}
.nv-drawer__link:hover,
.nv-drawer__link:focus-visible { color: var(--nv-gold); }

.nv-drawer__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: auto;
}
.nv-drawer__actions .nv-cta { width: 100%; padding-block: 16px; }

/* Bloquea el scroll del fondo con el panel abierto */
body.nv-no-scroll { overflow: hidden; }

/* ============================== RESPONSIVE =============================== */

/* Con seis enlaces y dos botones la cabecera necesita ~985 px.
   Por debajo de 1025 se pasa al panel lateral en vez de ahogar la fila. */
@media (max-width: 1180px) {
	.nv-nav__list { gap: 20px; }
	.nv-cta { padding: 12px 18px; font-size: 14px; }
	.nv-header__inner { gap: 20px; }
}

@media (max-width: 1024px) {
	.nv-header { height: 70px; }
	.nv-header.is-sticky { height: 70px; }

	.nv-nav,
	.nv-actions { display: none; }

	.nv-burger { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
	.nv-header,
	.nv-nav__link,
	.nv-nav__link::after,
	.nv-cta,
	.nv-burger__bar,
	.nv-overlay,
	.nv-drawer { transition-duration: 0.01ms !important; }
}
