:root {
  --terracotta: #a63b36;
  --beige: #e8c69e;
  --paper: #f0efec;
  --ink: #191714;
  --muted: #6f665d;
  --header-shadow: 0 10px 14px rgba(0, 0, 0, 0.18);
  --shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
  --shadow-soft: 0 10px 18px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

main {
  flex: 1;
  display: block;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

figure,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

.layout {
  width: min(1640px, calc(100% - 48px));
  margin: 0 auto;
}

.page-builder {
  position: relative;
}

.page-section {
  position: relative;
}

.page-section__inner {
  position: relative;
}

.page-section--fullbleed > .page-section__inner {
  width: 100%;
  max-width: none;
  margin-left: 0;
  overflow: hidden;
}

.section-title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-bottom: 18px;
}

.site-header {
  width: min(1640px, calc(100% - 48px));
  min-height: 64px;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 118.5px 1fr 118.5px;
  align-items: center;
  gap: 16px;
  background: var(--terracotta);
  color: #fff;
  box-shadow: var(--header-shadow);
}

.site-logo {
  grid-column: 1;
  margin: 0;
  padding: 0;
}

.site-logo img {
  width: 118.5px;
  height: auto;
}

.site-nav-toggle {
  grid-column: 3;
  justify-self: end;
  border-color: rgba(255, 255, 255, 0.34);
  padding: 0.42rem 0.58rem;
}

.site-nav-toggle:focus {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.7);
}

.site-nav-shell {
  grid-column: 2;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.site-nav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav .nav-item + .nav-item::before {
  content: "|";
  margin: 0 10px 0 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  line-height: 1;
}

.site-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 400;
  line-height: 29px;
  letter-spacing: 0.18em;
  text-transform: none;
  white-space: nowrap;
  opacity: 0.96;
}

.site-nav .nav-link.active,
.site-nav .show > .nav-link {
  font-weight: 400;
  color: #fff;
  opacity: 1;
}

.site-nav .dropdown-toggle::after {
  display: none;
}

.site-nav .dropdown-menu {
  min-width: 260px;
  margin-top: 16px;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: rgba(166, 59, 54, 0.97);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.16);
}

.site-nav .nav-link.search-link::after {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='6.75' cy='6.75' r='4.75' stroke='white' stroke-width='1.5'/%3E%3Cpath d='M10.5 10.5L14 14' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}


/* Live site: button uses Font Awesome icon; skip ::after so we do not show two glasses */
.site-nav .nav-link.search-link.search-trigger::after {
  content: none;
}

.site-nav .dropdown-item {
  padding: 9px 18px;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.08em;
  white-space: normal;
}

.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus {
  background: transparent;
  color: var(--beige);
}

.site-nav .dropdown-item.active,
.site-nav .dropdown-item:active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.site-nav .dropdown-item.disabled,
.site-nav .dropdown-item:disabled {
  opacity: 0.48;
}

.photo-card {
  position: relative;
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 74px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent);
}

.photo-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.gallery-card {
  cursor: zoom-in;
}

.gallery-card img {
  transition: transform 0.45s ease;
}

.gallery-card:hover img {
  transform: scale(1.03);
}

[data-flickity-gallery].row.flickity-enabled {
  display: block;
  margin-right: 0;
  margin-left: 0;
}

[data-flickity-gallery].row.flickity-enabled > * {
  padding-right: 0;
  padding-left: 0;
}

/* Noticia body strip: drop Bootstrap gutter once Flickity lays cells (avoids white gaps). */
[data-flickity-gallery].noticia-mosaic.row.flickity-enabled {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

[data-flickity-gallery].noticia-mosaic.flickity-enabled .gallery-cell {
  margin-right: 0;
}

[data-flickity-gallery] .gallery-cell {
  min-height: 1px;
}

[data-flickity-gallery] .flickity-viewport {
  overflow: hidden;
}

[data-flickity-gallery] .flickity-prev-next-button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(166, 59, 54, 0.92);
}

[data-flickity-gallery] .flickity-prev-next-button:hover {
  background: rgba(166, 59, 54, 1);
}

[data-flickity-gallery] .flickity-prev-next-button:disabled {
  opacity: 0.34;
}

[data-flickity-gallery] .flickity-button-icon {
  fill: #fff;
}

[data-flickity-gallery] .flickity-page-dots {
  bottom: -38px;
}

[data-flickity-gallery] .flickity-page-dots .dot {
  width: 9px;
  height: 9px;
  margin: 0 5px;
  background: rgba(25, 23, 20, 0.26);
  opacity: 1;
}

[data-flickity-gallery] .flickity-page-dots .dot.is-selected {
  background: var(--terracotta);
}

.site-footer {
  padding: 22px 0 28px;
}

.site-footer.light {
  background: var(--beige);
  color: var(--ink);
}

.site-footer.dark {
  background: var(--terracotta);
  color: #fff;
}

.footer-inner {
  width: min(1468px, calc(100% - 48px));
  margin: 0 auto;
  align-items: flex-start;
  font-size: 19px;
  line-height: 1.42;
}

.footer-inner > * {
  min-width: 0;
}

.home-gallery > *,
.objectives-gallery > *,
.noticia-mosaic > *,
.prensa-list > *,
.prensa-item > * {
  min-width: 0;
}

.footer-info {
  max-width: 370px;
}

.footer-links {
  text-align: right;
}

.footer-links a {
  display: block;
}

.page-home {
  background: var(--terracotta);
  color: #fff;
}

.home-main {
  padding-top: 72px;
}

.home-logo {
  width: min(776px, calc(100% - 64px));
  margin: 12px auto 90px;
}

.home-split-titles {
  margin-bottom: 12px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.home-split-titles h2 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  text-align: center;
}

.home-gallery .photo-card {
  aspect-ratio: 820 / 377;
}

.page-objectives {
  background: var(--terracotta);
  color: #fff;
}

.objectives-main {
  padding-top: 113px;
}

.objectives-copy,
.objective-list,
.noticia-article {
  max-width: 812px;
  margin-left: clamp(0px, 25%, 414px);
}

.objectives-copy p,
.objectives-intro-text {
  font-size: 20px;
  line-height: 1.8;
}

.objectives-intro-text {
  margin: 0;
}

.objectives-inline-title {
  margin-right: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.objectives-gallery {
  margin: 76px 0 80px;
  /* Equal columns: width matches photo count (inline --objectives-count on carousel). */
  --objectives-count: 3;
}

.objectives-gallery .gallery-cell {
  width: calc(100% / var(--objectives-count, 3));
  min-width: 0;
}

.objectives-gallery .photo-card {
  aspect-ratio: 543 / 442;
}

.objective-list {
  list-style: none;
}

.objective-list li {
  margin-bottom: 32px;
  font-size: 20px;
  line-height: 1.8;
}

.objectives-banner {
  width: 100%;
  margin-top: 66px;
}

.objectives-banner .photo-card {
  aspect-ratio: 1920 / 508;
}

.objectives-banner .photo-card {
  aspect-ratio: 1920 / 508;
  max-height: 508px;
}

.page-quienes {
  background: #f1ece6;
}

.page-quienes .site-header-wrap {
  background: var(--terracotta);
  padding-bottom: 0;
}

.quienes-main {
  padding-top: 40px;
}

/* Static quienes-somos: full main background (CMS image), card on top — no hero div. */
.quienes-main.quienes-main--bg {
  position: relative;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Content stacks above bottom gradient; caption sits on the background at bottom-left. */
.quienes-main--bg .quienes-overlay {
  position: relative;
  z-index: 2;
}

.quienes-main--bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent);
  pointer-events: none;
  z-index: 1;
}

.quienes-bg-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.quienes-overlay {
  padding: 36px 0 60px;
}

.paper-card {
  max-width: 1088px;
  margin: 0 auto;
  padding: 62px 64px 56px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.paper-card .section-title {
  margin-bottom: 34px;
}

.paper-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.paper-card p,
.paper-card li {
  margin-bottom: 28px;
  font-size: 20px;
  line-height: 1.72;
}

.paper-card ul {
  list-style: none;
}

.paper-card li {
  margin-bottom: 4px;
}

.page-exposicion {
  background: #ececec;
}

.page-exposicion .site-header-wrap {
  padding-bottom: 0;
}

.exposicion-hero {
  position: relative;
  height: min(1266px, 74vw);
  min-height: 560px;
  overflow: hidden;
  background: #ddd;
}

.exposicion-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.exposicion-title-band {
  position: absolute;
  top: 157px;
  right: 0;
  left: 0;
  display: grid;
  min-height: 112px;
  padding: 14px 16px;
  place-items: center;
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.exposicion-title-band h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.exposicion-main {
  padding-top: 50px;
  background: #ececec;
}

.expo-grid,
.expo-media-grid {
  --bs-gutter-x: 0;
  --bs-gutter-y: 64px;
  margin-right: 0;
  margin-left: 0;
  justify-content: space-between;
}

.expo-grid > *,
.expo-media-grid > * {
  min-width: 0;
  padding-right: 0;
  padding-left: 0;
}

.expo-copy {
  flex: 0 0 674px;
  width: 674px;
  max-width: 674px;
}

.expo-copy-column {
  flex: 0 0 682px;
  width: 682px;
  max-width: 682px;
}

.expo-aside {
  flex: 0 0 675px;
  width: 675px;
  max-width: 675px;
}

.expo-copy-column {
  padding-top: 23px;
}

.page-exposicion .photo-label,
.expo-strip-caption {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.52631579;
  letter-spacing: 0.18em;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.55);
}

.page-exposicion .photo-label {
  left: 10px;
  bottom: 11px;
}

.expo-copy h2 {
  margin: 0 0 30px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.expo-section h3 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.expo-copy p,
.expo-section p {
  margin-bottom: 36px;
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  font-size: 20px;
  line-height: 1.8;
}

.expo-stack {
  display: grid;
  gap: 65px;
}

.expo-stack .photo-card {
  box-shadow: none;
}

.expo-intro-stack > .gallery-card:nth-child(1) {
  aspect-ratio: 675 / 450;
}

.expo-intro-stack > .gallery-card:nth-child(2) {
  aspect-ratio: 675 / 451;
}

.expo-detail-stack > .gallery-card:nth-child(1) {
  aspect-ratio: 675 / 451;
}

.expo-detail-stack > .gallery-card:nth-child(2) {
  aspect-ratio: 675 / 506;
}

.expo-detail-stack > .gallery-card:nth-child(3) {
  aspect-ratio: 675 / 540;
}

.expo-intro-stack > .gallery-card,
.expo-detail-stack > .gallery-card {
  display: block;
  width: 100%;
  height: auto;
}

.expo-strip-shell {
  margin: 107px 0 80px;
}

.expo-thumbs {
  --expo-strip-offset: 76px;
  width: calc(100% + var(--expo-strip-offset));
  margin: 0 0 0 calc(-1 * var(--expo-strip-offset));
  padding: 0;
}

.expo-thumbs .gallery-cell {
  width: var(--carousel-cell-width, 205px);
  margin-right: 18px;
}

.expo-thumbs a {
  display: block;
  cursor: zoom-in;
}

.expo-thumbs a img {
  transition: transform 0.45s ease;
}

.expo-thumbs a:hover img {
  transform: scale(1.04);
}

.expo-thumbs figure {
  width: var(--carousel-cell-width, 205px);
  height: var(--carousel-cell-height, 231px);
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.expo-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expo-strip-caption {
  margin: 27px 0 0 13px;
  color: #fff;
}

.expo-section {
  width: min(100%, 674px);
  margin-bottom: 38px;
}

.expo-media-grid {
  padding-bottom: 68px;
}

.expo-video {
  width: min(682px, 100%);
  margin-top: 65px;
  box-shadow: none;
}

.video-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 682 / 388;
  box-shadow: var(--shadow-soft);
}

.expo-video.video-card {
  box-shadow: none;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.video-play span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  padding-left: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 34px;
}

.page-noticia {
  background: #fff;
}

.noticia-main {
  padding-top: 72px;
}

.noticia-date {
  margin-bottom: 26px;
  font-size: 20px;
  line-height: 1.5;
}

.noticia-summary {
  margin-bottom: 26px;
  font-size: 30px;
  line-height: 1.55;
}

.noticia-title {
  margin: 0 0 34px;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.35;
}

.noticia-article p {
  margin-bottom: 24px;
  font-size: 19px;
  line-height: 1.72;
}

.noticia-hero {
  margin: 34px 0 46px;
  aspect-ratio: 812 / 542;
  box-shadow: var(--shadow-soft);
}

.noticia-mosaic {
  --bs-gutter-x: 40px;
  --bs-gutter-y: 40px;
  margin: 70px 0;
}

.noticia-mosaic .photo-card {
  box-shadow: var(--shadow-soft);
}

.noticia-mosaic .main-card {
  aspect-ratio: 812 / 541;
}

.noticia-mosaic .gallery-cell--main {
  width: 50%;
}

.noticia-mosaic .side-card {
  aspect-ratio: 361 / 541;
}

.noticia-mosaic .gallery-cell--side {
  width: 25%;
}

[data-gallery-theme="paired"] {
  --gallery-item-height: 377px;
}

[data-gallery-theme="wide-grid"] {
  --gallery-item-height: 442px;
}

[data-gallery-theme="mosaic"] {
  --gallery-item-height: 541px;
}

[data-gallery-theme="stack"] {
  --gallery-item-height: 450px;
}

[data-gallery-theme]:not([data-gallery-theme="strip"]) .photo-card,
[data-gallery-theme]:not([data-gallery-theme="strip"]) .gallery-card {
  height: min(var(--gallery-item-height), 72vw);
  aspect-ratio: auto;
}

.noticia-video {
  width: min(812px, 100%);
  margin: 46px auto 0;
}

.page-prensa {
  background: var(--beige);
}

.prensa-main {
  padding-top: 113px;
}

.prensa-shell {
  width: min(1088px, calc(100% - 48px));
  margin: 0 auto;
}

.prensa-heading {
  margin: 0 0 58px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prensa-list {
  --bs-gutter-x: 24px;
  --bs-gutter-y: 74px;
}

.prensa-item {
  --bs-gutter-x: 16px;
  --bs-gutter-y: 18px;
  padding-bottom: 38px;
}

.prensa-item.row-divider {
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(25, 23, 20, 0.18);
}

.prensa-thumb {
  width: min(260px, 100%);
  aspect-ratio: 1 / 1;
  padding: 0;
  margin-bottom: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

@media (min-width: 576px) {
  .prensa-thumb {
    margin-bottom: 0;
    margin-right: 28px;
  }
}

.prensa-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prensa-meta h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.35;
}

.prensa-meta p {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: rgba(25, 23, 20, 0.72);
}

.page-prensa-article {
  background: linear-gradient(to bottom, var(--beige) 0 558px, #fff 558px 100%);
}

.prensa-article-main {
  padding-top: 113px;
}

.prensa-article-head {
  width: min(1088px, calc(100% - 48px));
  margin: 0 auto 40px;
  text-align: left;
}

.prensa-article-head h1 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prensa-article-head p {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.35;
}

.prensa-article-sheet {
  width: min(1368px, calc(100% - 48px));
  margin: 0 auto;
  display: block;
  background: #fff;
  box-shadow: none;
}

.prensa-article-sheet img {
  width: 100%;
  height: auto;
}

@media (max-width: 1320px) {
  .objectives-copy,
  .objective-list,
  .noticia-article {
    margin-left: 0;
  }

  .paper-card {
    padding: 48px 40px;
  }

  .expo-aside {
    flex: 0 0 520px;
    width: 520px;
    max-width: 520px;
  }

  .prensa-list {
    --bs-gutter-x: 42px;
    --bs-gutter-y: 56px;
  }

  .prensa-thumb {
    width: min(220px, 100%);
  }
}

@media (max-width: 1199.98px) {
  .site-header-wrap {
    padding-bottom: 14px;
  }

  .site-header {
    width: calc(100% - 24px);
    min-height: 0;
    padding: 12px 16px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    grid-template-columns: none;
  }

  .site-logo {
    margin-right: auto;
  }

  .site-nav-toggle {
    margin-left: auto;
  }

  .site-nav-shell {
    grid-column: auto;
    width: 100%;
    display: block;
  }

  .site-nav {
    width: 100%;
    margin-top: 10px;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
  }

  .site-nav .nav-item {
    width: 100%;
  }

  .site-nav .nav-item + .nav-item::before {
    content: none;
  }

  .site-nav .nav-link {
    justify-content: space-between;
    padding: 0.7rem 0;
    font-size: 14px;
    line-height: 1.4;
  }

  .site-nav .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: 0.18em;
  }

  .site-nav .dropdown-menu {
    position: static;
    min-width: 100%;
    margin-top: 0.15rem;
    padding: 0.35rem 0 0.55rem;
    background: rgba(166, 59, 54, 0.9);
    box-shadow: none;
    border: 0;
  }

  .site-nav .dropdown-item {
    color: #fff;
    font-size: 12px;
    padding: 0.5rem 0.9rem;
  }

  .site-nav .dropdown-item:hover,
  .site-nav .dropdown-item:focus {
    background: transparent;
    color: var(--beige);
  }

  .site-nav .dropdown-item.active,
  .site-nav .dropdown-item:active {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
  }

  .site-nav .dropdown-item.disabled,
  .site-nav .dropdown-item:disabled {
    color: #fff;
    opacity: 0.48;
  }
}

@media (max-width: 1040px) {

  .layout,
  .footer-inner,
  .prensa-shell,
  .prensa-article-head,
  .prensa-article-sheet {
    width: calc(100% - 24px);
  }

  .home-main {
    padding-top: 40px;
  }

  .home-logo {
    margin-bottom: 56px;
  }

  .home-split-titles {
    font-size: 24px;
  }

  .home-gallery,
  .objectives-gallery,
  .expo-grid,
  .expo-media-grid,
  .prensa-list {
    --bs-gutter-x: 0;
  }

  .home-gallery > *,
  .objectives-gallery > *,
  .expo-grid > *,
  .expo-media-grid > *,
  .prensa-list > * {
    flex: 0 0 100%;
    width: 100%;
  }

  .expo-stack {
    gap: 28px;
  }

  .objectives-gallery .gallery-cell,
  .noticia-mosaic .gallery-cell--main,
  .noticia-mosaic .gallery-cell--side {
    width: 82%;
    margin-right: 18px;
  }

  .expo-copy,
  .expo-copy-column,
  .expo-aside {
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
  }

  .expo-copy-column {
    padding-top: 0;
  }

  .exposicion-title-band {
    top: 112px;
  }

  .expo-strip-shell {
    margin: 72px 0 64px;
  }

  .expo-thumbs {
    --expo-strip-offset: 62px;
  }

  .expo-thumbs .gallery-cell {
    width: calc(var(--carousel-cell-width, 205px) * 0.82);
    margin-right: 14px;
  }

  .expo-thumbs figure {
    width: calc(var(--carousel-cell-width, 205px) * 0.82);
    height: calc(var(--carousel-cell-height, 231px) * 0.82);
  }

  .footer-inner {
    font-size: 17px;
  }
}

@media (max-width: 720px) {
  .site-header-wrap {
    position: static;
    padding-bottom: 12px;
  }

  .site-nav .nav-link {
    line-height: 1.5;
  }

  .home-logo {
    width: min(540px, calc(100% - 24px));
    margin: 0 auto 40px;
  }

  .home-split-titles {
    font-size: 20px;
  }

  .home-split-titles > *,
  .prensa-item > *,
  .footer-inner > * {
    flex: 0 0 100%;
    width: 100%;
  }

  .objectives-main,
  .quienes-overlay,
  .exposicion-main,
  .noticia-main,
  .prensa-main,
  .prensa-article-main {
    padding-top: 28px;
  }

  .section-title,
  .exposicion-title-band h1,
  .prensa-heading,
  .prensa-article-head h1 {
    font-size: 32px;
  }

  .objectives-copy p,
  .objective-list li,
  .paper-card p,
  .paper-card li,
  .expo-copy p,
  .expo-section p,
  .noticia-article p,
  .prensa-meta p {
    font-size: 17px;
  }

  .paper-card {
    padding: 36px 24px;
  }

  .quienes-main--bg {
    background-position: 38% top;
  }

  .exposicion-hero {
    height: 420px;
    min-height: 420px;
  }

  .exposicion-title-band {
    top: 118px;
    padding: 16px 12px 18px;
  }

  .page-exposicion .photo-label,
  .expo-strip-caption {
    font-size: 14px;
    line-height: 1.45;
  }

  .objectives-gallery .gallery-cell,
  .noticia-mosaic .gallery-cell--main,
  .noticia-mosaic .gallery-cell--side {
    width: 88%;
    margin-right: 14px;
  }

  .expo-thumbs .gallery-cell {
    width: calc(var(--carousel-cell-width, 205px) * 0.68);
    margin-right: 12px;
  }

  .expo-thumbs {
    --expo-strip-offset: 52px;
  }

  .expo-thumbs figure {
    width: calc(var(--carousel-cell-width, 205px) * 0.68);
    height: calc(var(--carousel-cell-height, 231px) * 0.68);
  }

  .noticia-summary {
    font-size: 22px;
  }

  .noticia-title {
    font-size: 29px;
  }

  .noticia-date {
    font-size: 16px;
  }

  .noticia-mosaic .main-card,
  .noticia-mosaic .side-card {
    aspect-ratio: 4 / 3;
  }

  .noticia-mosaic {
    --bs-gutter-x: 18px;
    --bs-gutter-y: 18px;
  }

  .prensa-item {
    --bs-gutter-x: 0;
    --bs-gutter-y: 18px;
  }

  .prensa-thumb {
    width: min(260px, 100%);
    max-width: 260px;
  }

  .footer-inner {
    font-size: 16px;
  }

  .footer-links {
    text-align: left;
  }
}



/* List index pagination (noticias / prensa / proyectos) */
.fap-pagination .page-link {
  color: var(--ink);
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(25, 23, 20, 0.2);
  padding: 0.45rem 0.9rem;
  font-size: 15px;
}

.fap-pagination .page-item.disabled .page-link {
  opacity: 1;
  color: rgba(25, 23, 20, 0.65);
  background-color: rgba(255, 255, 255, 0.35);
}

.fap-pagination .page-link:hover {
  color: var(--terracotta);
  background-color: #fff;
  border-color: rgba(166, 59, 54, 0.45);
}

.page-exposicion .fap-pagination .page-link {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.page-exposicion .fap-pagination .page-item.disabled .page-link {
  color: rgba(255, 255, 255, 0.75);
  background-color: rgba(255, 255, 255, 0.06);
}

.page-exposicion .fap-pagination .page-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}

/* --- Búsqueda en vivo (Wagtail) — encima del diseño site-header --- */
.fap-search-modal .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.fap-search-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--terracotta);
  color: #fff;
  display: none;
  overflow-y: auto;
}

.fap-search-modal.is-open {
  display: block;
}

.site-nav .search-trigger {
  gap: 0.25rem;
  cursor: pointer;
}

.site-nav .search-trigger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.fap-search-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.1;
  padding: 0.25rem 0;
}

.fap-search-input::placeholder {
  color: rgba(255, 255, 255, 0.9);
}

.fap-search-input:focus {
  outline: none;
  border-bottom-color: #fff;
}

.fap-search-hint,
.fap-search-empty {
  color: rgba(255, 255, 255, 0.85);
}

.fap-search-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.fap-search-card {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.fap-search-card:hover {
  border-color: #fff;
}

.fap-search-type {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fap-search-title {
  font-size: 1rem;
  line-height: 1.25;
}

@media (max-width: 992px) {
  .fap-search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .fap-search-results {
    grid-template-columns: 1fr;
  }
}
