:root {
  --bg: #f6f2ea;
  --bg-alt: #f2ede3;
  --ink: #2b2723;
  --ink-soft: #6f6860;
  --accent: #a87d3f;
  --line: #8a6a44;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(20px, 4.3vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Etiquetas en versalitas espaciadas */
.eyebrow {
  font-family: var(--sans);
  font-size: clamp(10px, 0.78vw, 12px);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.link-line {
  display: inline-block;
  font-size: clamp(10px, 0.78vw, 12px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--line);
  transition: opacity .3s;
}
.link-line:hover { opacity: .6; }

/* ---------- HERO ---------- */
.hero { position: relative; }
.hero__work { margin: 0; }
.hero__work img {
  display: block;
  width: 100%;
  height: clamp(380px, 50vw, 760px);
  object-fit: cover;
  object-position: center 62%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 34%);
}

.header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: clamp(14px, 1.8vw, 28px) var(--gutter) 0;
}
.brand__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.3vw, 50px);
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand__tag {
  margin-top: clamp(10px, 1.2vw, 18px);
  color: var(--ink-soft);
  letter-spacing: 0.22em;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 36px);
  padding-top: clamp(8px, 1.3vw, 20px);
}
.nav a { font-size: clamp(9px, 0.72vw, 11px); }
.nav a:hover { color: var(--accent); }
.nav .ig { margin-left: clamp(4px, 1vw, 16px); display: flex; }
.nav .ig svg { width: 15px; height: 15px; }


/* ---------- OBRAS ---------- */
.works {
  padding: clamp(48px, 5.4vw, 84px) 0 clamp(36px, 3.6vw, 56px);
}
.works__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 var(--gutter);
  margin-bottom: clamp(20px, 2.4vw, 36px);
}
.works__head h2 { font-size: clamp(11px, 0.95vw, 14px); letter-spacing: 0.2em; }
.works__head a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-soft);
}
.works__head a:hover { color: var(--ink); }

.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 1.6vw) / 4);
  gap: 1.6vw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 var(--gutter);
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.work { scroll-snap-align: start; }
.work__frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-alt);
}
.work__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1);
}
.work:hover .work__frame img { transform: scale(1.035); }
.work__meta {
  margin-top: clamp(14px, 1.6vw, 22px);
  font-size: clamp(11px, 0.92vw, 13.5px);
  line-height: 1.55;
  color: var(--ink-soft);
}
.work__meta strong { font-weight: 400; color: var(--ink); display: block; }
.sold {
  display: block;
  margin-bottom: 2px;
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.works__arrows {
  display: flex;
  justify-content: space-between;
  padding: 0 calc((var(--gutter) - 38px) / 2);
  margin-top: -46px;
  pointer-events: none;
}
.arrow {
  pointer-events: auto;
  background: none; border: 0; cursor: pointer;
  color: var(--ink); padding: 6px;
  transition: opacity .3s;
}
.arrow:disabled { opacity: .25; cursor: default; }
.arrow svg { width: 26px; height: 12px; display: block; }
/* las flechas viven en el margen, por eso las captions se corren */
.track .work__meta { padding-left: 0; }

/* ---------- SOBRE ---------- */
.about {
  display: grid;
  grid-template-columns: 41.6% 1fr;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
  margin-top: clamp(24px, 2.4vw, 40px);
}
/* la foto del taller se recorta solo arriba (techo); el lienzo del piso queda entero */
.about__img { aspect-ratio: 1 / 1; overflow: hidden; }
.about__img img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.about__copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(40px, 5vw, 80px) 0 clamp(40px, 5vw, 80px) clamp(32px, 9.7vw, 150px);
  max-width: 72%;
}
.about__copy .eyebrow { color: var(--ink-soft); }
.about p {
  margin-top: clamp(14px, 1.5vw, 22px);
  font-size: clamp(12.5px, 1vw, 15px);
  line-height: 1.75;
  max-width: 32em;
}
.about h2 {
  margin-top: clamp(14px, 1.8vw, 26px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 2.85vw, 44px);
  line-height: 1.2;
}
.about h2 em { font-style: italic; }
.about .rule {
  display: block;
  width: clamp(44px, 4.3vw, 64px);
  height: 1.5px;
  margin-top: clamp(22px, 2.6vw, 38px);
  background: #c9a66b;
}
.about .rule + p { margin-top: clamp(22px, 2.6vw, 38px); line-height: 1.9; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: clamp(26px, 3vw, 44px);
  padding-bottom: 12px;
  border-bottom: 1px solid #c9a66b;
  font-size: clamp(10px, 0.78vw, 12px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: opacity .3s;
}
.link-arrow svg { width: 18px; height: 10px; flex: none; }
.link-arrow:hover { opacity: .6; }

.about__wash {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 17%;
  background: url("img/obra-grafito.jpg") 78% center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.9) 70%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.9) 70%);
  mix-blend-mode: multiply;
}

/* ---------- CONTACTO ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(36px, 3.4vw, 52px) clamp(20px, 8.9vw, 136px);
}
.contact__intro .eyebrow { letter-spacing: 0.2em; }
.contact__intro p {
  margin-top: clamp(14px, 1.6vw, 22px);
  color: var(--ink-soft);
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.65;
}
.btn {
  display: inline-block;
  margin-top: clamp(22px, 2.6vw, 36px);
  padding: 0.95em 1.9em;
  border: 1px solid var(--ink);
  font-size: clamp(10px, 0.78vw, 12px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.contact__thumb {
  width: clamp(120px, 12.8vw, 200px);
  aspect-ratio: 131 / 135;
  object-fit: cover;
}
.contact__info { display: grid; gap: clamp(12px, 1.3vw, 18px); font-size: clamp(11.5px, 0.92vw, 13.5px); line-height: 1.6; }
.contact__info dt { color: var(--ink-soft); }
.contact__info dt.first { color: var(--accent); font-weight: 400; }
.contact__info dd a:hover { color: var(--accent); }
.wa-float {
  position: fixed;
  right: clamp(14px, 1.6vw, 26px);
  bottom: clamp(14px, 1.6vw, 26px);
  z-index: 40;
  display: grid; place-items: center;
  width: clamp(38px, 2.9vw, 44px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #8a8f4e;
  color: #fff;
  box-shadow: 0 2px 8px rgba(43, 39, 35, .18);
  transition: background .3s;
}
.wa-float svg { width: 54%; height: auto; }
.wa-float:hover { background: #6f7440; }

footer {
  padding: 22px var(--gutter);
  border-top: 1px solid rgba(43,39,35,.08);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav a:not(.ig) { display: none; }
  .track { grid-auto-columns: 62%; gap: 16px; }
  .works__arrows { display: none; }
  .about { grid-template-columns: 1fr; }
  .about__copy { max-width: none; padding: 48px var(--gutter); }
  .about__wash { display: none; }
  .contact { grid-template-columns: 1fr; padding: 48px var(--gutter); gap: 32px; }
  .contact__thumb { width: 160px; }
}
@media (max-width: 520px) {
  .works__head { flex-direction: column; gap: 10px; }
  .track { grid-auto-columns: 80%; }
}

/* ---------- PÁGINA DE OBRAS ---------- */
.nav a[aria-current="page"] { color: var(--accent); }
.page-head { padding: clamp(20px, 2.4vw, 36px) var(--gutter) clamp(20px, 2.2vw, 34px); }
.page-head .eyebrow { color: var(--accent); }
.page-head h1 {
  margin-top: clamp(10px, 1.2vw, 18px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 3.9vw, 60px);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.page-head h1 em { font-style: italic; }
.page-head p {
  margin-top: clamp(12px, 1.4vw, 20px);
  font-size: clamp(13px, 1.08vw, 16px);
  line-height: 1.7;
  max-width: 28em;
}
.page-head .eyebrow + h1 + p { margin-top: clamp(12px, 1.4vw, 20px); }
.page-head .link-line { margin-top: clamp(16px, 1.8vw, 26px); }

.gallery {
  columns: 4;
  column-gap: 1.6vw;
  padding: 0 var(--gutter) clamp(40px, 4vw, 64px);
}
.gallery__item { break-inside: avoid; margin-bottom: clamp(28px, 3vw, 48px); }
.gallery__item button {
  display: block; width: 100%;
  background: none; border: 0; padding: 0;
  cursor: zoom-in;
}
.gallery__item img { width: 100%; height: auto; background: var(--bg-alt); transition: opacity .3s; }
.gallery__item button:hover img { opacity: .88; }
.gallery__item .work__meta { margin-top: clamp(12px, 1.3vw, 18px); }

.page-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(28px, 3vw, 44px) var(--gutter);
  border-top: 1px solid rgba(43,39,35,.08);
}
.page-cta p { color: var(--ink-soft); font-size: clamp(12px, 0.95vw, 14px); line-height: 1.65; }
.page-cta .btn { margin-top: 0; }
.page-cta__action { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(16px, 2vw, 32px); }
.page-cta__phone { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: clamp(12px, 0.95vw, 14px); letter-spacing: 0.06em; transition: color .3s; }
.page-cta__phone:hover { color: var(--accent); }

.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: none; align-items: center; justify-content: center;
  padding: 6vh 8vw;
  background: var(--bg);
}
.lightbox.open { display: flex; }
.lightbox figure { display: grid; gap: 14px; justify-items: center; max-width: 100%; }
.lightbox img { max-width: 100%; max-height: 80vh; width: auto; height: auto; }
.lightbox figcaption { font-size: clamp(11px, 0.92vw, 13.5px); color: var(--ink-soft); text-align: center; line-height: 1.55; }
.lightbox__btn {
  position: absolute; background: none; border: 0; cursor: pointer;
  color: var(--ink); padding: 14px; transition: opacity .3s;
}
.lightbox__btn:hover { opacity: .55; }
.lightbox__btn svg { display: block; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 1.5vw; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.5vw; top: 50%; transform: translateY(-50%); }

@media (max-width: 1100px) { .gallery { columns: 3; column-gap: 20px; } }
@media (max-width: 700px) {
  .gallery { columns: 2; column-gap: 14px; }
  .lightbox { padding: 8vh 5vw; }
  .lightbox__prev { left: 0; }
  .lightbox__next { right: 0; }
}

/* ---------- PÁGINA DE BIOGRAFÍA ---------- */
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.55;
}
.bio {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 104px);
  align-items: start;
  padding: clamp(32px, 4vw, 64px) var(--gutter) clamp(48px, 5vw, 88px);
}
.bio__photo { position: sticky; top: 32px; }
.bio__photo img { width: 100%; height: auto; }
.bio__copy { max-width: 38em; padding-top: clamp(8px, 2vw, 32px); }
.bio__copy .eyebrow { color: var(--accent); }
.bio__statement { margin-top: clamp(48px, 5vw, 80px); }
.bio__statement .eyebrow { color: var(--accent); }
.bio .quote { margin-top: clamp(18px, 2vw, 28px); }
.bio .quote p + p { margin-top: 1em; }
.bio__text {
  margin-top: clamp(18px, 2vw, 28px);
  font-size: clamp(13px, 1.08vw, 16px);
  line-height: 1.9;
}

@media (max-width: 900px) {
  .bio { grid-template-columns: 1fr; }
  .bio__photo { position: static; }
}
