@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,900&family=Libre+Baskerville:wght@400;700&family=Montserrat:wght@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.35vw, 26px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-align: center;
  white-space: nowrap;
}

/* Hover elegante */
.menu-item:hover {
  opacity: 0.76;
}

.menu-item:hover span {
  text-decoration: none;
}

/* 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 fijo en páginas interiores.
  sticky es mejor que fixed aquí porque no tapa el contenido inicial.
*/

.inner-header {
  position: sticky;
  top: 0;
  z-index: 50;

  flex-shrink: 0;

  width: 100%;
  padding: 24px clamp(24px, 6vw, 80px) 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  background: #eaeae3;
  border-bottom: 3px solid #000000;

  backdrop-filter: blur(8px);
}

.inner-logo {
  font-family: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 900;
  line-height: 1;
  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;
  gap: clamp(14px, 2vw, 32px);
  flex-wrap: wrap;
}

.inner-nav a {
  position: relative;

  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 900;
  color: #000000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -0.02em;

  transition: color 0.25s ease, opacity 0.25s ease;
}

.inner-nav a:hover {
  opacity: 0.65;
}

/*
  Sección activa.
  Verde oscuro elegante para indicar dónde estás.
*/
.inner-nav a.active {
  color: #1f7a4d;
}

.inner-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;

  height: 4px;
  background: #1f7a4d;
}

.inner-main {
  flex: 1;

  width: 100%;
  padding: clamp(40px, 8vh, 90px) clamp(24px, 6vw, 80px) 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;
}



/* ========================= */
/* OBRA: HEADER FIJO */
/* ========================= */

/*
  Para activar este comportamiento solo en obra.html,
  el body de obra.html debe ser:
  <body class="inner-page works-page">
*/

.works-page .inner-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
}

/*
  Compensa el header fijo para que la galería no quede tapada.
  Ajusta 110px a 96px si ves demasiado espacio superior.
*/
.works-page .inner-main {
  padding-top: calc(110px + clamp(24px, 4vh, 52px));
}

@media (max-height: 760px) {
  .works-page .inner-main {
    padding-top: calc(88px + 24px);
  }
}

@media (max-width: 820px) {
  .works-page .inner-main {
    padding-top: calc(150px + 28px);
  }
}

/* ========================= */
/* 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(14px, 2vh, 28px);
  padding-right: clamp(24px, 6vw, 80px);
  padding-bottom: calc(var(--footer-height) + clamp(14px, 2vh, 28px));
  padding-left: clamp(24px, 6vw, 80px);
}

.presentation-layout {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
}

.presentation-block {
  width: fit-content;
  max-width: min(88vw, 1200px);
  height: 100%;
  min-height: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.presentation-figure {
  width: fit-content;
  max-width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;

  display: flex;
  justify-content: center;
  align-items: center;
}

.presentation-figure img {
  width: auto;
  max-width: min(70vw, 980px);
  max-height: 100%;

  object-fit: contain;
  object-position: center;

  display: block;

  border: 0;
  background: #ffffff;
}

/*
  Línea independiente.
  Su ancho lo calcula el script:
  ancho real de la foto x 0.7
*/
.presentation-separator {
  flex: 0 0 auto;

  width: 70%;
  height: 4px;

  margin-top: clamp(14px, 2vh, 24px);

  background: #000000;
}

/*
  La cita ya no lleva línea arriba.
  La línea es .presentation-separator.
*/
.presentation-quote {
  flex: 0 0 auto;

  width: 82%;
  max-width: 760px;

  margin-top: clamp(10px, 1.6vh, 18px);
  padding-top: 0;

  border-top: 0;
  text-align: center;
}

.presentation-quote p {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(22px, 2.1vw, 36px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: #000000;
  margin-bottom: 10px;
}

.presentation-quote cite {
  display: block;

  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: clamp(10px, 0.85vw, 13px);
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #000000;
  opacity: 0.65;
}

/* Pantallas bajas de escritorio */
@media (max-height: 760px) and (min-width: 761px) {
  .presentation-page .inner-main {
    padding-top: 10px;
    padding-bottom: calc(var(--footer-height) + 12px);
  }

  .presentation-separator {
    height: 4px;
    margin-top: 10px;
  }

  .presentation-quote {
    margin-top: 8px;
  }

  .presentation-quote p {
    font-size: clamp(19px, 1.8vw, 30px);
    line-height: 1.22;
    margin-bottom: 8px;
  }

  .presentation-quote cite {
    font-size: 10px;
  }
}

/* Pantallas muy bajas de escritorio */
@media (max-height: 650px) and (min-width: 761px) {
  .presentation-separator {
    margin-top: 8px;
  }

  .presentation-quote {
    margin-top: 6px;
  }

  .presentation-quote p {
    font-size: clamp(17px, 1.6vw, 26px);
    line-height: 1.2;
  }
}

/* Tablet y móvil: aquí sí dejamos scroll si hace falta */
@media (max-width: 760px) {
  .presentation-page {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  .presentation-page .inner-main {
    min-height: auto;

    display: block;

    padding-top: 28px;
    padding-right: 22px;
    padding-bottom: calc(var(--footer-height) + 42px);
    padding-left: 22px;
  }

  .presentation-layout {
    width: 100%;
    height: auto;
    min-height: auto;

    display: flex;
    justify-content: flex-start;
  }

  .presentation-block {
    width: 100%;
    max-width: 620px;
    height: auto;
    min-height: auto;
    margin: 0 auto;
  }

  .presentation-figure {
    width: 100%;
    height: auto;
    min-height: auto;
    flex: none;
  }

  .presentation-figure img {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }

  .presentation-separator {
    margin-top: 18px;
  }

  .presentation-quote {
    width: 92%;
    margin-top: 16px;
  }

  .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-quote {
    width: 96%;
    margin-top: 14px;
  }

  .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;
}

.author-text p {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(16px, 1.05vw, 18px);
  font-weight: 400;
  line-height: 1.78;
  color: #000000;
  margin-bottom: 26px;

  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

@media (max-width: 820px) {
  .author-text-layout {
    width: min(90vw, 760px);
  }

  .author-text p {
    font-size: 16px;
    line-height: 1.7;
  }
}

@media (max-width: 520px) {
  .author-text-layout {
    width: 100%;
  }

  .author-text p {
    font-size: 15.5px;
    line-height: 1.68;
  }
}


/* ========================= */
/* 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);
}

.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;
}

/* Tablet/móvil */
@media (max-width: 620px) {
  .gallery-two-row {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}


/* 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);
}

.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: 900;
  line-height: 1.08;
  text-transform: uppercase;
  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);
}

.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: 900;
  line-height: 1;
  text-transform: uppercase;
  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: clamp(2px, 0.22vw, 5px) solid #000000;
  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: 900;
  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: 900;
  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: block;

  padding-top: clamp(28px, 5vh, 54px);
  padding-bottom: calc(var(--footer-height) + clamp(24px, 4vh, 50px));
}

.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 {
  margin: 0;
  padding: 15px 0;
  border-bottom: 2px solid #000000;
}

.contact-details span {
  display: block;

  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 900;
  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: 900;
  line-height: 1.2;
  color: #000000;
  text-decoration: none;
  word-break: break-word;
}

.contact-details a:hover {
  opacity: 0.65;
}

.contact-details p {
  position: relative;
  padding-left: 48px;
}

.contact-detail-icon {
  position: absolute;
  left: 0;
  top: 50%;

  width: 28px;
  height: 28px;

  transform: translateY(-50%);
}

.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;
}

.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;
}

/* 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;
}

.contact-submit {
  width: 100%;

  border: 2px solid #000000;
  background: #000000;
  color: #ffffff;

  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 900;
  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: 900;
  color: #1f7a4d;
  text-transform: uppercase;
  text-align: center;
}

/* Portátiles bajos */
@media (max-height: 760px) and (min-width: 821px) {
  .contact-page .inner-main {
    padding-top: 22px;
    padding-bottom: calc(var(--footer-height) + 28px);
  }

  .contact-intro {
    margin-bottom: 24px;
  }

  .contact-intro p {
    font-size: 16px;
    line-height: 1.45;
  }

  .contact-details p {
    padding: 12px 0;
  }

  .form-row {
    margin-bottom: 12px;
  }

  .form-row textarea {
    min-height: 96px;
    max-height: 150px;
  }

  .contact-form {
    padding: 18px;
  }
}

/* Tablet */
@media (max-width: 820px) {
  .contact-page .inner-main {
    display: block;
    padding-top: 36px;
  }

  .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 a {
    font-size: 16px;
  }

  .contact-form {
    padding: 16px;
  }
}



/* ========================= */
/* RESPONSIVE PÁGINAS INTERIORES */
/* ========================= */

@media (max-width: 820px) {
  .inner-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .inner-nav {
    gap: 14px 20px;
  }

  .inner-nav a.active::after {
    bottom: -6px;
    height: 3px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .exhibition-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .modal-content {
    max-width: 94vw;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .inner-main {
    padding-top: 36px;
  }

  .modal-close {
    top: 16px;
    right: 16px;
  }
}

/* Pantallas bajas */
@media (max-height: 760px) {
  .inner-header {
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .inner-logo {
    font-size: clamp(30px, 4vw, 54px);
  }

  .inner-main {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .page-title {
    font-size: clamp(42px, 7vw, 86px);
    margin-bottom: 28px;
  }

  .text-block p,
  .contact-box>p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .site-footer {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* ========================= */
/* FOOTER GLOBAL */
/* ========================= */

:root {
  --footer-height: 42px;
}

.home-footer,
.site-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 80;

  width: 100%;
  height: var(--footer-height);
  padding: 0 clamp(24px, 6vw, 80px);

  background: #000000;
  color: #ffffff;
}

.footer-content {
  position: relative;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Zona izquierda: contacto */
.footer-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

/* ========================= */
/* IDIOMAS CENTRADOS */
/* ========================= */

.footer-language-switcher {
  position: absolute;
  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  display: flex;
  align-items: center;
  gap: 6px;

  z-index: 2;
}

.footer-language-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #ffffff;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;

  padding: 4px 6px;

  cursor: pointer;
  opacity: 0.68;

  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.12);
}

.language-flag {
  font-size: 13px;
  line-height: 1;
}

/* ========================= */
/* CONTACTO FOOTER */
/* ========================= */

.footer-contact {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  min-width: 0;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(9px, 0.75vw, 12px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.03em;

  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;

  transition: opacity 0.25s ease;
}

.footer-contact a:hover {
  opacity: 0.7;
}

/* Iconos de marca: Instagram / Facebook */
.footer-brand-icon {
  width: 15px;
  height: 15px;

  fill: currentColor;
  stroke: none;

  flex-shrink: 0;
}

/* Iconos lineales: email / teléfono */
.footer-line-icon {
  width: 15px;
  height: 15px;

  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;

  flex-shrink: 0;
}

/* Colores de iconos */
.icon-instagram {
  color: #e1306c;
}

.icon-facebook {
  color: #1877f2;
}

.icon-email {
  stroke: #4da3ff;
}

.icon-phone {
  stroke: #4caf50;
}

/* ========================= */
/* TEXTO DERECHA */
/* ========================= */

.home-footer p,
.site-footer p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(9px, 0.75vw, 12px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.03em;

  color: #ffffff;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

/* Espacio general para que el footer fijo no tape contenido */
.inner-main {
  padding-bottom: calc(var(--footer-height) + 72px);
}

.home {
  padding-bottom: var(--footer-height);
}

/* ========================= */
/* TABLET / MÓVIL */
/* ========================= */

@media (max-width: 760px) {
  :root {
    --footer-height: 98px;
  }

  .home-footer,
  .site-footer {
    padding: 7px 20px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .footer-left {
    width: 100%;
    justify-content: center;
  }

  .footer-language-switcher {
    position: static;
    transform: none;
    order: 1;
  }

  .footer-contact {
    order: 2;
    width: 100%;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .home-footer p,
  .site-footer p {
    order: 3;
    text-align: center;
  }

  .footer-contact a,
  .home-footer p,
  .site-footer p {
    font-size: 10px;
  }

  .footer-brand-icon,
  .footer-line-icon {
    width: 14px;
    height: 14px;
  }

  .inner-main {
    padding-bottom: calc(var(--footer-height) + 86px);
  }
}

.language-flag-img {
  width: 18px;
  height: 12px;

  display: block;
  object-fit: cover;

  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

/* ========================= */
/* MÓVIL ESTRECHO */
/* ========================= */

@media (max-width: 430px) {
  :root {
    --footer-height: 144px;
  }

  .footer-contact {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .footer-content {
    gap: 5px;
  }

  .footer-language-button {
    font-size: 9px;
    padding: 4px 5px;
  }

  .language-flag {
    font-size: 12px;
  }
}

/* ========================= */
/* 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;
}