/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #F7F3ED;
  --cream-mid:#EFE9E0;
  --ink:      #1C1916;
  --ink-mid:  #4A3F35;
  --ink-soft: #7A6E63;
  --ink-muted:#9B8E82;
  --border:   rgba(74, 63, 53, 0.18);
  --border-mid:rgba(74, 63, 53, 0.30);
  --blue:     #065FA3;
  --pink:     #E8A0B0;
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'DM Sans', system-ui, sans-serif;
  --nav-h:    64px;
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Typography helpers ──────────────────────────────────── */
.section-label {
  display: block;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--ink-mid);
  border: 0.5px solid var(--border-mid);
  padding: 12px 32px;
  border-radius: 2px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--cream); }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: transparent;
  z-index: 100;
  transition: background 0.4s var(--ease);
  mix-blend-mode: normal;
}
.nav.scrolled { background: var(--cream); border-bottom: 0.5px solid var(--border); }
.nav.menu-open { background: transparent; border-bottom: none; }

.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
  height: 28px;
  width: auto;
  filter: invert(1) brightness(10);
  transition: filter 0.3s var(--ease);
}
.nav.scrolled .nav-logo-img { filter: none; }
.nav.menu-open .nav-logo-img { filter: invert(1) brightness(10); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-btn {
  background: none;
  border: 0.5px solid rgba(247,243,237,0.5);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 10px;
  letter-spacing: .10em;
  color: rgba(247,243,237,0.7);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.3s;
  font-family: var(--sans);
}
.nav.scrolled .lang-btn {
  border-color: var(--border-mid);
  color: var(--ink-muted);
}
.nav.scrolled .lang-btn:hover { background: var(--ink); color: var(--cream); }
.lang-btn:hover { background: rgba(247,243,237,0.2); }

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: rgba(247,243,237,0.85);
  transition: transform 0.25s var(--ease), opacity 0.25s, background 0.3s;
}
.nav.scrolled .menu-btn span { background: var(--ink); }
.menu-btn.open span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:last-child  { transform: translateY(-6px) rotate(-45deg); }

/* ── Menu Panel ───────────────────────────────────────────── */
.menu-panel {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 64px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.menu-panel.visible {
  opacity: 1;
  pointer-events: all;
}

.panel-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-link {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300;
  font-style: italic;
  color: rgba(247,243,237,0.25);
  letter-spacing: -.01em;
  line-height: 1.2;
  transition: color 0.2s var(--ease);
}
.panel-link:hover { color: var(--cream); }

.panel-instagram {
  position: absolute;
  bottom: 40px;
  left: 64px;
  font-size: 11px;
  letter-spacing: .10em;
  color: rgba(247,243,237,0.35);
  text-transform: uppercase;
}

/* ── Section base ─────────────────────────────────────────── */
.section {
  padding: 96px 0;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.9);
}

.hero-text {
  position: absolute;
  bottom: 56px;
  left: 0;
  right: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3.2vw, 42px);
  font-weight: 300;
  color: rgba(247, 243, 237, 0.92);
  line-height: 1.3;
  margin-bottom: 12px;
  text-shadow: 0 1px 20px rgba(28,25,22,0.25);
}

.hero-location {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(247, 243, 237, 0.4);
}

.hero-obra-title {
  position: absolute;
  bottom: 24px;
  right: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(247,243,237,0.75);
  text-shadow: 0 1px 8px rgba(28,25,22,0.3);
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(247,243,237,0.3);
  transition: background 0.3s;
}
.hero-dot.active { background: rgba(247,243,237,0.85); }

/* ── Obra / Strip ─────────────────────────────────────────── */
.section-obra { padding: 80px 0 0; }

.obra-header { margin-bottom: 32px; }

.obra-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 40px 48px;
}
.obra-strip::-webkit-scrollbar { display: none; }

.strip-item {
  position: relative;
  flex: 0 0 auto;
  width: 360px;
  height: 480px;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  scroll-snap-align: start;
  background: var(--cream-mid);
}
.strip-item:first-child { width: 340px; }
.strip-item:nth-child(3) { width: 300px; height: 480px; }
.strip-item:nth-child(5) { width: 400px; }

.strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease);
  filter: saturate(0.95);
}
.strip-item:hover img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.strip-overlay {
  position: absolute;
  inset: 0;
  background: rgba(247, 243, 237, 0.88);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.strip-item:hover .strip-overlay { opacity: 1; }

.overlay-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.2;
}
.overlay-meta {
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* ── About ────────────────────────────────────────────────── */
.section-about { background: var(--cream-mid); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: start;
}

.about-pull-quote {
  margin-bottom: 48px;
  border: none;
  padding: 0;
}
.about-pull-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.35;
}

.about-bio {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-mid);
  margin-bottom: 24px;
}
.about-bio--closing {
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 0;
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 0.5px solid var(--border);
  padding-top: 32px;
}
.about-meta-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
}
.meta-label {
  font-size: 10px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.meta-value {
  font-size: 13px;
  color: var(--ink-mid);
}

.about-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ── Exposiciones ─────────────────────────────────────────── */
.section-expos { background: var(--cream); }

.expos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.expos-subtitle {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
  font-weight: 400;
}

.expo-list {
  display: flex;
  flex-direction: column;
}

.expo-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 0.5px solid var(--border);
  align-items: start;
}
.expo-item:first-child { border-top: 0.5px solid var(--border); }

.expo-year {
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: .04em;
  padding-top: 4px;
}

.expo-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 6px;
}

.expo-venue {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.expo-badge {
  display: inline-block;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.expo-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 0.5px solid var(--border-mid);
  color: var(--ink-muted);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* ── Encargos ─────────────────────────────────────────────── */
.section-encargos { background: var(--cream-mid); }

.encargos-inner { max-width: 720px; }

.encargos-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-mid);
  margin-bottom: 40px;
}

.clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 48px;
  list-style: none;
}
.clients-list li {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 300;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.clients-list li:hover { color: var(--ink); }
.clients-list li::after {
  content: ' · ';
  font-style: normal;
  color: var(--ink-muted);
  margin: 0 6px;
}
.clients-list li:last-child::after { content: ''; }

/* ── Prensa ───────────────────────────────────────────────── */
.press-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.press-item {
  padding: 32px 0;
  border-bottom: 0.5px solid var(--border);
}
.press-item:nth-child(odd) { padding-right: 48px; border-right: 0.5px solid var(--border); }
.press-item:nth-child(even) { padding-left: 48px; }
.press-item:last-child:nth-child(odd) { border-right: none; }

.press-pub {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.press-pub a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.press-pub a:hover { opacity: 1; }

.press-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-mid);
  line-height: 1.6;
  border: none;
}

/* ── Contacto ─────────────────────────────────────────────── */
/* ── Obra disponible ──────────────────────────────────────── */
.section-obra-disponible { background: var(--cream-mid); }

.disponible-list {
  list-style: none;
  padding: 0;
  margin: 48px 0 40px;
  border-top: 1px solid var(--cream-dark);
}
.disponible-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--cream-dark);
  gap: 24px;
}
.disponible-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 300;
  color: var(--ink);
}
.disponible-meta {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.disponible-item { cursor: default; }
.disponible-item:hover .disponible-title { opacity: 0.6; }

.disponible-hover-img {
  position: fixed;
  width: 260px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(28,25,22,0.15);
}
.disponible-hover-img.visible { opacity: 1; }

.disponible-cta {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.section-contacto { background: var(--ink); }

.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-top: 16px;
}

.contacto-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--cream);
  margin-bottom: 8px;
}

.contacto-sub {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 32px;
  letter-spacing: .02em;
}

.contacto-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacto-link {
  font-size: 14px;
  color: var(--cream);
  border-bottom: 0.5px solid rgba(247, 243, 237, 0.3);
  padding-bottom: 12px;
  transition: border-color 0.2s;
}
.contacto-link:hover { border-bottom-color: var(--cream); }

.contacto-causa {
  padding-top: 4px;
}

.causa-text {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.7;
}
.causa-text strong { color: rgba(247, 243, 237, 0.65); font-weight: 400; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  border-top: 0.5px solid rgba(247, 243, 237, 0.1);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-mono { height: 28px; width: auto; filter: invert(1) brightness(0.5); }

.footer-copy {
  font-size: 11px;
  color: rgba(247, 243, 237, 0.4);
  letter-spacing: .04em;
}

.footer-ig {
  font-size: 11px;
  color: rgba(247, 243, 237, 0.5);
  letter-spacing: .04em;
  transition: color 0.2s;
}
.footer-ig:hover { color: var(--cream); }

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 22, 0.96);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-caption {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  align-items: baseline;
}

#lightboxTitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--cream);
}
#lightboxYear {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-muted);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(247, 243, 237, 0.6);
  cursor: pointer;
  transition: color 0.2s;
  font-family: var(--sans);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--cream); }

.lightbox-close { top: 24px; right: 32px; font-size: 18px; }
.lightbox-prev  { left: 24px;  top: 50%; transform: translateY(-50%); font-size: 40px; }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); font-size: 40px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .menu-btn { display: flex; }

  .hero-text { bottom: 48px; padding: 0 24px; }
  .hero-tagline { font-size: 32px; }
  .hero-location { font-size: 13px; }
  .menu-panel { padding: 0 32px; }
  .panel-instagram { left: 32px; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image { position: static; aspect-ratio: 3/4; }

  .expos-grid { grid-template-columns: 1fr; gap: 40px; }

  .press-grid { grid-template-columns: 1fr; }
  .press-item:nth-child(odd) { padding-right: 0; border-right: none; }
  .press-item:nth-child(even) { padding-left: 0; }

  .contacto-inner { grid-template-columns: 1fr; gap: 40px; }

  .section { padding: 64px 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .obra-filters { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-name { font-size: 42px; }
  .footer-mono { display: none; }
}
