:root {
  --bg: #0d0d0e;
  --text-main: #e6e6e8;
  --text-muted: #6e6e78;
  --accent-gold: #6e6e78;
  --font-title: 'Cormorant Garamond', Georgia, serif;
  --font-tech: 'Inter', -apple-system, sans-serif;
  --site-max-width: 1400px;
  --site-padding-x: 2.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-tech);
  font-weight: 200;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
}

body.menu-open, body.modal-open {
  overflow: hidden;
}

.site-container {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding-left: var(--site-padding-x);
  padding-right: var(--site-padding-x);
  width: 100%;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3500;
  background: rgba(13, 13, 14, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: none;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.brand {
  font-family: var(--font-title);
  font-size: 1.35rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 300;
  display: flex;
  gap: 0.4rem;
  line-height: 1;
  z-index: 3502;
  cursor: pointer;
}

.brand .first-name { color: var(--text-muted); font-weight: 300; }
.brand .last-name { color: var(--text-main); letter-spacing: 0.25em; font-weight: 400; }

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 3502;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--text-main);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
  opacity: 0.85;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* BARRA DE RUTA STICKY */
.sticky-breadcrumb-bar {
  position: sticky;
  top: 4.2rem;
  z-index: 990;
  background: rgba(13, 13, 14, 0.98);
  backdrop-filter: blur(20px);
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: none;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  opacity: 0.9;
  line-height: 1;
  overflow: visible;
  white-space: nowrap;
}

.section-label .series-btn {
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
  display: inline-block;
  flex-shrink: 0;
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  padding: 0;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

.section-label .series-btn:hover { color: var(--text-main); }

.breadcrumb-separator {
  color: var(--text-muted);
  opacity: 0.6;
  line-height: 1;
  flex-shrink: 0;
}

/* DROPDOWN DE SERIES */
.series-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.series-dropdown-trigger {
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: none;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  transition: color 0.3s ease;
  line-height: 1;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  z-index: 995;
  -webkit-tap-highlight-color: transparent;
}

.series-dropdown-trigger:hover { color: var(--text-main); }

.series-dropdown-trigger.is-active-serie {
  color: var(--text-main);
  text-transform: none;
  letter-spacing: 0.12em;
}

.series-dropdown-trigger::after {
  content: '▾';
  font-size: 0.55rem;
  opacity: 0.6;
  position: relative;
  top: -1px;
  flex-shrink: 0;
}

.series-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(13, 13, 14, 0.98);
  backdrop-filter: blur(20px);
  border: none;
  padding: 0.6rem 0;
  display: flex;
  flex-direction: column;
  min-width: 280px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.85);
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  transition-delay: 0.1s;
}

.series-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

@media (min-width: 701px) {
  .series-dropdown-wrapper:hover .series-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    transition-delay: 0s !important;
  }
}

.series-dropdown-wrapper.open .series-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  transition-delay: 0s !important;
}

.series-dropdown-menu a {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: none;
  color: var(--text-muted);
  padding: 0.65rem 1.4rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.series-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.series-dropdown-menu a.active-dropdown {
  color: var(--text-main);
  font-weight: 400;
}

.series-dropdown-menu a.active-dropdown::before {
  content: '•';
  color: var(--text-main);
  font-size: 0.55rem;
  opacity: 0.8;
  line-height: 1;
  margin-right: -0.2rem;
}

.modal-work-meta-tag {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: none;
  opacity: 0.85;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* MENÚ MOBILE */
.nav-mobile {
  position: fixed;
  inset: 0;
  background-color: rgba(13, 13, 14, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3000;
  padding: 5rem 2rem 2.5rem 2rem;
  overflow-y: auto;
}

.nav-mobile.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile a.main-link {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 300;
  transition: color 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.nav-mobile a.main-link:hover, .nav-mobile a.main-link.active-nav {
  color: var(--text-main) !important;
  font-weight: 400;
}

.mobile-sub-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-top: -0.3rem;
  margin-bottom: 0.3rem;
  max-height: 35vh;
  overflow-y: auto;
  padding: 0.5rem 1rem;
  width: 100%;
}

.mobile-sub-menu a {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: none;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.65;
  position: relative;
  transition: color 0.3s ease, opacity 0.3s ease;
  display: inline-block;
  text-align: center;
}

.mobile-sub-menu a::before {
  content: "•";
  position: absolute;
  left: -0.8rem;
  font-size: 0.55rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-sub-menu a:hover, .mobile-sub-menu a.active-serie {
  color: var(--text-main) !important;
  opacity: 1 !important;
}

.mobile-sub-menu a:hover::before, .mobile-sub-menu a.active-serie::before {
  opacity: 0.8;
  color: var(--text-main);
}

.mobile-ig-container {
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
  opacity: 0.75;
  padding: 4px;
}

.social-icon-link:hover {
  color: var(--text-main);
  opacity: 1;
}

.social-icon-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  display: block;
}

.lang-selector {
  display: flex;
  gap: 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  opacity: 0.8;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 0.3s;
}

.lang-btn.active { color: var(--text-main); font-weight: 400; }

/* CONTENIDO PRINCIPAL */
main {
  padding-top: 4.8rem;
  padding-bottom: 4rem;
}

.hero-featured {
  display: block;
  margin-bottom: 1.2rem;
  cursor: pointer;
  width: 100%;
}

.hero-featured-image {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.hero-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0.95);
  transition: filter 0.8s ease, transform 0.8s ease;
  -webkit-user-drag: none;
}

.hero-featured:hover .hero-featured-image img {
  filter: brightness(1);
  transform: scale(1.005);
}

/* SECCIÓN PRÓXIMAS EXPOSICIONES EN INICIO */
.proximas-expos-home-section {
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.proximas-expos-title, .expo-bloque-titulo {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  border-bottom: none;
  padding-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  align-items: start;
  margin-top: 0.5rem;
  margin-bottom: 6rem;
  width: 100%;
}

.work-item {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
}

.work-image {
  width: auto;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  margin-bottom: 0.8rem;
  display: block;
  background: transparent;
}

.work-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  filter: brightness(0.92);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  -webkit-user-drag: none;
}

.work-item:hover .work-image img {
  transform: scale(1.015);
  filter: brightness(1);
}

.work-meta-line {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.35rem;
  flex-wrap: wrap;
  line-height: 1.35;
  width: 100%;
  text-align: left;
}

.work-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-main);
  text-transform: none;
  letter-spacing: 0.02em;
  text-align: left;
}

.work-specs {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.work-separator {
  color: var(--text-muted);
  font-size: 0.6rem;
  opacity: 0.6;
}

.series-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
  margin-bottom: 4rem;
}

.series-footer-btn {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.series-footer-btn:hover { color: var(--text-main); }

.page-section { display: none; }
.page-section.active-section { display: block; }

.section-content-text {
  max-width: 1080px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 200;
  letter-spacing: 0.02em;
  margin-bottom: 4rem;
}

/* ESTILOS DE BIO */
.bio-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.bio-photo {
  width: 290px;
  height: auto;
  flex-shrink: 0;
  filter: brightness(0.95);
  border-radius: 1px;
}

.bio-text-column {
  flex: 1;
}

.bio-text-column p {
  white-space: pre-wrap;
  color: var(--text-muted);
}

.bio-extra-sections {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.bio-section-block {
  padding-top: 2rem;
}

.bio-section-title {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ESTILOS DE LISTA DE EXPOSICIONES */
.expo-bloque {
  margin-bottom: 3rem;
}

.expo-list-group {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.expo-card-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.expo-card-item.expo-tres-renglones {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.expo-card-item.proxima-badge-style {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.expo-date-circle {
  width: 65px;
  height: 65px;
  min-width: 65px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.1;
  padding: 0.2rem;
}

.expo-date-circle .circle-day {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  text-transform: uppercase;
}

.expo-date-circle .circle-month {
  font-family: var(--font-tech);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.expo-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.expo-card-titulo {
  color: var(--text-main);
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.expo-card-lugar {
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: none;
}

.expo-card-fecha {
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: none;
}

/* BADGE Y PUNTO VERDE ANIMADO */
.expo-badge-en-exhibicion {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #2A7831;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.dot-verde {
  width: 6px;
  height: 6px;
  background-color: #2A7831;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ESTILOS DE PREMIO DESTACADO */
.expo-premio-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  font-style: italic;
  margin-top: 0.2rem;
  font-weight: 300;
}

.expo-premio-badge svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

/* ESTILOS DE TEXTOS */
.textos-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  width: 100%;
}

.texto-card {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
  transition: border-color 0.3s ease;
  cursor: pointer;
  scroll-margin-top: 8rem;
}

.texto-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.texto-card-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.texto-card-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-main);
  text-transform: none;
  letter-spacing: 0.02em;
}

.texto-card-meta {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--text-muted);
}

.texto-card-body {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-top: 0.8rem;
}

.texto-card-fragmento {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-muted);
  white-space: pre-wrap;
  line-height: 1.8;
  max-height: calc(1.8em * 3);
}

.texto-card-completo {
  display: none;
  white-space: pre-wrap;
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.texto-fuente-link {
  display: none;
  margin-top: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.texto-card.expanded .texto-fuente-link {
  display: block;
}

.texto-fuente-link a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s ease;
}

.texto-fuente-link a:hover {
  opacity: 0.8;
}

.texto-card.expanded .texto-card-fragmento {
  display: none;
}

.texto-card.expanded .texto-card-completo {
  display: block;
  animation: fadeInText 0.3s ease forwards;
}

.texto-card.expanded .btn-leer-mas {
  display: none;
}

.btn-leer-mas {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-main);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  line-height: 1;
}

.btn-leer-mas:hover {
  opacity: 1;
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.expos-section-wrapper {
  max-width: 750px;
}

/* REPRESENTACIÓN */
.galleries-section { 
  padding-top: 1rem; 
  margin-bottom: 4rem; 
}

.galleries-list { 
  display: flex; 
  flex-direction: column; 
  gap: 2rem; 
  max-width: 900px;
}

.gallery-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 0 1.8rem 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  transition: border-color 0.3s ease;
}

.gallery-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.gallery-logo-container {
  width: 55px;
  height: 55px;
  min-width: 55px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.gallery-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.95);
}

.gallery-info-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  text-align: left;
}

.gallery-title-link {
  font-family: var(--font-title);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 400;
}

.gallery-detail-line {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--text-muted);
}

/* FOOTER */
footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  opacity: 0.7;
  align-items: center;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--text-main);
}

/* MODAL / VISOR DE OBRA */
.artwork-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(13, 13, 14, 0.98);
  backdrop-filter: blur(25px);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.artwork-modal.active {
  display: flex;
  opacity: 1;
}

.modal-header-container {
  background: rgba(13, 13, 14, 0.98);
  backdrop-filter: blur(20px);
  width: 100%;
  z-index: 2010;
  flex-shrink: 0;
  padding-top: 1rem;
}

.modal-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 48px;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  padding: 0.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.modal-close-btn:hover { opacity: 1; }

.modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0.5rem var(--site-padding-x);
  min-height: 0;
  cursor: grab;
  overflow: hidden;
}

.modal-body:active {
  cursor: grabbing;
}

.modal-image-wrapper {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-height: 72vh;
  max-width: 100%;
  z-index: 2005;
}

.modal-image-wrapper img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  box-shadow: 0 15px 45px rgba(0,0,0,0.8);
  -webkit-user-drag: none;
  display: block;
  cursor: grab;
  will-change: transform, opacity;
  transition: opacity 0.18s ease;
  z-index: 2009;
}

.modal-nav-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  z-index: 2012;
  cursor: pointer;
  background: transparent;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.modal-nav-zone.zone-prev { left: 0; }
.modal-nav-zone.zone-next { right: 0; }

.modal-footer {
  text-align: center;
  padding-top: 0.2rem;
  padding-bottom: 1.2rem;
  z-index: 2010;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.modal-meta-line {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
  line-height: 1.3;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-main);
  text-transform: none;
  display: inline;
  letter-spacing: 0.02em;
}

.modal-meta {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline;
}

.modal-separator {
  color: var(--text-muted);
  font-size: 0.6rem;
  opacity: 0.6;
}

.modal-swipe-hint {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.4;
  margin-top: 0.1rem;
}

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 900px) {
  :root { --site-padding-x: 1.5rem; }
  .modal-image-wrapper img { max-height: 68vh; }
}

@media (max-width: 700px), (orientation: portrait) {
  :root { --site-padding-x: 1.2rem; }
  main { padding-top: 4.2rem; }
  .hero-featured { margin-bottom: 1.2rem; }
  .sticky-breadcrumb-bar { 
    top: 3.8rem; 
    padding-top: 0.8rem; 
    padding-bottom: 0.2rem; 
    margin-bottom: 0.6rem; 
  }
  .gallery-grid { grid-template-columns: 1fr !important; gap: 2.5rem; margin-top: 0.5rem; margin-bottom: 4rem; }
  .bio-layout { flex-direction: column; }
  .bio-photo { width: 180px; }
  
  .modal-header-container { padding-top: 0.8rem; }
  
  footer { 
    flex-direction: column; 
    gap: 1.2rem; 
    text-align: center; 
    justify-content: center;
  }
  .footer-left {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
  }
  .footer-right {
    display: none;
  }
  .footer-mobile-ig {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.2rem;
  }

  .modal-image-wrapper img { max-height: 62vh; }
  
  .series-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    max-width: calc(100vw - 2.4rem);
    max-height: 55vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.95);
  }

  .proximas-expos-home-section .expo-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
  }

  .proximas-expos-home-section .expo-card-titulo,
  .proximas-expos-home-section .expo-card-lugar,
  .proximas-expos-home-section .expo-card-fecha {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    line-height: 1.35;
  }

  #sec-exposiciones .expo-card-titulo,
  #sec-exposiciones .expo-card-lugar,
  #sec-exposiciones .expo-card-fecha {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
}

@media (min-width: 701px) and (orientation: landscape) {
  .footer-mobile-ig {
    display: none;
  }
}
