@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Space+Grotesk:wght@400;500&display=swap');

:root {
  --ink: #f2f7f3;
  --muted: #96a99e;
  --soft: #c9d8cf;
  --black: #020604;
  --panel: #07100b;
  --panel-2: #0a1610;
  --line: rgba(184, 255, 205, .16);
  --line-strong: rgba(117, 255, 155, .38);
  --green: #75ff9b;
  --green-deep: #18ce61;
  --green-wash: rgba(117, 255, 155, .09);
  --yellow: #d8ff55;
  --yellow-wash: rgba(216, 255, 85, .08);
  --red: #ff6f7d;
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 8%, rgba(57, 255, 122, .09), transparent 28rem),
    linear-gradient(rgba(117, 255, 155, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 255, 155, .028) 1px, transparent 1px),
    var(--black);
  background-size: auto, 34px 34px, 34px 34px, auto;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .32) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(117, 255, 155, .25) 0 1px, transparent 1.5px);
  background-position: 0 0, 23px 17px;
  background-size: 73px 73px, 109px 109px;
  opacity: .22;
}

a { color: inherit; }

a:hover { color: var(--green); }

button,
a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #021008;
  background: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 4, .88);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -.04em;
  font-size: 22px;
  font-weight: 500;
}

.brand img {
  width: 32px;
  height: 32px;
}

.brand small {
  color: var(--green);
  font: 500 9px/1.2 Consolas, "Courier New", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--green);
  font: 600 9px/1 Consolas, "Courier New", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.header-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  content: "";
}

.page {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.eyebrow,
.section-label,
.meta-label,
.toc-title,
.footer-title,
.chip {
  color: var(--green);
  font: 600 10px/1.35 Consolas, "Courier New", monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .45fr);
  gap: 64px;
  align-items: end;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 800px;
  margin: 16px 0 20px;
  font-size: clamp(46px, 7vw, 86px);
  font-weight: 560;
  letter-spacing: -.065em;
  line-height: .92;
}

.page-hero h1 em {
  color: var(--green);
  font-style: normal;
}

.hero-lead {
  max-width: 760px;
  margin: 0;
  color: var(--soft);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.45;
}

.hero-meta {
  border-left: 1px solid var(--line-strong);
  padding-left: 22px;
}

.hero-meta dl { margin: 0; }

.hero-meta div {
  display: grid;
  gap: 3px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.hero-meta div:first-child { padding-top: 0; }
.hero-meta div:last-child { border-bottom: 0; padding-bottom: 0; }

.hero-meta dt {
  color: var(--muted);
  font: 500 9px/1.3 Consolas, "Courier New", monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.manifesto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 56px;
  border: 1px solid var(--line);
  background: rgba(7, 16, 11, .78);
}

.manifesto article {
  min-height: 150px;
  padding: 24px;
}

.manifesto article + article { border-left: 1px solid var(--line); }

.manifesto b {
  display: block;
  margin: 13px 0 7px;
  font-size: 19px;
  letter-spacing: -.02em;
}

.manifesto p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 104px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(4, 11, 7, .82);
}

.toc ol {
  display: grid;
  gap: 3px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li { counter-increment: toc; }

.toc a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--green);
  font: 500 9px/1.8 Consolas, "Courier New", monospace;
}

.toc a:hover { color: var(--ink); }

.document {
  min-width: 0;
  counter-reset: section;
}

.doc-section {
  scroll-margin-top: 106px;
  padding: 8px 0 52px;
  counter-increment: section;
}

.doc-section + .doc-section {
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

.doc-section h2 {
  margin: 10px 0 20px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.doc-section h2::before {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  content: counter(section, decimal-leading-zero) " / Documento";
  font: 600 9px/1.3 Consolas, "Courier New", monospace;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.doc-section h3 {
  margin: 30px 0 10px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
}

.doc-section p,
.doc-section li { color: var(--soft); }

.doc-section p { margin: 0 0 16px; }

.doc-section ul,
.doc-section ol { padding-left: 22px; }

.doc-section li { margin: 8px 0; }

.doc-section strong { color: var(--ink); }

.callout {
  margin: 24px 0;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  background: var(--green-wash);
}

.callout.warning {
  border-color: rgba(216, 255, 85, .34);
  background: var(--yellow-wash);
}

.callout.danger {
  border-color: rgba(255, 111, 125, .34);
  background: rgba(255, 111, 125, .065);
}

.callout strong {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 16px;
}

.callout.warning strong { color: var(--yellow); }
.callout.danger strong { color: #ff9aa4; }
.callout p:last-child { margin-bottom: 0; }

.status-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  margin: 24px 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(7, 16, 11, .84);
}

.status-card .status-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  color: var(--green);
  font: 700 11px/1 Consolas, "Courier New", monospace;
}

.status-card strong { display: block; }
.status-card p { margin: 4px 0 0; font-size: 14px; }

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

.info-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(7, 16, 11, .72);
}

.info-card h3 { margin-top: 12px; }
.info-card p:last-child { margin-bottom: 0; }

.policy-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.policy-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  background: rgba(7, 16, 11, .78);
}

.policy-table th,
.policy-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.policy-table tr:last-child td { border-bottom: 0; }

.policy-table th {
  color: var(--green);
  background: rgba(117, 255, 155, .04);
  font: 600 9px/1.4 Consolas, "Courier New", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.policy-table td { color: var(--soft); font-size: 14px; }
.policy-table td strong { color: var(--ink); }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--green);
  font: 600 9px/1 Consolas, "Courier New", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag.pending { border-color: rgba(216, 255, 85, .34); color: var(--yellow); }
.tag.off { border-color: rgba(150, 169, 158, .28); color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 28px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.step {
  min-height: 190px;
  padding: 22px;
  background: var(--panel);
}

.step .step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  color: var(--green);
  font: 700 10px/1 Consolas, "Courier New", monospace;
}

.step h3 { margin: 22px 0 9px; }
.step p { margin: 0; font-size: 14px; }

.definition-list {
  display: grid;
  margin: 24px 0;
  border-top: 1px solid var(--line);
}

.definition-list div {
  display: grid;
  grid-template-columns: minmax(150px, .35fr) 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.definition-list dt { color: var(--ink); font-weight: 700; }
.definition-list dd { margin: 0; color: var(--soft); }

.source-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 10px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(7, 16, 11, .72);
  text-decoration: none;
}

.source-link strong { display: block; color: var(--ink); }
.source-link span { color: var(--muted); font-size: 13px; }
.source-link i { color: var(--green); font-style: normal; }

.help-banner {
  margin: 28px 0;
  padding: 28px;
  border: 1px solid rgba(216, 255, 85, .38);
  background:
    linear-gradient(120deg, rgba(216, 255, 85, .11), transparent 52%),
    var(--panel);
}

.help-banner .help-number {
  display: block;
  margin: 5px 0 4px;
  color: var(--yellow);
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
}

.help-banner p { max-width: 680px; margin-bottom: 0; }

.legal-footer {
  border-top: 1px solid var(--line);
  background: rgba(1, 5, 3, .84);
}

.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 46px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(2, .8fr);
  gap: 46px;
}

.footer-brand strong { font-size: 22px; }
.footer-brand p { max-width: 360px; margin: 12px 0 0; color: var(--muted); }

.footer-links {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-links a {
  color: var(--soft);
  font-size: 13px;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 500 9px/1.5 Consolas, "Courier New", monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .header-nav { display: none; }
  .page-hero { grid-template-columns: 1fr; gap: 34px; }
  .hero-meta { border-left: 0; border-top: 1px solid var(--line-strong); padding: 20px 0 0; }
  .hero-meta dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero-meta div { border-bottom: 0; padding: 0; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto article + article { border-left: 0; border-top: 1px solid var(--line); }
  .doc-layout { grid-template-columns: 1fr; gap: 36px; }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .header-inner,
  .page,
  .footer-inner { width: min(calc(100% - 28px), var(--max)); }
  .header-status { display: none; }
  .page { padding: 50px 0 70px; }
  .page-hero { padding-bottom: 38px; }
  .page-hero h1 { font-size: clamp(42px, 15vw, 62px); }
  .hero-meta dl { grid-template-columns: 1fr; }
  .manifesto { margin-bottom: 38px; }
  .manifesto article { min-height: 0; }
  .toc ol { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .definition-list div { grid-template-columns: 1fr; gap: 4px; }
  .source-link { grid-template-columns: 1fr; }
  .source-link i { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media print {
  body { color: #111; background: #fff; }
  body::before,
  .site-header,
  .toc,
  .legal-footer { display: none; }
  .page { width: 100%; padding: 0; }
  .page-hero { grid-template-columns: 1fr; }
  .doc-layout { display: block; }
  .doc-section,
  .doc-section p,
  .doc-section li { color: #222; }
  .callout,
  .info-card,
  .status-card { border-color: #aaa; background: #f7f7f7; }
}
