:root {
	--black: #0d0d0b;
	--paper: #f2efe8;
	--silver: #9c9691;
	--line: rgba(242, 239, 232, 0.22);
}

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

html, body {
	height: 100%;
}

body {
	background-color: var(--black);
	color: var(--paper);
	font-family: "IBM Plex Mono", monospace;
	overflow: hidden;
}

.escena {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100dvh;

	background-image:
		linear-gradient(
			to top,
			rgba(13, 13, 11, 0.92) 0%,
			rgba(13, 13, 11, 0.55) 28%,
			rgba(13, 13, 11, 0.05) 55%,
			rgba(13, 13, 11, 0.25) 100%
		),
		url("../img/fondo_web.jpg");
	background-size: cover;
	background-position: center 30%;
	background-repeat: no-repeat;
	filter: grayscale(1) contrast(1.05);
}

.cedula {
	position: absolute;
	left: clamp(1.25rem, 5vw, 4rem);
	bottom: clamp(1.5rem, 6vh, 4rem);
	right: clamp(1.25rem, 5vw, 4rem);
	max-width: 34rem;
}

.nombre {
	font-family: "Fraunces", serif;
	font-weight: 500;
	font-size: clamp(1.9rem, 5.2vw, 3.4rem);
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.nombre em {
	font-style: italic;
	font-weight: 400;
	color: var(--silver);
}

.oficio {
	margin-top: 0.6rem;
	font-size: clamp(0.72rem, 1.4vw, 0.85rem);
	letter-spacing: 0.02em;
	color: var(--silver);
}

.separador {
	width: 100%;
	height: 1px;
	background: var(--line);
	margin: clamp(1.1rem, 3.5vh, 1.8rem) 0;
}

.estado {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	font-size: clamp(0.72rem, 1.4vw, 0.85rem);
	color: var(--paper);
}

.estado span:last-child {
	color: var(--silver);
	white-space: nowrap;
}

.logo-fonca {
	width: 900px;
	bottom: 0%;
	position: sticky;
	left: 100%;
	max-width: 100%;
}

@media (max-width: 1300px) {
	.logo-fonca {
		width: 45%;
		bottom: 0%;
		position: sticky;
		left: 100%;
	}
}

@media (max-width: 480px) {
	.estado {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.35rem;
	}

	.logo-fonca {
		width: 100%;
		bottom: 0%;
		position: sticky;
		left: 100%;
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.escena {
		animation: revelar 1.6s ease-out;
	}
}

@keyframes revelar {
	from {
		filter: grayscale(1) contrast(1.05) brightness(0.6);
		opacity: 0;
	}
	to {
		filter: grayscale(1) contrast(1.05) brightness(1);
		opacity: 1;
	}
}
