:root {
  --ink: #172026;
  --ink-soft: #2f3b42;
  --paper: #f5efe4;
  --paper-strong: #eadcc7;
  --surface: #fffaf2;
  --line: #d4c5ae;
  --blue: #245c83;
  --blue-dark: #163f5c;
  --sky: #a9d1d7;
  --burgundy: #8e3342;
  --olive: #526443;
  --gold: #c79a3d;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(23, 32, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px 5vw;
  color: var(--white);
  background: rgba(23, 32, 38, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 250, 242, 0.96);
  box-shadow: 0 10px 28px rgba(23, 32, 38, 0.12);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--burgundy);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  font-size: 0.78rem;
  opacity: 0.86;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: currentColor;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  padding: 132px 5vw 72px;
  color: var(--white);
  background-image: url("../img/hero-cruce.jpg");
  background-size: cover;
  background-position: center;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 32, 38, 0.84), rgba(23, 32, 38, 0.48) 52%, rgba(23, 32, 38, 0.12)),
    linear-gradient(0deg, rgba(23, 32, 38, 0.45), rgba(23, 32, 38, 0.04));
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.4rem;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: 1.22rem;
}

.hero__actions,
.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}

.button--primary {
  color: var(--white);
  background: var(--burgundy);
  border-color: var(--burgundy);
}

.button--light {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--surface);
}

.button--outline {
  color: var(--blue-dark);
  background: transparent;
  border-color: var(--blue-dark);
}

.button:hover,
.button:focus-visible,
.doc-card a:hover,
.worksheet-card a:hover {
  transform: translateY(-1px);
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: var(--white);
}

.quick-strip a {
  min-height: 124px;
  padding: 24px 5vw;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.quick-strip a:nth-child(2) {
  background: var(--blue-dark);
}

.quick-strip a:nth-child(3) {
  background: var(--olive);
}

.quick-strip a:nth-child(4) {
  background: var(--burgundy);
}

.quick-strip span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  line-height: 1;
}

.quick-strip strong {
  font-size: 1rem;
}

.section {
  padding: 84px 5vw;
  background: var(--surface);
}

.section--paper {
  background: var(--paper);
}

.section--ink {
  color: var(--surface);
  background: var(--ink);
}

.section__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.intro {
  border-bottom: 1px solid var(--line);
}

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 44px;
  align-items: start;
}

.section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.55rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.intro p:last-child,
.data-copy p {
  margin: 0;
  font-size: 1.08rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-heading--split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
}

.timeline h3,
.museum-card h3,
.gallery-block h3,
.doc-card h3,
.worksheet-card h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
}

.timeline p,
.museum-card p,
.doc-card p,
.worksheet-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.museum-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.museum-card,
.doc-card,
.worksheet-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.museum-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.museum-card div,
.doc-card div,
.worksheet-card {
  padding: 18px;
}

.museum-card span,
.worksheet-card span {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-block {
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.icon-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.icon-gallery button {
  position: relative;
  height: 156px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink);
  border: 0;
  border-radius: 8px;
}

.icon-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
}

.icon-gallery button:hover img,
.icon-gallery button:focus-visible img {
  transform: scale(1.04);
  opacity: 0.82;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.doc-card {
  display: grid;
  grid-template-rows: auto 1fr;
  color: var(--ink);
}

.doc-card img {
  width: 100%;
  aspect-ratio: 1 / 1.42;
  object-fit: cover;
  background: var(--paper);
}

.doc-card time {
  color: var(--burgundy);
  font-weight: 800;
}

.doc-card a,
.worksheet-card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.worksheets-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.worksheet-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.data-section {
  background:
    linear-gradient(90deg, var(--surface) 0 62%, var(--sky) 62% 100%);
}

.data-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 46px;
  align-items: center;
}

.data-copy {
  max-width: 580px;
}

.data-visual {
  display: grid;
  grid-template-columns: 0.68fr 1fr;
  gap: 14px;
  align-items: center;
}

.data-visual__logo,
.data-visual__map {
  width: 100%;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.data-visual__logo {
  padding: 18px;
}

.data-visual__map {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.site-footer {
  padding: 28px 5vw;
  color: var(--surface);
  background: var(--ink);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-grid p {
  margin: 0;
}

.footer-grid a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 32px 5vw;
  color: var(--white);
  background: rgba(23, 32, 38, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 78vh;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.lightbox p {
  margin: 16px 0 0;
  font-weight: 700;
  text-align: center;
}

.lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  color: var(--white);
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1050px) {
  .museum-grid,
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .worksheets-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .icon-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .data-section {
    background: var(--surface);
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 5vw 24px;
    color: var(--ink);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 82vh;
    padding: 110px 5vw 52px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero p:not(.eyebrow) {
    font-size: 1.05rem;
  }

  .quick-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-strip a {
    min-height: 110px;
  }

  .section {
    padding: 58px 5vw;
  }

  .section h2 {
    font-size: 2rem;
  }

  .intro__grid,
  .timeline li,
  .section-heading--split,
  .data-visual {
    grid-template-columns: 1fr;
  }

  .section-heading--split {
    display: grid;
  }

  .section-actions {
    justify-content: stretch;
  }

  .timeline time {
    font-size: 1.55rem;
  }

  .museum-grid,
  .docs-grid,
  .worksheets-grid,
  .icon-gallery {
    grid-template-columns: 1fr;
  }

  .icon-gallery button {
    height: 210px;
  }

  .footer-grid {
    display: grid;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .quick-strip {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
