:root {
	--paper: #ffffff;
	--paper-deep: #f4f4f4;
	--ink: #111111;
	--ink-soft: #6a6a6a;
	--line: rgba(0, 0, 0, 0.1);
	--accent: #00c5ff;
	--cta: #00aee6;
	--cta-hover: #008ebc;
	--mockup: #e6e6e6;
	--shadow: rgba(0, 0, 0, 0.08);
	--font-display: "Crimson Text", "Palatino Linotype", Palatino, serif;
	--font-ui: "Baskervville", "Palatino Linotype", Palatino, serif;
	--pad: clamp(1.2rem, 5vw, 4rem);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	overflow-x: hidden;
	max-width: 100%;
}

body {
	font-family: var(--font-ui);
	font-size: 1.08rem;
	line-height: 1.7;
	min-height: 100%;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

html.is-locked,
body.is-locked {
	overflow: hidden;
	overscroll-behavior: none;
}

html.is-locked {
	padding-right: var(--scroll-lock, 0px);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.skip-link {
	position: absolute;
	left: var(--pad);
	top: -4rem;
	background: var(--ink);
	color: var(--paper);
	padding: 0.5rem 0.8rem;
	z-index: 100;
}

.skip-link:focus {
	top: 0.6rem;
}

/* Header: logo protagonista, 3 secciones debajo */
.site-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(2.2rem, 5vw, 3.8rem) var(--pad) 0.2rem;
	text-align: center;
}

.wordmark {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	line-height: 0.88;
	color: var(--ink);
}

.wordmark__name {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.6rem, 8.5vw, 4.8rem);
	letter-spacing: -0.01em;
}

.wordmark__name--italic {
	font-style: italic;
	color: var(--ink);
}

.site-tagline {
	margin: 0.9rem 0 0;
	font-family: var(--font-ui);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(0.98rem, 2.1vw, 1.15rem);
	line-height: 1.35;
	letter-spacing: 0.01em;
	color: var(--ink-soft);
}

.site-nav {
	margin-top: 2.65rem;
	width: 100%;
}

.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: clamp(1.8rem, 8vw, 4.75rem);
}

.site-nav__list a {
	position: relative;
	display: inline-block;
	text-decoration: none;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 3.8vw, 1.875rem);
	letter-spacing: 0.02em;
	font-weight: 400;
	padding: 0.15rem 0 0.4rem;
	color: var(--ink);
}

.site-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1.5px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.site-nav__list a:hover::after,
.site-nav__list a:focus-visible::after,
.site-nav__list .current-menu-item a::after,
.site-nav__list .current_page_item a::after,
.site-nav__list a[aria-current="page"]::after {
	transform: scaleX(1);
}

.site-nav__list .current-menu-item a,
.site-nav__list .current_page_item a,
.site-nav__list a[aria-current="page"] {
	color: var(--accent);
}

.site-main {
	padding: 2.4rem var(--pad) 5.5rem;
	min-height: 50vh;
}

.is-portfolio .site-main {
	padding-top: clamp(5.8rem, 11vw, 8.6rem);
}

.is-about .site-main {
	padding-top: clamp(4.2rem, 8vw, 6.8rem);
}

/* Portfolio mosaic (home) */
.portfolio--mosaic {
	display: block;
	position: relative;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	min-height: 12rem;
}

.portfolio--mosaic:not(.is-ready) .pieza {
	visibility: hidden;
}

.portfolio--mosaic .pieza {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0;
	border-radius: 0;
	overflow: hidden;
}

.portfolio--mosaic .pieza__open {
	position: relative;
	display: block;
	align-items: stretch;
	width: 100%;
	height: 100%;
	border-radius: 0;
	text-align: center;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
}

.portfolio--mosaic .pieza__open img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	transform: none;
	max-width: none;
	max-height: none;
	filter: brightness(var(--cover-brightness, 1));
}

/* Brillo compartido por las portadas y su foto MAIN en la galería. */
img[src*="/eagle-main"] { --cover-brightness: 1.18; }
img[src*="/roboy-main"] { --cover-brightness: 1.15; }
img[src*="/grizzly-main"] { --cover-brightness: 1.25; }
img[src*="/escaparate-monkeys-main"] { --cover-brightness: 1.10; }
img[src*="/octava-maravilla-main"] { --cover-brightness: 1.06; }
img[src*="/more-coffee-main"] { --cover-brightness: 1.13; }
img[src*="/bad-bunny-main"] { --cover-brightness: 1.22; }
img[src*="/cabricornio-main"] { --cover-brightness: 1.06; }
img[src*="/colorful-eye-main"] { --cover-brightness: 1.10; }
img[src*="/reptilian-eye-main"] { --cover-brightness: 1.10; }
img[src*="/paraiso-main"] { --cover-brightness: 1.04; }
img[src*="/poison-rat-main"] { --cover-brightness: 1.04; }
img[src*="/piranha-main"] { --cover-brightness: 1.12; }
img[src*="/body-painting-main"] { --cover-brightness: 1.15; }
img[src*="/mural-music-main"] { --cover-brightness: 1.22; }
img[src*="/mural-metal-gear-main"] { --cover-brightness: 1.04; }
img[src*="/old-worldman-main"] { --cover-brightness: 1.06; }

.pieza__veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.42);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
	border-radius: 0;
}

.portfolio--mosaic .pieza__title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(1.15rem, 2.2vw, 1.7rem);
	color: #fff;
	letter-spacing: 0.02em;
	text-align: center;
	line-height: 1.2;
}

.portfolio--mosaic .pieza__medium {
	display: block;
	margin-top: 0.35rem;
	font-family: var(--font-ui);
	font-size: clamp(0.72rem, 1.35vw, 0.88rem);
	letter-spacing: 0.03em;
	color: rgba(255, 255, 255, 0.82);
	text-align: center;
	line-height: 1.3;
}

@media (hover: hover) and (pointer: fine) {
	.portfolio--mosaic .pieza__open:hover .pieza__veil,
	.portfolio--mosaic .pieza__open:focus-visible .pieza__veil {
		opacity: 1;
	}

	.portfolio--mosaic .pieza__open:hover img,
	.portfolio--mosaic .pieza__open:focus-visible img {
		transform: none;
	}
}

.portfolio--mosaic .pieza__open:focus-visible .pieza__veil {
	opacity: 1;
}

/* Pieza suelta (página individual) */
.portfolio:not(.portfolio--mosaic) {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.6rem 2rem;
	max-width: 1080px;
	margin: 0 auto;
}

.pieza {
	min-width: 0;
}

.pieza__open {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	text-align: center;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.pieza__mockup {
	position: relative;
	aspect-ratio: 1 / 1;
	width: 100%;
	background: transparent;
	overflow: visible;
}

.pieza__stage {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(0.35rem, 1.6vw, 0.85rem);
	min-width: 0;
	min-height: 0;
}

.pieza__shot {
	position: relative;
	display: flex;
	max-width: 100%;
	max-height: 100%;
	line-height: 0;
	overflow: visible;
}

.pieza__shot img,
.split__frame img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 0;
	transform-origin: center center;
	transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.split__frame img {
	width: 100%;
	height: auto;
	max-height: none;
	border-radius: 0;
}

@media (hover: hover) and (pointer: fine) {
	.pieza__open:hover .pieza__shot img,
	.pieza__open:focus-visible .pieza__shot img,
	.split__frame:hover img {
		transform: scale(1.045);
	}
}

.pieza__info {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	gap: 0.2rem;
	margin-top: 0.95rem;
	text-align: center;
}

.pieza__title,
.pieza__meta {
	display: block;
	width: 100%;
	text-align: center;
}

.pieza__title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.15rem;
}

.pieza__meta {
	font-size: 0.78rem;
	color: var(--ink-soft);
	letter-spacing: 0.03em;
}

/* About + Contacto */
.split {
	display: grid;
	gap: 2.4rem;
	max-width: 58rem;
	margin: 1.2rem auto 0;
	align-items: start;
}

.split--about {
	gap: 5.2rem;
	align-items: start;
}

.split--contact {
	justify-items: center;
	text-align: center;
	gap: 4.4rem;
	align-items: center;
}

.split__visual {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	display: grid;
	place-items: center;
	overflow: hidden;
}

.paint-blob {
	position: absolute;
	z-index: 0;
	inset: 6% 0 -8% 8%;
	border-radius: 48% 52% 45% 55%;
	transform: rotate(-8deg);
}

.paint-blob--warm {
	background:
		radial-gradient(circle at 30% 30%, #f3d3b4 0%, #e8b48a 55%, #d99268 100%);
}

.paint-blob--ground {
	inset: auto 16% 2% 16%;
	height: 26%;
	top: auto;
	background: #f0d5c2;
	border-radius: 50%;
	opacity: 0.9;
}

.split__frame,
.split__art {
	position: relative;
	z-index: 1;
	margin: 0;
	width: 100%;
}

.split__frame {
	background: #ececea;
	border-radius: 0;
	padding: 0.5rem;
	overflow: hidden;
}

.split__frame img {
	width: 100%;
	border-radius: 0;
}

.split__art img {
	width: 100%;
	height: auto;
	background: transparent;
	filter: drop-shadow(0 10px 18px rgba(40, 24, 12, 0.1));
}

.split__copy {
	position: relative;
	z-index: 1;
}

.split--contact .split__visual {
	max-width: 22rem;
}

.split--contact .split__art img {
	width: auto;
	max-width: 100%;
	max-height: min(70vh, 560px);
	margin-inline: auto;
	display: block;
}

.split--contact .split__copy {
	max-width: 26rem;
}

.split__kicker {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-soft);
	font-weight: 500;
}

.split__hello {
	font-family: var(--font-display);
	font-weight: 400;
	font-style: italic;
	font-size: clamp(2.8rem, 8vw, 4.6rem);
	line-height: 1;
	margin: 0 0 1.15rem;
}

.split__body {
	font-family: var(--font-ui);
	font-weight: 400;
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	line-height: 1.7;
	max-width: 34rem;
}

.split--contact .split__body {
	margin-left: auto;
	margin-right: auto;
}

.split__body p {
	margin: 0 0 1rem;
}

.split__body p:last-child {
	margin-bottom: 0;
}

.split__body strong {
	font-family: var(--font-display);
	font-weight: 600;
}

.split__body a {
	font-family: var(--font-display);
	font-weight: 600;
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.split__body a:hover,
.split__body a:focus-visible {
	color: var(--cta);
}

.contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.8rem;
	justify-content: center;
}

.split--about .split__copy {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.split--about .split__kicker,
.split--about .split__hello,
.split--about .split__body {
	align-self: stretch;
	text-align: left;
}

.split--about .contact-actions,
.split--about .btn {
	margin-top: 1.8rem;
	align-self: center;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.92rem 1.55rem;
	text-decoration: none;
	font-family: var(--font-display);
	font-size: 1.08rem;
	letter-spacing: 0.02em;
	font-weight: 600;
	border-radius: 12px;
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn--primary {
	background: var(--cta);
	color: #fff;
}

.btn--whatsapp {
	font-size: 1.12rem;
	padding: 1rem 1.7rem;
	justify-content: center;
}

.btn--primary:hover,
.btn--primary:focus-visible,
.btn--whatsapp:hover,
.btn--whatsapp:focus-visible {
	background: var(--cta-hover);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(0, 142, 188, 0.28);
}

.btn--ghost {
	border: 1px solid var(--line);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
	border-color: var(--ink);
}

.contact-hint {
	font-size: 0.9rem;
	color: var(--ink-soft);
}

.site-footer {
	border-top: 1px solid var(--line);
	padding: 1.3rem var(--pad) 1.7rem;
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	text-align: center;
	max-width: 1080px;
	margin: 0 auto;
}

.site-footer__name,
.site-footer__links {
	margin: 0;
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.site-footer__links {
	display: flex;
	gap: 1.2rem;
}

.site-footer__links a {
	text-decoration: none;
}


.site-footer__links a:hover {
	color: var(--ink);
}

.site-footer__credit {
	margin: 0;
	text-align: center;
	font-size: 0.78rem;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--ink-soft);
}

.site-footer__credit a {
	color: inherit;
	text-decoration: none;
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
	color: var(--ink);
	text-decoration: underline;
}

.site-footer__heart {
	color: #c45c5c;
	padding: 0 0.18em;
}

.empty {
	color: var(--ink-soft);
	text-align: center;
}

/* Lightbox: no opacity on image ancestors while open (Chrome GPU tiles).
   Fade the veil on open; fade veil + stage only while closing. */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: grid;
	place-items: center;
	visibility: hidden;
	pointer-events: none;
}

.lightbox.is-open,
.lightbox.is-closing {
	visibility: visible;
	pointer-events: auto;
}

.lightbox[hidden] {
	display: none;
}

.lightbox.is-open[hidden],
.lightbox.is-closing[hidden] {
	display: grid;
}

.lightbox__veil {
	position: absolute;
	inset: 0;
	background: #161310;
	opacity: 0;
	transition: opacity 0.28s ease;
}

.lightbox.is-open .lightbox__veil {
	opacity: 1;
}

.lightbox.is-closing .lightbox__veil {
	opacity: 0;
}

.lightbox__stage {
	position: relative;
	z-index: 1;
	width: min(100%, 92vw);
	height: min(100%, 100dvh);
	display: grid;
	grid-template-rows: 1fr auto;
	padding: 3.4rem 0.4rem 1rem;
	opacity: 1;
}

.lightbox.is-closing .lightbox__stage {
	opacity: 0;
	transition: opacity 0.28s ease;
}

.lightbox__figure {
	margin: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.9rem;
}

.lightbox__image {
	max-width: min(100%, 1100px);
	max-height: calc(100dvh - 11rem);
	width: auto;
	height: auto;
	object-fit: contain;
	transform: none;
	filter: brightness(var(--cover-brightness, 1));
	image-rendering: auto;
}

.lightbox__caption {
	text-align: center;
	color: #ece7dd;
}

.lightbox__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.15rem;
}

.lightbox__meta,
.lightbox__count {
	margin: 0.15rem 0 0;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	color: rgba(236, 231, 221, 0.62);
}

.lightbox__close,
.lightbox__nav {
	position: absolute;
	color: #ece7dd;
	z-index: 2;
}

.lightbox__close {
	top: 0.7rem;
	right: 0.7rem;
	width: 2.6rem;
	height: 2.6rem;
	font-size: 1.8rem;
	line-height: 1;
}

.lightbox__nav {
	top: 42%;
	width: 2.6rem;
	height: 2.6rem;
	font-size: 2rem;
	line-height: 1;
	opacity: 0.75;
}

.lightbox__nav:hover,
.lightbox__close:hover {
	opacity: 1;
	color: #fff;
}

.lightbox__nav--prev { left: 0.1rem; }
.lightbox__nav--next { right: 0.1rem; }

.lightbox__thumbs {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	overflow-x: auto;
	padding: 0.6rem 0.4rem 0.2rem;
	scrollbar-width: none;
}

.lightbox__thumbs::-webkit-scrollbar {
	display: none;
}

.lightbox__thumb {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid transparent;
	opacity: 0.45;
}

.lightbox__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(var(--cover-brightness, 1));
}

.lightbox__thumb.is-active {
	opacity: 1;
	border-color: #ece7dd;
}

.lightbox.is-single .lightbox__nav,
.lightbox.is-single .lightbox__thumbs,
.lightbox.is-single .lightbox__count {
	display: none;
}

@media (min-width: 760px) {
	.portfolio:not(.portfolio--mosaic) {
		grid-template-columns: 1fr 1fr;
		gap: 3.2rem 2.6rem;
		align-items: start;
	}

	.split {
		grid-template-columns: 1fr 1fr;
		gap: 3.6rem 3rem;
		max-width: 64rem;
		padding-top: 1.5rem;
	}

	.split--contact {
		text-align: left;
		gap: 6.5rem;
	}

	.split--about {
		gap: 8.2rem;
		align-items: start;
	}

	.split--contact .split__copy {
		justify-self: start;
	}

	.split--contact .contact-actions {
		justify-content: flex-start;
	}

	.split--contact .split__body {
		margin-left: 0;
	}

	.lightbox__stage {
		padding: 2.5rem 4rem 1.2rem;
	}

	.lightbox__nav--prev { left: 0.8rem; }
	.lightbox__nav--next { right: 0.8rem; }
}

@media (min-width: 1100px) {
	.portfolio:not(.portfolio--mosaic) {
		gap: 3.8rem 3.2rem;
	}
}

/* Aparición al entrar en pantalla; las fotos se funden sin cambiar de escala. */
.scroll-reveal {
	transition: opacity 0.85s var(--ease), translate 0.85s var(--ease);
	transition-delay: var(--reveal-delay, 0ms);
}

.scroll-reveal-pending {
	opacity: 0;
}

.scroll-reveal-pending:not(.pieza):not(.split__visual) {
	translate: 0 16px;
}

.scroll-reveal:focus-within {
	opacity: 1;
	translate: none;
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.scroll-reveal {
		opacity: 1;
		translate: none;
		transition: none;
	}

	.pieza__shot img,
	.split__frame img,
	.pieza__veil,
	.lightbox,
	.lightbox__stage,
	.site-nav__list a::after,
	.btn {
		transition: none;
	}

	.pieza__open:hover .pieza__shot img,
	.pieza__open:focus-visible .pieza__shot img,
	.split__frame:hover img {
		transform: none;
	}

	.btn--whatsapp:hover,
	.btn--whatsapp:focus-visible {
		transform: none;
	}
}

@media (max-width: 759px) {
	.site-header {
		padding-top: 1.6rem;
	}

	.site-nav {
		margin-top: 1.85rem;
	}

	.site-nav__list {
		gap: 1.4rem 1.8rem;
	}

	.split--contact {
		gap: 1.6rem;
	}

	.split--contact .split__visual {
		max-width: min(16.5rem, 62vw);
	}

	.split--contact .split__art img {
		width: auto;
		max-width: 100%;
		max-height: min(38vh, 260px);
		margin-inline: auto;
	}

	.split--about {
		gap: 3.2rem;
	}

	.lightbox__nav {
		top: auto;
		bottom: 5.6rem;
	}
}

@media (max-width: 480px) {
	.wordmark__name {
		font-size: clamp(2.15rem, 13vw, 2.9rem);
	}

	.site-nav__list {
		gap: 0.85rem 1.35rem;
	}

	.site-nav__list a {
		font-size: 1.2rem;
	}

	.btn--whatsapp {
		width: 100%;
	}
}
