/* ============================================================================
   NAVBAR — logo a la izquierda, menú + botón de contacto a la derecha
   ============================================================================ */

.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--navbar-height);
	background: rgba(10, 14, 39, 0.9);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border-color);
	z-index: 1000;
}

.navbar-container {
	max-width: 1200px;
	height: 100%;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.navbar-logo {
	display: flex;
	align-items: center;
}

.navbar-logo img {
	height: 40px;
	width: auto;
	transition: transform 0.3s ease;
}

.navbar-logo img:hover {
	transform: scale(1.05);
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: 2rem;
	align-items: center;
	margin: 0;
	padding: 0;
}

.nav-link {
	color: var(--text-secondary);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
	transition: color 0.3s ease;
	position: relative;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: -6px;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
	transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.is-active {
	color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.is-active::after {
	width: 100%;
}

.nav-cta {
	padding: 0.55rem 1.25rem;
	font-size: 0.95rem;
	box-shadow: none;
}

.nav-cta-item {
	margin-left: 0.5rem;
}

/* Botón hamburguesa (es un <button> para que sea accesible con teclado) */
.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	background: none;
	border: 0;
	padding: 8px;
	margin-right: -8px;
}

.menu-toggle span {
	width: 24px;
	height: 3px;
	background: var(--text-primary);
	transition: all 0.3s ease;
	border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Mobile / tablet: menú desplegable ---------- */

@media (max-width: 900px) {
	.menu-toggle {
		display: flex;
	}

	.nav-menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		padding: 1rem 20px 1.5rem;
		background-color: var(--dark-secondary);
		border-bottom: 1px solid var(--border-color);
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
		text-align: center;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
	}

	.nav-menu.active {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.nav-menu li {
		width: 100%;
	}

	.nav-link {
		display: block;
		padding: 0.9rem 0;
		font-size: 1.05rem;
	}

	.nav-link::after {
		display: none;
	}

	.nav-cta-item {
		margin: 0.75rem 0 0;
	}

	.nav-cta {
		display: block;
		width: 100%;
		padding: 0.85rem 1rem;
	}
}
