/* Intermezzo del Bosque — sitio estático */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.woff") format("woff");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #101614;
  --bg-soft: #171e1b;
  --bg-card: #1c2420;
  --text: #f3eee6;
  --muted: #b4b8b2;
  --accent: #3f9d7c;
  --accent-hover: #5ab492;
  --gold: #d4b483;
  --line: rgba(243, 238, 230, 0.10);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --header: 72px;
  --max: 1120px;
  --article: 760px;
  --sans: "Outfit", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #e8d0a8; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -40px; z-index: 100;
  background: var(--gold); color: #1a140c; padding: 0.5rem 0.8rem;
  border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 22, 20, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: inherit; min-width: 0;
}
.logo-mark {
  flex: none;
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: #15201c;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.logo-name { font-weight: 600; font-size: 0.98rem; word-spacing: 0.08em; white-space: nowrap; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px; height: 44px;
  color: var(--text);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: absolute; left: 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

.site-nav > ul {
  display: flex; flex-wrap: wrap; gap: 0.15rem 0.15rem;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.site-nav a.is-active {
  color: var(--bg);
  background: var(--gold);
}
.has-sub { position: relative; }
.has-sub > .sub-toggle { padding-right: 1.15rem; }
.has-sub > .sub-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 0.35rem;
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-bottom-width: 0;
  transform: translateY(-1px);
}
.site-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  min-width: 16rem;
  background: #141b18;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.45rem;
  list-style: none;
  margin: 0;
  box-shadow: var(--shadow);
  z-index: 20;
}
.site-nav .has-sub:hover > .sub-menu,
.site-nav .has-sub:focus-within > .sub-menu,
.site-nav .has-sub.is-open > .sub-menu { display: block; }
.sub-menu a { border-radius: 10px; display: block; }
.sub-menu a.is-active { background: var(--gold); color: var(--bg); }

/* Hero */
.hero, .comunicados, .medios, .highlights, .article {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.2rem 1.25rem 1rem;
}
.hero { padding-top: 3.5rem; text-align: center; }
.eyebrow {
  margin: 0 0 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(2.1rem, 5.5vw, 4.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 auto 2rem;
  max-width: 18ch;
}
.hero h1 em { font-style: italic; color: #fff; }
.hero-photo {
  margin: 0 auto 1.75rem;
  max-width: 860px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-photo img { width: 100%; }
.video-block { max-width: 860px; margin: 0 auto 0.25rem; text-align: left; }
.video-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.video-wrap iframe,
.video-facade,
.video-facade img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-facade {
  cursor: pointer;
  padding: 0;
  background: #000;
  color: inherit;
  display: block;
}
.video-facade img { object-fit: cover; }
.play-btn {
  position: absolute; left: 50%; top: 50%;
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: rgba(15, 20, 18, 0.78);
  border: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.play-btn::after {
  content: "";
  position: absolute;
  left: 28px; top: 22px;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent var(--gold);
}
.video-facade:hover .play-btn { background: var(--gold); }
.video-facade:hover .play-btn::after { border-color: transparent transparent transparent #1a140c; }
.video-caption { margin: 0.7rem 0 0; font-size: 0.9rem; color: var(--muted); text-align: center; }

/* Highlights + cards */
.highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 2.5rem;
  padding-bottom: 0.5rem;
}
.highlight-card {
  display: flex; flex-direction: column; gap: 0.55rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.3rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.highlight-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 180, 131, 0.45);
  color: inherit;
}
.highlight-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.highlight-card strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 550;
  line-height: 1.25;
}
.highlight-go { color: var(--muted); font-size: 0.9rem; margin-top: auto; }

.comunicados h2, .medios h2, .related h2 {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  text-align: center;
  margin: 0 0 1.6rem;
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.comm-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex; flex-direction: column;
}
.comm-kicker {
  margin: 0 0 0.4rem;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.comm-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0 0 0.7rem;
  font-weight: 550;
}
.comm-card p {
  color: var(--muted);
  margin: 0 0 1.2rem;
  flex: 1;
}
.comm-card p strong { color: var(--text); }
.btn {
  align-self: flex-start;
  display: inline-flex; align-items: center;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.btn:hover { background: var(--gold); color: #1a140c; }

.media-list { list-style: none; margin: 0; padding: 0; }
.media-list li { border-top: 1px solid var(--line); }
.media-list li:last-child { border-bottom: 1px solid var(--line); }
.media-list a {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  grid-template-areas: "source title" "date title";
  column-gap: 1.25rem;
  row-gap: 0.15rem;
  align-items: start;
  padding: 1.05rem 0.15rem;
  text-decoration: none;
  color: inherit;
}
.media-list a:hover .media-title { color: var(--gold); }
.media-source {
  grid-area: source;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.media-date { grid-area: date; color: var(--muted); font-size: 0.88rem; }
.media-title { grid-area: title; font-weight: 500; align-self: center; }

/* Article */
.article-main { padding-bottom: 3rem; }
.article { max-width: var(--article); padding-top: 3rem; }
.article-header { margin-bottom: 2rem; }
.article-date {
  margin: 0 0 0.7rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 600;
}
.article-header h1 {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
}
.article-body { font-size: 1.08rem; color: #e7e2d9; }
.article-body p { margin: 0 0 1.15rem; }
.article-body ol {
  margin: 0 0 1.3rem;
  padding-left: 1.3rem;
}
.article-body li { margin: 0 0 0.85rem; }
.article-body li::marker { color: var(--gold); font-weight: 600; }
.article-body a { font-weight: 600; }

.doc-figure {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 1.6rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.doc-figure__image {
  margin: 0 auto;
  max-width: 520px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.doc-figure__image img { width: 100%; height: auto; }
.doc-figure__text p { margin: 0; }
.download { margin: 2rem 0 0; }
.btn-download { background: transparent; }

.related {
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.related h2 { text-align: left; font-size: 1.4rem; margin-bottom: 0.8rem; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 0 0 0.45rem; }
.related a { color: var(--text); }
.related a:hover { color: var(--gold); }

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: #0c110f;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-end;
}
.footer-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}
.footer-copy { margin: 0; color: var(--muted); font-size: 0.9rem; }
.footer-social { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.footer-social a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-social a:hover { color: var(--gold); }

@media (max-width: 800px) {
  .nav-toggle { display: inline-block; margin-left: auto; }
  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: rgba(14, 20, 18, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; padding: 0.6rem 1.1rem 1rem; }
  .site-nav a { padding: 0.75rem 0.85rem; border-radius: 10px; }
  .site-nav .sub-menu {
    position: static;
    display: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 0.3rem 0.8rem;
    min-width: 0;
  }
  .site-nav .has-sub.is-open > .sub-menu,
  .site-nav.is-open .has-sub.is-active > .sub-menu { display: block; }
  .highlights, .card-grid { grid-template-columns: 1fr; }
  .media-list a {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "source date"
      "title title";
  }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .highlight-card, .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    transition: none;
  }
}
