@media (max-width: 1250px) and (min-width: 901px) {
	.menu-desktop-rowbox,
	.menu-desktop-linksbox {
		flex-direction: column !important;
		align-items: flex-end !important;
		gap: 1.2rem !important;
		margin-right: 2vw !important;
		margin-bottom: 2.5rem !important;
		width: auto !important;
	}

	.menu-desktop-link,
	.menu-desktop-links a,
	.menu-desktop-socials a {
		min-width: 120px !important;
		max-width: 220px !important;
		font-size: 1.15rem !important;
		padding: 0.7em 1.2em !important;
		margin-bottom: 0.3em !important;
		box-sizing: border-box !important;
		justify-content: flex-end !important;
		display: flex !important;
		align-items: center !important;
	}

	.menu-desktop-links {
		flex-direction: column !important;
		align-items: flex-end !important;
		gap: 1.2rem !important;
		width: auto !important;
	}

	.menu-desktop-socials {
		flex-direction: column !important;
		align-items: flex-end !important;
		gap: 1.2rem !important;
		width: auto !important;
	}
}
/* --- MENÚ DESPLEGABLE FINAL: TODO EN ROW EN DESKTOP, COLUMNA EN MÓVIL --- */
/* Permite salto de línea en títulos animados del menú móvil */
.menu-mobile-title span {
	display: inline;
	word-break: break-word;
}

@media (min-width: 901px) {
	.menu-desktop-layout {
		position: absolute;
		inset: 0;
		width: 100vw;
		height: 100vh;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		pointer-events: none;
		z-index: 2;
	}

	.menu-desktop-titlebox {
		align-self: flex-start;
		margin-top: 4.5rem;
		text-align: left;
		pointer-events: auto;
		position: relative;
		z-index: 10;
	}

	.menu-desktop-title {
		font-size: 5.5rem;
		font-weight: 700;
		color: #fff;
		padding: 1%;
		border-radius: 12px;
		margin: 0 0 0.5rem 0;
		line-height: 1.05;
		letter-spacing: -0.03em;
		text-shadow: 0 4px 32px #000a;
		position: relative;
		z-index: 11;
		background-color: #18181800;
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
	}

	.menu-desktop-desc {
		width: 40%;
		padding: 1%;
		font-size: 1.45rem;
		color: #b5b5b5;
		font-weight: 400;
		border-radius: 12px;
		margin: 0;
		opacity: 0.85;
		letter-spacing: 0.01em;
		position: relative;
		z-index: 11;
		background-color: #18181800;
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
	}

	.menu-desktop-rowbox {
		align-self: flex-end;
		margin-bottom: 4.5rem;
		margin-right: 5vw;
		display: flex;
		flex-direction: row;
		gap: 2.5rem;
		pointer-events: auto;
	}

	.menu-desktop-link {
		color: #fff;
		font-size: 1.55rem;
		font-weight: 500;
		text-decoration: none;
		letter-spacing: 0.04em;
		transition: color 0.2s, background 0.2s;
		border-radius: 2.2em;
		padding: 0.85em 2.1em;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.7em;
		background: rgba(18, 18, 18, 0.93);
		min-width: 170px;
		min-height: 2.7em;
		box-shadow: 0 2px 18px 0 rgba(0, 0, 0, 0.13);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		margin-bottom: 0.5em;
	}

	.menu-desktop-link:hover,
	.menu-desktop-link.active {
		color: var(--primary-color);
		background: var(--secondary-color);
	}

	.menu-mobile-layout {
		display: none !important;
	}
}

@media (max-width: 900px) {
	.menu-desktop-layout {
		display: none !important;
	}

	.menu-mobile-layout {
		display: flex !important;
		flex-direction: column;
		align-items: flex-start;
		width: 100vw;
		min-height: 100vh;
		padding: 0 0 2.5rem 0;
	}

	.menu-mobile-titlebox {
		margin-top: 2.2rem;
		margin-left: 6vw;
		margin-bottom: 1.2rem;
		text-align: left;
		position: relative;
		z-index: 10;
	}

	
	.menu-mobile-title {
		font-size: 2.7rem;
		line-height: 1.1;
		color: #fff;
		font-weight: 700;
		padding: 2%;
		background-color: #18181800;
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		margin: 2.5rem 0 0.4rem 0;
		border-radius: 12px;
		letter-spacing: -0.01em;
		position: relative;
		z-index: 11;
		white-space: normal;
		word-break: break-word;
		overflow-wrap: break-word;
		-webkit-hyphens: auto;
		hyphens: auto;
		max-width: 90vw;
		text-align: left;
		/* Permite que el texto se ajuste y no se corte en palabras largas */
	}

	.menu-mobile-desc {
		font-size: 1.25rem;
		color: #fff;
		font-weight: 400;
		margin: 0;
		opacity: 0.92;
		letter-spacing: 0.01em;
		position: relative;
		z-index: 11;
		padding: 2%;
		border-radius: 12px;
		background-color: #18181800;
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}

	.menu-mobile-linksbox {
		display: flex;
		flex-direction: column;
		gap: 0.7rem;
		align-items: flex-end;
		margin-left: 0;
		margin-bottom: 2.2rem;
		width: auto;
		position: fixed;
		right: 3vw;
		bottom: 2vw;
		z-index: 30;
	}

	.menu-mobile-link {
		color: #fff;
		font-size: 0.68rem;
		min-width: 48px;
		min-height: 1.1em;
		padding: 0.22em 0.5em;
		border-radius: 1em;
		background: rgba(18, 18, 18, 0.93);
		box-shadow: 0 1px 7px 0 rgba(0, 0, 0, 0.13);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		margin-bottom: 0.09em;
		text-decoration: none;
		font-weight: 500;
		letter-spacing: 0.04em;
		transition: color 0.2s, background 0.2s;
		display: flex;
		align-items: center;
		justify-content: flex-end;
	}

	.menu-mobile-link:hover,
	.menu-mobile-link.active {
		color: var(--primary-color);
		background: var(--secondary-color);
	}
}

/* --- BLOQUE DUPLICADO ELIMINADO (OPTIMIZACIÓN) --- */

.header_sticky {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	z-index: 1000;
	background: transparent;
	border: none;
	font-family: 'Clash Display', 'Clash Grotesk', sans-serif;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	/* Estado inicial: oculto hasta que JS lo anime */
	transform: translateY(-64px);
	opacity: 0;
}

/* Estado visible del header (aplicado por JS) */
.header_sticky.ready {
	transform: translateY(0);
	opacity: 1;
}

.header_sticky.hide {
	transform: translateY(-120%);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.4s, opacity 0.3s;
}

.header_content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100vw;
	margin: 0;
	padding: 1.2rem 5vw 1.2rem 5vw;
	box-sizing: border-box;
	background: transparent;
	gap: 2rem;
	position: relative;
	overflow: visible;
}

.header_content::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
	/* El blur comienza más abajo para que el header se vea nítido arriba */
	background: linear-gradient(to bottom, rgba(24,24,24,0.01) 0%, rgba(24,24,24,0.01) 40%, rgba(24,24,24,0.55) 100%);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	-webkit-mask-image: linear-gradient(to bottom, #fff 0%, #fff 40%, transparent 100%);
	mask-image: linear-gradient(to bottom, #fff 0%, #fff 40%, transparent 100%);
}

.header_right {
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.logo {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Orbitron', 'Clash Display', 'Clash Grotesk', 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: 2.5rem;
	letter-spacing: -0.04em;
	-webkit-user-select: none;
	user-select: none;
	gap: 0.1em;
	height: 48px;
	min-width: 64px;
	background: linear-gradient(90deg, #181818 60%, #222 100%);
	border-radius: 18px;
	box-shadow: 0 4px 24px 0 var(--secondary-color), 0 1px 8px 0 #000a;
	padding: 0.18em 0.38em 0.18em 0.38em;
	overflow: hidden;
	animation: logoFadeIn 1.1s cubic-bezier(.7, 0, .18, 1);
	transition: box-shadow 0.3s, background 0.3s, transform 0.3s;
	will-change: transform;
}

.logo:hover {
	box-shadow: 0 8px 32px 0 var(--secondary-color), 0 2px 16px 0 #000a;
	background: linear-gradient(90deg, #181818 40%, var(--primary-color) 100%);
	transform: scale(1.07) rotate(-2deg);
}

@keyframes logoFadeIn {
	0% {
		opacity: 0;
		transform: scale(0.7) translateY(-30px);
	}

	80% {
		opacity: 1;
		transform: scale(1.08) translateY(2px);
	}

	100% {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.logo .logo-l {
	color: var(--primary-color);
	font-size: 2.6rem;
	font-family: inherit;
	font-weight: 900;
	line-height: 1;
	margin-right: -0.08em;
	text-shadow: 0 2px 12px var(--secondary-color);
	transition: color 0.3s, text-shadow 0.3s, filter 0.3s;
	will-change: filter, color;
	filter: drop-shadow(0 0 6px var(--primary-color));
}

.logo:hover .logo-l {
	color: var(--primary-color);
	text-shadow: 0 6px 24px var(--secondary-color), 0 2px 16px var(--secondary-color);
	filter: drop-shadow(0 0 12px var(--primary-color));
}

.logo .logo-c {
	color: #fff;
	font-size: 2.5rem;
	font-family: inherit;
	font-weight: 800;
	line-height: 1;
	margin-left: -0.04em;
	text-shadow: 0 2px 12px #000a;
	text-shadow: 0 2px 12px #000a, 0 1px 8px #34ea8f33;
	letter-spacing: -0.01em;
	transition: color 0.3s, text-shadow 0.3s;
	will-change: color, text-shadow;
}

.logo:hover .logo-c {
	color: #eafffa;
	text-shadow: 0 6px 24px var(--primary-color), 0 2px 16px #fff;
}

.logo img {
	display: none;
}

.header_nav ul {
	display: flex;
	gap: 2.2rem;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: flex-end;
	align-items: center;
}

.header_nav a {
	color: var(--white);
	text-decoration: none;
	font-weight: 500;
	font-size: 1.08rem;
	letter-spacing: 0.02em;
	position: relative;
	padding: 0.5em 1.5em;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 2em;
	transition: background 0.25s, color 0.2s, box-shadow 0.25s;
	box-shadow: none;
	min-height: 2.2em;
}

.header_nav a::before,
.header_nav a::after {
	display: none !important;
}

.header_nav a:hover,
.header_nav a.active {
	color: var(--primary-color);
	background: rgba(52, 234, 143, 0.13);
	box-shadow: 0 2px 16px 0 rgba(52, 234, 143, 0.10);
	align-items: center;
	justify-content: center;
}

.header_burger {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 8px;
	width: 28px;
	height: 28px;
	align-self: center;
	margin-left: 8px;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 1100;
	align-items: center;
	justify-items: center;
	position: relative;
	padding: 0;
	transition: background 0.25s, box-shadow 0.25s, border 0.25s;
	border-radius: 8px;
}

.header_burger-grid {
	display: grid;
	grid-template-columns: repeat(3, 8px);
	grid-template-rows: repeat(3, 8px);
	gap: 8px;
	justify-content: center;
	align-content: center;
	width: 32px;
	height: 32px;
}

.header_burger.open {
	background: rgba(9, 9, 9, 0.93);
	border-radius: 12px;
}


.header_burger span {
	display: block;
	width: 3px;
	height: 3px;
	background: #888;
	border-radius: 50%;
	transition: all 0.4s cubic-bezier(.4, 2, .3, 1), background 0.2s;
	opacity: 1;
	margin: auto;
}

.header_burger.grid-burger:hover span,
.header_burger.grid-burger.open span {
	background: #fff;
}

/* Estado abierto: transformar puntos en X */
.header_burger.grid-burger.open span {
	background: #fff;
	opacity: 0;
}

.header_burger.grid-burger.open span:nth-child(1),
.header_burger.grid-burger.open span:nth-child(3),
.header_burger.grid-burger.open span:nth-child(5),
.header_burger.grid-burger.open span:nth-child(7),
.header_burger.grid-burger.open span:nth-child(9) {
	opacity: 1;
}

.header_burger.grid-burger.open span:nth-child(1) {
	transform: none;
}

.header_burger.grid-burger.open span:nth-child(3) {
	transform: none;
}

.header_burger.grid-burger.open span:nth-child(7) {
	transform: none;
}

.header_burger.grid-burger.open span:nth-child(9) {
	transform: none;
}

.header_burger.grid-burger.open span:nth-child(5) {
	transform: none;
}

/* Redes sociales desktop mejoradas */
.header_socials.desktop_socials {
	display: flex;
	gap: 18px;
	align-items: flex-end;
	margin-right: 0;
}

.header_socials.desktop_socials a {
	color: #fff;
	font-size: 1.2rem;
	text-decoration: none;
	padding: 6px 10px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.07);
	transition: background 0.2s, color 0.2s;
	display: flex;
	align-items: flex-end;
	margin-bottom: 2px;
	align-self: flex-end;
	margin-bottom: 2px;
	gap: 6px;
}

.header_socials.desktop_socials a:hover {
	color: var(--primary-color);
	background: var(--secondary-color);
}

.header_burger.active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.header_burger.active span:nth-child(2) {
	opacity: 0;
}

.header_burger.active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.header_nav_mobile {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: #181818;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-100%);
	/* Transición eliminada, ahora se maneja por JS */
	z-index: 1050;
	overflow: hidden;
	min-height: 100dvh;
	min-width: 100vw;
}


.header_nav_mobile .header_socials {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 32px;
	align-items: flex-start;
	width: 100%;
}

.header_nav_mobile.active {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	/* Transición eliminada, ahora se maneja por JS */
}

.header_nav_mobile ul {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 2.2rem;
	margin-bottom: 2.5rem;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 2;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	height: auto;
}

/* Cápsulas opacas y un poco más grandes para mejor legibilidad */
.header_nav_mobile a {
	color: var(--white);
	font-size: 1.55rem;
	font-weight: 500;
	text-decoration: none;
	letter-spacing: 0.04em;
	transition: color 0.2s, background 0.2s;
	border-radius: 2.2em;
	padding: 0.85em 2.1em;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.7em;
	background: rgba(18, 18, 18, 0.93);
	min-width: 170px;
	min-height: 2.7em;
	box-shadow: 0 2px 18px 0 rgba(0, 0, 0, 0.13);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.header_nav_mobile a:hover,
.header_nav_mobile a.active {
	color: var(--white);
	background: var(--secondary-color);
}

.header_nav_mobile .header_socials {
	display: flex;
	gap: 1.1rem;
	justify-content: center;
	align-items: center;
	margin-top: 1.5rem;
	/* animation eliminada para evitar conflicto con JS */
	flex-wrap: wrap;
}

.header_nav_mobile .header_socials a {
	color: #fff;
	font-size: 0.82rem;
	font-weight: 500;
	text-decoration: none;
	letter-spacing: 0.04em;
	transition: color 0.2s, background 0.2s;
	border-radius: 1.1em;
	padding: 0.28em 0.7em;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	background: rgba(18, 18, 18, 0.93);
	min-width: 54px;
	min-height: 1.2em;
	box-shadow: 0 1px 7px 0 rgba(0, 0, 0, 0.13);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	margin-bottom: 0.13em;
}

.header_socials.mobile_socials a:hover {
	color: var(--primary-color);
	background: rgba(29, 185, 84, 0.08);
}

.header_nav_mobile .header_socials a .social-text {
	color: var(--white);
	font-size: 1em;
	font-weight: 500;
	letter-spacing: 0.01em;
	opacity: 0.92;
	transition: color 0.2s;
}

.header_nav_mobile .header_socials a:hover {
	background: var(--primary-color);
	color: var(--dark);
	transform: scale(1.09) rotate(-3deg);
	border-color: var(--primary-color);
}

.header_nav_mobile .header_socials a:hover .social-text {
	color: var(--dark);
}

/* @keyframes fadeInSocials eliminado, animación ahora solo por JS */
@media (max-width: 900px) {
	.header_content {
		gap: 1rem;
		padding-left: 3vw;
		padding-right: 3vw;
	}

	.header_nav ul {
		gap: 1.2rem;
	}
}

@media (max-width: 700px) {
	.header_nav {
		display: none;
	}

	.header_burger {
		display: flex;
	}

	.header_content {
		padding-left: 2vw;
	}

	.desktop_socials {
		display: none !important;
	}

	.header_burger {
		display: grid;
		margin-left: 0;
	}

	.header_nav_mobile {
		display: flex;
		font-size: 1.45rem;
	}

	.header_nav_mobile ul {
		gap: 1.3rem;
		margin-bottom: 1.2rem;
	}

	.header_nav_mobile .header_socials {
		margin-top: 0.7rem;
	}

	.desktop_socials {
		display: none !important;
	}

	.header_burger {
		display: grid;
	}

	.header_nav_mobile {
		display: flex;
	}
}