/* Inclusión Crediticia de Colombia — sitio Fase 0
   Tokens tomados del sistema de diseño de ICC (tema claro). */

:root {
  --surface: #fbfaf7;
  --raised: #ffffff;
  --sunken: #f1efe8;
  --ink: #17252a;
  --muted: #4d5b60;
  --line: #d9d5c9;
  --line-strong: #7d8a8e;
  --brand: #0f5c55;
  --brand-dark: #0b4a45;
  --on-brand: #ffffff;
  --brand-soft: #dcefeb;
  --accent: #f2b84b;
  --shadow-sm: 0 1px 2px rgba(23, 37, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(23, 37, 42, 0.08);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); }

a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Estructura ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.read { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight-bottom { padding-bottom: 64px; }
.section--tight-top { padding-top: 64px; }
.section--sunken { background: var(--sunken); }
.section--soft { background: var(--brand-soft); }
.section--brand { background: var(--brand); color: var(--on-brand); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--lg { gap: 32px; }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.section--brand .eyebrow { color: var(--brand-soft); }
.display { font-size: 56px; line-height: 60px; font-weight: 700; letter-spacing: -0.5px; }
.title { font-size: 36px; line-height: 42px; font-weight: 700; }
.lg { font-size: 24px; line-height: 32px; font-weight: 700; }
.heading { font-size: 20px; line-height: 28px; font-weight: 600; }
.heading--brand { color: var(--brand); }
.lead { font-size: 18px; line-height: 28px; color: var(--muted); }
.caption { font-size: 14px; line-height: 20px; color: var(--muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.text-brand { color: var(--brand); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-sm { min-height: 44px; padding: 0 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.cta-row--center { justify-content: center; }

/* ---------- Tarjetas y rejillas ---------- */
.card {
  background: var(--raised);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  padding: 32px;
}
.card--hero { padding: 40px; box-shadow: var(--shadow-md); }
.card--soft { background: var(--brand-soft); box-shadow: none; padding: 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.belief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.never-list { margin-top: 32px; }
.never-list p {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}
.never-list p:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.28); }

/* ---------- Documento legal ---------- */
.doc-card { padding: 28px; background: var(--raised); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); }
.doc-card-top { display: flex; align-items: center; gap: 16px; }
.doc-card .cta-row { margin-top: 24px; }
.doc-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand); color: var(--on-brand); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.points { display: flex; flex-direction: column; gap: 16px; }
.points li { position: relative; padding-left: 28px; font-size: 18px; line-height: 28px; }
.points li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.hash-box { padding: 20px 24px; background: var(--sunken); border: 1px solid var(--line); border-radius: 16px; }
.hash { margin-top: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; line-height: 24px; word-break: break-all; }
code { padding: 2px 6px; border-radius: 6px; background: var(--sunken); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; word-break: break-word; }
.table-wrap { overflow-x: auto; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; }
.versions { width: 100%; border-collapse: collapse; }
.versions th, .versions td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.versions th { background: var(--sunken); font-weight: 600; font-size: 14px; }
.versions tr:last-child td { border-bottom: 0; }

/* ---------- Encabezado ---------- */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-name { font-size: 16px; line-height: 20px; font-weight: 700; }
.nav-desktop { display: flex; align-items: center; gap: 8px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.nav-link:hover { background: var(--brand-soft); }
.nav-link[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }

.nav-mobile { display: none; }
.nav-mobile summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile:not([open]) .when-open { display: none; }
.nav-mobile[open] .when-closed { display: none; }
.nav-mobile nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 16px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.nav-mobile .nav-link { min-height: 52px; font-size: 18px; border-radius: 16px; }
.nav-mobile .btn { margin-top: 12px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--sunken); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 48px; }
.site-footer h2 { margin: 0 0 16px; font-size: 16px; line-height: 20px; font-weight: 600; }
.site-footer ul { display: flex; flex-direction: column; gap: 12px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-legal { margin-top: 16px; max-width: 360px; font-size: 14px; line-height: 20px; color: var(--muted); }
.footer-base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

/* ---------- Adaptación ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .belief-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 760px) {
  .container, .narrow, .read { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section--tight-bottom { padding-bottom: 48px; }
  .section--tight-top { padding-top: 48px; }
  .display { font-size: 40px; line-height: 44px; }
  .title { font-size: 28px; line-height: 34px; }
  .never-list p { font-size: 20px; line-height: 28px; }
  .card { padding: 24px; }
  .card--hero, .card--soft { padding: 28px; }
  .btn { width: 100%; }
  .btn-sm { width: auto; }
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .brand-name { font-size: 14px; line-height: 18px; max-width: 150px; }
  .site-footer { padding: 48px 0 24px; }
  .versions { font-size: 14px; }
  .versions th, .versions td { padding: 12px 10px; }
  .hash { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
