:root {
  --paper: #f8f2e9;
  --paper-2: #f1e7d8;
  --ink: #17140f;
  --ink-2: #26211a;
  --muted: #6e6556;
  --gold: #a87b33;
  --gold-2: #d6b066;
  --line: rgba(23, 20, 15, .13);
  --wide: 1140px;
  --serif: "Marcellus", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --header: 122px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { width: min(var(--wide), calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 820px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--paper); }

/* Cabecera */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: box-shadow .3s;
}
.site-header.is-solid { box-shadow: 0 10px 30px rgba(23, 20, 15, .08); }
.topbar { background: var(--ink); color: #cfc4b2; font-size: 12.5px; letter-spacing: .08em; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; height: 36px; }
.topbar a { color: var(--gold-2); transition: color .2s; }
.topbar a:hover { color: var(--paper); }
.topbar-tag { text-transform: uppercase; letter-spacing: .3em; font-size: 11px; }
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 36px 0 0;
  z-index: -1;
  background: rgba(248, 242, 233, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 68px; width: auto; }
.nav { display: flex; gap: 34px; }
.nav a {
  position: relative;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s;
}
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header) + 40px) 0 90px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 45%, rgba(214, 176, 102, .18), transparent 42%),
    var(--paper);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(64px, 8vw, 108px); line-height: .92; margin-bottom: 26px; letter-spacing: .02em; }
.hero h1 em { display: block; margin-top: 12px; font-style: normal; font-size: .46em; letter-spacing: .04em; color: var(--gold); }
.hero-tag {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  font-size: 14px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-tag::before { content: ""; width: 54px; height: 1px; background: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; aspect-ratio: 1; width: min(100%, 500px); justify-self: center; }
.hero-frame, .hero-frame::before {
  position: absolute;
  inset: 4%;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.hero-frame::before { content: ""; inset: 14px; border-color: rgba(168, 123, 51, .45); transform: none; }
.hero-diamond {
  position: absolute;
  inset: 17%;
  overflow: hidden;
  transform: rotate(45deg);
  box-shadow: 0 30px 60px rgba(23, 20, 15, .18);
}
.hero-diamond img {
  position: absolute;
  inset: -30%;
  width: 160%;
  height: 160%;
  max-width: none;
  object-fit: cover;
  transform: rotate(-45deg);
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: 14px;
  height: 14px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 50% { transform: translate(-50%, 8px) rotate(45deg); } }

/* Quiénes somos */
.about { background: var(--ink); color: #e9dfcd; padding: 120px 0; position: relative; overflow: hidden; }
.about::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -260px;
  top: -200px;
  border: 1px solid rgba(214, 176, 102, .25);
  box-shadow: inset 0 0 0 40px var(--ink), inset 0 0 0 41px rgba(214, 176, 102, .18);
  transform: rotate(45deg);
}
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; align-items: center; position: relative; }
.about .eyebrow { color: var(--gold-2); }
.about h2 { font-size: clamp(40px, 5vw, 60px); color: var(--paper); }
.about-copy p:not(.eyebrow) { font-family: var(--serif); font-size: clamp(20px, 2.1vw, 25px); line-height: 1.6; color: #e9dfcd; }
.about-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 250px 250px; gap: 16px; }
.about-mosaic img { width: 100%; height: 100%; object-fit: cover; border: 1px solid rgba(214, 176, 102, .35); }
.about-mosaic img:first-child { grid-row: span 2; }

/* Artistas */
.artists { background: var(--paper-2); padding: 120px 0; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: clamp(40px, 5vw, 60px); }
.artist-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.artist-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 26px 12px 14px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .25s, background .25s;
}
.artist-tab:hover { border-color: var(--gold); }
.artist-tab.is-active { background: var(--paper); border-color: var(--gold); box-shadow: 0 12px 30px rgba(23, 20, 15, .08); }
.tab-face {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--ink);
  color: var(--gold-2);
  font-family: var(--serif);
}
.tab-face img { width: 100%; height: 100%; object-fit: cover; }
.tab-name { font-family: var(--serif); font-size: 19px; }

.artist-panel { animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
.artist-intro {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 70px;
}
.artist-portrait { position: relative; aspect-ratio: 1; }
.artist-portrait::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--gold);
}
.artist-portrait img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.artist-text h3 { font-size: clamp(36px, 4.4vw, 52px); }
.artist-origin { font-size: 18px; color: var(--muted); }
.artist-bio { margin-top: 18px; color: var(--ink-2); }
.artist-count { margin-top: 18px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

.works-title {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 28px;
  margin-bottom: 30px;
}
.works-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform .35s, box-shadow .35s;
}
.work:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(23, 20, 15, .12); }
.work-image {
  display: block;
  padding: 0;
  border: 0;
  background: var(--ink);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: zoom-in;
}
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.work:hover .work-image img { transform: scale(1.05); }
.work-details { display: flex; gap: 8px; padding: 12px 22px 0; }
.work-details button { width: 56px; height: 56px; padding: 0; border: 1px solid var(--line); background: none; cursor: zoom-in; overflow: hidden; }
.work-details img { width: 100%; height: 100%; object-fit: cover; }
.work-sheet { padding: 20px 22px 24px; flex: 1; }
.sheet-label { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.work-sheet h5 { font-size: 21px; line-height: 1.25; margin-bottom: 14px; }
.work-sheet dl { margin: 0; }
.work-sheet dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.work-sheet dt { color: var(--muted); }
.work-sheet dd { margin: 0; text-align: right; }
.empty { text-align: center; color: var(--muted); }

/* Contacto */
.contact { padding: 120px 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.contact h2 { font-size: clamp(40px, 5vw, 60px); }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.contact-list { list-style: none; padding: 0; margin: 34px 0 0; }
.contact-list li { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list span { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.contact-list a { font-family: var(--serif); font-size: 22px; }
.contact-list a:hover { color: var(--gold); }
.contact-form {
  position: relative;
  padding: 44px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.contact-form::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 44px;
  width: 20px;
  height: 20px;
  background: var(--paper);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label span { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 13px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--gold); }
.contact-form input[type="submit"], .contact-form button[type="submit"] {
  justify-self: start;
  min-height: 50px;
  padding: 0 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 500 13px var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
}
.contact-form input[type="submit"]:hover, .contact-form button[type="submit"]:hover { background: var(--gold); border-color: var(--gold); }
.hp { position: absolute; left: -9999px; }
.form-notice { padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--paper); }
.form-notice.is-error { border-color: #a33a2a; }

/* Páginas internas */
.page-main { padding: calc(var(--header) + 70px) 0 100px; min-height: 70vh; }
.entry h1 { font-size: clamp(38px, 5vw, 56px); }

/* Pie */
.site-footer { background: var(--ink); color: #b9ae9b; font-size: 14px; }
.footer-main { display: flex; align-items: center; gap: 26px; padding: 34px 0; }
.footer-mark { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .4)); border-radius: 2px; }
.footer-copy { flex: 1; margin: 0; }
.footer-copy a, .footer-side a { color: var(--gold-2); }
.footer-copy a:hover, .footer-side a:hover { color: var(--paper); }
.footer-side { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.visits { margin: 0; letter-spacing: .08em; }
.visits strong { margin-left: 6px; font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--paper); }

/* Visor */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 13, 10, .95);
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 86vw; max-height: 80vh; margin: 0 auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox figcaption { margin-top: 16px; font-family: var(--serif); font-size: 20px; color: var(--paper); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--paper); font-size: 46px; line-height: 1; cursor: pointer; padding: 14px; opacity: .75; }
.lightbox button:hover { opacity: 1; color: var(--gold-2); }
.lb-close { top: 14px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Aparición */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  :root { --header: 110px; }
  .header-main { height: 74px; }
  .brand img { height: 48px; }
  .nav-toggle {
    display: grid;
    gap: 5px;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span:not(.screen-reader-text) { width: 26px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero { min-height: auto; }
  .hero-copy { text-align: center; }
  .hero-tag { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-art { width: min(74%, 420px); }
  .about, .artists, .contact { padding: 90px 0; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { flex-direction: column; text-align: center; gap: 14px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-tag { display: none; }
  .artist-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 8px; margin-inline: -20px; padding-inline: 20px; }
  .artist-tab { flex: 0 0 auto; }
  .artist-intro { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .artist-portrait { width: 220px; margin: 0 auto; }
  .works-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 30px 22px; }
  .about-mosaic { grid-template-rows: 180px 180px; }
  .footer-side { flex-direction: column; gap: 8px; }
}
