/* Fintu · estilos compartidos para páginas legales (misma línea gráfica que la landing) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F7F8FB;
  --paper: #FFFFFF;
  --ink: #0C0D18;
  --ink-2: #3B4152;
  --muted: #566175;
  --line: rgba(12, 13, 24, .13);
  --line-soft: rgba(12, 13, 24, .07);
  --mag: #E91E8C;
  --mag-ink: #C4157C;
  --maxw: 760px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Quicksand", "Inter", ui-sans-serif, system-ui, sans-serif;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--mag-ink); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover { border-color: var(--mag-ink); }
::selection { background: var(--mag); color: #fff; }
:focus-visible { outline: 2px solid var(--mag-ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2rem); }

/* ── Cabecera: mismo patrón que la landing ── */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-brand); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; color: var(--ink); }
.brand img { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-soft); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; font-size: .9rem; padding: .6rem 1.15rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.btn:active { transform: scale(.96); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); }
.btn-primary { background: var(--mag); color: #fff; }
.btn-primary:hover { background: var(--mag-ink); }

/* ── Documento ── */
main { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(3rem, 8vw, 6rem); }
.doc-head { margin-bottom: clamp(2rem, 5vw, 3rem); padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.doc-head .kicker { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mag-ink); margin-bottom: .8rem; }
.doc-head h1 { font-family: var(--font-brand); font-size: clamp(2.1rem, 6vw, 3rem); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.doc-head .updated { margin-top: 1rem; font-size: .9rem; color: var(--muted); }

.toc { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1.6rem; margin-bottom: clamp(2rem, 5vw, 3rem); box-shadow: 0 1px 2px rgba(12,13,24,.05); }
.toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: .9rem; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: .5rem; }
.toc li { counter-increment: toc; }
.toc a { color: var(--ink-2); font-weight: 500; border: 0; }
.toc a:hover { color: var(--ink); }
.toc a::before { content: counter(toc) ". "; color: var(--mag-ink); font-weight: 700; }

article h2 { color: var(--ink); font-family: var(--font-brand); font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; margin: 2.4rem 0 .9rem; scroll-margin-top: 84px; }
article h3 { color: var(--ink); font-size: 1.1rem; font-weight: 700; margin: 1.6rem 0 .6rem; }
article p { margin-bottom: 1rem; }
article ul, article ol { margin: 0 0 1.2rem 1.3rem; display: grid; gap: .5rem; }
article li { padding-left: .2rem; }
article strong, article b { color: var(--ink); font-weight: 700; }
article a { border-bottom: 1px solid var(--line); }
article a:hover { border-color: var(--mag-ink); }
article table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .92rem; }
article th, article td { text-align: left; padding: .7rem .9rem; border: 1px solid var(--line); vertical-align: top; }
article th { background: var(--bg); color: var(--ink); font-weight: 700; }

.note { background: #FCE8F3; border: 1px solid rgba(233, 30, 140, .25); border-radius: 14px; padding: 1rem 1.2rem; margin: 1.5rem 0; color: var(--ink-2); font-size: .92rem; }

/* ── Pie ── */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.foot { max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: var(--muted); font-size: .88rem; }
.foot nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot nav a { color: var(--ink-2); border: 0; }
.foot nav a:hover { color: var(--mag-ink); }
