/* Header Mobile - Solo visible en mobile */

.header-mobile {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: white;
	transform: translateY(0);
	transition: transform 0.3s ease;
}

.header-mobile--hidden {
	transform: translateY(-100%);
}

.header-mobile.header-mobile--open {
	height: 100vh;
	background: #82FF7A;
}

/* Header Top Bar */
.header-mobile__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 16px;
	gap: 8px;
}

/* Logo Button */
.header-mobile__logo {
	display: flex;
	width: 100%;
	align-items: center;
	padding: 16px;
	border: 1px solid #1b1b1a;
	border-radius: 8px;
	text-decoration: none;
}

.header-mobile__logo img {
	display: block;
	width: 60px;
	height: 31px;
}

/* Burger Button */
.header-mobile__burger {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.header-mobile__burger img {
	display: block;
	width: 40px;
	height: 40px;
}

/* Menu Desplegable */
.header-mobile__menu {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	height: calc(100vh - 96px); /* Altura total menos el top bar */
	padding: 0 16px;
	box-sizing: border-box;
}

.header-mobile--open .header-mobile__menu {
	display: flex;
}

/* Navigation Links */
.header-mobile__nav {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.header-mobile__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border: 1px solid #1b1b1a;
	border-radius: 8px;
	text-decoration: none;
	color: #1B1B1A;
	font-family: "Open Sauce Two", sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 14px;
	letter-spacing: 0.14px;
	transition: all 0.3s ease;
}

.header-mobile__link img {
	display: block;
	width: 16px;
	height: 17px;
}

/* Link Activo */
.header-mobile__link--active {
	background: #1b1b1a;
	color: #FFF;
	margin-top: 8px;
	font-size: 15px;
	line-height: 150%; /* 22.5px */
	letter-spacing: 0.15px;
	margin-top: 0;
	border-radius: 24px;
}

/* Social Links */
.header-mobile__social {
	display: flex;
	gap: 24px;
	padding: 16px 0 16px 4px;
	border-top: 1px solid #1b1b1a;
	margin-bottom: 10vh;
}

.header-mobile__social a {
	color: #1B1B1A;
	font-family: "Open Sauce Two", sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 14px;
	letter-spacing: 0.14px;
	text-decoration: none;
}

/* Botón página activa - solo visible en header cerrado */
.header-mobile__active-page {
	margin: 0 16px 8px 16px;
	padding: 12px 16px;
	background: #1b1b1a;
	color: #FFF;
	font-family: "Open Sauce Two", sans-serif;
	font-size: 15px;
	line-height: 15px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0.15px;
	border-radius: 8px;
	/* Animación suave */
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(-10px);
	transition: all 0.3s ease;
}

/* Estado visible del botón activo */
.header-mobile__active-page.show {
	max-height: 60px;
	opacity: 1;
	transform: translateY(0);
}

/* Ocultar botón activo cuando menú está abierto */
.header-mobile--open .header-mobile__active-page {
	display: none;
}

/* Responsive - Solo visible en mobile */
@media (max-width: 767px) {
	.header-mobile {
		display: block;
	}

	/* Cuando el menú está abierto, ocultar scroll del body */
	body.header-mobile--open {
		overflow: hidden;
	}
}


/* Code Intro - Pantalla de carga con typewriter */
.code-intro-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: #1b1b1a;
	z-index: 2147483632;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	padding: 0 0 1rem 1rem;
	box-sizing: border-box;
	transform: translateY(0);
	transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.code-intro-overlay.fade-out {
	transform: translateY(-100%);
}

.code-intro__content {
	color: #82FF7A;
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.8rem;
	line-height: 1.4;
	white-space: pre-wrap;
	overflow: hidden;
	max-width: 100%;
	max-height: 100%;
	text-align: left;
}

/* Bloquear scroll cuando el efecto está activo */
body.code-intro-active {
	overflow: hidden;
}

/* Ocultar overlay por defecto si JavaScript no está disponible */
.no-js .code-intro-overlay {
	display: none;
}

/* Responsive Mobile */
@media (max-width: 767px) {
	.code-intro-overlay {
		padding: 0 16px 16px 16px;
		overflow: hidden;
		height: 100vh;
	}
	
	.code-intro__content {
		font-size: 14px;
		line-height: 1.4;
		max-width: 100%;
		white-space: pre;
	}
}