/* Ajustes editoriales solicitados para la sección de memorias y el cierre. */

.memory-card-wide p {
  width: 100%;
  max-width: none;
}

.closing-inner > strong {
  width: min(900px, 100%);
  color: var(--ink);
  border-top: 2px solid var(--gold);
  margin: 88px auto 0;
  padding-top: 46px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.025em;
  text-transform: none;
}

.closing-inner > span {
  width: min(1100px, 100%);
  color: #a97618;
  margin: 26px auto 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7.4vw, 104px);
  font-style: italic;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: none;
  text-wrap: balance;
  text-shadow: 0 10px 34px rgba(169, 118, 24, 0.14);
}

.closing-inner > span::after {
  content: "";
  width: 88px;
  height: 3px;
  background: var(--gold);
  margin: 38px auto 0;
  display: block;
}

@media (width <= 560px) {
  .closing-inner > strong {
    margin-top: 62px;
    padding-top: 34px;
    font-size: 23px;
  }

  .closing-inner > span {
    margin-top: 22px;
    font-size: clamp(42px, 14vw, 64px);
    line-height: 1.02;
  }

  .closing-inner > span::after {
    margin-top: 30px;
  }
}

/* Jerarquía de marca y rótulos editoriales. */

.site-header {
  min-height: 150px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  gap: 22px;
}

.brand-logo {
  width: 108px;
  height: 108px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-copy strong {
  font-size: clamp(25px, 2.15vw, 34px);
  font-weight: 700;
  line-height: 1.05;
}

.brand-copy small {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.section-index {
  font-size: clamp(21px, 1.8vw, 27px);
  line-height: 1.35;
}

.ajgenesis-feature .section-index {
  font-size: clamp(24px, 2.15vw, 31px);
}

.community-tag {
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.35;
}

.memory-card > span {
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.4;
}

/* Fuentes trasladadas a Archivo vivo. */

.archive-sources {
  margin-top: 78px;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid #ffffff29;
  background: #ffffff0a;
}

.archive-sources > p {
  color: var(--gold-light);
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.8vw, 40px);
  line-height: 1.15;
}

.archive-sources ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 38px;
  display: grid;
}

.archive-sources li {
  border-top: 1px solid #ffffff29;
}

.archive-sources a {
  min-height: 74px;
  color: #ffffffcf;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  display: flex;
  align-items: center;
  transition: color 0.2s, padding 0.2s;
}

.archive-sources a:hover,
.archive-sources a:focus-visible {
  color: var(--gold-light);
  padding-left: 10px;
}

.sources-copy {
  gap: 24px;
  display: grid;
}

.sources-copy > p {
  color: var(--muted);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1.75;
}

/* Footer sin enlace duplicado de regreso. */

footer {
  min-height: 230px;
  grid-template-columns: 130px minmax(0, 1fr) 130px;
  gap: 34px;
}

.footer-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  justify-self: start;
}

footer p {
  grid-column: 2;
  width: 100%;
  max-width: none;
  color: #ffffffd1;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.1vw, 31px);
  line-height: 1.4;
}

@media (width <= 980px) {
  .brand-logo {
    width: 92px;
    height: 92px;
  }

  .brand-copy strong {
    font-size: 25px;
  }

  footer {
    grid-template-columns: 105px minmax(0, 1fr) 105px;
  }

  .footer-logo {
    width: 92px;
    height: 92px;
  }
}

@media (width > 980px) and (width <= 1200px) {
  .brand-logo {
    width: 88px;
    height: 88px;
  }

  .brand-copy strong {
    font-size: 23px;
  }

  .brand-copy small {
    font-size: 13px;
  }

  .desktop-nav {
    gap: 14px;
    font-size: 10px;
  }
}

@media (width <= 560px) {
  .site-header {
    min-height: 112px;
    padding: 16px 18px;
  }

  .brand {
    gap: 14px;
  }

  .brand-logo {
    width: 72px;
    height: 72px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    margin-top: 7px;
    font-size: 12px;
    letter-spacing: 0.13em;
  }

  .section-index {
    font-size: 19px;
  }

  .ajgenesis-feature .section-index {
    font-size: 21px;
  }

  .community-tag,
  .memory-card > span {
    font-size: 17px;
  }

  .archive-sources {
    margin-top: 58px;
    padding: 28px 24px;
  }

  .archive-sources ul {
    grid-template-columns: 1fr;
  }

  .sources-copy > p {
    font-size: 17px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 250px;
  }

  .footer-logo {
    width: 86px;
    height: 86px;
    justify-self: start;
  }

  footer p {
    grid-column: auto;
    font-size: 20px;
  }
}

/* Dedicatoria personal incorporada al cierre del sitio. */

footer {
  min-height: 330px;
  align-items: center;
  padding-top: 38px;
  padding-bottom: 38px;
}

.footer-logo {
  align-self: start;
  margin-top: 10px;
}

.footer-content {
  grid-column: 2;
  width: 100%;
  text-align: center;
  transform: translateY(-8px);
}

footer .footer-lead {
  grid-column: auto;
  color: #ffffffe0;
  margin: 0;
  font-size: clamp(23px, 2.1vw, 31px);
  font-weight: 600;
  line-height: 1.4;
}

.footer-dedication {
  width: min(900px, 100%);
  margin: 25px auto 0;
  padding-top: 22px;
  border-top: 1px solid #e4c77f3d;
}

.footer-dedication > p {
  grid-column: auto;
  width: 100%;
  max-width: none;
  color: #ffffff87;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.3vw, 18px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
}

footer .footer-signature {
  color: #e4c77fc7;
  margin-top: 13px;
  font-size: clamp(17px, 1.45vw, 20px);
  font-style: normal;
  font-weight: 600;
}

footer .footer-signature a,
footer .footer-signature a:visited,
footer .footer-signature a:hover,
footer .footer-signature a:active {
  color: inherit;
  font: inherit;
  text-decoration: none;
  text-transform: none;
}

@media (width <= 560px) {
  footer {
    min-height: 390px;
    padding-top: 32px;
    padding-bottom: 36px;
  }

  .footer-logo {
    margin-top: 0;
  }

  .footer-content {
    grid-column: auto;
    transform: translateY(-4px);
  }

  footer .footer-lead {
    font-size: 20px;
  }

  .footer-dedication {
    margin-top: 22px;
    padding-top: 19px;
  }

  .footer-dedication > p {
    font-size: 15px;
  }

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