:root {
  --paper: #FAF9F6;
  --surface: #FFFFFF;
  --ink: #242B34;
  --ink-soft: #5A6472;
  --blue: #1F4E8C;
  --blue-deep: #163A69;
  --red: #B0272F;
  --gold: #B3945A;
  --line: #E3E0D9;
  --navy: #163A69;
  --navy-ink: #EDF2F8;
  --navy-soft: #AFC4DC;
  --franja: linear-gradient(90deg, #4A74CA 0%, #7D9DDA 12%, #D2DDF3 28%, #FFC9CA 38%, #FE0000 46%, #FE0000 54%, #FFC9CA 62%, #D2DDF3 72%, #7D9DDA 88%, #4A74CA 100%);
  --display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

a { color: var(--blue); transition: color 0.15s ease; }
a:hover { color: var(--blue-deep); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.4rem; }

.ribbon { height: 6px; background: var(--franja); }

header.site { background: var(--surface); border-bottom: 1px solid var(--line); }

.site-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.6rem 1.4rem;
}

.brand img { height: 110px; display: block; padding: 0.2rem 0.3rem; }

nav.main { display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; }

nav.main a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

nav.main a:hover, nav.main a.active { color: var(--blue-deep); border-bottom-color: var(--blue); }

main.wrap { padding: 3rem 1.4rem 4rem; }

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

main h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--blue-deep);
  line-height: 1.25;
}

main h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--gold);
  margin-top: 0.65rem;
}

.noticias .eyebrow, .noticias h2 { padding-left: 1.5rem; }

.empty { margin-top: 1.5rem; color: var(--ink-soft); }

.news-list { margin-top: 2rem; display: grid; gap: 1.4rem; }

.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.news-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(22, 58, 105, 0.18); }

.news-card .cover { flex: 0 0 240px; }
.news-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.news-card .body { padding: 1.3rem 1.5rem; }

.news-card time, .noticia time {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
}

.news-card h3 { font-family: var(--display); font-size: 1.25rem; margin: 0.3rem 0 0.5rem; text-align: justify; hyphens: auto; }
.news-card h3 a { color: var(--blue-deep); text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }

.news-card p { color: var(--ink-soft); font-size: 0.95rem; text-align: justify; hyphens: auto; }

.news-card .more {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.paginator { margin-top: 2rem; display: flex; justify-content: space-between; }

.noticia time { display: block; margin-top: 0.8rem; }

.noticia .cover { max-width: 100%; border-radius: 10px; margin-top: 1.2rem; }

.noticia { max-width: 68ch; }
.noticia h2 {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.noticia .prose { max-width: 68ch; margin-top: 1.4rem; }
.noticia .prose p { margin-bottom: 1rem; text-align: justify; hyphens: auto; }
.noticia .prose h3 { font-family: var(--display); color: var(--blue-deep); margin: 1.4rem 0 0.6rem; }
.noticia .prose img { max-width: 100%; border-radius: 8px; }
.noticia .prose ul, .noticia .prose ol { padding-left: 1.4rem; margin-bottom: 1rem; }

.noticia .back { margin-top: 2.5rem; }
.noticia .back a { font-size: 0.9rem; font-weight: 600; text-decoration: none; }

footer.site {
  background: var(--navy);
  color: var(--navy-soft);
  font-size: 0.88rem;
  position: relative;
}

footer.site::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--franja);
}

footer.site .wrap { padding: 1.6rem 1.4rem; }
footer.site strong { color: var(--navy-ink); }
footer.site a { color: var(--navy-ink); }

@media (max-width: 720px) {
  .site-bar { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding-bottom: 0.9rem; }
  .brand img { height: auto; width: min(60vw, 250px); }
  .news-card { flex-direction: column; }
  .news-card .cover { flex: none; max-height: 200px; }
}
