:root {
	--paper: #fffdfa;
	--desk: #f4ece6;
	--blush: #ecd6cf;
	--sage: #dde3d6;
	--sand: #f1e6d8;
	--rose: #b58679;
	--rose-deep: #8c5e52;
	--ink: #2d2522;
	--ink-soft: #5e534e;
	--line: #e9dfd8;
	--display: 'Italiana', serif;
	--serif: 'Cormorant Garamond', Georgia, serif;
	--sans: 'Jost', sans-serif;
	--type: 'Cutive Mono', 'Courier New', monospace;
	--ease: cubic-bezier(.2, .7, .1, 1);
	--soft: cubic-bezier(.65, 0, .35, 1);
}

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

body {
	background: var(--desk);
	min-height: 100vh;
	padding: 56px 16px 0;
	display: flex;
	flex-direction: column;
	font-family: var(--serif);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--blush); }

/* ---------- Intro ---------- */

.intro {
	position: fixed;
	inset: 0;
	z-index: 50;
	background: var(--paper);
	display: grid;
	place-items: center;
	animation: curtain 1s var(--soft) 2.5s both;
}

.intro-type { font-family: var(--type); color: var(--ink); white-space: nowrap; }
.intro-name { font-size: 46px; line-height: 1.2; }
.intro-sub { font-size: 19px; color: var(--rose-deep); margin-top: 10px; }

.intro .c { animation: show 1ms linear both; }
.intro .cur { color: var(--rose); margin-left: 1px; }
.intro-name .cur { animation: blink .8s steps(1) infinite, gone 1ms linear 1.3s forwards; }
.intro-sub .cur { animation: blink .8s steps(1) infinite, show 1ms linear 1.35s both; }

/* ---------- Fondo ---------- */

.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.blobs i {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: .85;
	animation: float 18s ease-in-out infinite alternate;
}

.blobs i:nth-child(1) { width: 520px; height: 520px; background: var(--blush); top: -140px; left: -160px; }
.blobs i:nth-child(2) { width: 460px; height: 460px; background: var(--sage); bottom: -160px; right: -120px; animation-duration: 22s; animation-delay: -6s; }
.blobs i:nth-child(3) { width: 340px; height: 340px; background: var(--sand); top: 40%; left: 60%; animation-duration: 26s; animation-delay: -12s; }

/* ---------- Hoja ---------- */

.sheet {
	width: 880px;
	max-width: 100%;
	margin: 0 auto;
	background: var(--paper);
	border-radius: 28px;
	padding: 56px 60px 64px;
	position: relative;
	box-shadow: 0 1px 2px #8c5e5212, 0 30px 80px -30px #8c5e5240;
	animation: sheetIn 1s var(--ease) 2.65s both;
}

/* ---------- Encabezado ---------- */

.top {
	display: grid;
	grid-template-columns: 230px 1fr;
	gap: 44px;
	align-items: center;
}

.photo {
	position: relative;
	width: 210px;
	aspect-ratio: 1;
	margin: 10px;
}

.photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 22%;
	border-radius: 50%;
	animation: bloom 1.2s var(--soft) 2.8s both;
	transition: transform .8s var(--ease), filter .8s;
	filter: saturate(.92);
}

.photo:hover img { transform: scale(1.03); filter: saturate(1.05); }

.photo::before, .photo::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	transition: transform .8s var(--ease);
}

.photo::before { inset: -9px; border: 1px solid var(--rose); animation: ring .9s var(--ease) 3.3s both; }
.photo::after { inset: -19px; border: 1px solid #c9d2c2; animation: ring .9s var(--ease) 3.45s both; }

.photo:hover::before { transform: scale(1.025); }
.photo:hover::after { transform: scale(1.045); }

.sprig {
	position: absolute;
	width: 64px;
	height: 64px;
	bottom: -14px;
	left: -22px;
	fill: none;
	stroke: var(--rose-deep);
	stroke-width: 1.3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sprig path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: drawSprig 1.6s var(--soft) 3.6s forwards; }
.sprig path + path { fill: var(--blush); fill-opacity: 0; animation: drawSprig 1.6s var(--soft) 3.8s forwards, leaf .8s ease 4.6s forwards; }

.id { text-align: center; }

.name {
	font-family: var(--display);
	font-weight: 400;
	font-size: 58px;
	line-height: 1.05;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink);
	padding-left: .14em;
}

.name .word { display: inline-block; white-space: nowrap; }
.name .ch { display: inline-block; animation: letterIn .8s var(--ease) both; }

.role {
	font-family: var(--sans);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: .4em;
	text-transform: uppercase;
	color: var(--rose-deep);
	margin-top: 14px;
	padding-left: .4em;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	animation: fade .8s ease 3.55s both;
}

.role::before, .role::after {
	content: '';
	width: 34px;
	height: 1px;
	background: var(--rose);
	transform-origin: center;
	animation: grow .8s var(--ease) 3.7s both;
}

.contact {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 12px;
	margin-top: 24px;
	animation: up .7s var(--ease) 3.75s both;
}

.contact a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 400;
	color: var(--ink-soft);
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid var(--line);
	transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}

.contact a:hover { background: var(--blush); border-color: var(--blush); color: var(--ink); transform: translateY(-2px); }

.contact svg { width: 15px; height: 15px; fill: none; stroke: var(--rose-deep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Secciones ---------- */

h2 {
	font-family: var(--serif);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--ink);
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	gap: 14px;
}

h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }

p, li { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }

i, em { font-style: italic; }

.about {
	margin: 52px -60px 0;
	padding: 36px 90px 40px;
	background: linear-gradient(120deg, #f7eeea 0%, #f6f1ea 50%, #eef1ea 100%);
	text-align: center;
	position: relative;
}

.about h2 { justify-content: center; }
.about h2::after, .about h2::before { content: ''; flex: 0 0 40px; height: 1px; background: var(--rose); opacity: .6; }

.about p { font-size: 18.5px; line-height: 1.75; color: var(--ink); }
.about em { color: var(--rose-deep); font-weight: 500; }

.cols {
	display: grid;
	grid-template-columns: 1fr 250px;
	gap: 56px;
	margin-top: 48px;
}

.cols section + section { margin-top: 42px; }

.when {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .08em;
	color: var(--rose-deep);
	white-space: nowrap;
}

.edu { list-style: none; }

.edu li {
	justify-content: space-between;
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
	padding: 9px 0;
	border-bottom: 1px dashed var(--line);
}

.edu li:last-child { border-bottom: none; }
.edu b { font-weight: 600; color: var(--ink); }
.edu .when { margin-left: auto; padding-left: 12px; }

.timeline { position: relative; padding-left: 28px; }

.timeline::before {
	content: '';
	position: absolute;
	left: 5px;
	top: 10px;
	bottom: 10px;
	width: 1px;
	background: linear-gradient(var(--rose), var(--line));
}

.job { position: relative; padding: 4px 0; }
.job + .job { margin-top: 26px; }

.job::before {
	content: '';
	position: absolute;
	left: -28px;
	top: 11px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--paper);
	border: 1.5px solid var(--rose);
	transition: background .3s, transform .3s var(--ease);
}

.job:hover::before { background: var(--rose); transform: scale(1.25); }

.job h3 { font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--ink); }
.job h3 i { font-weight: 500; color: var(--ink-soft); }
.job .when { margin: 2px 0 8px; }

.job ul { list-style: none; }
.job li { position: relative; padding-left: 18px; font-size: 16.5px; }
.job li::before { content: '✦'; position: absolute; left: 0; top: 4px; font-size: 9px; color: var(--rose); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }

.chips li {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--ink);
	padding: 7px 13px;
	border-radius: 999px;
	background: #f7efeb;
	transition: background .3s, transform .3s var(--ease);
	cursor: default;
}

.chips li:nth-child(3n+2) { background: #eef1ea; }
.chips li:nth-child(3n) { background: #f6efe5; }
.chips li:hover { background: var(--blush); transform: translateY(-2px) rotate(-1deg); }

.awards { list-style: none; }

.awards li {
	display: flex;
	flex-direction: column;
	padding: 14px 16px 14px 44px;
	position: relative;
	border-radius: 16px;
	transition: background .3s;
}

.awards li + li { margin-top: 4px; }
.awards li:hover { background: #faf4f0; }

.awards li::before {
	content: '';
	position: absolute;
	left: 14px;
	top: 18px;
	width: 18px;
	height: 18px;
	background: var(--rose);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.6 6.6L21 9.3l-5 4.4 1.5 6.8L12 17l-5.5 3.5L8 13.7 3 9.3l6.4-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.6 6.6L21 9.3l-5 4.4 1.5 6.8L12 17l-5.5 3.5L8 13.7 3 9.3l6.4-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .5s var(--ease);
}

.awards li:hover::before { transform: rotate(72deg) scale(1.1); }

.awards b { font-weight: 600; font-size: 16.5px; line-height: 1.3; color: var(--ink); }
.awards i { font-size: 15.5px; line-height: 1.4; }
.awards .when { margin-top: 4px; }

.r { animation: up .8s var(--ease) both; }

/* ---------- Botones ---------- */

.actions {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 10;
	display: flex;
	gap: 10px;
	transition: translate .2s ease-out;
	animation: up .6s var(--ease) 4s both;
}

.btn {
	font-family: var(--sans);
	font-weight: 500;
	font-size: 12.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--paper);
	background: var(--rose-deep);
	padding: 13px 20px 12px;
	border-radius: 999px;
	box-shadow: 0 10px 24px -8px #8c5e5299;
	transition: transform .3s var(--ease), background .3s;
}

.btn:hover { transform: translateY(-2px); background: #7a5045; }

.btn.ghost {
	background: var(--paper);
	color: var(--rose-deep);
	box-shadow: 0 10px 24px -10px #8c5e5266, inset 0 0 0 1px var(--rose);
}

.btn.ghost:hover { background: #fbf3ef; }

.btn .sm { display: none; }

/* ---------- Footer ---------- */

.legal {
	max-width: 880px;
	margin: auto auto 0;
	padding: 90px 20px 26px;
	text-align: center;
	font-family: var(--sans);
	font-size: 12px;
	line-height: 1.8;
	color: #8a7e78;
}

.legal p { font-size: inherit; line-height: inherit; color: inherit; }

.legal .sign {
	font-family: var(--display);
	font-size: 22px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ink);
	margin-bottom: 10px;
}

/* ---------- Animaciones ---------- */

@keyframes curtain { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
@keyframes show { from { font-size: 0; } to { font-size: 1em; } }
@keyframes gone { to { font-size: 0; } }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes drawSprig { to { stroke-dashoffset: 0; } }
@keyframes leaf { to { fill-opacity: .9; } }
@keyframes letterIn { from { opacity: 0; transform: translateY(.45em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(50px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bloom { from { clip-path: circle(0% at 50% 50%); transform: scale(1.12); } to { clip-path: circle(50% at 50% 50%); transform: none; } }
@keyframes ring { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }

@media (prefers-reduced-motion: reduce) {
	.intro { display: none; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.sprig path { stroke-dashoffset: 0; }
	.sprig path + path { fill-opacity: .9; }
}

/* ---------- Mobile ---------- */

@media screen and (max-width: 780px) {
	body { padding: 0; }
	.sheet { border-radius: 0 0 28px 28px; padding: 44px 24px 48px; }
	.top { grid-template-columns: 1fr; gap: 34px; justify-items: center; }
	.photo { width: 190px; }
	.name { font-size: 40px; letter-spacing: .1em; }
	.role { font-size: 11.5px; letter-spacing: .3em; }
	.role::before, .role::after { width: 20px; }
	.about { margin: 44px -24px 0; padding: 30px 24px 34px; }
	.about p { font-size: 17.5px; }
	.cols { grid-template-columns: 1fr; gap: 42px; }
	.edu .when { margin-left: 0; padding-left: 0; width: 100%; }
	.actions { position: absolute; top: 14px; right: 14px; bottom: auto; gap: 6px; translate: none !important; }
	.btn { height: 32px; min-width: 32px; padding: 0 11px; display: grid; place-items: center; font-size: 11px; letter-spacing: .12em; box-shadow: 0 6px 14px -8px #8c5e5299; }
	.btn.ghost { box-shadow: inset 0 0 0 1px var(--rose); }
	.btn:hover { transform: none; }
	.btn .lg { display: none; }
	.btn .sm { display: block; }
	.btn svg.sm { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
	.btn:has(svg) { padding: 0; width: 32px; }
}

@media screen and (max-width: 500px) {
	.intro-name { font-size: 30px; }
	.intro-sub { font-size: 14px; }
}

@media screen and (max-width: 380px) {
	.name { font-size: 34px; }
}

/* ---------- 404 ---------- */

.lost {
	min-height: calc(100vh - 80px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	max-width: 520px;
	margin: 0 auto;
	padding: 0 8px 8vh;
}

.lost h1 { font-family: var(--display); font-weight: 400; font-size: 40px; letter-spacing: .08em; color: var(--ink); }
.lost p { margin-top: 10px; }
.lost a { color: var(--rose-deep); font-family: var(--sans); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--rose); }
