/* ============================================================
   Aurora Barney Durán — Obra
   "Galería oscura": muro de sala, obras completas que resaltan,
   tipografía serif, acento dorado.
   ============================================================ */

:root {
  --bg: #141210;           /* muro carbón, cálido */
  --bg-2: #1b1815;         /* paneles / secciones alternas */
  --wall: #0e0c0a;         /* muro más profundo tras la obra */
  --ink: #ece4d5;          /* crema cálido (texto) */
  --ink-dim: #c3b9a7;
  --muted: #8b8271;
  --line: #2c2823;
  --line-soft: #232019;
  --accent: #c8a25c;       /* dorado / ocre */
  --accent-2: #d9b978;
  --terracotta: #c06a3d;
  --shadow-art: 0 28px 60px -18px rgba(0,0,0,0.75);
  --maxw: 1240px;
  --serif: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1.4rem;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); opacity: .6; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 18, 16, 0.72);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); letter-spacing: 0; }
.brand b { font-weight: 500; color: var(--accent-2); }
.nav { display: flex; gap: 34px; }
.nav a { color: var(--ink-dim); font-size: 0.82rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; }
.nav a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(5rem, 16vh, 11rem) 0 clamp(4rem, 10vh, 7rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 82% 10%, rgba(200,110,60,0.16), transparent 55%),
    radial-gradient(90% 80% at 8% 100%, rgba(107,90,134,0.18), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(3rem, 9vw, 7rem); margin: 0 0 1.6rem; font-weight: 400; }
.hero h1 .line2 { display: block; font-style: italic; color: var(--accent-2); }
.hero .lead { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.9rem); color: var(--ink-dim); max-width: 40ch; margin: 0 0 2.6rem; font-style: italic; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0.9rem 1.8rem; border-radius: 2px;
  font-family: var(--sans); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em;
  border: 1px solid var(--accent); color: var(--accent); background: transparent; cursor: pointer;
  transition: all 0.25s ease;
}
.btn:hover { background: var(--accent); color: var(--bg); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 11vh, 8rem) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section h2 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); margin: 0 0 1.6rem; }
.section .intro { max-width: 58ch; color: var(--ink-dim); font-size: 1.12rem; }

/* ---------- Biografía ---------- */
.bio-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.bio-photo { position: relative; }
.bio-photo::after { content: ""; position: absolute; inset: -14px -14px auto auto; width: 60%; height: 60%; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); opacity: .5; }
.bio-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--wall); filter: grayscale(0.15) contrast(1.02); box-shadow: var(--shadow-art); }
.bio-photo figcaption { margin-top: 1rem; font-size: 0.82rem; color: var(--muted); font-style: italic; letter-spacing: .02em; }
.bio-text p { margin: 0 0 1.35rem; color: var(--ink-dim); }
.bio-text p:first-of-type { font-size: 1.22rem; color: var(--ink); font-family: var(--serif); line-height: 1.5; }

/* ---------- Obra / Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); counter-reset: art; margin-top: 3rem; }
.artwork {
  position: relative; cursor: pointer; background: transparent;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease;
}
.artwork:hover { transform: translateY(-6px); }
/* muro tras la obra */
.artwork .frame {
  position: relative;
  background:
    radial-gradient(120% 100% at 50% 0%, #1a1713, var(--wall) 80%);
  border: 1px solid var(--line);
  min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  overflow: hidden;
}
/* obra COMPLETA (nunca recortada) con sombra de cuadro colgado */
.artwork .frame img {
  max-width: 100%; max-height: 340px; width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 22px 45px -12px rgba(0,0,0,0.8);
  transition: transform 0.5s ease;
}
.artwork:hover .frame img { transform: scale(1.03); }
/* número de pieza */
.artwork .frame::before {
  counter-increment: art; content: counter(art, decimal-leading-zero);
  position: absolute; top: 16px; left: 18px;
  font-family: var(--serif); font-size: 0.95rem; color: var(--accent); opacity: .8; letter-spacing: .05em;
}
.artwork .meta { padding: 1.4rem 0.3rem 0; }
.artwork .meta .tech { font-size: 0.72rem; color: var(--accent); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.artwork .meta h3 { font-size: 1.6rem; margin: 0.35rem 0 0; color: var(--ink); }
.artwork .meta p { margin: 0.7rem 0 0; font-size: 0.95rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Statement / Contexto ---------- */
.statement { text-align: center; }
.statement blockquote {
  font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 3rem); font-style: italic;
  line-height: 1.3; max-width: 20ch; margin: 0 auto; color: var(--ink);
}
.statement blockquote::before, .statement blockquote::after { content: "“"; color: var(--accent); opacity: .5; }
.statement blockquote::after { content: "”"; }
.statement .body { max-width: 60ch; margin: 2.4rem auto 0; color: var(--ink-dim); font-size: 1.12rem; }

/* ---------- Contacto / Footer ---------- */
.contact { text-align: center; }
.contact .links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.contact .links a { border: 1px solid var(--line); padding: 0.8rem 1.6rem; border-radius: 2px; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--ink-dim); }
.contact .links a:hover { border-color: var(--accent); color: var(--accent); }
.site-footer { border-top: 1px solid var(--line-soft); padding: 2.6rem 0; color: var(--muted); font-size: 0.82rem; background: var(--wall); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 7, 6, 0.96); display: none; align-items: center; justify-content: center; padding: 3vh 3vw; }
.lightbox.open { display: flex; }
.lightbox .lb-inner { display: grid; grid-template-columns: 1.45fr 1fr; gap: 3rem; max-width: 1200px; width: 100%; max-height: 94vh; align-items: center; }
.lightbox .lb-img { display: flex; align-items: center; justify-content: center; }
.lightbox .lb-img img { max-height: 90vh; max-width: 100%; width: auto; object-fit: contain; box-shadow: 0 36px 90px rgba(0,0,0,0.8); }
.lightbox .lb-info { color: var(--ink); align-self: center; }
.lightbox .lb-info .tech { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; }
.lightbox .lb-info h3 { font-size: clamp(1.9rem, 4.5vw, 3rem); color: #fff; margin: 0.5rem 0 0.3rem; font-weight: 400; }
.lightbox .lb-info .sub { color: var(--muted); font-style: italic; margin-bottom: 1.4rem; }
.lightbox .lb-info p { color: var(--ink-dim); line-height: 1.8; }
.lightbox .lb-close { position: absolute; top: 22px; right: 30px; background: none; border: 0; color: var(--ink); font-size: 2.4rem; cursor: pointer; line-height: 1; opacity: 0.7; }
.lightbox .lb-close:hover { opacity: 1; color: var(--accent); }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: 1px solid var(--line); color: var(--ink); width: 54px; height: 54px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.lightbox .lb-nav:hover { border-color: var(--accent); color: var(--accent); }
.lightbox .lb-prev { left: 26px; }
.lightbox .lb-next { right: 26px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { position: fixed; inset: 74px 0 auto 0; flex-direction: column; background: var(--bg-2); padding: 1.6rem 26px; gap: 20px; border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: transform 0.3s ease; }
  .nav.open { transform: none; }
  .nav-toggle { display: block; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo { max-width: 360px; }
  .lightbox .lb-inner { grid-template-columns: 1fr; overflow-y: auto; gap: 1.6rem; }
  .lightbox .lb-img img { max-height: 60vh; }
  .lightbox .lb-nav { top: auto; bottom: 18px; transform: none; }
  .lightbox .lb-prev { left: 32%; }
  .lightbox .lb-next { right: 32%; }
}
