/* Guillermo Wright — tema
   Composición: noche continua. Portada a sangre, lista de temas con fondo que cambia,
   galería justificada, banda de frase, biografía y contacto. Un solo mundo oscuro. */
:root {
	--night: #0b0d12;      /* fondo: cielo nocturno con sesgo azul */
	--night-2: #12151c;    /* superficies */
	--ink: #ece8e1;        /* texto */
	--mute: #9b978e;       /* texto secundario */
	--line: rgba(236, 232, 225, .13);
	--ember: #e3a35c;      /* acento: la última luz del atardecer */
	--display: "Playfair Display", "Times New Roman", Georgia, serif;
	--body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
	color-scheme: dark;
}

html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--night);
	color: var(--ink);
	font: 400 16px/1.65 var(--body);
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gw-wrap {
	margin: 0 auto;
	padding-left: max(clamp(20px, 4vw, 72px), env(safe-area-inset-left, 0px));
	padding-right: max(clamp(20px, 4vw, 72px), env(safe-area-inset-right, 0px));
}
.gw-eyebrow {
	margin: 0;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--ember);
}
.gw-h2 {
	margin: .3em 0 0;
	font: 500 clamp(2.2rem, 5vw, 3.6rem)/1.05 var(--display);
	text-wrap: balance;
}

/* ---------- Encabezado ---------- */
.gw-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	padding-top: env(safe-area-inset-top, 0px);
	border-bottom: 1px solid transparent;
	transition: background-color .4s, border-color .4s;
}
.gw-header { text-shadow: 0 1px 12px rgba(0, 0, 0, .7); }
.gw-header .gw-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.gw-logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.gw-logo b { font: 600 1.4rem/1 var(--display); letter-spacing: .01em; }
.gw-logo small { margin-top: 7px; font-size: .6rem; letter-spacing: .46em; text-transform: uppercase; color: var(--mute); }
.gw-logo img { max-height: 46px; width: auto; }
.gw-nav ul { display: flex; gap: 2.2rem; margin: 0; padding: 0; list-style: none; }
.gw-nav a {
	display: block;
	padding: 6px 0;
	border-bottom: 1px solid transparent;
	font-size: .8rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--mute);
	transition: color .2s, border-color .2s;
}
.gw-nav a { position: relative; border-bottom: 0; }
.gw-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ember); transform: scaleX(0); transform-origin: right; transition: transform .5s cubic-bezier(.6, 0, .2, 1); }
.gw-nav a:hover::after, .gw-nav .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.gw-nav a:hover, .gw-nav .current-menu-item > a { color: var(--ink); }
.gw-menu-btn {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	cursor: pointer;
}
.gw-menu-btn span, .gw-menu-btn span::before, .gw-menu-btn span::after {
	display: block;
	width: 24px;
	height: 1.5px;
	margin: 0 auto;
	background: currentColor;
	transition: transform .3s;
	position: relative;
}
.gw-menu-btn span::before, .gw-menu-btn span::after { content: ""; position: absolute; left: 0; }
.gw-menu-btn span::before { top: -7px; }
.gw-menu-btn span::after { top: 7px; }
.gw-menu-open .gw-menu-btn span { background: transparent; }
.gw-menu-open .gw-menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.gw-menu-open .gw-menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 780px) {
	.gw-menu-btn { display: block; }
	.gw-nav {
		position: fixed;
		inset: 0;
		z-index: -1;
		display: flex;
		align-items: center;
		justify-content: center;
		background: var(--night);
		opacity: 0;
		visibility: hidden;
		transition: opacity .3s, visibility .3s;
	}
	.gw-menu-open .gw-nav { opacity: 1; visibility: visible; }
	.gw-nav ul { flex-direction: column; align-items: center; gap: 1.4rem; }
	.gw-nav a { font: 500 2rem/1.2 var(--display); letter-spacing: 0; text-transform: none; color: var(--ink); }
}

/* ---------- Intro: del universo a la Tierra ---------- */
.gw-intro { position: relative; height: 100vh; height: 100svh; background: #000; }
.gw-intro-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.gw-intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gw-intro-scene { position: absolute; inset: 0; overflow: hidden; }
.gw-intro-sky, .gw-intro-front, .gw-intro-light {
	position: absolute;
	inset: 0;
	background: var(--img) center 88% / cover no-repeat;
	opacity: 0;
	will-change: transform, opacity;
}
.gw-intro-front, .gw-intro-light { transform-origin: 50% 100%; }
.gw-intro-light { mix-blend-mode: screen; mix-blend-mode: plus-lighter; }
.gw-intro-shade { position: absolute; inset: 0; background: linear-gradient(0deg, #000 0%, #000 28%, rgba(0, 0, 0, 0) 62%); pointer-events: none; }
.gw-intro-scene::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 22%);
	pointer-events: none;
}
.gw-intro-line {
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(90vw, 760px);
	margin: 0;
	transform: translate(-50%, -50%);
	text-align: center;
	font: italic 400 clamp(1.6rem, 3.6vw, 2.8rem)/1.25 var(--display);
	color: var(--ink);
	text-shadow: 0 2px 24px #000;
	opacity: 0;
	pointer-events: none;
	text-wrap: balance;
}
.gw-intro-line.is-first { opacity: 1; }
.gw-intro-line small { display: block; margin-top: .8rem; font: 600 .7rem/1.4 var(--body); font-style: normal; letter-spacing: .3em; text-transform: uppercase; color: var(--ember); }
.gw-intro-cue {
	position: absolute;
	left: 50%;
	bottom: calc(28px + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	font-size: .66rem;
	letter-spacing: .34em;
	text-transform: uppercase;
	color: var(--mute);
	transition: opacity .4s;
}
.gw-intro-cue i { display: block; width: 1px; height: 42px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: gw-drip 2.2s ease-in-out infinite; }
.gw-intro-skip {
	position: absolute;
	right: max(20px, env(safe-area-inset-right, 0px));
	top: calc(24px + env(safe-area-inset-top, 0px));
	padding: 8px 2px;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: none;
	color: var(--mute);
	font: 600 .66rem/1 var(--body);
	letter-spacing: .26em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .2s, border-color .2s;
}
.gw-intro-skip:hover { color: var(--ink); border-bottom-color: var(--ember); }
@keyframes gw-drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Mientras dura la intro y sobre la portada, el encabezado queda limpio. */
.gw-header { transition: background-color .4s, border-color .4s, opacity .5s, transform .5s; }
html.gw-in-intro .gw-header { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.gw-logo { transition: opacity .4s; }
html.gw-over-hero .gw-logo { opacity: 0; pointer-events: none; }

/* ---------- Portada en tres planos (parallax) ---------- */
.gw-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: min(100vh, 980px);
	min-height: min(100svh, 980px);
	overflow: hidden;
	background: var(--night);
}
.gw-hero-layers { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.gw-layer {
	position: absolute;
	inset: 0;
	background: var(--img) center 45% / cover no-repeat;
	transform: scale(1.16);
	will-change: transform;
}
.gw-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(11, 13, 18, .5) 0%, rgba(11, 13, 18, 0) 22%),
		linear-gradient(0deg, var(--night) 0%, rgba(11, 13, 18, .5) 22%, rgba(11, 13, 18, 0) 50%);
}
.gw-hero .gw-wrap {
	position: relative;
	width: 100%;
	max-width: none;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px 48px;
	padding-block: 140px clamp(40px, 7vh, 72px);
	text-shadow: 0 1px 18px rgba(11, 13, 18, .6);
}
.gw-hero-text { min-width: 0; }
.gw-hero h1 {
	margin: 0 0 .3em;
	font: 500 clamp(2.4rem, 5.4vw, 4.8rem)/.95 var(--display);
	letter-spacing: -.01em;
}
.gw-hero h1 em { font-style: normal; }
.gw-lead { max-width: 32ch; margin: 0; font: italic 400 clamp(1rem, 1.5vw, 1.2rem)/1.45 var(--display); color: #d6d1c7; text-wrap: balance; }
.gw-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.gw-btn {
	display: inline-block;
	padding: .7em 1.15em;
	border: 1px solid rgba(236, 232, 225, .55);
	font-size: .66rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	transition: background-color .25s, color .25s, border-color .25s;
}
.gw-btn--solid { background: var(--ink); border-color: var(--ink); color: var(--night); }
.gw-btn { position: relative; isolation: isolate; overflow: hidden; transition: color .45s ease, border-color .45s ease; }
.gw-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ember); transform: scaleX(0); transform-origin: right; transition: transform .55s cubic-bezier(.6, 0, .2, 1); }
.gw-btn:hover::before, .gw-btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.gw-btn:hover, .gw-btn:focus-visible { border-color: var(--ember); color: var(--night); }
.gw-hero-caption {
	position: absolute;
	right: max(18px, env(safe-area-inset-right, 0px));
	top: 50%;
	margin: 0;
	font-size: .66rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mute);
	writing-mode: vertical-rl;
	transform: translateY(-50%) rotate(180deg);
}

/* ---------- Menú de constelación ---------- */
.gw-constellation {
	position: relative;
	width: min(560px, 100%);
	height: 150px;
	flex: 0 1 560px;
	margin-right: clamp(0px, 3vw, 40px);
}
.gw-constellation svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gw-constellation line {
	stroke: rgba(236, 232, 225, .28);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}
.gw-constellation line.is-lit { stroke: rgba(227, 163, 92, .85); }
.gw-star {
	position: absolute;
	left: var(--x);
	top: var(--y);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 6px;
	border: 0;
	background: none;
	color: var(--ink);
	text-decoration: none;
	transform: translate(-50%, -50%);
	cursor: pointer;
	font: inherit;
}
.gw-star.is-up { flex-direction: column-reverse; }
.gw-star i {
	position: relative;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 6px 2px rgba(255, 255, 255, .55), 0 0 18px 4px rgba(227, 163, 92, .25);
	animation: gw-twinkle 3.2s ease-in-out infinite;
	animation-delay: var(--d, 0s);
	transition: transform .3s;
}
.gw-star span {
	font-size: .6rem;
	font-weight: 600;
	letter-spacing: .24em;
	text-transform: uppercase;
	white-space: nowrap;
	color: rgba(236, 232, 225, .62);
	transition: color .25s;
}
.gw-star:hover i, .gw-star:focus-visible i { transform: scale(1.9); animation: none; box-shadow: 0 0 10px 4px rgba(255, 255, 255, .8), 0 0 28px 8px rgba(227, 163, 92, .55); }
.gw-star:hover span, .gw-star:focus-visible span { color: var(--ember); }
.gw-star:focus-visible { outline: none; }
.gw-star:focus-visible span { text-decoration: underline; text-underline-offset: 4px; }
@keyframes gw-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.75); } }

/* ---------- Lo que fotografío (carrusel) ---------- */
.gw-topics { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--line); background: var(--night); }
.gw-topics-layer {
	position: absolute;
	inset: 0;
	z-index: -2;
	background: var(--img) center / cover no-repeat;
	opacity: 0;
	transform: scale(1.1);
	transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1), transform 1.4s cubic-bezier(.4, 0, .2, 1);
}
.gw-topics-layer.is-on { opacity: 1; transform: scale(1.04); animation: gw-kenburns 9s ease-out forwards; z-index: -2; }
.gw-topics-layer.is-leaving { opacity: 1; z-index: -3; }
@keyframes gw-kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }
.gw-topic-info { transition: opacity .5s ease, transform .5s ease; }
.gw-topic-info.is-swap { opacity: 0; transform: translateY(6px); }
.gw-topics::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(11, 13, 18, .82) 0%, rgba(11, 13, 18, .35) 45%, rgba(11, 13, 18, .05) 100%), linear-gradient(0deg, rgba(11, 13, 18, .6) 0%, rgba(11, 13, 18, 0) 40%);
}
.gw-topics .gw-wrap {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 28px;
	min-height: min(88vh, 860px);
	padding-block: 120px clamp(48px, 8vh, 88px);
}
.gw-topic-list { display: flex; flex-direction: column; gap: 2px; margin: 1rem 0 0; padding: 0; list-style: none; }
.gw-topic-list button {
	position: relative;
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 4px 0 8px;
	border: 0;
	background: none;
	color: rgba(236, 232, 225, .4);
	text-align: left;
	cursor: pointer;
	transition: color .35s;
}
.gw-topic-list button::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 180px;
	height: 1px;
	background: var(--ember);
	transform: scaleX(0);
	transform-origin: left;
}
.gw-topic-list button.is-on { color: var(--ink); }
.gw-topic-list button.is-on .gw-topic-num { color: var(--ember); }
.gw-topic-list button.is-on::after { animation: gw-progress var(--dur, 6s) linear forwards; }
.gw-topics.is-paused .gw-topic-list button.is-on::after { animation-play-state: paused; }
.gw-topic-list button:hover { color: var(--ink); }
.gw-topic-name { font: 500 clamp(2.8rem, 5.6vw, 4.8rem)/1.02 var(--display); letter-spacing: -.01em; }
.gw-topic-list button.is-on .gw-topic-name { font-style: italic; }
.gw-topic-num { font: 500 clamp(1.1rem, 1.8vw, 1.6rem)/1 var(--display); min-width: 2.2ch; letter-spacing: .16em; color: var(--mute); font-variant-numeric: tabular-nums; }
@keyframes gw-progress { to { transform: scaleX(1); } }
.gw-topics-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.gw-topic-info { margin: 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); min-height: 1.4em; }
.gw-topics-ctrl { display: flex; align-items: center; gap: 10px; }
.gw-arrow {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(236, 232, 225, .4);
	border-radius: 50%;
	background: rgba(11, 13, 18, .3);
	color: var(--ink);
	font-size: 1rem;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}
.gw-arrow:hover { background: var(--ember); border-color: var(--ember); color: var(--night); }

/* ---------- Viaje entre secciones ---------- */
.gw-warp { position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: 0; background: #000; transition: opacity .35s ease; }
.gw-warp canvas { width: 100%; height: 100%; display: block; }
.gw-warp.is-on { opacity: 1; }
html.gw-arriving .gw-warp { opacity: 1; transition: none; }
html.gw-reveal [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
html.gw-reveal [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 780px) {
	.gw-hero .gw-wrap { flex-direction: column; align-items: stretch; }
	.gw-constellation { flex-basis: auto; height: 120px; margin: 0; }
	.gw-star span { font-size: .54rem; letter-spacing: .14em; }
	.gw-hero-caption { display: none; }
}

/* ---------- Galería ---------- */
.gw-gallery { padding-block: clamp(80px, 10vh, 120px) 40px; }
.gw-gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 32px; }
.gw-gallery-head p:not(.gw-eyebrow) { max-width: 44ch; margin: 0; color: var(--mute); }
.gw-gallery .gw-wrap { max-width: none; }
.gw-gallery .galfa { --galfa-gap: 6px; }
.gw-gallery .galfa-filter span { font-family: var(--display); font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.gw-gallery .galfa-filter.is-active { border-bottom-color: var(--ember); }
.gw-gallery .galfa-frame { background: var(--night-2); }

/* ---------- Frase ---------- */
.gw-quote { position: relative; isolation: isolate; overflow: hidden; }
.gw-quote-img { position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover no-repeat; }
.gw-quote::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 13, 18, .85), rgba(11, 13, 18, .25) 60%, rgba(11, 13, 18, .5)); }
.gw-quote .gw-wrap { display: flex; flex-direction: column; justify-content: flex-end; min-height: min(70vh, 640px); padding-block: 120px 72px; }
.gw-quote blockquote { max-width: 18ch; margin: 0; font: italic 400 clamp(2rem, 5.2vw, 4.4rem)/1.1 var(--display); text-wrap: balance; }
.gw-quote figcaption { margin-top: 1.4rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #cfc9be; }

/* ---------- Sobre mí ---------- */
.gw-about { padding-block: clamp(80px, 12vh, 150px); }
.gw-about .gw-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.gw-about-photo { position: relative; margin: 0; }
.gw-about-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gw-about-photo figcaption { margin-top: 10px; font-size: .75rem; color: var(--mute); }
.gw-about-text { min-width: 0; }
.gw-about-text .gw-body { max-width: 58ch; margin-top: 1.6rem; color: #cbc6bd; font-size: 1.05rem; }
.gw-about-text .gw-body p { margin: 0 0 1em; }
.gw-sign { margin-top: 1.4rem; font: italic 400 1.6rem/1 var(--display); color: var(--ember); }

/* ---------- Contacto ---------- */
.gw-contact { border-top: 1px solid var(--line); padding-block: clamp(80px, 11vh, 130px); }
.gw-contact .gw-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; }
.gw-contact .gw-h2 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
.gw-contact-links { display: flex; flex-direction: column; gap: 14px; }
.gw-contact-links a, .gw-contact-links span {
	font-size: 1.05rem;
	text-decoration: none;
	border-bottom: 1px solid var(--line);
	padding-bottom: 6px;
	transition: border-color .2s, color .2s;
}
.gw-contact-links a:hover { color: var(--ember); border-bottom-color: var(--ember); }
.gw-contact-links small { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }

/* ---------- Pie ---------- */
.gw-footer { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .78rem; color: var(--mute); }
.gw-footer .gw-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Páginas internas ---------- */
.gw-page { padding-block: 150px 100px; }
.gw-page .gw-wrap { max-width: 860px; }
.gw-page h1 { font: 500 clamp(2.4rem, 6vw, 4.2rem)/1.05 var(--display); margin: 0 0 1.4rem; }
.gw-content { color: #d4cfc6; font-size: 1.05rem; }
.gw-content h2, .gw-content h3 { font-family: var(--display); font-weight: 500; color: var(--ink); }
.gw-page--wide .gw-wrap { max-width: 1320px; }

@media (max-width: 860px) {
	.gw-about .gw-wrap, .gw-contact .gw-wrap { grid-template-columns: 1fr; }
	.gw-about-photo { max-width: 460px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.gw-intro { height: auto; }
	.gw-intro-stage { position: relative; }
	.gw-topics-layer { transition: none; }
	.gw-star i, .gw-intro-cue i { animation: none; }
	html.gw-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Detalles ---------- */
/* Título que aparece letra por letra al llegar a la Tierra */
.gw-ch { display: inline-block; white-space: pre; transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1), filter .9s ease; transition-delay: calc(var(--i) * 38ms + 150ms); }
.gw-hero.is-waiting .gw-ch { opacity: 0; transform: translateY(.45em); filter: blur(6px); }
.gw-hero.is-waiting .gw-lead, .gw-hero.is-waiting .gw-cta { opacity: 0; transform: translateY(16px); }
.gw-lead, .gw-cta { transition: opacity .9s ease .7s, transform .9s ease .7s; }

/* La constelación se dibuja línea por línea */
.gw-constellation line { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke .3s, stroke-dashoffset 1s ease; transition-delay: 0s, calc(var(--k, 0) * .18s + .6s); }
.gw-hero.is-waiting .gw-constellation line { stroke-dashoffset: 1; }
.gw-hero.is-waiting .gw-star { opacity: 0; }
.gw-star { transition: opacity .6s ease; transition-delay: calc(var(--d, 0s) * .4 + .5s); }

/* Destello de luz al pasar sobre una foto de la galería */
.gw-gallery .galfa-frame::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(105deg, transparent 35%, rgba(255, 236, 205, .18) 50%, transparent 65%);
	transform: translateX(-110%);
	transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}
.gw-gallery .galfa-item:hover .galfa-frame::after { transform: translateX(110%); }

/* Cielo estrellado detrás de "Hablemos." */
.gw-contact { position: relative; isolation: isolate; overflow: hidden; }
.gw-contact-sky { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
	.gw-ch, .gw-lead, .gw-cta, .gw-star, .gw-constellation line { transition: none; }
}

/* ---------- Animaciones finas ---------- */
/* Revelado más suave */
html.gw-reveal [data-reveal] { transition: opacity 1.2s cubic-bezier(.2, .7, .2, 1), transform 1.4s cubic-bezier(.2, .7, .2, 1); }
/* Las etiquetas pequeñas llevan una raya dorada que se dibuja */
.gw-eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 12px; vertical-align: middle; background: currentColor; transform-origin: left; transition: transform 1s cubic-bezier(.2, .7, .2, 1) .3s; }
html.gw-reveal [data-reveal]:not(.is-in) .gw-eyebrow::before { transform: scaleX(0); }
/* Foto de "Sobre mí": se descubre de abajo hacia arriba */
html.gw-reveal .gw-about-photo[data-reveal] { transform: none; opacity: 1; }
html.gw-reveal .gw-about-photo[data-reveal] img { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1.4s cubic-bezier(.7, 0, .2, 1), transform 2s cubic-bezier(.2, .7, .2, 1); }
html.gw-reveal .gw-about-photo[data-reveal].is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
/* Fotos de la galería: suben suavemente al aparecer */
html.gw-reveal .gw-gallery .galfa-item { opacity: 0; transform: translateY(46px); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rd, 0s); }
html.gw-reveal .gw-gallery .galfa-item.is-in { opacity: 1; transform: none; }
/* Frase: palabra por palabra */
.gw-word { display: inline-block; transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1), filter .9s ease; transition-delay: calc(var(--w) * 70ms + .2s); }
html.gw-reveal [data-reveal]:not(.is-in) .gw-word { opacity: 0; transform: translateY(.4em); filter: blur(5px); }
/* Visor: la foto entra con un leve acercamiento */
.galfa-lb .galfa-lb-stage { transform: scale(.96); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.galfa-lb.is-open .galfa-lb-stage { transform: none; }

/* ---------- Botón de sonido ---------- */
.gw-sound {
	position: fixed;
	left: max(clamp(20px, 4vw, 72px), env(safe-area-inset-left, 0px));
	bottom: calc(22px + env(safe-area-inset-bottom, 0px));
	z-index: 120;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 2px;
	border: 0;
	background: none;
	color: var(--mute);
	font: 600 .62rem/1 var(--body);
	letter-spacing: .26em;
	text-transform: uppercase;
	cursor: pointer;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .8);
	transition: color .3s;
}
.gw-sound:hover, .gw-sound[aria-pressed="true"] { color: var(--ink); }
.gw-sound-bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.gw-sound-bars i { display: block; width: 2px; height: 3px; background: currentColor; transition: height .3s; }
.gw-sound[aria-pressed="true"] .gw-sound-bars i { animation: gw-eq 1.1s ease-in-out infinite; }
.gw-sound[aria-pressed="true"] .gw-sound-bars i:nth-child(2) { animation-delay: -.3s; }
.gw-sound[aria-pressed="true"] .gw-sound-bars i:nth-child(3) { animation-delay: -.6s; }
.gw-sound[aria-pressed="true"] .gw-sound-bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes gw-eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

@media (prefers-reduced-motion: reduce) {
	html.gw-reveal .gw-gallery .galfa-item, .gw-word { opacity: 1; transform: none; transition: none; }
	html.gw-reveal .gw-about-photo[data-reveal] img { clip-path: none; transform: none; }
	.gw-topics-layer.is-on { animation: none; }
}

/* ---------- Constelación sobre la cresta del Iztaccíhuatl ---------- */
.gw-ridge { position: absolute; inset: 0; pointer-events: none; }
.gw-ridge canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gw-ridge-star {
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--ink);
	text-decoration: none;
	transform: translate(-50%, -11.5px);
	pointer-events: auto;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease, visibility .9s;
	transition-delay: calc(var(--i) * .16s);
}
.gw-hero.is-menu .gw-ridge-star { opacity: 1; visibility: visible; }
.gw-ridge-star i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 6px 2px rgba(255, 255, 255, .7), 0 0 18px 5px rgba(255, 210, 150, .35);
	animation: gw-twinkle 3.2s ease-in-out infinite;
	animation-delay: calc(var(--i) * .5s);
	transition: transform .3s, box-shadow .3s;
}
.gw-ridge-star span {
	font-size: .62rem;
	font-weight: 600;
	letter-spacing: .26em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .6);
	transition: color .25s, transform .3s;
}
.gw-ridge-star:hover i, .gw-ridge-star:focus-visible i, .gw-ridge-star.is-hit i { animation: none; transform: scale(2); box-shadow: 0 0 10px 4px #fff, 0 0 30px 10px rgba(255, 200, 130, .6); }
.gw-ridge-star:hover span, .gw-ridge-star:focus-visible span { color: var(--ember); transform: translateY(2px); }
.gw-ridge-star:focus-visible { outline: none; }
.gw-ridge-star:focus-visible span { text-decoration: underline; text-underline-offset: 5px; }
.gw-hero .gw-wrap { pointer-events: none; }
.gw-hero .gw-wrap a, .gw-hero .gw-wrap button { pointer-events: auto; }
@media (max-width: 780px) {
	.gw-ridge-star span { font-size: .5rem; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) { .gw-ridge-star { transition: none; } }
.gw-layer { pointer-events: none; }

/* Sin nombre a la izquierda en el encabezado: solo el menú */
.gw-logo, .custom-logo-link { display: none !important; }
.gw-header .gw-wrap { justify-content: flex-end; }

.gw-hero-caption { display: none !important; }
