@font-face {
	font-family: Inter;
	src: url(Inter.ttf);
}

:root {
	--bg-color: #08080a;
	--text-color: #ffffff;
	--accent-cyan: #00f0ff;
	--accent-magenta: #ff0055;
	--accent-yellow: #ffe600;
	--main-font: Inter, sans-serif;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--bg-color);
	color: var(--text-color);
	font-family: Inter, sans-serif;
	overflow-x: hidden;
	text-transform: uppercase;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* CAPAS DE CONTENIDO (VISUALES FIJAS) */
.content-group, .content-group-2 {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10;
}

.content-group section {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* ESTILOS DE LOS ELEMENTOS ANIMADOS */
.hero-title {
	position: absolute;
	font-size: clamp(4rem, 15vw, 18rem);
	line-height: 0.85;
	text-align: center;
	letter-spacing: -2px;
	color: var(--text-color);
	will-change: transform, opacity;
	white-space: nowrap;
	font-family: var(--main-font);
	/* transition: transform, opacity 0.3s ease; */
	@media screen and (max-width: 520px) {
		font-size: clamp(8rem, 15vw, 18rem);
	}
}

.giant-zoom {
	position: absolute;
	font-size: clamp(6rem, 22vw, 28rem);
	color: var(--accent-magenta);
	white-space: nowrap;
	display: block;
	width: fit-content;
	height: fit-content;
	/* transition: transform, opacity 0.3s ease; */

	/* Forzar al compositor de la GPU a crear una capa de textura dedicada */
	will-change: transform, opacity;
	transform-style: preserve-3d;
	backface-visibility: hidden;

	/* Evita que el contenedor recorte las letras gigantes antes de achicarse */
	overflow: visible !important;
}

#content-2 {
	display: block;
}

.card-3d {
	padding: 3rem 5rem;
	border-radius: 12px;
	text-align: center;
	will-change: opacity;
	transition: opacity 0.3s ease;
}

.card-3d h2 {
	font-size: clamp(1.5rem, 8vw, 8rem);
	color: var(--text-color);
	margin-bottom: 0.5rem;
	font-family: var(--main-font);
}

/* CAPAS DE GUÍA (PISTA DE SCROLL) */
.guide-group {
	position: relative;
	z-index: 1;
}

/* INDICADOR INICIAL DE SCROLL */
.scroll-indicator {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	font-family: monospace;
	font-size: 0.4rem;
	@media screen and (min-width: 720px) {
		font-size: 0.9rem;
	}
	letter-spacing: 3px;
	color: var(--text-color);
	z-index: 100;
	pointer-events: none;
	animation: pulse 2s infinite;
}

.contact-link {
	position: fixed;
	top: 30px;
	right: 0;
	transform: translateX(-2rem);
	font-family: monospace;
	font-size: 0.9rem;
	letter-spacing: 3px;
	color: var(--text-color);
	z-index: 100;
	list-style: none;
	list-style-type: none;
	display: flex;
	flex-direction: row;
	margin: 0;
	padding: 0;
	li {
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 0;
		margin: 0;
	}
	a {
		text-decoration: none;
		font-size: 12px;
		font-family: var(--main-font);
		color: var(--text-color);
		opacity: 0.7;
		display: inline-block;
		margin: 0;
		background: transparent;
		transition: opacity, background, filter 0.5s ease;
		padding: 1.5rem;
		&:first-child {
			line-height: 3;
		}
		&:hover {
			opacity: 1;
			background: var(--bg-color);
			filter: invert();
		}
	}
	img {
		display: block;
		width: 30px;
		height: auto;
		padding: 0;
	}
}

@keyframes pulse {
	0%, 100% { opacity: 0.3; transform: translate(-50%, 0); }
	50% { opacity: 1; transform: translate(-50%, -10px); }
}

#content-1 {
	h1 {
		font-weight: 900;
		font-family: var(--main-font);
	}
}

#open-contact {
	&:target ~ .contact {
		display: flex;
	}
}
#close-contact {
	&:target ~ .contact {
		display: none;
	}
	&:target ~ .contact > #resultado {
		display: none;
	}
}
.contact {
	position: relative;
	& > a {
		position: absolute;
		margin-top: -575px;
		transform: translateY(0);
		background: var(--text-color);
		border-radius: 50%;
		width: 30px;
		height: 30px;
		display: block;
		border: 3px solid var(--bg-color);
		z-index: 999;
		img {
			display: block;
			position: relative;
			margin-top: 50%;
			transform: translateY(-50%) translateX(-50%);
			margin-left: 50%;
			z-index: 999;
		}
	}
	position: fixed;
	display: none;
	width: 100vw;
	height: 100vh;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	top: 0;
	z-index: 333;
	#resultado {
		padding: 1rem;
		background: var(--text-color);
		color: var(--bg-color);
		display: none;
		position: relative;
		z-index: 777;
		margin-top: -523px;
	}
	form {
		display: flex;
		flex-direction: column;
		width: 300px;
		height: fit-content;
		background: var(--text-color);
		padding: 2rem;
		@media screen and (Min-width: 720px) {
			width: 600px
		}
		button {
			display: block;
			background: var(--text-color);
			margin-top: 1rem;
			position: relative;
			margin: 0 auto;
			width: fit-content;
			padding: 1rem;
			border: 1px solid var(--bg-color);
			transition; background 0.5s ease;
			font-size: 14px;
			letter-spacing: 1px;
			text-transform: uppercase;
			&:hover {
				background: var(--bg-color);
				color: var(--text-color);
			}
		}
		h4 {
			color: var(--bg-color);
			font-family: var(--main-font);
			text-transform: uppercase;
			font-size: 22px;
			display: block;
			position: relative;
			width: 100%;
			text-align: center;
			margin: 1rem auto;
			letter-spacing: 2px;
			font-weight: 300;
		}
		label {
			display: block;
			margin-top: 1rem;
			span {
				position: relative;
				text-transform: uppercase;
				text-align: center;
				display: block;
				margin-bottom: 7px;
				width: 100%;
				font-size: 12px;
				letter-spacing: 1px;
				font-family: var(--main-font);
				color: var(--bg-color);
			}
			input {
				width: 100%;
				font-family: var(--main-font);
				font-size: 12px;
				padding: 1rem;
				border: 1px solid var(--bg-color);
			}
			textarea {
				width: 100%;
				padding: 1rem;
				font-family: var(--main-font);
				font-size: 12px;
				border: 1px solid var(--bg-color);
				resize: none;
				margin-bottom: 2rem;
			}
		}
	}
}
