:root {
  --navy: #17324D;
  --navy-soft: #1F4160;
  --white: #FFFFFF;
  --bg: #F3F5F6;
  --text: #2B3540;
  --muted: #59636E;
  --accent: #B87952;
  --line: #DCE1E5;
  --max: 1120px;
  --radius: 14px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 820px; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
}

.brand-text { font-size: 0.95rem; }

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:hover { color: var(--navy); }

/* ---- Hero (portada) ---- */
.hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 88px 0 76px;
}

.hero-inner { max-width: 900px; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-accent { color: #E8B48F; }

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.lead {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 720px;
}

/* ---- Cards ---- */
.cards-section {
  background: var(--bg);
  padding: 56px 0 84px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(23, 50, 77, 0.10);
  border-color: #C9D2DA;
}

.card-tag {
  margin: 0 0 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-title {
  margin: 0 0 10px;
  font-size: 1.32rem;
  color: var(--navy);
  font-weight: 700;
}

.card-desc {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.97rem;
  flex: 1;
}

.btn {
  display: inline-block;
  align-self: flex-start;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 9px;
  transition: background 0.18s ease;
}

.btn:hover { background: var(--navy-soft); }

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover { background: #EAF0F4; }

/* ---- Hero de iniciativa ---- */
.init-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 72px 0 64px;
}

.init-hero-img {
  position: absolute;
  right: 4%;
  bottom: -8px;
  height: 250px;
  width: auto;
  pointer-events: none;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.25));
}

.init-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.4px;
}

.init-sub {
  margin: 0 0 14px;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.init-tag {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.98rem;
}

/* ---- Secciones ---- */
.sections {
  padding: 64px 0 88px;
}

.block {
  padding: 0 0 34px;
  margin: 0 0 34px;
  border-bottom: 1px solid var(--line);
}

.block:last-child { border-bottom: 0; margin-bottom: 0; }

.block-title {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.4vw, 1.72rem);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.2px;
}

.block-text {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.02rem;
}

.list {
  margin: 8px 0 0;
  padding-left: 20px;
}

.list li {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 1.0rem;
}

.list li::marker { color: var(--accent); }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.footer-note { margin: 0; max-width: 620px; }

.footer-meta { margin: 0; white-space: nowrap; }

/* ---- Protecciones anti-desborde ---- */
img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3 {
  overflow-wrap: break-word;
  word-break: normal;
}

html, body { max-width: 100%; overflow-x: hidden; }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .init-hero { padding: 56px 0 48px; }
  .init-hero-img { display: none; }
  .sections { padding: 48px 0 64px; }
  .footer-inner { flex-direction: column; }
}
