:root {
  --bg: #ffffff;
  --bg-alt: #eef4fb;
  --paper: #ffffff;
  --ink: #163a5c;
  --ink-soft: #2a5274;
  --muted: #5a7388;
  --gold: #1d6fb8;
  --gold-deep: #155a96;
  --gold-soft: rgba(29, 111, 184, 0.12);
  --navy: #1a4d7c;
  --navy-deep: #0e3a5f;
  --social: #3d7eb8;
  --eco: #2b8fc4;
  --tech: #1d6fb8;
  --amb: #155a96;
  --line: rgba(22, 58, 92, 0.12);
  --shadow: 0 16px 40px rgba(14, 58, 95, 0.07);
  --radius: 20px;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100%;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.brand-sigla {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-text strong {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.brand-text span {
  color: var(--gold-deep);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--gold-soft);
  color: var(--navy);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--navy);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: 78vh;
  padding: 80px 0 72px;
}

.hero-photo,
.hero-overlay,
#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-photo {
  object-fit: cover;
  object-position: 55% center;
}

.hero-overlay {
  background: linear-gradient(100deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 46%, rgba(14,58,95,.22) 100%);
}

#scene { pointer-events: none; }

.hero-copy { position: relative; z-index: 1; max-width: 760px; }

.hero-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.hero-title h1 { margin-bottom: 0; }

.hero-logo {
  width: clamp(72px, 10vw, 110px);
  height: auto;
  object-fit: contain;
  background: transparent;
}

.card-media {
  height: 158px;
  overflow: hidden;
}

.card-media img,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card.has-media { padding: 0 0 22px; }
.card.has-media h3,
.card.has-media p,
.card.has-media .icon { margin-left: 22px; margin-right: 22px; }
.card.has-media .icon { margin-top: 18px; }

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 280px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.media-frame img { min-height: 280px; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--line);
}

.page-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.page-hero .wrap { position: relative; z-index: 1; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--gold-deep);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

h1, h2, .display {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 0.95;
}

h1 {
  font-size: clamp(48px, 8vw, 92px);
  margin-bottom: 18px;
}

h1 em { font-style: italic; color: var(--gold-deep); }

.lede {
  max-width: 640px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 300;
}

.lede b { color: var(--ink); font-weight: 500; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); }

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy {
  background: linear-gradient(160deg, #0e3a5f 0%, #1d6fb8 100%);
  color: #f4f8fc;
}

.eyebrow {
  color: var(--gold-deep);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-navy .eyebrow { color: #c5def5; }

h2 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 14px; }

.section-intro {
  max-width: 640px;
  color: var(--muted);
  margin-bottom: 36px;
}

.section-navy .section-intro { color: rgba(244, 248, 252, 0.78); }

.grid-4, .grid-3, .grid-2 {
  display: grid;
  gap: 16px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }

.card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 12px 0 8px;
}

.card p { color: var(--muted); font-size: 14.5px; }

.card svg.icon {
  width: 28px;
  height: 28px;
  stroke: var(--c, var(--gold-deep));
  fill: none;
  stroke-width: 1.6;
}

.pillar:nth-child(1) { --c: var(--social); }
.pillar:nth-child(2) { --c: var(--eco); }
.pillar:nth-child(3) { --c: var(--tech); }
.pillar:nth-child(4) { --c: var(--amb); }

.stat {
  padding: 8px 0;
}

.stat b {
  display: block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 42px;
  line-height: 1;
  color: #d6ebfb;
}

.stat span { color: rgba(244, 248, 252, 0.78); font-size: 14px; }

.page-hero h1 { font-size: clamp(36px, 6vw, 64px); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.filters input,
.filters select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
}

.filters input { flex: 1; min-width: 220px; }

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

th {
  background: var(--bg-alt);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}

.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}

.empty strong { display: block; color: var(--ink); margin-bottom: 8px; }

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 600;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  color: var(--ink);
}

.form textarea { min-height: 120px; resize: vertical; }

.form-narrow { max-width: 520px; }

.form-status { font-size: 14px; color: var(--muted); }
.form-status.ok { color: var(--eco); }

.contact-list { display: grid; gap: 18px; }
.contact-list h3 { font-size: 16px; margin-bottom: 4px; }
.contact-list p, .contact-list a { color: var(--muted); }

.transparency-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 4px 0 8px;
}

.transparency-item summary::-webkit-details-marker { display: none; }

.transparency-item p { margin-top: 4px; }

.site-footer {
  background: var(--navy-deep);
  color: rgba(244, 248, 252, 0.78);
  padding: 36px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.site-footer h2 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-brand h2 { margin-bottom: 0; }

.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: transparent;
}

.site-footer a:hover { color: #c5def5; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(244, 248, 252, 0.12);
  padding-top: 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.td-objeto {
  max-width: 360px;
  color: var(--muted);
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 36, 56, 0.45);
}

.modal[hidden] { display: none; }

.modal-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.modal-dialog-wide {
  width: min(1040px, 100%);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-head h3 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 28px;
  line-height: 1.1;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.pdf-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(70vh, 720px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-alt);
  overflow: hidden;
}

#pdf-frame {
  width: 100%;
  height: min(70vh, 720px);
  border: 0;
  background: #fff;
}

#pdf-frame[hidden] { display: none; }

.pdf-fallback {
  margin: 0;
  padding: 32px;
  text-align: center;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--ink);
}

.pdf-fallback[hidden] { display: none; }

@media (max-width: 980px) {
  .grid-4, .grid-3, .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
}

@media (max-width: 680px) {
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .grid-4, .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .header-inner { min-height: 76px; }
  .brand-text strong { font-size: 9.5px; }
  .footer-bottom { flex-direction: column; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 52px 0; }
}
