/* ==========================================================================
   Convento de las Dueñas · Monjas Dominicas de Salamanca
   Hoja de estilos única. Sin dependencias externas.
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Piedra dorada, marfil y tinta: los colores del claustro */
  --paper: #f7f2e8;
  --paper-2: #efe6d5;
  --paper-3: #e6d9c2;
  --stone: #c39a5c;
  --stone-deep: #8a6634;
  --ink: #231e19;
  --ink-soft: #574c41;
  --terracotta: #9a4b2d;
  --night: #1c1814;
  --night-2: #2a241e;
  --line: rgba(35, 30, 25, 0.14);
  --line-light: rgba(247, 242, 232, 0.22);

  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --narrow: 720px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 2px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.4vw + 0.98rem, 1.1875rem);
  font-weight: 400;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--terracotta); }

:focus-visible {
  outline: 2px solid var(--stone);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 7.2vw, 6.4rem); }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
h4 { font-size: 1.35rem; }

p { margin: 0 0 1.15em; text-wrap: pretty; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--narrow); margin-inline: auto; }
.center { text-align: center; }

.section { padding-block: var(--section); }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--night); color: var(--paper); }
.section--dark a:hover { color: var(--stone); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-deep);
  margin-bottom: 1.1rem;
}
.section--dark .eyebrow { color: var(--stone); }
.hero .eyebrow,
.page-hero .eyebrow {
  color: #ecd6aa;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55), 0 0 2px rgba(0, 0, 0, 0.35);
}

.lede {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  font-weight: 400;
  line-height: 1.42;
  color: var(--ink-soft);
}
.section--dark .lede { color: rgba(247, 242, 232, 0.82); }

.dropcap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.6em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--stone-deep);
}

/* Ornamento: dos líneas y un arco */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--stone);
  margin: 0 auto 2rem;
  max-width: 220px;
}
.ornament::before,
.ornament::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.6; }
.ornament svg { width: 22px; height: 22px; flex: none; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--solid:hover { background: var(--stone); border-color: var(--stone); color: var(--night); }
.btn--ghost { color: var(--paper); }
.btn--ghost:hover { background: rgba(247, 242, 232, 0.12); color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ink:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--paper); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--terracotta);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.25rem;
}
.link-arrow::after { content: "→"; transition: transform 0.3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--stone); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--paper);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -40px;
  background: linear-gradient(to bottom, rgba(20, 16, 12, 0.55), rgba(20, 16, 12, 0));
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.site-header.is-solid,
.header-solid .site-header {
  background: rgba(247, 242, 232, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-solid,
  .header-solid .site-header { background: rgba(247, 242, 232, 0.86); backdrop-filter: blur(10px); }
}
.site-header.is-solid::before,
.header-solid .site-header::before { opacity: 0; }

.site-header .container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  line-height: 1.1;
}
.brand:hover { color: inherit; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-sub {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-list a:hover { color: inherit; border-bottom-color: currentColor; }
.nav-list a[aria-current="page"] { border-bottom-color: var(--stone); }
.nav-list .nav-cta {
  border: 1px solid currentColor;
  padding: 0.55rem 1rem;
}
.nav-list .nav-cta:hover { background: var(--stone); border-color: var(--stone); color: var(--night); }

.nav-toggle {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  padding: 0.5rem;
  margin-right: -0.5rem;
  cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; position: relative; z-index: 2; }
  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--paper);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .nav-list { flex-direction: column; gap: 1.6rem; text-align: center; }
  .nav-list a { font-family: var(--font-display); font-size: 2rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
  .nav-list .nav-cta { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.9rem 1.6rem; margin-top: 0.6rem; }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { color: var(--ink); }
  .nav-open .site-header::before { opacity: 0; }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .nav-open { overflow: hidden; }
  .nav-open .brand { position: relative; z-index: 2; }
}

/* ---------- Portada (hero) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background: var(--night);
  overflow: hidden;
  isolation: isolate;
}
.hero-media,
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img,
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media img { animation: slow-zoom 24s var(--ease) both; transform-origin: 50% 30%; }
@keyframes slow-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(18, 14, 10, 0.86) 0%, rgba(18, 14, 10, 0.45) 38%, rgba(18, 14, 10, 0.05) 70%),
    linear-gradient(to right, rgba(18, 14, 10, 0.35), rgba(18, 14, 10, 0) 60%);
}
.hero-content {
  padding-block: calc(var(--header-h) + 3rem) clamp(3.5rem, 9vh, 6.5rem);
  max-width: 900px;
}
@media (max-width: 640px) {
  .hero::after,
  .page-hero::after {
    background: linear-gradient(to top, rgba(18, 14, 10, 0.92) 0%, rgba(18, 14, 10, 0.7) 45%, rgba(18, 14, 10, 0.15) 80%);
  }
  .hero-media img { object-position: 50% 20%; }
}
.hero h1 { margin-bottom: 0.3em; }
.hero .lede {
  color: rgba(247, 242, 232, 0.9);
  max-width: 40ch;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: rgba(247, 242, 232, 0.75);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 54px;
  background: currentColor;
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* Cabecera de páginas interiores */
.page-hero {
  position: relative;
  min-height: 68vh;
  min-height: 68svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background: var(--night);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .container { padding-block: calc(var(--header-h) + 3rem) clamp(2.5rem, 7vh, 4.5rem); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); margin-bottom: 0.2em; }
.page-hero p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  color: rgba(247, 242, 232, 0.88);
  margin: 0;
  max-width: 46ch;
}
.page-hero .credit-inline { position: absolute; right: var(--gutter); bottom: 0.8rem; }

.page-head {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }

.credit-inline {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(247, 242, 232, 0.6);
  text-decoration: none;
}
.credit-inline:hover { color: var(--paper); }

/* ---------- Introducción y cifras ---------- */
.intro { text-align: center; }
.intro h2 { margin-bottom: 0.6em; }
.intro .lede { margin-inline: auto; max-width: 34em; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.fact {
  padding: 2rem 1.25rem 0;
  text-align: center;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: 0; }
.fact-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.4vw, 3.7rem);
  font-weight: 500;
  line-height: 1;
  color: var(--stone-deep);
  margin-bottom: 0.6rem;
}
.fact-label { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; display: block; max-width: 18ch; margin-inline: auto; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { border-right: 0; padding-bottom: 1.5rem; }
  .fact:nth-child(odd) { border-right: 1px solid var(--line); }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Bloques imagen + texto ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split--reverse { grid-template-columns: 1fr 1.1fr; }
.split--reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; height: auto; }
.split-media--tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.split-media::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--stone);
  z-index: -1;
  opacity: 0.7;
}
.split--reverse .split-media::before { inset: 1.25rem 1.25rem -1.25rem -1.25rem; }
.split-text h2 { margin-bottom: 0.55em; }
.split-text .link-arrow { margin-top: 0.8rem; }
@media (max-width: 860px) {
  .split,
  .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media::before { display: none; }
}

figure { margin: 0; }
figcaption,
.caption {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}
figcaption a,
.caption a { color: inherit; }
.section--dark figcaption { color: rgba(247, 242, 232, 0.65); }

/* Banda panorámica */
.panorama { position: relative; background: var(--night); }
.panorama img { width: 100%; height: clamp(260px, 42vw, 620px); object-fit: cover; }
.panorama figcaption {
  position: absolute;
  right: var(--gutter);
  bottom: 0.8rem;
  margin: 0;
  color: rgba(247, 242, 232, 0.75);
  font-size: 0.75rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* ---------- Cita ---------- */
.motto { text-align: center; }
.motto blockquote { margin: 0 auto; max-width: 900px; }
.motto .latin {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 0.6em;
  color: var(--paper);
}
.motto .translation {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: rgba(247, 242, 232, 0.82);
  margin-bottom: 1.4rem;
}
.motto cite {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- Mosaico de detalles ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(120px, 14vw, 190px);
  gap: clamp(0.5rem, 1.2vw, 1rem);
}
.mosaic figure { position: relative; overflow: hidden; background: var(--paper-3); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 2rem 1rem 0.8rem;
  color: var(--paper);
  font-size: 0.82rem;
  background: linear-gradient(to top, rgba(18, 14, 10, 0.75), rgba(18, 14, 10, 0));
}
.m-a { grid-column: span 7; grid-row: span 2; }
.m-b { grid-column: span 5; grid-row: span 1; }
.m-c { grid-column: span 5; grid-row: span 1; }
.m-d { grid-column: span 4; grid-row: span 2; }
.m-e { grid-column: span 8; grid-row: span 2; }
@media (max-width: 700px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .m-a, .m-e { grid-column: span 2; grid-row: span 2; }
  .m-b, .m-c, .m-d { grid-column: span 1; grid-row: span 1; }
  .m-d { grid-column: span 2; }
}

/* ---------- Tarjeta destacada (Chikaba) ---------- */
.feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.feature-mark {
  width: clamp(88px, 12vw, 140px);
  height: clamp(88px, 12vw, 140px);
  color: var(--stone-deep);
}
.feature-card h3 { margin-bottom: 0.4em; }
.feature-card p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .feature-card { grid-template-columns: 1fr; text-align: center; }
  .feature-mark { margin-inline: auto; }
}

/* ---------- Visita: horarios ---------- */
.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

.hours { border-top: 1px solid var(--line-light); margin: 0 0 1.5rem; }
.hours-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line-light);
  align-items: baseline;
}
.hours-row dt { font-weight: 600; }
.hours-row dt small { display: block; font-weight: 400; font-size: 0.86rem; opacity: 0.72; }
.hours-row dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.section:not(.section--dark) .hours,
.section:not(.section--dark) .hours-row { border-color: var(--line); }

.price-tag {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 1.8rem 0;
}
.price-tag div { display: flex; flex-direction: column; }
.price-tag strong {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1;
  color: var(--stone);
}
.section:not(.section--dark) .price-tag strong { color: var(--stone-deep); }
.price-tag span { font-size: 0.9rem; opacity: 0.8; margin-top: 0.4rem; }

.note {
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--stone);
  background: rgba(195, 154, 92, 0.1);
  margin: 1.5rem 0;
}
.section--dark .note { background: rgba(195, 154, 92, 0.12); color: rgba(247, 242, 232, 0.88); }

.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { display: flex; gap: 0.9rem; padding: 0.5rem 0; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; flex: none; margin-top: 0.3rem; color: var(--stone); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line-light); }
.section:not(.section--dark) .contact-list a { border-bottom-color: var(--line); }
.section:not(.section--dark) .contact-list svg { color: var(--stone-deep); }

.map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-3);
  border: 1px solid var(--line);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(0.25) saturate(0.85); }
.map-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1rem; font-size: 0.92rem; }

/* ---------- Línea del tiempo ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7.5rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: var(--stone);
  opacity: 0.6;
}
.timeline li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0 2.5rem;
  padding-bottom: 2.4rem;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(7.5rem - 5px);
  top: 0.65rem;
  width: 11px;
  height: 11px;
  background: var(--paper);
  border: 1px solid var(--stone-deep);
  transform: rotate(45deg);
}
.section--tint .timeline li::before { background: var(--paper-2); }
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--stone-deep);
  line-height: 1.2;
  text-align: right;
  padding-right: 0.5rem;
}
.timeline h3 { font-size: 1.5rem; margin-bottom: 0.3em; }
.timeline p { margin: 0; color: var(--ink-soft); }
@media (max-width: 640px) {
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 2rem; }
  .timeline li::before { left: 0; }
  .timeline-year { text-align: left; font-size: 1.45rem; }
}

/* ---------- Texto largo ---------- */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose figure { margin: 2.5rem 0; }
.prose figure.wide { margin-inline: calc(-1 * clamp(0rem, 8vw, 8rem)); }
@media (max-width: 960px) { .prose figure.wide { margin-inline: 0; } }

.two-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0; }
.two-figs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 560px) { .two-figs { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0; counter-reset: c; }
.checklist li {
  counter-increment: c;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: counter(c, upper-roman);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--stone-deep);
  line-height: 1.2;
}
.checklist strong { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; line-height: 1.25; margin-bottom: 0.2rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
.card { background: var(--paper); padding: 2rem; border: 1px solid var(--line); }
.card h3 { font-size: 1.6rem; }
.card p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.nearby { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 3rem; }
.nearby li { break-inside: avoid; padding: 0.8rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.nearby span { color: var(--ink-soft); font-size: 0.92rem; white-space: nowrap; }
@media (max-width: 640px) { .nearby { columns: 1; } }

/* ---------- Galería ---------- */
.gallery-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1vw, 0.9rem);
}
.gallery-teaser a { display: block; overflow: hidden; aspect-ratio: 1 / 1; background: var(--paper-3); }
.gallery-teaser img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery-teaser a:hover img { transform: scale(1.05); }
@media (max-width: 560px) { .gallery-teaser { grid-template-columns: 1fr 1fr; } }

.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; }
.gallery-filters button {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
}
.gallery-filters button:hover { border-color: var(--stone-deep); color: var(--ink); }
.gallery-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.gallery { columns: 3 300px; column-gap: clamp(0.6rem, 1.2vw, 1rem); }
.gallery-item { break-inside: avoid; margin-bottom: clamp(0.6rem, 1.2vw, 1rem); }
.gallery-item[hidden] { display: none; }
.gallery-item a { display: block; position: relative; overflow: hidden; background: var(--paper-3); }
.gallery-item img { width: 100%; transition: transform 1s var(--ease), opacity 0.4s; }
.gallery-item a:hover img { transform: scale(1.03); }
.gallery-item figcaption { margin-top: 0.45rem; font-size: 0.8rem; }

/* Visor (lightbox) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 11, 8, 0.96);
  color: var(--paper);
  display: grid;
  grid-template-rows: 1fr auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 4rem 4.5rem 1rem; min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox-caption { text-align: center; padding: 0.8rem var(--gutter) 1.6rem; font-size: 0.9rem; color: rgba(247, 242, 232, 0.8); }
.lightbox-caption a { color: inherit; }
.lightbox button {
  position: absolute;
  appearance: none;
  background: rgba(247, 242, 232, 0.08);
  border: 1px solid rgba(247, 242, 232, 0.2);
  color: var(--paper);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s;
}
.lightbox button:hover { background: rgba(247, 242, 232, 0.2); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-stage { padding: 4rem 0.5rem 0.5rem; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: -3.6rem; transform: none; }
  .lightbox-caption { padding-top: 4rem; }
}

/* ---------- Créditos ---------- */
.credits-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.credits-table th,
.credits-table td { text-align: left; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits-table th { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.credits-table img { width: 72px; height: 54px; object-fit: cover; }
@media (max-width: 700px) {
  .credits-table thead { display: none; }
  .credits-table tr { display: grid; grid-template-columns: 72px 1fr; gap: 0.25rem 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .credits-table td { border: 0; padding: 0; }
  .credits-table td:first-child { grid-row: span 3; }
}
.sources { padding-left: 1.2rem; }
.sources li { margin-bottom: 0.6rem; }

/* ---------- Pie ---------- */
.site-footer {
  background: var(--night);
  color: rgba(247, 242, 232, 0.78);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  font-size: 0.95rem;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--stone); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}
.footer-grid h2 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 0.25rem 0; }
.footer-brand .brand { color: var(--paper); margin-bottom: 1.2rem; }
.footer-brand p { max-width: 34ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: rgba(247, 242, 232, 0.55);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
}
.notfound .big { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 10rem); line-height: 1; color: var(--stone); margin: 0; }

/* ---------- Animaciones de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .scroll-cue, .lightbox, .nav-toggle { display: none !important; }
  .hero, .page-hero { min-height: auto; color: var(--ink); }
  .hero::after, .page-hero::after { display: none; }
  body { background: #fff; }
}
