/* VONN — estilos compartidos
   Paleta: ultramar (firma), papel lila frío, tinta índigo, blanco, gris lila, rosa señal (solo REC). */
:root {
  --ultra: #2b2bd9;
  --ultra-deep: #1f1fa8;
  --paper: #ecebfb;
  --surface: #ffffff;
  --ink: #18134a;
  --ink-2: #5d5a85;
  --line: #cfcdea;
  --signal: #c8195a;
  --night: #070a24;
  --night-2: #10143a;
  --ice: #c9d6ff;
  --radius-lg: 22px;
  --radius-sm: 8px;
  --wrap: 1160px;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--ultra); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.measure { max-width: 62ch; }
.muted { color: var(--ink-2); }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.05; }
h3 { font-size: 19px; line-height: 1.2; font-weight: 600; }
p { margin: 0; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--night); color: #fff; border-bottom: 1px solid #1d2252; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; padding: 8px 4px; }
.logo img { height: 34px; width: auto; display: block; }
.logo img + .logo-txt { display: none; }
.logo-txt {
  font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1; letter-spacing: -.04em; padding-right: .04em;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 46%, #8fa6ff 54%, #e6ecff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Nav con el logo al medio: 5 columnas iguales, todo simétrico */
.nav-c .wrap { display: grid; grid-template-columns: 1fr 1fr auto 1fr 1fr; justify-items: center; max-width: 860px; gap: 0 12px; }
.nav-side { display: contents; }
.nav-side a { text-decoration: none; color: var(--ice); padding: 12px 0; font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav-side a:hover { color: #fff; }
.nav-c .logo { padding: 8px 20px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--ice); padding: 12px 0; }
.nav-links a:hover { color: #fff; }
.nav .btn { border-color: #fff; color: #fff; }
.nav .btn:hover { background: #fff; color: var(--night); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid var(--ink);
  font-weight: 700; font-size: 16px; text-decoration: none; background: transparent; line-height: 1.1;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--ultra); border-color: var(--ultra); color: #fff; }
.btn-primary:hover { background: var(--ultra-deep); border-color: var(--ultra-deep); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 15px; min-height: 44px; }

section { padding: 104px 0; }
section[id], header[id] { scroll-margin-top: 66px; }
.sec-head { display: grid; gap: 16px; margin-bottom: 52px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 15px; color: var(--ink-2); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer nav a { display: inline-block; padding: 10px 0; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav-links { display: none; }
  .nav-c .wrap { grid-template-columns: repeat(4, auto); justify-content: space-between; height: auto; gap: 0; padding-top: 6px; }
  .nav-c .logo { grid-row: 1; grid-column: 1 / -1; justify-self: center; padding: 8px 4px 2px; }
  .nav-c .logo img { height: 28px; }
  .nav-c .logo-txt { font-size: 24px; }
  .nav-side a { font-size: 14px; }
  section { padding: 72px 0; }
  section[id] { scroll-margin-top: 88px; }
  .wrap { padding: 0 16px; }
}

/* ---------- Documentos ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 64px 24px 96px; }
.doc > header { margin-bottom: 40px; display: grid; gap: 16px; }
.doc h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.05; }
.doc h2 { font-size: 21px; margin: 44px 0 12px; }
.doc p, .doc li { color: #2c2760; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc .meta { font-size: 15px; color: var(--ink-2); }
.doc .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.doc td.num { white-space: nowrap; font-weight: 700; }
.fill { display: block; border-bottom: 1px solid var(--ink-2); min-height: 30px; }
.fill.tall { min-height: 110px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-top: 8px; }
.sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 64px; }
.sign div { border-top: 1.5px solid var(--ink); padding-top: 8px; font-size: 15px; }

@media print {
  .nav, footer, .no-print { display: none !important; }
  body { background: #fff; font-size: 11.5pt; }
  .doc { padding: 0; max-width: none; }
  .doc h2 { break-after: avoid; }
  .fill.tall { background: #fff; }
  a { text-decoration: none; }
}
