:root {
  --navy: #1A2F6E;
  --navy-dark: #12204d;
  --gold: #B8860B;
  --gold-light: #d4a017;
  --ink: #222222;
  --gray: #555555;
  --line: #e5e7eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #ffffff;
}

h1, h2, h3, h4, .font-serif {
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
}

a { text-decoration: none; color: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1120px; margin: 0 auto; }
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link img { height: 40px; width: auto; }
nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a { font-size: 15px; font-weight: 500; color: var(--ink); }
nav.main-nav a:hover { color: var(--navy); }
nav.main-nav a.active { color: var(--navy); font-weight: 600; }
.btn-publish {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}
.btn-publish:hover { background: var(--navy-dark); }
.btn-policy {
  background: var(--gold);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}
.btn-policy:hover { background: var(--gold-light); }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

@media (max-width: 860px) {
  nav.main-nav { display: none; flex-direction: column; align-items: flex-start; gap: 16px; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 20px 24px; border-bottom: 1px solid var(--line); }
  nav.main-nav.open { display: flex; }
  .menu-toggle { display: block; }
}

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 100px 24px 90px; text-align: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px; border-radius: 999px; font-size: 13px; margin-bottom: 28px;
}
.hero .badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); }
.hero h1 { font-size: 48px; line-height: 1.15; margin: 0 0 24px; max-width: 820px; margin-left: auto; margin-right: auto; }
.hero h1 .accent { color: var(--gold-light); }
.hero p.lead { max-width: 640px; margin: 0 auto 36px; color: rgba(255,255,255,0.8); font-size: 17px; line-height: 1.6; }
.hero .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-gold { background: var(--gold); color: #fff; padding: 13px 26px; border-radius: 6px; font-weight: 600; }
.btn-outline { border: 1px solid rgba(255,255,255,0.4); color: #fff; padding: 13px 26px; border-radius: 6px; font-weight: 600; }

/* Section */
.section { padding: 80px 24px; }
.section.alt { background: #f8f9fb; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .overline { color: var(--gold); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; display: block; }
.section-head h2 { font-size: 32px; margin: 0 0 14px; color: var(--navy); }
.section-head p { color: var(--gray); font-size: 16px; line-height: 1.6; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.pill-label { display: inline-block; color: var(--gold); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.card h3 { font-size: 22px; margin: 0 0 12px; color: var(--navy); }
.card p { color: var(--gray); line-height: 1.6; font-size: 15px; }
.feature-list { list-style: none; padding: 0; margin: 20px 0; }
.feature-list li { padding: 6px 0 6px 26px; position: relative; font-size: 14px; color: var(--ink); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.card .btn-link { display: inline-block; margin-top: 8px; color: var(--navy); font-weight: 600; font-size: 14px; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* Team */
.team-card { text-align: center; }
.team-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; display: block; }
.team-card .role { color: var(--gold); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.team-card h3 { font-size: 18px; margin: 4px 0 10px; color: var(--navy); }
.team-card p { font-size: 14px; color: var(--gray); line-height: 1.5; margin-bottom: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tag { background: #f1f4f9; color: var(--navy); font-size: 11px; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.id-links { font-size: 12px; margin-top: 12px; }
.id-links a { color: var(--navy); text-decoration: underline; font-weight: 600; margin: 0 4px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin: 0 0 8px; color: var(--navy); }
.step p { font-size: 14px; color: var(--gray); line-height: 1.5; }

/* Testimonials */
.testimonial { background: #f8f9fb; border-radius: 12px; padding: 28px; }
.testimonial p.quote { font-size: 15px; color: var(--ink); line-height: 1.6; margin-bottom: 18px; font-style: italic; }
.testimonial .who { font-weight: 700; color: var(--navy); font-size: 14px; }
.testimonial .role { font-size: 13px; color: var(--gray); }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; padding: 70px 24px; text-align: center; }
.cta-band .overline { color: var(--gold-light); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em; }
.cta-band h2 { font-size: 30px; margin: 12px 0 16px; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 30px; }
.cta-band .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.cta-band .fine { font-size: 13px; color: rgba(255,255,255,0.6); }

/* Article cards (Revista) */
.article-card { border: 1px solid var(--line); border-radius: 12px; padding: 28px; margin-bottom: 20px; }
.article-card .meta { font-size: 12px; color: var(--gray); margin-bottom: 10px; }
.article-card h3 { font-size: 20px; margin: 0 0 6px; color: var(--navy); }
.article-card .subtitle { font-size: 15px; color: var(--gray); margin-bottom: 8px; font-style: italic; }
.article-card .author { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.article-card .desc { font-size: 14px; color: var(--gray); line-height: 1.6; margin-bottom: 14px; }
.article-card .doi-row { font-size: 13px; color: var(--gray); margin-bottom: 14px; }
.article-card .doi-row a { color: var(--navy); text-decoration: underline; }
.article-card .links { display: flex; gap: 20px; }
.article-card .links a { color: var(--navy); font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--gold); }

/* Publication covers */
.card-with-cover, .article-card.with-cover { display: flex; gap: 28px; align-items: flex-start; }
.pub-cover {
  flex-shrink: 0;
  width: 150px;
  aspect-ratio: 210 / 297;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  border-radius: 6px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.pub-cover .cover-overline {
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-light);
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  padding: 5px 0; margin-bottom: 12px; width: 100%;
}
.pub-cover .cover-title {
  font-family: "Merriweather", serif; font-weight: 700; font-size: 15px; line-height: 1.25; margin-bottom: 8px;
}
.pub-cover .cover-subtitle {
  font-size: 10px; font-style: italic; color: rgba(255,255,255,0.75); line-height: 1.4; margin-bottom: 8px;
}
.pub-cover .cover-meta {
  font-size: 9px; color: rgba(255,255,255,0.55); margin-top: 6px; letter-spacing: 0.03em;
}
.pub-cover-img {
  flex-shrink: 0;
  width: 150px;
  aspect-ratio: 210 / 297;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.pub-cover-img svg { display: block; width: 100%; height: 100%; }
.card-with-cover .card-body, .article-card.with-cover .article-body { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .card-with-cover, .article-card.with-cover { flex-direction: column; align-items: center; text-align: left; }
  .pub-cover, .pub-cover-img { width: 150px; }
}

/* Footer */
footer.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 56px 24px 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1120px; margin: 0 auto; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 14px; margin: 0 0 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
footer .logo-link img { height: 34px; margin-bottom: 14px; }
footer .brand-desc { font-size: 14px; max-width: 280px; line-height: 1.6; margin-bottom: 16px; }
.footer-bottom { max-width: 1120px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Generic page hero (non-home) */
.page-hero { background: var(--navy); color: #fff; padding: 70px 24px 60px; text-align: center; }
.page-hero .overline { color: var(--gold-light); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em; margin-bottom: 14px; display: block; }
.page-hero h1 { font-size: 38px; margin: 0 0 16px; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 640px; margin: 0 auto; font-size: 16px; line-height: 1.6; }

/* Policy page */
.policy-block { max-width: 820px; margin: 0 auto; }
.policy-block h2 { color: var(--navy); font-size: 22px; margin: 44px 0 14px; }
.policy-block h2:first-child { margin-top: 0; }
.policy-block p { color: var(--ink); line-height: 1.7; font-size: 15.5px; margin-bottom: 14px; }
.policy-block ul { padding-left: 22px; margin-bottom: 16px; }
.policy-block li { color: var(--ink); line-height: 1.7; font-size: 15.5px; margin-bottom: 8px; }
.note-box {
  background: #fffbeb; border-left: 3px solid var(--gold);
  padding: 14px 18px; border-radius: 6px; font-size: 14px; color: #78350f; margin: 16px 0 24px; line-height: 1.6;
}
.note-box strong { color: #92400e; }
