@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,900&family=Libre+Baskerville:wght@400;700&family=Montserrat:wght@500;600;700;800;900&family=Playfair+Display:wght@900&display=swap');

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

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #000000;
}

/* ========================= */
/* PORTADA */
/* ========================= */

/* Pantalla principal */
.home {
  position: relative;

  width: 100%;
  height: 100vh;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
}

/*
  Contenedor proporcional tipo cartel.
  Ahora es más ancho porque hay 5 cuadros.
*/
.poster {
  position: relative;

  width: min(96vw, calc(91vh * 2.75));
  aspect-ratio: 2.75 / 1;

  background: #ffffff;
}

/* Cada bloque/enlace */
.menu-item {
  position: absolute;

  width: 14.6%;
  height: 88%;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-decoration: none;
  color: #000000;

  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Posición de cada cuadro: 5 columnas equilibradas */
.item-1 {
  left: 3%;
  top: 5%;
}

.item-2 {
  left: 23.5%;
  top: 5%;
}

.item-3 {
  left: 44%;
  top: 5%;
}

.item-4 {
  left: 64.5%;
  top: 5%;
}

.item-5 {
  left: 85%;
  top: 5%;
}

/* Marco de imagen */
.art-frame {
  width: 100%;
  aspect-ratio: 555 / 1120;

  border: 0;
  overflow: hidden;
  background: #ffffff;
}

/* Imagen dentro del marco */
.art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*
  SECADES como SVG.
  preserveAspectRatio="none" debe ir en el HTML.
*/
.brand-svg {
  position: absolute;
  z-index: 5;

  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);

  width: 78%;
  height: 24%;

  overflow: visible;
  pointer-events: none;

  opacity: 0;
  animation: brandFadeIn 10.2s ease forwards;
  animation-delay: 0.35s;
}

/* Fuente artística para SECADES */
.brand-svg text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 190px;
  font-weight: 900;
  fill: #000000;
  text-rendering: geometricPrecision;
}

@keyframes brandFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-svg {
    animation: none;
    opacity: 1;
  }
}

/* Textos inferiores */
.menu-item span {
  margin-top: 2.5%;

  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: clamp(10px, 1.25vw, 24px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
  white-space: nowrap;
}

/* Hover elegante portada */
.menu-item:hover {
  opacity: 0.78;
}

.menu-item:hover span {
  text-decoration: none;
}

.menu-item .art-frame img {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.menu-item:hover .art-frame img,
.menu-item:focus-visible .art-frame img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

/* Foco accesible al navegar con teclado */
.menu-item:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 8px;
}


/* ========================= */
/* PORTADA RESPONSIVE */
/* ========================= */

/* Pantallas estrechas: formato 2 columnas */
@media (max-width: 760px) {
  .home {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: 32px 0 54px;
  }

  .poster {
    width: min(92vw, 560px);
    aspect-ratio: auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 24px;
  }

  .brand-svg {
    position: fixed;
    top: 46%;
    left: 50%;

    width: 100%;
    height: 110px;

    opacity: 0.92;
  }

  .brand-svg text {
    font-size: 190px;
  }

  .menu-item {
    position: static;
    width: 100%;
    height: auto;
  }

  .art-frame {
    width: 100%;
  }

  .menu-item span {
    margin-top: 10px;
    font-size: clamp(15px, 4vw, 22px);
  }

  .home-footer {
    position: fixed;
  }
}

/* Móvil estrecho: una columna */
@media (max-width: 430px) {
  .poster {
    width: min(82vw, 260px);
    grid-template-columns: 1fr;
  }

  .brand-svg {
    height: 90px;
  }
}

/* ========================= */
/* PÁGINAS INTERIORES */
/* ========================= */

.inner-page {
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  background: #ffffff;
  color: #000000;
}

/*
  Header adaptable:
  - grande en panorámica;
  - compacto en portátil;
  - apilado solo cuando ya no cabe.
*/
.inner-header {
  position: sticky;
  top: 0;
  z-index: 50;

  flex-shrink: 0;

  width: 100%;
  min-height: var(--header-height);
  padding:
    clamp(10px, 1.45vw, 24px)
    clamp(22px, 5vw, 80px)
    clamp(9px, 1.15vw, 18px);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 28px);

  background: #eaeae3;
  border-bottom: clamp(2px, 0.16vw, 3px) solid #000000;

  backdrop-filter: blur(8px);
}

.inner-logo {
  flex: 0 0 auto;

  font-family: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  font-size: clamp(30px, 4.1vw, 72px);
  font-weight: 900;
  line-height: 0.92;
  color: #000000;
  text-decoration: none;
  letter-spacing: -0.04em;

  transition: opacity 0.25s ease;
}

.inner-logo:hover {
  opacity: 0.65;
}

.inner-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.55vw, 32px);
  flex-wrap: nowrap;
  min-width: 0;
}

.inner-nav a {
  position: relative;

  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: clamp(10px, 0.78vw, 15px);
  font-weight: 800;
  color: #000000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;

  transition: color 0.25s ease, opacity 0.25s ease;
}

.inner-nav a:hover {
  opacity: 0.65;
}

.inner-nav a.active {
  color: #1f7a4d;
}

.inner-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(-7px, -0.45vw, -5px);

  height: clamp(3px, 0.24vw, 4px);
  background: #1f7a4d;
}

.inner-main {
  flex: 1;

  width: 100%;
  padding:
    clamp(28px, 6vh, 90px)
    clamp(24px, 6vw, 80px)
    calc(var(--footer-height) + clamp(44px, 6vh, 80px));
}

.content-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.page-title {
  font-family: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.055em;
  margin-bottom: clamp(32px, 6vh, 70px);
}

.text-block {
  max-width: 760px;
}

.text-block p {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 800;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Portátil / pantalla media */
@media (max-width: 1500px) and (min-width: 981px) {
  .inner-header {
    padding:
      clamp(8px, 1.1vw, 16px)
      clamp(20px, 4vw, 56px)
      clamp(7px, 0.9vw, 13px);
    gap: clamp(12px, 1.4vw, 20px);
  }

  .inner-logo {
    font-size: clamp(28px, 3.15vw, 48px);
  }

  .inner-nav {
    gap: clamp(10px, 1.2vw, 20px);
  }

  .inner-nav a {
    font-size: clamp(9.5px, 0.7vw, 12px);
  }
}

/* Portátil bajo: reduce altura sin romper diseño */
@media (max-height: 820px) and (min-width: 981px) {
  .inner-header {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .inner-logo {
    font-size: clamp(26px, 2.95vw, 42px);
  }

  .inner-nav a {
    font-size: clamp(9px, 0.68vw, 11px);
  }

  .inner-main {
    padding-top: clamp(18px, 3.2vh, 36px);
  }
}

/* Tablet horizontal / ancho estrecho: el menú pasa debajo */
@media (max-width: 980px) {
  .inner-header {
    align-items: flex-start;
    flex-direction: column;
    padding:
      16px
      clamp(18px, 5vw, 42px)
      14px;
  }

  .inner-logo {
    font-size: clamp(32px, 7vw, 54px);
  }

  .inner-nav {
    justify-content: flex-start;
    gap: 12px 18px;
    flex-wrap: wrap;
  }

  .inner-nav a {
    font-size: 11px;
  }

  .inner-nav a.active::after {
    bottom: -5px;
    height: 3px;
  }
}

/* ========================= */
/* OBRA: HEADER FIJO */
/* ========================= */

/*
  Para activar este comportamiento solo en obra.html:
  <body class="inner-page works-page">
*/

.works-page .inner-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
}

.works-page .inner-main {
  padding-top: calc(var(--header-height) + clamp(42px, 7vh, 86px));
}

@media (max-width: 1500px) and (min-width: 981px) {
  .works-page .inner-main {
    padding-top: calc(var(--header-height) + clamp(32px, 5vh, 56px));
  }
}

@media (max-width: 980px) {
  .works-page .inner-main {
    padding-top: calc(var(--header-height) + 34px);
  }
}

/* ========================= */
/* PRESENTACIÓN */
/* ========================= */

.presentation-page {
  height: 100dvh;
  overflow: hidden;
}

.presentation-page .inner-main {
  flex: 1;
  min-height: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding-top: clamp(16px, 2.8vh, 38px);
  padding-right: clamp(28px, 7vw, 110px);
  padding-bottom: calc(var(--footer-height) + clamp(16px, 2.8vh, 38px));
  padding-left: clamp(28px, 7vw, 110px);
}

.presentation-layout {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
}

.presentation-block {
  width: min(91vw, 1300px);
  max-height: 100%;
  min-height: 0;

  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(360px, 1.05fr);
  grid-template-areas:
    "image line"
    "image quote";

  column-gap: clamp(44px, 6vw, 96px);
  row-gap: clamp(12px, 1.6vh, 20px);

  align-content: center;
  align-items: center;
}

/* Foto izquierda */
.presentation-figure {
  grid-area: image;

  width: 100%;
  max-width: 650px;
  margin: 0;

  display: flex;
  justify-content: center;
  align-items: center;
}

.presentation-figure img {
  width: 100%;
  height: auto;

  max-width: 650px;
  max-height: calc(100dvh - var(--header-height) - var(--footer-height) - 78px);

  object-fit: contain;
  object-position: center;

  display: block;

  border: 0;
  background: #ffffff;
}

/*
  Línea sobre la cita.
  Debe medir aproximadamente el 70% del ancho máximo de la cita.
  Cita máxima escritorio: 620px -> línea máxima: 434px.
*/
.presentation-separator {
  grid-area: line;
  align-self: end;

  width: 70%;
  height: 4px;

  margin: 0 auto 6px;

  background: #000000;
}

/* Cita derecha */
.presentation-quote {
  grid-area: quote;
  align-self: start;

  width: 100%;
  max-width: 620px;

  margin: 0 auto;
  padding: 0;

  border: 0;
  text-align: center;
}

.presentation-quote p {
  position: relative;
  display: inline-block;

  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(24px, 2.35vw, 42px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: #000000;
  margin-bottom: 12px;
}

.presentation-quote p {
  display: inline-block;

  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(24px, 2.35vw, 42px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: #000000;
  margin-bottom: 12px;
}

.quote-mark {
  font-family: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  font-size: 1.12em;
  font-weight: 900;
  line-height: 0;
  color: #000000;
  vertical-align: -0.02em;
}

.quote-open {
  margin-right: 0.03em;
}

.quote-close {
  margin-left: 0.04em;
}


.presentation-quote cite {
  display: block;

  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: clamp(10px, 0.85vw, 13px);
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #000000;
  opacity: 0.65;
}

/* Portátiles / pantallas medias */
@media (max-width: 1500px) and (min-width: 981px) {
  .presentation-page .inner-main {
    padding-top: clamp(12px, 2.2vh, 28px);
    padding-right: clamp(24px, 5vw, 72px);
    padding-bottom: calc(var(--footer-height) + clamp(12px, 2.2vh, 28px));
    padding-left: clamp(24px, 5vw, 72px);
  }

  .presentation-block {
    width: min(92vw, 1160px);
    grid-template-columns: minmax(335px, 0.96fr) minmax(320px, 1.04fr);
    column-gap: clamp(34px, 5vw, 72px);
  }

  .presentation-figure {
    max-width: 575px;
  }

  .presentation-figure img {
    max-width: 575px;
    max-height: calc(100dvh - var(--header-height) - var(--footer-height) - 60px);
  }

  .presentation-quote {
    max-width: 560px;
  }

  .presentation-quote p {
    font-size: clamp(22px, 2.15vw, 34px);
    line-height: 1.22;
  }

  /*
    Cita máxima portátil: 560px -> línea máxima: 392px.
  */
  .presentation-separator {
    height: 3px;
  }
}

/* Portátiles bajos */
@media (max-height: 760px) and (min-width: 981px) {
  .presentation-page .inner-main {
    padding-top: 10px;
    padding-bottom: calc(var(--footer-height) + 10px);
  }

  .presentation-block {
    width: min(91vw, 1080px);
    column-gap: clamp(28px, 4vw, 58px);
  }

  .presentation-figure {
    max-width: 520px;
  }

  .presentation-figure img {
    max-width: 520px;
    max-height: calc(100dvh - var(--header-height) - var(--footer-height) - 44px);
  }

  .presentation-quote p {
    font-size: clamp(19px, 1.85vw, 30px);
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .presentation-quote cite {
    font-size: 10px;
  }

  .presentation-separator {
    margin-bottom: 4px;
  }
}

/* Tablet: pasa a vertical */
@media (max-width: 980px) {
  .presentation-page {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  .presentation-page .inner-main {
    display: block;

    padding-top: 32px;
    padding-right: 22px;
    padding-bottom: calc(var(--footer-height) + 46px);
    padding-left: 22px;
  }

  .presentation-layout {
    height: auto;
    min-height: auto;

    display: flex;
    justify-content: center;
  }

  .presentation-block {
    width: 100%;
    max-width: 740px;
    max-height: none;

    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .presentation-figure {
    width: 100%;
    max-width: 640px;
  }

  .presentation-figure img {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }

  .presentation-separator {
    margin-top: 22px;
    margin-bottom: 14px;
  }

  .presentation-quote {
    width: 92%;
    max-width: 620px;
  }

  .presentation-quote p {
    font-size: clamp(22px, 5.2vw, 34px);
    line-height: 1.3;
  }
}

/* Móvil estrecho */
@media (max-width: 520px) {
  .presentation-page .inner-main {
    padding-top: 24px;
    padding-right: 18px;
    padding-bottom: calc(var(--footer-height) + 34px);
    padding-left: 18px;
  }

  .presentation-separator {
    margin-top: 18px;
  }

  .presentation-quote {
    width: 96%;
  }

  .presentation-quote p {
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.3;
  }

  .presentation-quote cite {
    font-size: 10px;
  }
}

/* ========================= */
/* SOBRE EL AUTOR */
/* ========================= */

.author-text-layout {
  width: min(88vw, 1100px);
  max-width: none;
  margin: 0 auto;
}

.author-text {
  max-width: 980px;

  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(16px, 1.05vw, 18px);
  font-weight: 400;
  line-height: 1.78;
  color: #000000;
}

/*
  Foto lateral derecha.
  Queda integrada en el texto y evita que la página parezca solo un bloque plano.
*/
.author-side {
  float: right;

  width: min(30vw, 360px);
  min-width: 260px;

  margin: 4px 0 26px clamp(30px, 4.5vw, 62px);
}

.author-side img {
  width: 100%;
  height: auto;

  display: block;
  object-fit: contain;
  object-position: center;

  border: 1px solid #d6d6d6;
  background: #ffffff;
}

.author-text p {
  margin-bottom: 26px;

  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

/* Firma/cita final del texto del autor */
.author-credit {
  clear: both;

  margin-top: 34px;
  padding-top: 24px;

  border-top: 2px solid #000000;
}

.author-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  color: #000000;
  text-decoration: none;

  transition: opacity 0.25s ease;
}

.author-credit-link:hover {
  opacity: 0.68;
}

.author-credit-photo {
  width: 54px;
  height: 54px;

  border-radius: 50%;
  object-fit: cover;
  object-position: center;

  border: 1px solid #d6d6d6;
  background: #ffffff;

  flex-shrink: 0;
}

.author-credit cite {
  display: flex;
  flex-direction: column;
  gap: 3px;

  font-style: normal;
  color: #000000;
}

.author-credit cite span {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: clamp(12px, 0.9vw, 15px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.author-credit cite small {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(12px, 0.85vw, 14px);
  font-weight: 400;
  line-height: 1.25;
  opacity: 0.72;
}


.author-credit cite {
  display: block;

  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: clamp(11px, 0.85vw, 14px);
  font-weight: 700;
  font-style: normal;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #000000;
  opacity: 0.72;
}

.author-text::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 980px) {
  .author-text-layout {
    width: min(90vw, 760px);
  }

  .author-side {
    float: none;

    width: min(72vw, 360px);
    min-width: 0;

    margin: 0 auto 30px;
  }

  .author-text {
    font-size: 16px;
    line-height: 1.7;
  }

  .author-credit {
    padding-left: 54px;
  }
}

@media (max-width: 520px) {
  .author-text-layout {
    width: 100%;
  }

  .author-side {
    width: min(82vw, 320px);
    margin-bottom: 26px;
  }

  .author-text {
    font-size: 15.5px;
    line-height: 1.68;
  }

  .author-credit {
    padding-left: 44px;
  }

}


/* ========================= */
/* OBRA */
/* ========================= */

.gallery-layout {
  width: min(86vw, 1180px);
  max-width: none;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(34px, 4vw, 64px);
  align-items: start;
}

.gallery-item {
  width: 100%;
  padding: 0;
  border: 0;

  background: transparent;
  color: #000000;
  text-decoration: none;
  text-align: left;
  font: inherit;

  cursor: pointer;

  transition: transform 0.25s ease, opacity 0.25s ease;
}

.gallery-image {
  width: 100%;

  border: 1px solid #d6d6d6;
  overflow: hidden;
  background: #ffffff;

  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.gallery-image img {
  width: 100%;
  height: auto;

  object-fit: contain;
  object-position: center;

  display: block;

  transition: transform 0.35s ease;
}

/* Primera fila: las 3 obras casi iguales mantienen mismo tamaño */
.same-size-item .gallery-image {
  height: clamp(220px, 16vw, 300px);
}

.same-size-item .gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Fila especial: Fuerteventura + relieves agrupados */
.gallery-special-row {
  grid-column: 1 / -1;

  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.65fr);
  gap: clamp(34px, 4vw, 64px);
  align-items: start;
}

/* Los 3 relieves van juntos y en vertical */
.relief-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 3px;
  align-items: start;
}

/*
  Los relieves tienen el mismo marco vertical.
  Aquí usamos cover para que rellenen todo el recuadro.
*/
.relief-item .gallery-image {
  aspect-ratio: 555 / 1120;

  display: flex;
  align-items: center;
  justify-content: center;
}

.relief-item .gallery-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}


/* Fila especial: E 1 más grande que E 2 */
.gallery-duo-row {
  grid-column: 1 / -1;

  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: clamp(34px, 4vw, 64px);
  align-items: start;
}


/* Fila especial: F 1, F 2 y F 3 juntos */
.gallery-triptych-row {
  grid-column: 1 / -1;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  align-items: start;
}

/* Los tres F tienen el mismo alto para que queden alineados */
.f-item .gallery-image {
  height: clamp(210px, 17vw, 320px);
}

.f-item .gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.f-item .gallery-caption {
  margin-top: 8px;
}

.f-item .gallery-caption h2 {
  font-size: clamp(12px, 0.85vw, 15px);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.f-item .gallery-caption p {
  font-size: clamp(11px, 0.8vw, 14px);
}

/* Ajuste fino específico: baja L'Espartal I sin dejar línea superior */
.f-shift-down .gallery-image img {
  transform: scale(1.055) translateY(7px);
  transform-origin: center center;
}

.f-shift-down:hover .gallery-image img,
.f-shift-down:focus-visible .gallery-image img {
  transform: scale(1.065) translateY(7px);
}

/* Ajuste específico: obra G ligeramente más grande */
.g-large-item .gallery-image {
  width: 160%;
}

/* Fila especial: H 1 y H 2 en una fila nueva */
.gallery-two-row {
  grid-column: 1 / -1;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 4vw, 64px);
  align-items: start;
}

/*
  Ajuste específico Nº1 / Nº2:
  fuerza el mismo alto visual para ambas obras.
  Se usa cover para que el marco quede limpio y las dos imágenes respiren igual.
*/
.h-row .gallery-image {
  height: clamp(360px, 32vw, 520px);
}

.h-row .gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Tablet/móvil */
@media (max-width: 620px) {
  .gallery-two-row {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 620px) {
  .h-row .gallery-image {
    height: auto;
  }

  .h-row .gallery-image img {
    height: auto;
    object-fit: contain;
  }
}


/* Fila especial: I */
.gallery-i-row {
  grid-column: 1 / -1;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(34px, 4vw, 64px);
  align-items: start;
}

.gallery-i-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
  align-items: start;
}

.i-small-item .gallery-caption {
  margin-top: 8px;
}

.i-small-item .gallery-caption h2 {
  font-size: clamp(12px, 0.85vw, 15px);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.i-small-item .gallery-caption p {
  font-size: clamp(11px, 0.8vw, 14px);
}

/* Tablet */
@media (max-width: 900px) {
  .gallery-i-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }

  .gallery-i-subgrid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Móvil */
@media (max-width: 620px) {
  .gallery-i-row {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .gallery-i-subgrid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.g-large-item .gallery-caption {
  width: 112%;
}

/* Tablet */
@media (max-width: 900px) {
  .gallery-triptych-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .f-item .gallery-image {
    height: clamp(150px, 24vw, 240px);
  }
}

/* Móvil */
@media (max-width: 620px) {
  .gallery-triptych-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .f-item .gallery-image {
    height: auto;
  }

  .f-item .gallery-image img {
    height: auto;
    object-fit: contain;
  }
}

.e-main-item {
  max-width: 100%;
}

.e-secondary-item {
  max-width: 100%;
  align-self: center;
}

/* Tablet */
@media (max-width: 900px) {
  .gallery-duo-row {
    grid-template-columns: 1fr 0.8fr;
    gap: 30px;
  }
}

/* Móvil */
@media (max-width: 620px) {
  .gallery-duo-row {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

.gallery-caption {
  margin-top: 10px;
}

.gallery-caption h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: clamp(13px, 0.95vw, 16px);
  font-weight: 500;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

.gallery-caption p {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(12px, 0.9vw, 15px);
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.72;
}

.relief-item .gallery-caption {
  margin-top: 8px;
}

.relief-item .gallery-caption h2 {
  font-size: clamp(12px, 0.85vw, 15px);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.relief-item .gallery-caption p {
  font-size: clamp(11px, 0.8vw, 14px);
}

.gallery-item:hover .gallery-image,
.gallery-item:focus-visible .gallery-image {
  transform: scale(1.012);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
}

.gallery-item:hover .gallery-image img,
.gallery-item:focus-visible .gallery-image img {
  transform: scale(1.018);
}

/* Tablet */
@media (max-width: 900px) {
  .gallery-layout {
    width: min(90vw, 760px);
  }

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

  .same-size-item .gallery-image {
    height: clamp(210px, 34vw, 300px);
  }

  .gallery-special-row {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .relief-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
}

/* Móvil */
@media (max-width: 620px) {
  .gallery-layout {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .same-size-item .gallery-image {
    height: auto;
  }

  .same-size-item .gallery-image img {
    height: auto;
    object-fit: contain;
  }

  .relief-group {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .relief-item .gallery-image {
    aspect-ratio: auto;
  }

  .relief-item .gallery-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* ========================= */
/* MODAL OBRA */
/* ========================= */

body.modal-open {
  overflow: hidden;
}

.art-modal {
  position: fixed;
  inset: 0;
  z-index: 100;

  display: none;
  align-items: center;
  justify-content: center;

  padding: clamp(16px, 3vw, 46px);

  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(5px);
}

.art-modal.is-open {
  display: flex;
}

.modal-content {
  width: min(94vw, 1380px);
  max-height: calc(100dvh - var(--footer-height) - 58px);

  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(220px, 320px);

  gap: clamp(20px, 3vw, 42px);
  align-items: center;

  padding: clamp(16px, 2vw, 28px);

  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #000000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);

  overflow: hidden;
}

.modal-content img {
  width: 100%;
  max-height: calc(100dvh - var(--footer-height) - 120px);

  object-fit: contain;
  object-position: center;

  display: block;
  background: #ffffff;
}

.modal-text {
  min-width: 0;
  border-top: 3px solid #000000;
  padding-top: 18px;
}

.modal-text h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: clamp(21px, 2vw, 34px);
  font-weight: 500;
  line-height: 1.08;
  text-transform: none;
  letter-spacing: 0.01em;
  margin-bottom: 14px;

  overflow-wrap: anywhere;
  word-break: normal;
}

.modal-text p {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 8px;

  overflow-wrap: anywhere;
}

.modal-close {
  position: fixed;
  top: 24px;
  right: 30px;
  z-index: 110;

  width: 48px;
  height: 48px;

  border: 3px solid #000000;
  background: #ffffff;
  color: #000000;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
}

.modal-close:hover {
  background: #000000;
  color: #ffffff;
}

.modal-nav {
  position: fixed;
  top: 50%;
  z-index: 110;

  width: 54px;
  height: 54px;

  transform: translateY(-50%);

  border: 3px solid #000000;
  background: #ffffff;
  color: #000000;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
}

.modal-nav:hover {
  background: #000000;
  color: #ffffff;
}

.modal-prev {
  left: clamp(14px, 2vw, 34px);
}

.modal-next {
  right: clamp(14px, 2vw, 34px);
}

/* Tablet */
@media (max-width: 900px) {
  .modal-content {
    grid-template-columns: 1fr;
    width: min(92vw, 820px);
    gap: 20px;
  }

  .modal-content img {
    max-height: calc(100dvh - var(--footer-height) - 270px);
  }

  .modal-text h2 {
    font-size: clamp(22px, 5vw, 34px);
  }

  .modal-nav {
    width: 46px;
    height: 46px;
    font-size: 36px;
  }
}

/* Móvil */
@media (max-width: 520px) {
  .modal-close {
    top: 16px;
    right: 16px;
  }

  .modal-content {
    width: 92vw;
    padding: 16px;
  }

  .modal-content img {
    max-height: calc(100dvh - var(--footer-height) - 300px);
  }

  .modal-text {
    padding-top: 14px;
  }

  .modal-text h2 {
    font-size: clamp(20px, 7vw, 30px);
  }

  .modal-text p {
    font-size: 15px;
  }

  .modal-nav {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .modal-prev {
    left: 10px;
  }

  .modal-next {
    right: 10px;
  }
}


/* ========================= */
/* AUTOR / EL ARTISTA */
/* ========================= */

.about-layout {
  width: min(88vw, 1280px);
  max-width: none;
  margin: 0 auto;
}

.about-article {
  width: 100%;
  max-width: none;

  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(16px, 1.05vw, 18px);
  font-weight: 400;
  line-height: 1.78;
  color: #000000;
}

.about-article p {
  margin-bottom: 24px;
}

/*
  Foto + cita flotando a la derecha.
  El texto rodea este bloque y aprovecha el espacio inferior.
*/
.about-side {
  float: right;

  width: min(34vw, 460px);
  min-width: 340px;

  margin-left: clamp(36px, 5vw, 76px);
  margin-bottom: 28px;
}

.about-image {
  width: 100%;
  margin: 0;
}

.about-image img {
  width: 100%;
  height: auto;
  max-height: 620px;

  object-fit: contain;
  object-position: center;

  display: block;

  border: 1px solid #d6d6d6;
  background: #ffffff;
}

.artist-quote {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 3px solid #000000;
}

.artist-quote p {
  font-family: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #000000;
  margin-bottom: 12px;
}

.artist-quote cite {
  display: block;

  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #000000;
  opacity: 0.65;
}

/* Limpieza del float */
.about-article::after {
  content: "";
  display: block;
  clear: both;
}

/* Pantallas medianas */
@media (max-width: 1100px) {
  .about-layout {
    width: min(92vw, 1100px);
  }

  .about-side {
    width: min(38vw, 420px);
    min-width: 300px;
    margin-left: 36px;
  }
}

/* Tablet/móvil: la foto baja debajo del título y antes del texto */
@media (max-width: 820px) {
  .about-side {
    float: none;

    width: 100%;
    max-width: 520px;
    min-width: 0;

    margin: 0 0 34px 0;
  }

  .about-article {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* Móvil estrecho */
@media (max-width: 520px) {
  .about-layout {
    width: 100%;
  }

  .about-article {
    font-size: 15.5px;
    line-height: 1.68;
  }

  .artist-quote p {
    font-size: clamp(22px, 8vw, 32px);
  }
}


/* ========================= */
/* EXPOSICIONES */
/* ========================= */

.exhibitions-layout {
  width: min(86vw, 1040px);
  max-width: none;
  margin: 0 auto;
}

.exhibition-section {
  margin-bottom: clamp(48px, 7vh, 86px);
}

.exhibition-section h1,
.exhibition-section h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: clamp(22px, 1.7vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  color: #000000;

  margin-bottom: 26px;
  padding-bottom: 24px;

  border-bottom: 2px solid #000000;
}

.exhibition-text-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.exhibition-text-list p {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;

  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  color: #000000;

  margin: 0;
}

.exhibition-text-list p span {
  display: block;

  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: #000000;
}

/* Tablet */
@media (max-width: 820px) {
  .exhibitions-layout {
    width: min(90vw, 760px);
  }

  .exhibition-section {
    margin-bottom: 54px;
  }

  .exhibition-section h1,
  .exhibition-section h2 {
    font-size: 22px;
    margin-bottom: 22px;
    padding-bottom: 18px;
  }

  .exhibition-text-list {
    gap: 20px;
  }

  .exhibition-text-list p {
    grid-template-columns: 82px minmax(0, 1fr);
    column-gap: 14px;
    font-size: 16px;
    line-height: 1.55;
  }
}

/* Móvil */
@media (max-width: 520px) {
  .exhibitions-layout {
    width: 100%;
  }

  .exhibition-text-list {
    gap: 18px;
  }

  .exhibition-text-list p {
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 12px;
    font-size: 15.5px;
    line-height: 1.5;
  }
}

/* ========================= */
/* CONTACTO */
/* ========================= */

.contact-page .inner-main {
  display: flex;
  align-items: center;

  padding-top: clamp(24px, 4vh, 54px);
  padding-bottom: calc(var(--footer-height) + clamp(28px, 4vh, 54px));
}

.contact-layout {
  width: min(88vw, 1120px);
  max-width: none;
  margin: 0 auto;
}

.contact-intro {
  max-width: 980px;
  margin: 0 auto clamp(22px, 3vh, 34px);
}

.contact-intro p {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(16px, 1.15vw, 19px);
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  color: #000000;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.contact-details {
  margin-top: 0;
  border-top: 2px solid #000000;
}

.contact-details p {
  position: relative;

  min-height: 64px;
  margin: 0;
  padding: 14px 0 14px 64px;

  border-bottom: 2px solid #000000;
}

.contact-detail-icon {
  position: absolute;
  left: 14px;
  top: 50%;

  width: 30px;
  height: 30px;

  transform: translateY(-50%);
}

.contact-details span {
  display: block;

  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 7px;
  opacity: 0.65;
}

.contact-details a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 800;
  line-height: 1.18;
  color: #000000;
  text-decoration: none;
  word-break: break-word;
}

.contact-details a:hover {
  opacity: 0.65;
}

.contact-icon-instagram,
.contact-icon-facebook {
  fill: currentColor;
  stroke: none;
}

.contact-icon-instagram {
  color: #e1306c;
}

.contact-icon-facebook {
  color: #1877f2;
}

.contact-icon-email,
.contact-icon-phone {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon-email {
  stroke: #4da3ff;
}

.contact-icon-phone {
  stroke: #4caf50;
}

/* Formulario */
.contact-form {
  width: 100%;

  border: 2px solid #000000;
  padding: clamp(18px, 2vw, 28px);

  background: #ffffff;
}

.form-row {
  margin-bottom: 15px;
}

.form-row label {
  display: block;

  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 7px;
  opacity: 0.65;
}

.form-row input,
.form-row textarea {
  width: 100%;

  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;

  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 15px;
  line-height: 1.45;

  padding: 10px 11px;

  outline: none;
  resize: vertical;
}

.form-row textarea {
  min-height: 118px;
  max-height: 200px;
}

.form-row input:focus,
.form-row textarea:focus {
  border-width: 2px;
  padding: 9px 10px;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  margin: 4px 0 16px;

  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 12px;
  line-height: 1.45;
  color: #000000;
}

.privacy-check input {
  margin-top: 3px;
  flex-shrink: 0;
}

.privacy-check a {
  color: #000000;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-submit {
  width: 100%;

  border: 2px solid #000000;
  background: #000000;
  color: #ffffff;

  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;

  padding: 14px 18px;

  cursor: pointer;
  transition: opacity 0.25s ease;
}

.contact-submit:hover {
  opacity: 0.76;
}

.contact-success {
  display: none;

  margin-top: 14px;

  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #1f7a4d;
  text-transform: uppercase;
  text-align: center;
}

/* Portátil / pantalla media */
@media (max-width: 1500px) and (min-width: 981px) {
  .contact-page .inner-main {
    padding-top: clamp(16px, 2.6vh, 32px);
    padding-bottom: calc(var(--footer-height) + clamp(16px, 3vh, 32px));
  }

  .contact-layout {
    width: min(90vw, 1060px);
  }

  .contact-intro {
    margin-bottom: clamp(14px, 2.2vh, 24px);
  }

  .contact-intro p {
    font-size: clamp(14px, 0.95vw, 17px);
    line-height: 1.45;
  }

  .contact-grid {
    grid-template-columns: minmax(270px, 0.92fr) minmax(330px, 1.08fr);
    gap: clamp(28px, 4vw, 56px);
  }

  .contact-details p {
    min-height: 54px;
    padding: 10px 0 10px 58px;
  }

  .contact-detail-icon {
    left: 12px;
    width: 26px;
    height: 26px;
  }

  .contact-details span {
    font-size: 10px;
    margin-bottom: 5px;
  }

  .contact-details a {
    font-size: clamp(13px, 0.95vw, 16px);
  }

  .contact-form {
    padding: 18px;
  }

  .form-row {
    margin-bottom: 10px;
  }

  .form-row label {
    font-size: 10px;
    margin-bottom: 5px;
  }

  .form-row input,
  .form-row textarea {
    font-size: 14px;
    padding: 8px 9px;
  }

  .form-row input:focus,
  .form-row textarea:focus {
    padding: 7px 8px;
  }

  .form-row textarea {
    min-height: 90px;
    max-height: 140px;
  }

  .privacy-check {
    font-size: 11px;
    margin: 2px 0 12px;
  }

  .contact-submit {
    font-size: 12px;
    padding: 12px 16px;
  }
}

/* Portátil bajo */
@media (max-height: 760px) and (min-width: 981px) {
  .contact-page .inner-main {
    padding-top: 14px;
    padding-bottom: calc(var(--footer-height) + 18px);
  }

  .contact-intro {
    margin-bottom: 14px;
  }

  .contact-intro p {
    font-size: 14px;
    line-height: 1.38;
  }

  .contact-details p {
    min-height: 48px;
    padding: 8px 0 8px 54px;
  }

  .contact-detail-icon {
    left: 11px;
    width: 24px;
    height: 24px;
  }

  .contact-details a {
    font-size: 14px;
  }

  .contact-form {
    padding: 16px;
  }

  .form-row textarea {
    min-height: 82px;
    max-height: 120px;
  }
}

/* Tablet */
@media (max-width: 980px) {
  .contact-page .inner-main {
    display: block;
    padding-top: 32px;
  }

  .contact-layout {
    width: min(90vw, 720px);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact-intro p {
    text-align: left;
  }
}

/* Móvil */
@media (max-width: 520px) {
  .contact-layout {
    width: 100%;
  }

  .contact-details p {
    min-height: 52px;
    padding-left: 50px;
  }

  .contact-detail-icon {
    left: 8px;
    width: 24px;
    height: 24px;
  }

  .contact-details a {
    font-size: 16px;
  }

  .contact-form {
    padding: 16px;
  }
}

/* ========================= */
/* RESPONSIVE PÁGINAS INTERIORES */
/* ========================= */

/*
  Reglas generales de apoyo.
  Las páginas clave ya tienen sus propios breakpoints.
*/

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

  .exhibition-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .modal-content {
    max-width: 94vw;
  }
}

@media (max-width: 620px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .inner-main {
    padding-top: 36px;
  }

  .modal-close {
    top: 16px;
    right: 16px;
  }
}

/* ========================= */
/* FOOTER GLOBAL */
/* ========================= */

:root {
  --header-height: 116px;
  --footer-height: 42px;
}

@media (max-width: 1500px) and (min-width: 981px) {
  :root {
    --header-height: 72px;
    --footer-height: 38px;
  }
}

@media (max-height: 820px) and (min-width: 981px) {
  :root {
    --header-height: 58px;
    --footer-height: 36px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 104px;
    --footer-height: 74px;
  }
}

@media (max-width: 640px) {
  :root {
    --footer-height: 58px;
  }
}

.home-footer,
.site-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 80;

  width: 100%;
  height: var(--footer-height);
  padding: 0 clamp(18px, 5vw, 80px);

  background: #000000;
  color: #ffffff;
}

.footer-content {
  width: 100%;
  height: 100%;

  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  grid-template-rows: 1fr;
  align-items: center;
  column-gap: clamp(22px, 4vw, 80px);
}

.footer-left {
  display: contents;
}

/* ========================= */
/* CONTACTO FOOTER */
/* ========================= */

.footer-contact {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: start;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(14px, 1.8vw, 28px);

  min-width: 0;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(9px, 0.72vw, 12px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;

  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;

  transition: opacity 0.25s ease;
}

.footer-contact a:hover {
  opacity: 0.7;
}

/* Contacto del footer siempre solo con iconos */
.footer-contact a span {
  display: none !important;
}

.footer-contact a {
  gap: 0;
  font-size: 0;
  line-height: 1;
}

.footer-brand-icon {
  width: 16px;
  height: 16px;

  fill: currentColor;
  stroke: none;

  display: block;
  flex-shrink: 0;
}

.footer-line-icon {
  width: 16px;
  height: 16px;

  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;

  display: block;
  flex-shrink: 0;
}

.icon-instagram {
  color: #e1306c;
}

.icon-facebook {
  color: #1877f2;
}

.icon-email {
  stroke: #4da3ff;
}

.icon-phone {
  stroke: #4caf50;
}

/* ========================= */
/* IDIOMAS FOOTER */
/* ========================= */

.footer-language-switcher {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-width: max-content;
}

.footer-language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  min-height: 22px;

  border: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  color: #ffffff;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;

  padding: 4px 6px;

  cursor: pointer;
  opacity: 0.72;

  transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-language-button:hover {
  opacity: 1;
  border-color: #ffffff;
}

.footer-language-button.active {
  opacity: 1;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.language-flag,
.language-flag-img {
  flex-shrink: 0;
}

.language-flag {
  font-size: 13px;
  line-height: 1;
}

.language-flag-img {
  width: 18px;
  height: 12px;

  display: block;
  object-fit: cover;

  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #ffffff;
}

/* ========================= */
/* FIRMA FOOTER */
/* ========================= */

.home-footer p,
.site-footer p {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;

  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(9px, 0.72vw, 12px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;

  color: #ffffff;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.home {
  padding-bottom: var(--footer-height);
}

/* ========================= */
/* FOOTER: PORTÁTIL MEDIO */
/* ========================= */

@media (max-width: 1700px) and (min-width: 1201px) {
  .home-footer,
  .site-footer {
    padding: 0 clamp(16px, 3.8vw, 56px);
  }

  .footer-content {
    grid-template-columns: minmax(100px, 1fr) auto minmax(100px, 1fr);
    column-gap: clamp(24px, 4vw, 68px);
  }

  /*
    El contacto del footer ya va siempre como SOLO iconos.
    Así las banderas quedan visualmente más limpias en el centro.
  */
  .footer-contact a span {
    display: none !important;
  }

  .footer-contact {
    gap: 16px;
  }

  .footer-contact a {
    gap: 0;
    font-size: 0;
    line-height: 1;
  }

  .footer-brand-icon,
  .footer-line-icon {
    width: 16px;
    height: 16px;
  }

  .footer-language-switcher {
    gap: 5px;
  }

  .footer-language-button {
    min-height: 20px;
    font-size: 9px;
    padding: 3px 5px;
  }

  .language-flag-img {
    width: 16px;
    height: 11px;
  }

  .home-footer p,
  .site-footer p {
    font-size: 9px;
    letter-spacing: 0.01em;
  }
}

/* ========================= */
/* FOOTER: DESDE 1200PX HACIA ABAJO */
/* ========================= */

@media (max-width: 1200px) and (min-width: 981px) {
  .home-footer,
  .site-footer {
    padding: 0 clamp(16px, 3.8vw, 44px);
  }

  .footer-content {
    grid-template-columns: minmax(90px, 1fr) auto minmax(90px, 1fr);
    column-gap: clamp(18px, 3vw, 44px);
  }

  .footer-contact a span {
    display: none !important;
  }

  .footer-contact {
    gap: 16px;
  }

  .footer-contact a {
    gap: 0;
    font-size: 0;
    line-height: 1;
  }

  .footer-brand-icon,
  .footer-line-icon {
    width: 16px;
    height: 16px;
  }

  .footer-language-button span {
    display: none !important;
  }

  .footer-language-button {
    min-height: 23px;
    gap: 0;
    padding: 4px 5px;
  }

  .language-flag-img {
    width: 19px;
    height: 13px;
  }

  .home-footer p,
  .site-footer p {
    font-size: 8.5px;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ========================= */
/* FOOTER: TABLET / PORTÁTIL ESTRECHO */
/* ========================= */

@media (max-width: 980px) {
  .home-footer,
  .site-footer {
    height: var(--footer-height);
    padding: 6px 18px;
  }

  .footer-content {
    height: 100%;

    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-content: center;
    justify-items: center;
    row-gap: 4px;
  }

  .footer-left {
    display: contents;
  }

  .footer-language-switcher {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;

    gap: 7px;
  }

  .footer-language-button span {
    display: none !important;
  }

  .footer-language-button {
    min-height: 23px;
    gap: 0;
    padding: 4px 5px;
  }

  .language-flag-img {
    width: 19px;
    height: 13px;
  }

  .footer-contact {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    justify-self: center;

    gap: 16px;
    flex-wrap: nowrap;
  }

  .footer-contact a span {
    display: none !important;
  }

  .footer-contact a {
    gap: 0;
    font-size: 0;
    line-height: 1;
  }

  .footer-brand-icon,
  .footer-line-icon {
    width: 16px;
    height: 16px;
  }

  .home-footer p,
  .site-footer p {
    grid-column: 1;
    grid-row: 3;
    align-self: center;
    justify-self: center;

    font-size: 9px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  .inner-main {
    padding-bottom: calc(var(--footer-height) + 34px);
  }
}

/* ========================= */
/* FOOTER: MÓVIL */
/* ========================= */

@media (max-width: 640px) {
  .home-footer,
  .site-footer {
    height: var(--footer-height);
    padding: 5px 14px;
  }

  .footer-content {
    grid-template-rows: auto auto;
    row-gap: 6px;
  }

  .home-footer p,
  .site-footer p {
    display: none;
  }

  .footer-language-switcher {
    grid-row: 1;
    gap: 8px;
  }

  .footer-contact {
    grid-row: 2;
    gap: 18px;
  }

  .footer-brand-icon,
  .footer-line-icon {
    width: 17px;
    height: 17px;
  }

  .language-flag-img {
    width: 20px;
    height: 14px;
  }

  .inner-main {
    padding-bottom: calc(var(--footer-height) + 34px);
  }

  .contact-page .inner-main {
    padding-bottom: calc(var(--footer-height) + 28px);
  }
}

/* ========================= */
/* REFINAMIENTO TIPOGRÁFICO */
/* ========================= */

/*
  Apariencia menos gruesa en datos e interfaz.
  No toca el logotipo SECADES.
  Los títulos de obra no están aquí para que mantengan font-weight: 500.
*/

.inner-nav a,
.contact-details span,
.form-row label,
.contact-submit,
.footer-language-button {
  font-weight: 800;
}

.contact-details a,
.footer-contact a,
.home-footer p,
.site-footer p {
  font-weight: 700;
}

.exhibition-section h1,
.exhibition-section h2,
.exhibition-text-list p span,
.privacy-title,
.privacy-text h2 {
  font-weight: 800;
}


/* ========================= */
/* PRIVACIDAD */
/* ========================= */

/* ========================= */
/* PRIVACIDAD */
/* ========================= */

.privacy-layout {
  width: min(86vw, 900px);
  max-width: none;
  margin: 0 auto;
}

.privacy-title {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 36px;
}

.privacy-text h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 900;
  margin: 30px 0 10px;
  text-transform: uppercase;
}

.privacy-text p {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.privacy-text a {
  color: #000000;
  font-weight: 700;
}

/* ========================= */
/* RESPONSIVE FINAL: HEADER Y CONTACTO */
/* ========================= */

@media (max-width: 980px) {
  .inner-header {
    min-height: var(--header-height);
    padding: 10px clamp(18px, 5vw, 34px) 10px !important;
    gap: 9px !important;
  }

  .inner-logo {
    font-size: clamp(30px, 7.2vw, 44px) !important;
    line-height: 0.9;
  }

  .inner-nav {
    gap: 8px 16px !important;
  }

  .inner-nav a {
    font-size: clamp(9px, 1.55vw, 10.5px) !important;
    letter-spacing: -0.025em;
  }

  .contact-page .inner-main {
    padding-top: 22px !important;
    padding-right: clamp(18px, 5vw, 42px) !important;
    padding-bottom: calc(var(--footer-height) + 34px) !important;
    padding-left: clamp(18px, 5vw, 42px) !important;
  }

  .contact-layout {
    width: min(86vw, 760px) !important;
  }

  .contact-intro {
    margin-bottom: 26px !important;
  }

  .contact-intro p {
    font-size: clamp(14px, 2.05vw, 17px) !important;
    line-height: 1.42 !important;
    text-align: left !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .contact-details p {
    min-height: 54px !important;
    padding: 10px 0 10px 56px !important;
  }

  .contact-detail-icon {
    left: 12px !important;
    width: 25px !important;
    height: 25px !important;
  }

  .contact-details span {
    font-size: 10px !important;
    margin-bottom: 5px !important;
  }

  .contact-details a {
    font-size: clamp(14px, 2.15vw, 17px) !important;
    line-height: 1.15 !important;
  }

  .contact-form {
    padding: 16px !important;
  }

  .form-row {
    margin-bottom: 10px !important;
  }

  .form-row label {
    font-size: 10px !important;
    margin-bottom: 5px !important;
  }

  .form-row input,
  .form-row textarea {
    font-size: 14px !important;
    padding: 8px 9px !important;
  }

  .form-row textarea {
    min-height: 88px !important;
    max-height: 130px !important;
  }

  .privacy-check {
    font-size: 11px !important;
    margin: 2px 0 12px !important;
  }

  .contact-submit {
    font-size: 11px !important;
    padding: 11px 14px !important;
  }
}

@media (max-width: 520px) {
  :root {
    --header-height: 94px;
  }

  .inner-header {
    padding: 9px 18px 9px !important;
    gap: 8px !important;
  }

  .inner-logo {
    font-size: clamp(28px, 10vw, 38px) !important;
  }

  .inner-nav {
    gap: 8px 12px !important;
  }

  .inner-nav a {
    font-size: 9px !important;
  }

  .contact-layout {
    width: 100% !important;
  }

  .contact-intro p {
    font-size: 14px !important;
  }

  .contact-details p {
    min-height: 50px !important;
    padding-left: 50px !important;
  }

  .contact-detail-icon {
    left: 9px !important;
    width: 23px !important;
    height: 23px !important;
  }

  .contact-details a {
    font-size: 15px !important;
  }
}


/* ========================= */
/* MOBILE FINAL HAMBURGUESA */
/* ========================= */

/*
  Capa final para móvil.
  Mantiene escritorio intacto y convierte el header interior en hamburguesa
  a partir de 760px.
*/

.mobile-menu-toggle {
  display: none;
}

/* Portada móvil: formato tarjeta/lista limpio */
@media (max-width: 760px) {
  html,
  body {
    height: auto;
    min-height: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .home {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    align-items: flex-start;
    padding: 34px 0 calc(var(--footer-height) + 42px);
  }

  .poster {
    width: min(88vw, 430px);
    aspect-ratio: auto;

    display: flex;
    flex-direction: column;
    gap: 22px;

    padding-top: 86px;
  }

  .brand-svg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    height: 74px;

    opacity: 1;
    animation: none;
  }

  .brand-svg text {
    font-size: 180px;
  }

  .menu-item {
    position: static;

    width: 100%;
    height: auto;

    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 16px;

    padding: 10px 0;

    border-bottom: 1px solid #d8d8d1;
  }

  .menu-item:last-of-type {
    border-bottom: 0;
  }

  .art-frame {
    width: 74px;
    height: 112px;
    aspect-ratio: auto;
  }

  .menu-item span {
    margin: 0;

    font-size: clamp(16px, 4.8vw, 22px);
    line-height: 1.05;
    text-align: left;
    white-space: normal;
  }

  .home-footer {
    position: fixed;
  }
}

@media (max-width: 430px) {
  .poster {
    width: min(88vw, 360px);
  }

  .brand-svg {
    height: 64px;
  }

  .brand-svg text {
    font-size: 175px;
  }

  .menu-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .art-frame {
    width: 64px;
    height: 98px;
  }
}

/* Header móvil con hamburguesa */
@media (max-width: 760px) {
  :root {
    --header-height: 62px;
  }

  .inner-page {
    min-height: 100dvh;
  }

  .inner-header {
    position: sticky;
    top: 0;
    z-index: 120;

    min-height: var(--header-height);
    padding: 9px 18px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    border-bottom: 2px solid #000000;
  }

  .works-page .inner-header {
    position: fixed;
  }

  .inner-logo {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 0.86;
  }

  .mobile-menu-toggle {
    width: 42px;
    height: 38px;

    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border: 2px solid #000000;
    background: transparent;
    color: #000000;

    cursor: pointer;
  }

  .mobile-menu-toggle span {
    width: 21px;
    height: 2px;

    display: block;

    background: #000000;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  body.mobile-nav-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.mobile-nav-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.mobile-nav-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .inner-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;

    width: 100%;
    max-height: 0;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;

    padding: 0 18px;

    background: #eaeae3;
    border-bottom: 0 solid #000000;

    opacity: 0;
    pointer-events: none;

    transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.22s ease, border-width 0.22s ease;
  }

  body.mobile-nav-open .inner-nav {
    max-height: 340px;
    padding: 10px 18px 14px;

    border-bottom-width: 2px;

    opacity: 1;
    pointer-events: auto;
  }

  .inner-nav a {
    width: 100%;
    padding: 13px 0;

    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.02em;

    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
  }

  .inner-nav a:last-child {
    border-bottom: 0;
  }

  .inner-nav a.active::after {
    display: none;
  }

  .inner-main {
    padding:
      28px
      20px
      calc(var(--footer-height) + 42px);
  }

  .works-page .inner-main {
    padding-top: calc(var(--header-height) + 28px);
  }
}

/* Presentación móvil */
@media (max-width: 760px) {
  .presentation-page {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  .presentation-page .inner-main {
    display: block;

    padding-top: 28px;
    padding-right: 20px;
    padding-bottom: calc(var(--footer-height) + 42px);
    padding-left: 20px;
  }

  .presentation-layout {
    height: auto;
    min-height: auto;
  }

  .presentation-block {
    width: 100%;
    max-width: 520px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;

    margin: 0 auto;
  }

  .presentation-figure {
    max-width: 100%;
  }

  .presentation-figure img {
    max-width: 100%;
    max-height: none;
  }

  .presentation-separator {
    margin: 4px auto 0;
  }

  .presentation-quote {
    width: 100%;
    max-width: 100%;
  }

  .presentation-quote p {
    font-size: clamp(21px, 6.4vw, 31px);
    line-height: 1.28;
  }
}

/* Sobre el autor móvil */
@media (max-width: 760px) {
  .author-text-layout {
    width: min(90vw, 560px);
  }

  .author-side {
    float: none;

    width: min(78vw, 340px);
    min-width: 0;

    margin: 0 auto 28px;
  }

  .author-text {
    font-size: 15.8px;
    line-height: 1.68;
  }

  .author-text p {
    margin-bottom: 22px;
    text-align: left;
    hyphens: auto;
  }

  .author-credit {
    padding-left: 0;
  }

  .author-credit-link {
    gap: 12px;
  }

  .author-credit-photo {
    width: 48px;
    height: 48px;
  }
}

/* Obra móvil: galería legible en una columna */
@media (max-width: 760px) {
  .gallery-layout {
    width: min(90vw, 560px);
  }

  .gallery-grid,
  .gallery-special-row,
  .gallery-duo-row,
  .gallery-triptych-row,
  .gallery-two-row,
  .gallery-i-row,
  .gallery-i-subgrid,
  .relief-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gallery-special-row,
  .gallery-duo-row,
  .gallery-triptych-row,
  .gallery-two-row,
  .gallery-i-row {
    grid-column: 1 / -1;
  }

  .gallery-image,
  .same-size-item .gallery-image,
  .f-item .gallery-image,
  .h-row .gallery-image,
  .relief-item .gallery-image {
    height: auto;
    aspect-ratio: auto;
  }

  .gallery-image img,
  .same-size-item .gallery-image img,
  .f-item .gallery-image img,
  .h-row .gallery-image img,
  .relief-item .gallery-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: none;
  }

  .f-shift-down .gallery-image img,
  .f-shift-down:hover .gallery-image img,
  .f-shift-down:focus-visible .gallery-image img {
    transform: none;
  }

  .g-large-item .gallery-image,
  .g-large-item .gallery-caption {
    width: 100%;
  }

  .e-secondary-item {
    align-self: stretch;
  }

  .gallery-caption {
    margin-top: 8px;
  }

  .gallery-caption h2 {
    font-size: 15px;
    line-height: 1.12;
  }

  .gallery-caption p {
    font-size: 13px;
  }
}

/* Modal móvil más usable */
@media (max-width: 760px) {
  .art-modal {
    padding: 72px 14px calc(var(--footer-height) + 18px);
    align-items: center;
  }

  .modal-content {
    width: 100%;
    max-height: calc(100dvh - var(--footer-height) - 108px);

    display: flex;
    flex-direction: column;
    gap: 14px;

    padding: 12px;

    border-width: 2px;
    overflow: auto;
  }

  .modal-content img {
    width: 100%;
    max-height: calc(100dvh - var(--footer-height) - 260px);
    object-fit: contain;
  }

  .modal-text {
    width: 100%;
    padding-top: 12px;
    border-top: 2px solid #000000;
  }

  .modal-text h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .modal-text p {
    font-size: 14px;
    margin-bottom: 5px;
  }

  .modal-close {
    top: 74px;
    right: 14px;

    width: 40px;
    height: 40px;

    border-width: 2px;
    font-size: 30px;
  }

  .modal-nav {
    width: 38px;
    height: 38px;

    border-width: 2px;
    font-size: 30px;
  }

  .modal-prev {
    left: 8px;
  }

  .modal-next {
    right: 8px;
  }
}

/* Exposiciones móvil */
@media (max-width: 760px) {
  .exhibitions-layout {
    width: min(90vw, 580px);
  }

  .exhibition-section {
    margin-bottom: 44px;
  }

  .exhibition-section h1,
  .exhibition-section h2 {
    font-size: 21px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .exhibition-text-list {
    gap: 18px;
  }

  .exhibition-text-list p {
    grid-template-columns: 66px minmax(0, 1fr);
    column-gap: 12px;

    font-size: 15px;
    line-height: 1.48;
  }
}

/* Contacto móvil */
@media (max-width: 760px) {
  .contact-page .inner-main {
    display: block;

    padding-top: 28px;
    padding-right: 20px;
    padding-bottom: calc(var(--footer-height) + 42px);
    padding-left: 20px;
  }

  .contact-layout {
    width: min(90vw, 560px);
  }

  .contact-intro {
    margin-bottom: 24px;
  }

  .contact-intro p {
    font-size: 15.5px;
    line-height: 1.55;
    text-align: left;
  }

  .contact-intro br {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-details p {
    min-height: 58px;
    padding: 12px 0 12px 56px;
  }

  .contact-detail-icon {
    left: 12px;
    width: 26px;
    height: 26px;
  }

  .contact-details span {
    font-size: 10px;
  }

  .contact-details a {
    font-size: 15px;
  }

  .contact-form {
    padding: 16px;
  }

  .form-row {
    margin-bottom: 12px;
  }

  .form-row input,
  .form-row textarea {
    font-size: 16px;
  }

  .form-row textarea {
    min-height: 118px;
  }

  .privacy-check {
    font-size: 12px;
    line-height: 1.35;
  }

  .contact-submit {
    width: 100%;
    padding: 13px 16px;
  }
}

/* Privacidad móvil */
@media (max-width: 760px) {
  .privacy-layout {
    width: min(90vw, 580px);
  }

  .privacy-title {
    font-size: clamp(28px, 9vw, 44px);
    line-height: 1;
    margin-bottom: 26px;
  }

  .privacy-text {
    font-size: 15px;
    line-height: 1.62;
  }

  .privacy-text h2 {
    font-size: 16px;
    margin-top: 28px;
  }
}

/* Footer móvil estable */
@media (max-width: 760px) {
  :root {
    --footer-height: 62px;
  }

  .home-footer,
  .site-footer {
    height: var(--footer-height);
    padding: 6px 14px;
  }

  .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    justify-items: center;
    row-gap: 6px;
  }

  .footer-left {
    display: contents;
  }

  .footer-language-switcher {
    grid-row: 1;
    gap: 8px;
  }

  .footer-language-button {
    min-height: 22px;
    padding: 3px 5px;
  }

  .footer-language-button span {
    display: none !important;
  }

  .language-flag-img {
    width: 20px;
    height: 14px;
  }

  .footer-contact {
    grid-row: 2;
    gap: 18px;
  }

  .footer-contact a span {
    display: none !important;
  }

  .footer-brand-icon,
  .footer-line-icon {
    width: 17px;
    height: 17px;
  }

  .home-footer p,
  .site-footer p {
    display: none;
  }
}

/* Móvil muy estrecho */
@media (max-width: 420px) {
  .inner-main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .inner-logo {
    font-size: clamp(31px, 10vw, 40px);
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 36px;
  }

  .gallery-layout,
  .author-text-layout,
  .contact-layout,
  .exhibitions-layout,
  .privacy-layout {
    width: 100%;
  }

  .presentation-quote p {
    font-size: clamp(20px, 6.8vw, 27px);
  }
}

/* ========================= */
/* AJUSTE FINAL PORTADA MÓVIL COMPACTA */
/* ========================= */

@media (max-width: 760px) {
  .home {
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;

    align-items: center;

    padding-top: 10px;
    padding-right: 0;
    padding-bottom: calc(var(--footer-height) + 8px);
    padding-left: 0;
  }

  .home .brand-svg {
    display: none !important;
  }

  .home .poster {
    width: min(90vw, 430px);
    height: auto;
    max-height: calc(100dvh - var(--footer-height) - 22px);

    padding-top: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  .home .menu-item {
    min-height: 0;

    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;

    padding: 7px 0;
  }

  .home .art-frame {
    width: 60px;
    height: 90px;
  }

  .home .menu-item span {
    font-size: clamp(14px, 4.35vw, 19px);
    line-height: 1;
    letter-spacing: -0.015em;
  }
}

@media (max-width: 430px) {
  .home .poster {
    width: min(90vw, 370px);
    gap: 10px;
  }

  .home .menu-item {
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 13px;

    padding: 6px 0;
  }

  .home .art-frame {
    width: 55px;
    height: 82px;
  }

  .home .menu-item span {
    font-size: clamp(13.5px, 4.25vw, 17px);
  }
}

@media (max-height: 700px) and (max-width: 760px) {
  .home .poster {
    gap: 8px;
  }

  .home .menu-item {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 5px 0;
  }

  .home .art-frame {
    width: 50px;
    height: 75px;
  }

  .home .menu-item span {
    font-size: 14px;
  }
}

/* ========================= */
/* AJUSTE FINAL BANDERAS */
/* ========================= */

.footer-language-switcher {
  isolation: isolate;
}

.footer-language-button,
.footer-language-button.active,
.footer-language-button:not(.active) {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  background: rgba(255, 255, 255, 0.10);
}

.language-flag-img {
  display: block;

  width: 22px;
  height: 15px;

  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;

  object-fit: cover;
  object-position: center;

  background: transparent;

  transform: translateZ(0);
  -webkit-transform: translateZ(0);

  image-rendering: auto;
}

/* ========================= */
/* AJUSTE FINAL ICONOS CONTACTO */
/* ========================= */

/* Iconos del footer: Instagram, Facebook, email y teléfono */
.footer-brand-icon,
.footer-line-icon {
  width: 18px;
  height: 18px;
}

/* Iconos grandes de la página Contacto */
.contact-detail-icon {
  width: 34px;
  height: 34px;
}

/* Reajuste del espacio izquierdo para que no se pise el texto */
.contact-details p {
  padding-left: 70px;
}

.contact-detail-icon {
  left: 15px;
}

/* Móvil */
@media (max-width: 760px) {
  .footer-brand-icon,
  .footer-line-icon {
    width: 19px;
    height: 19px;
  }

  .contact-detail-icon {
    width: 29px;
    height: 29px;
    left: 12px;
  }

  .contact-details p {
    padding-left: 58px;
  }
}

/* ========================= */
/* AJUSTE FINAL PESO TIPOGRÁFICO */
/* ========================= */

/* Títulos de la portada/index */
.menu-item span {
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Títulos de secciones en Exposiciones */
.exhibition-section h1,
.exhibition-section h2 {
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Años en Exposiciones */
.exhibition-text-list p span {
  font-weight: 400;
}

/* Texto general de Exposiciones */
.exhibition-text-list p {
  font-weight: 400;
}