/* ===== Sectores por los ODS — minimal flex shell ===== */
:root {
  --navy: #1e3250;
  --blue: #4c6b8b;
  --blue-light: #aecfe6;
  --sky: #699cc6;
  --gold: #ccb146;
  --gray: #ebebeb;
  --text: #1f2f46;
  --muted: #5a6b80;
  --line: #e2e6eb;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Open Sans", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  font-size: 17px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; color: var(--navy); font-weight: 700; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 64px;
}

.nav__brand {
  font-weight: 700;
  letter-spacing: .3px;
  color: #fff;
  font-size: 1.05rem;
}
.nav__brand:hover { text-decoration: none; opacity: .9; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav__menu a {
  display: inline-block;
  padding: 8px 14px;
  color: #dfe7f0;
  border-radius: 4px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.nav__menu a:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }

/* ===== Sections ===== */
main { flex: 1 0 auto; }

.section { padding: 56px 0; }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h1, .section--navy h2 { color: #fff; }
.section--sky { background: var(--blue-light); }
.section--gray { background: var(--gray); }
.section--gold { background: var(--gold); color: var(--navy); }
.section--gold h2 { color: var(--navy); }

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 18px;
}

.lead { font-size: 1.05rem; color: inherit; }
.section p { margin: 0 0 14px; }
.center { text-align: center; }
.measure { max-width: 760px; }
.measure.center { margin-left: auto; margin-right: auto; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2a4a72 100%);
  color: #fff;
  padding: 96px 0 80px;
}
.hero__eyebrow {
  display: inline-block;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
  line-height: 1;
}
.hero__title {
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 400;
  color: #eaf1f8;
  max-width: 760px;
  margin: 0;
}

/* ===== Cards grid ===== */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}
.grid > * { flex: 1 1 220px; }

.sector-card {
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.sector-card__name { font-weight: 600; font-size: 1rem; }
.sector-card .btn { margin-top: auto; }

/* ===== Keys (claves) ===== */
.keys { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.key {
  flex: 1 1 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.key__num {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}
.key img { border-radius: 6px; }
.key p { margin: 0; font-weight: 600; color: var(--navy); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .4px;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--gold);
  color: var(--navy);
}
.btn:hover { text-decoration: none; filter: brightness(.95); }
.btn--ghost { background: transparent; border-color: currentColor; color: #fff; }
.btn--soon { background: transparent; border-color: var(--blue-light); color: var(--blue-light); cursor: default; }

/* ===== Blog listing ===== */
.blog-container { margin-top: 12px; }
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.blog-card {
  flex: 1 1 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  transition: box-shadow .15s ease, transform .15s ease;
}
.blog-card:hover { box-shadow: 0 6px 22px rgba(30, 50, 80, .1); transform: translateY(-2px); }
.blog-title { margin: 0 0 10px; font-size: 1.15rem; }
.blog-title a { color: var(--navy); }
.blog-preview p { margin: 0; color: var(--muted); }

/* ===== Article / generic page content ===== */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: 56px 0 36px;
}
.page-header h1 { color: #fff; margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }

.romlicontainer {
  max-width: 820px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ===== Footer ===== */
.site-footer {
  flex-shrink: 0;
  background: var(--navy);
  color: #cdd7e3;
  padding: 36px 0;
}
.site-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-social { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-social a { color: #cdd7e3; font-weight: 500; }
.footer-social a:hover { color: #fff; }
.footer-tag { font-weight: 700; color: #fff; letter-spacing: .3px; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .section { padding: 40px 0; }
  .hero { padding: 64px 0 52px; }
  .site-footer .footer-inner { flex-direction: column; text-align: center; }
}
