/* ============================================
   MARE NOSTRUM STUDIO — Lujo Mediterráneo Editorial
   ============================================ */

:root {
  --sand:        #F5EFE4;
  --sand-deep:   #ECE3D1;
  --bone:        #FAF7F0;
  --stone:       #E8DFD0;
  --terracotta:  #B4613D;
  --terracotta-light: #C97A50;
  --olive:       #6B7348;
  --olive-deep:  #545B36;
  --olive-light: #9AA478;
  --accent-warm: #E89A6F;
  --accent-warm-pale: #F5C29C;
  --ink:         #2B2620;
  --ink-soft:    #5B5248;
  --ink-mute:    #8A7F71;
  --line:        rgba(43, 38, 32, 0.14);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --container: 1380px;
  --gutter: clamp(1.5rem, 4.5vw, 4.5rem);
  --section-y: clamp(5rem, 10vw, 10rem);
  --header-h: 240px;

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* Subtle paper grain on whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.15 0 0 0 0 0.12 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--olive); color: var(--bone); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 2.25rem 1.5rem 1.5rem;
  text-align: center;
  transition: padding 0.45s var(--ease), background-color 0.45s var(--ease), backdrop-filter 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.site-header__logo {
  display: inline-block;
  margin-bottom: 1.1rem;
  transition: margin 0.4s var(--ease);
}
.site-header__logo img {
  height: 140px;
  width: auto;
  transition: height 0.45s var(--ease), filter 0.45s var(--ease), box-shadow 0.45s var(--ease);
  filter: brightness(0) invert(1) drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45));
}
.site-nav > ul {
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  flex-wrap: wrap;
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 16px rgba(0,0,0,0.35);
  transition: color 0.4s var(--ease);
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease), left 0.5s var(--ease);
}
.site-nav a:hover::after { width: 100%; left: 0; }

/* Submenú (dropdown) */
.site-nav__item--has-submenu { position: relative; }
.site-nav__item--has-submenu > a::before {
  content: '';
  display: inline-block;
  width: 11px;
  height: 7px;
  margin-right: 0.55rem;
  vertical-align: 0.08em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='black' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='black' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.85;
  transition: transform 0.3s var(--ease);
}
.site-nav__item--has-submenu:hover > a::before,
.site-nav__item--has-submenu:focus-within > a::before {
  transform: rotate(180deg);
}
.site-nav__submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: max-content;
  padding: 1.5rem 1.5rem 1.1rem;
  background: rgba(245, 239, 228, 0.96);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--line);
  box-shadow: 0 10px 32px rgba(43, 38, 32, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  z-index: 10;
}
.site-nav__item--has-submenu:hover .site-nav__submenu,
.site-nav__item--has-submenu:focus-within .site-nav__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
}
.site-nav__submenu a {
  color: var(--ink);
  text-shadow: none;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
}
.site-nav__submenu a::after { background: var(--olive); }

/* Selector de idioma — esquina superior derecha de la cabecera (ES · CA · EN · DE) */
.site-header__lang {
  position: absolute;
  top: 2.5rem;
  right: clamp(1.5rem, 4vw, 3rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.95);
  transition: top 0.45s var(--ease), color 0.45s var(--ease);
}
.site-header__lang a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
  opacity: 0.5;
  transition: opacity 0.4s var(--ease), color 0.4s var(--ease);
}
.site-header__lang-flag {
  width: 20px;
  height: 14px;
  display: block;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.25);
}
.site-header__lang a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease), left 0.5s var(--ease);
}
.site-header__lang a:hover,
.site-header__lang a:focus-visible { opacity: 1; }
.site-header__lang a:hover::after { width: 100%; left: 0; }
.site-header__lang a.is-active {
  opacity: 1;
  font-weight: 600;
  cursor: default;
}
.site-header__lang a.is-active::after { width: 100%; left: 0; }
.site-header__lang-sep {
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}
.site-header.is-scrolled .site-header__lang { top: 1.4rem; color: var(--ink); }
.site-header.is-scrolled .site-header__lang a { text-shadow: none; }
.site-header.is-scrolled .site-header__lang a::after { background: var(--olive); }

/* Menú móvil (off-canvas): controles ocultos en escritorio */
.site-header__toggle,
.site-header__close { display: none; }
/* Neutraliza el button:hover magenta que aplica el Kit de Elementor */
.site-header__toggle,
.site-header__toggle:hover,
.site-header__toggle:focus,
.site-header__close,
.site-header__close:hover,
.site-header__close:focus { background: none; box-shadow: none; }
.site-header__nav-wrap { display: contents; }
.site-header__overlay { display: none; }
body.nav-locked { overflow: hidden; }

/* Scrolled state */
.site-header.is-scrolled {
  background: rgba(245, 239, 228, 0.92);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  padding: 1rem 1.5rem 0.85rem;
  box-shadow: 0 1px 0 var(--line), 0 8px 32px rgba(43, 38, 32, 0.06);
}
.site-header.is-scrolled .site-header__logo { margin-bottom: 0.5rem; }
.site-header.is-scrolled .site-header__logo img {
  height: 80px;
  filter: none;
}
.site-header.is-scrolled .site-nav a {
  color: var(--ink);
  text-shadow: none;
}
.site-header.is-scrolled .site-nav a::after { background: var(--olive); }
.site-header.is-scrolled .site-nav__item--has-submenu > a::before { background-color: var(--olive); opacity: 1; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: heroZoom 2.2s var(--ease) both;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28,24,20,0.55) 0%, rgba(28,24,20,0.35) 30%, rgba(28,24,20,0.32) 60%, rgba(28,24,20,0.7) 100%),
    linear-gradient(90deg, rgba(28,24,20,0.55) 0%, rgba(28,24,20,0.1) 55%, rgba(28,24,20,0) 100%);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 6.4rem);
  line-height: 1;
  letter-spacing: -0.018em;
  margin-bottom: 2.5rem;
  max-width: 16ch;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.08em;
}
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  animation: rise 1.2s var(--ease) forwards;
}
.hero__title .line:nth-child(1) .word { animation-delay: 0.35s; }
.hero__title .line:nth-child(1) .word:nth-child(2) { animation-delay: 0.45s; }
.hero__title .line:nth-child(2) .word { animation-delay: 0.55s; }
.hero__title .line:nth-child(2) .word:nth-child(2) { animation-delay: 0.65s; }
.hero__title .line:nth-child(3) .word { animation-delay: 0.75s; }
.hero__title .accent {
  font-style: italic;
  color: var(--accent-warm);
  font-weight: 500;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.7);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s 1s var(--ease) forwards;
  transition: gap 0.4s var(--ease), border-color 0.4s var(--ease);
}
.hero__cta:hover { gap: 1.6rem; border-color: #fff; }
.hero__cta svg { transition: transform 0.4s var(--ease); }
.hero__cta:hover svg { transform: translateX(4px); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s 1.3s var(--ease) forwards;
}
.hero__scroll-word {
  color: rgba(255,255,255,0.85);
}
.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,0.35);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 100%;
  background: var(--olive-light);
  transform: translateY(-100%);
  animation: slideDown 2.4s var(--ease) infinite;
}
@keyframes slideDown {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SHARED TYPOGRAPHY
   ============================================ */
.section-mark {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1.75rem;
}
.section-mark.light { color: rgba(255,255,255,0.85); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 500;
}
.catalog .section-title em,
.artists .section-title em { color: var(--olive); }
.section-title.light { color: var(--bone); }
.section-title.light em { color: var(--accent-warm-pale); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.45rem;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: gap 0.4s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-arrow:hover { gap: 1.5rem; color: var(--olive); border-color: var(--olive); }
.link-arrow svg { transition: transform 0.4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow--light {
  color: var(--bone);
  border-color: rgba(255,255,255,0.7);
}
.link-arrow--light:hover { color: #fff; border-color: #fff; }

/* Botón primary — acento oliva sólido (usar con moderación) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 2rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--olive);
  border: 1px solid var(--olive);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), gap 0.4s var(--ease);
}
.btn-primary:hover {
  background: transparent;
  color: var(--olive-deep);
  border-color: var(--olive-deep);
  gap: 1.6rem;
}
.btn-primary svg { transition: transform 0.4s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-primary--light {
  background: transparent;
  color: var(--bone);
  border-color: rgba(255,255,255,0.75);
}
.btn-primary--light:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

/* ============================================
   INTRO
   ============================================ */
.intro {
  position: relative;
  background: var(--sand);
  overflow: hidden;
  isolation: isolate;
}
.intro__rule {
  display: block;
  width: 1px;
  height: clamp(2.4rem, 4.5vw, 4rem);
  background: var(--olive);
  opacity: 0.55;
  margin: 0 auto 2.4rem;
}
.intro__ornament {
  display: block;
  margin: 2.8rem auto 0;
  color: var(--olive);
  opacity: 0.7;
}
.intro__ornament svg { margin: 0 auto; }
.intro__inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  text-align: center;
}
.intro__inner .section-mark { margin-bottom: 1.6rem; }
.intro__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.intro__text em {
  font-style: italic;
  color: var(--terracotta);
}

/* ============================================
   CATÁLOGO — Bento grid
   ============================================ */
.catalog {
  padding: var(--section-y) var(--gutter);
  background: var(--bone);
  position: relative;
  border-top: 1px solid var(--line);
}
.catalog__head {
  max-width: var(--container);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.masonry {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2vw, 2rem) clamp(0.9rem, 1.6vw, 1.6rem);
}
.work {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  isolation: isolate;
}

.work__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--stone);
}
.work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.8s var(--ease);
}
.work:hover .work__media img { transform: scale(1.06); }

.work__info {
  padding: 1rem 0.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.work__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 1.3vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: -0.008em;
  color: var(--ink);
}
.work__meta {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.work__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.85rem;
  padding-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  border-bottom: 1px solid var(--olive);
  align-self: flex-start;
  transition: gap 0.4s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.work__cta:hover { gap: 1.2rem; color: var(--olive-deep); border-color: var(--olive-deep); }
.work__cta svg { transition: transform 0.4s var(--ease); }
.work__cta:hover svg { transform: translateX(3px); }

.catalog__cta {
  max-width: var(--container);
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  display: flex;
  justify-content: center;
}
.catalog__cta .link-arrow {
  color: var(--olive);
  border-color: var(--olive);
}
.catalog__cta .link-arrow:hover {
  color: var(--olive-deep);
  border-color: var(--olive-deep);
}

/* ============================================
   STUDIO (ampliación info)
   ============================================ */
.studio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(600px, 80vh, 900px);
  background: var(--sand);
}
.studio__media {
  position: relative;
  overflow: hidden;
  min-height: 460px;
}
.studio__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.studio__caption {
  position: absolute;
  left: 1.75rem;
  bottom: 1.5rem;
  color: #fff;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  background: rgba(43,38,32,0.55);
  backdrop-filter: blur(8px);
}
.studio__content {
  padding: clamp(4rem, 9vw, 8rem) clamp(2rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}
.studio__text {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ============================================
   ARTISTS
   ============================================ */
.artists {
  position: relative;
  padding: var(--section-y) var(--gutter);
  background: var(--bone);
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
}

.artists__head {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto clamp(4rem, 8vw, 6rem);
  text-align: center;
}
.artists__head .section-mark { display: block; }

.artists__grid {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(14rem, 22vw, 24rem);
  gap: clamp(0.9rem, 1.6vw, 1.6rem);
}
.artist {
  position: relative;
}
.artist:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.artist:nth-child(2) { grid-column: 2 / span 2; grid-row: 1; }
.artist:nth-child(3) { grid-column: 2 / span 2; grid-row: 2; }

.artist__poster {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: var(--stone);
  isolation: isolate;
}
.artist__media {
  position: absolute;
  inset: 0;
}
.artist__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transition: transform 2s var(--ease);
}
.artist__poster:hover .artist__media img { transform: scale(1.05); }
.artist__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28,24,20,0.35) 0%, rgba(28,24,20,0.08) 22%, rgba(28,24,20,0) 42%, rgba(28,24,20,0.25) 62%, rgba(28,24,20,0.78) 100%),
    linear-gradient(90deg, rgba(28,24,20,0.4) 0%, rgba(28,24,20,0) 55%);
}

.artist__caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.artist__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 14ch;
}
.artist__name em {
  font-style: italic;
  color: var(--accent-warm-pale);
  font-weight: 500;
}

.artist__cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  align-self: flex-start;
  padding-bottom: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.6);
  transition: gap 0.4s var(--ease), border-color 0.4s var(--ease);
}
.artist__poster:hover .artist__cta {
  gap: 1.6rem;
  border-color: #fff;
}
.artist__cta svg { transition: transform 0.4s var(--ease); }
.artist__poster:hover .artist__cta svg { transform: translateX(4px); }

/* ============================================
   COMMISSIONS
   ============================================ */
.commissions {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: clamp(6rem, 12vw, 10rem) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.commissions__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.commissions__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.commissions__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(180, 97, 61, 0.78) 0%, rgba(143, 74, 42, 0.72) 60%, rgba(107, 56, 32, 0.85) 100%),
    linear-gradient(180deg, rgba(43,38,32,0.25), rgba(43,38,32,0.45));
}
.commissions__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  color: var(--bone);
}
.commissions__text {
  margin: 2.5rem 0 3rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  position: relative;
  padding: var(--section-y) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.contact__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.6) brightness(1.15);
  opacity: 0.22;
}
.contact__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(245,239,228,0.55), rgba(245,239,228,0.92) 75%),
    linear-gradient(180deg, var(--sand), var(--sand));
}
.contact__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.contact__lead {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 36ch;
}
.contact__lead em {
  font-style: italic;
  color: var(--olive);
}
.contact__note {
  margin-top: 1.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  font-style: italic;
}

.contact__col--data {
  padding-top: 1rem;
}
.contact__data {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}
.contact__data > div {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.contact__data dt {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive);
}
.contact__data dd {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--ink);
}
.contact__data a { transition: color 0.3s var(--ease); }
.contact__data a:hover { color: var(--terracotta); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--stone);
  color: var(--ink);
  padding: clamp(4rem, 7vw, 6rem) var(--gutter) 2rem;
  position: relative;
  isolation: isolate;
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.15 0 0 0 0 0.12 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n2)'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}
.site-footer__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
}
.site-footer__brand img {
  height: 110px;
  width: auto;
  filter: none;
  margin-bottom: 1.5rem;
}
.site-footer__brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.site-footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
}
.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.site-footer__col a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.site-footer__col a:hover { color: var(--olive); padding-left: 0.4rem; }

.site-footer__bottom {
  position: relative;
  max-width: var(--container);
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--ink-mute);
}
.site-footer__bottom ul {
  display: flex;
  gap: 1.75rem;
}
.site-footer__bottom a:hover { color: var(--ink); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }
.reveal--delay-3 { transition-delay: 0.36s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  .studio { grid-template-columns: 1fr; }
  .studio__media { min-height: 60vh; }
  .artists__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: clamp(18rem, 55vw, 30rem);
  }
  .artist:nth-child(1),
  .artist:nth-child(2),
  .artist:nth-child(3) {
    grid-column: 1;
    grid-row: auto;
  }
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 120px; }
  .site-header { padding: 1.5rem 1.25rem; }
  .site-header__logo { margin: 0; }
  .site-header__logo img { height: 76px; }
  .site-header.is-scrolled .site-header__logo img { height: 56px; }
  /* Sin backdrop-filter en móvil: evita que el header (sticky) cree un bloque
     contenedor que recorte el panel/capa fijos. El fondo crema al 92% lo hace
     imperceptible. */
  .site-header.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Botón hamburguesa (arriba a la derecha) */
  .site-header__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    z-index: 3;
  }
  .site-header__toggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), background-color 0.35s var(--ease);
  }
  .site-header.is-scrolled .site-header__toggle span { background: var(--ink); box-shadow: none; }
  /* Con el panel abierto se oculta la hamburguesa; cierra con la ✕ del panel */
  .site-header.nav-open .site-header__toggle { opacity: 0; pointer-events: none; }

  /* Panel lateral (off-canvas) */
  .site-header__nav-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 340px);
    padding: 5rem 1.75rem 2rem;
    gap: 1.5rem;
    background: var(--bone);
    box-shadow: -16px 0 48px rgba(43, 38, 32, 0.25);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 2;
    text-align: left;
  }
  .site-header.nav-open .site-header__nav-wrap { transform: translateX(0); }

  /* Botón cerrar */
  .site-header__close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.9rem;
    line-height: 1;
    background: none;
    border: 0;
    color: var(--ink);
    cursor: pointer;
  }

  /* Menú vertical dentro del panel */
  .site-nav { width: 100%; }
  .site-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.3rem;
  }
  .site-nav a {
    color: var(--ink);
    text-shadow: none;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
  }
  .site-nav a::after { background: var(--olive); }

  /* Artistas: submenú estático e indentado */
  .site-nav__item--has-submenu { flex-direction: column; align-items: flex-start; align-self: stretch; }
  .site-nav__item--has-submenu > a::before { display: none; }
  .site-nav__submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    flex-direction: column;
    align-items: flex-start;
    /* En escritorio el dropdown usa min-width:max-content (una sola línea).
       En el panel off-canvas hay que RESETEARLO: con min-width:0 + align-self:stretch
       el submenú ocupa el ancho del panel y los nombres largos hacen wrap en vez de
       forzar una línea más ancha que el panel. */
    min-width: 0;
    align-self: stretch;
    width: auto;
    gap: 0.75rem;
    margin: 0.9rem 0 0 0.6rem;
    padding: 0 0 0 0.9rem;
    border: 0;
    border-left: 1px solid var(--line);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-nav__submenu a {
    font-size: 0.82rem;
    color: var(--ink);
    white-space: normal;
  }

  /* BUG iPhone (causa raíz): en escritorio el submenú se revela con :hover /
     :focus-within aplicando transform: translateX(-50%). En el panel táctil el
     submenú ya es estático y visible, pero esas reglas siguen ganando por
     especificidad (0,3,0 > 0,1,0). En iOS, el PRIMER toque en un artista activa
     :hover, aplica ese translateX y DESPLAZA el submenú bajo el dedo → el toque
     se interpreta como "hover" (no navega) y hay que tocar dos veces; además ese
     desplazamiento es lo que recorta los nombres. Los enlaces de primer nivel no
     se mueven al hacer hover, por eso sí navegan al primer toque. Anulando el
     transform aquí, el submenú deja de moverse y el primer toque navega. */
  .site-nav__item--has-submenu:hover .site-nav__submenu,
  .site-nav__item--has-submenu:focus-within .site-nav__submenu {
    transform: none;
  }

  /* Selector de idioma al fondo del panel */
  .site-header__lang {
    position: static;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem 0.7rem;
    color: var(--ink);
    transition: none;
  }
  .site-header__lang a { font-size: 0.72rem; opacity: 0.65; text-shadow: none; }
  .site-header__lang a.is-active { opacity: 1; }

  /* Capa oscura */
  .site-header__overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 15, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
    z-index: 1;
  }
  .site-header.nav-open .site-header__overlay {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s var(--ease);
  }

  .hero__inner { padding: 7rem 1.25rem 4rem; }
  .hero { align-items: flex-end; }
  .hero__title { font-size: clamp(2.4rem, 11vw, 4.5rem); }
  .hero__scroll { display: none; }

  .masonry {
    grid-template-columns: 1fr;
  }

  .site-footer__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .site-footer__bottom ul { flex-wrap: wrap; gap: 1rem; }

  .artist__caption { padding: 1.75rem 1.5rem; }
  .artist__name { font-size: clamp(2rem, 9vw, 3.2rem); margin-bottom: 1.25rem; }
}

@media (max-height: 820px) and (min-width: 1024px) {
  :root { --header-h: 195px; }
  .hero__title { font-size: clamp(2.4rem, 5.4vw, 5rem); margin-bottom: 1.85rem; }
  .site-header { padding: 1.25rem 1.5rem 0.85rem; }
  .site-header__logo img { height: 112px; }
  .site-header.is-scrolled .site-header__logo img { height: 72px; }
  .site-header__logo { margin-bottom: 0.55rem; }
  .hero__scroll { bottom: 1.25rem; }
  .hero__scroll-line { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__title .word { opacity: 1; transform: none; }
  .hero__cta, .hero__scroll { opacity: 1; transform: none; }
}

/* ============================================
   ACTIVE NAV ITEM
   ============================================ */
.site-nav a[aria-current="page"]::after {
  width: 100%;
  left: 0;
}

/* ============================================
   PAGE HERO (cabecera reducida para interiores)
   ============================================ */
.page-hero {
  position: relative;
  min-height: 78vh;
  min-height: 78svh;
  width: 100%;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 3vw, 3rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.page-hero--compact {
  min-height: 46vh;
  min-height: 46svh;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: heroZoom 2.2s var(--ease) both;
}
.page-hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28,24,20,0.5) 0%, rgba(28,24,20,0.35) 40%, rgba(28,24,20,0.65) 100%),
    linear-gradient(90deg, rgba(28,24,20,0.45) 0%, rgba(28,24,20,0.05) 60%, rgba(28,24,20,0) 100%);
  z-index: 1;
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.page-hero__mark {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 1s 0.25s var(--ease) forwards;
}
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: #fff;
  max-width: 22ch;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.1s 0.35s var(--ease) forwards;
}
.page-hero__title em {
  font-style: italic;
  color: var(--accent-warm-pale);
  font-weight: 500;
}
.page-hero__lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  max-width: 56ch;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.1s 0.55s var(--ease) forwards;
}
.page-hero__lead em { font-style: italic; color: var(--accent-warm-pale); }

/* Variant for pages without a real hero image (e.g., obra detail) */
.page-hero--plain {
  background: var(--bone);
  color: var(--ink);
  min-height: 0;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.page-hero--plain .page-hero__title { color: var(--ink); }
.page-hero--plain .page-hero__title em { color: var(--olive); }
.page-hero--plain .page-hero__lead { color: var(--ink-soft); }
.page-hero--plain .page-hero__mark { color: var(--olive); }

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
}
.breadcrumbs a {
  color: var(--olive);
  transition: color 0.3s var(--ease);
}
.breadcrumbs a:hover { color: var(--olive-deep); }
.breadcrumbs__sep {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* ============================================
   PAGE INTRO (texto editorial bajo el hero)
   ============================================ */
.page-intro {
  background: var(--sand);
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  border-top: 1px solid var(--line);
}
.page-intro__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.page-intro__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  line-height: 1.55;
  color: var(--ink);
}
.page-intro__text em { font-style: italic; color: var(--terracotta); }
.page-intro__text + .page-intro__text { margin-top: 1.4rem; }

/* ============================================
   CATALOG FILTERS
   Estilos basados en clases (.filter-pill / .is-active) para
   poder mapearlos al output del widget de filtros de Elementor.
   ============================================ */
.catalog-filters {
  max-width: var(--container);
  margin: 0 auto clamp(2.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--sand);
  border: 1px solid var(--line);
}
.catalog-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.25rem;
}
.catalog-filters__label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive);
  min-width: 6rem;
}
.catalog-filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.catalog-filters__count {
  display: inline-block;
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Píldora de filtro — agnóstica al elemento (a, button, span...) */
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.filter-pill:hover,
.filter-pill:focus-visible {
  outline: none;
  /* El kit/tema aplica un button:hover con fondo magenta; lo neutralizamos
     (la muestra deja el fondo transparente en hover). */
  background: transparent;
  border-color: var(--olive);
  color: var(--olive);
}
/* Una pill activa, al pasar el ratón, mantiene el fondo olivo (no transparente). */
.filter-pill.is-active:hover,
.filter-pill.is-active:focus-visible {
  background: var(--olive);
  color: var(--bone);
  border-color: var(--olive);
}
.filter-pill.is-active,
.filter-pill[aria-current="true"],
.filter-pill[aria-pressed="true"] {
  background: var(--olive);
  color: var(--bone);
  border-color: var(--olive);
}
.work.is-hidden { display: none; }

/* Masonry del catálogo: gaps más generosos para que cada obra respire */
#obras .masonry {
  gap: clamp(3rem, 5vw, 5.5rem) clamp(1.5rem, 2.5vw, 2.5rem);
  margin-top: clamp(1.5rem, 3vw, 3rem);
}
#obras .work__info { padding-top: 1.4rem; }

.catalog__empty {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--ink-mute);
  display: none;
}
.catalog__empty.is-visible { display: block; }

/* ============================================
   WORK DETAIL (obra.html)
   ============================================ */
.work-detail {
  padding: var(--section-y) var(--gutter);
  background: var(--bone);
  border-top: 1px solid var(--line);
}
.work-detail__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.work-detail__media {
  position: sticky;
  top: calc(var(--header-h) - 100px);
  overflow: hidden;
  background: var(--stone);
  aspect-ratio: 4 / 5;
}
.work-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-detail__content { padding-top: 0.5rem; }
.work-detail__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0.6rem 0 1.5rem;
}
.work-detail__title em { font-style: italic; color: var(--olive); font-weight: 500; }
.work-detail__artist-link {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1.75rem;
  transition: color 0.3s var(--ease);
}
.work-detail__artist-link:hover { color: var(--olive-deep); }
.work-detail__data {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin: 2.4rem 0;
}
.work-detail__data > div {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  align-items: baseline;
}
.work-detail__data dt {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive);
}
.work-detail__data dd {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--ink);
}
.work-detail__description {
  margin: 2rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 52ch;
}
.work-detail__placeholder-note {
  margin-top: 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-style: italic;
}

/* ============================================
   RELATED WORKS
   ============================================ */
.related-works {
  padding: var(--section-y) var(--gutter);
  background: var(--sand);
  border-top: 1px solid var(--line);
}
.related-works__head {
  max-width: var(--container);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

/* ============================================
   ARTIST PAGE — BIO
   ============================================ */
.artist-page__bio {
  padding: var(--section-y) var(--gutter);
  background: var(--sand);
  border-top: 1px solid var(--line);
}
.artist-page__bio-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.artist-page__bio-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.6;
  color: var(--ink);
}
.artist-page__bio-text + .artist-page__bio-text { margin-top: 1.4rem; }
.artist-page__bio-text em { font-style: italic; color: var(--terracotta); }

.artist-works {
  padding: var(--section-y) var(--gutter);
  background: var(--bone);
  border-top: 1px solid var(--line);
}
.artist-works__head {
  max-width: var(--container);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  text-align: center;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.contact-form__label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive);
}
.contact-form__label .opt {
  text-transform: none;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  margin-left: 0.5rem;
  font-size: 0.7rem;
}
.contact-form__input,
.contact-form__textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  width: 100%;
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
  -webkit-appearance: none;
}
.contact-form__textarea {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.6;
}
.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-bottom-color: var(--olive);
}
.contact-form__field.is-invalid .contact-form__input,
.contact-form__field.is-invalid .contact-form__textarea {
  border-bottom-color: var(--terracotta);
}
.contact-form__error {
  display: none;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--terracotta);
  font-style: italic;
}
.contact-form__field.is-invalid .contact-form__error { display: block; }
.contact-form__submit {
  align-self: flex-start;
  margin-top: 0.5rem;
}
.contact-form__feedback {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--olive-deep);
  font-style: italic;
  min-height: 1.4em;
}
.contact-form__feedback[data-state="error"] { color: var(--terracotta); }

/* ============================================
   CONTACT PAGE LAYOUT
   ============================================ */
.contact-page {
  padding: var(--section-y) var(--gutter);
  background: var(--bone);
  border-top: 1px solid var(--line);
}
.contact-page__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.contact-page__aside .contact__data {
  margin-bottom: 2rem;
}
.contact-page__aside-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.contact-page__title {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 2rem;
}

/* ============================================
   PAGE-LEVEL RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .work-detail__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .work-detail__media {
    position: static;
    aspect-ratio: 4 / 5;
  }
  .work-detail__data > div {
    grid-template-columns: 9rem 1fr;
  }
  .contact-page__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .catalog-filters__group { gap: 0.5rem; }
}
@media (max-width: 720px) {
  .page-hero { min-height: 70vh; min-height: 70svh; }
  .page-hero--compact { min-height: 40vh; min-height: 40svh; }
  .work-detail__data > div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .catalog-filters {
    padding: 1.25rem 1rem;
  }
  .catalog-filters__label { min-width: 100%; margin-right: 0; }
  .catalog-filters__count { margin-left: 0; width: 100%; }
}

/* =========================================================
   PÁGINAS LEGALES (.mns-legal) — tipografía de lectura
   ========================================================= */
.mns-legal__body { color: var(--ink-soft); font-family: var(--font-body); font-weight: 300; line-height: 1.75; }
.mns-legal__body > *:first-child { margin-top: 0; }
.mns-legal__body h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; color: var(--ink);
  margin: 2.75rem 0 1rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
}
.mns-legal__body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1rem; }
.mns-legal__body h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.3; color: var(--ink);
  margin: 1.75rem 0 0.75rem;
}
.mns-legal__body p { margin: 0 0 1.1rem; }
.mns-legal__body a { color: var(--olive); text-decoration: underline; text-underline-offset: 3px; }
.mns-legal__updated { font-size: 0.9rem; color: var(--ink-mute); margin-bottom: 2.5rem !important; }
.mns-legal__body ul { margin: 0 0 1.1rem 1.25rem; padding: 0; }
.mns-legal__body ul li { margin: 0.25rem 0; }
.mns-legal__table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.5rem; font-size: 0.92rem; }
.mns-legal__table th, .mns-legal__table td { text-align: left; padding: 0.65rem 0.85rem; border: 1px solid var(--line); }
.mns-legal__table th { font-family: var(--font-body); font-weight: 500; color: var(--ink); background: var(--sand); }

/* =========================================================
   SKIP LINK (accesibilidad — WCAG 2.4.1 "Saltar bloques")
   ========================================================= */
.mns-skip-link {
  position: absolute; left: 1rem; top: -80px; z-index: 100000;
  background: var(--ink); color: #fff; padding: 0.65rem 1.15rem;
  font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.02em;
  text-decoration: none; border-radius: 2px; transition: top 0.2s ease;
}
.mns-skip-link:focus { top: 1rem; outline: 2px solid var(--olive-light); outline-offset: 2px; }
.mns-skip-anchor { position: absolute; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   DISTINTIVO KIT DIGITAL / NextGenerationEU (subvención)
   Franja al final del <body>, FUERA del <footer>, en toda la web.
   ========================================================= */
.mns-kitdigital {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border-top: 1px solid var(--line);
}
.mns-kitdigital img {
  width: 300px;
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
