/* Operix — hoja de estilo de las páginas legales.
   Compartida por terminos.html, privacidad.html y tratamiento-datos.html.

   Tipografía: Inter, el stack de DESIGN.md. Es el que usan el landing (index.html), el
   registro y el ERP entero. La primera versión copió el de precios.html (Syne + Figtree),
   que es el outlier del sitio: Syne es una display ancha y se notaba el salto al navegar
   de estas páginas al landing — el logo cambiaba de forma. Paleta crema/tinta/azul, igual. */
:root { --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

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

:root {
  --ink:        #111111;
  --cream:      #F7F7F5;
  --cream-dark: #F1F0EC;
  --blue:       #2563EB;
  --blue-light: #EFF6FF;
  --blue-border:#BFDBFE;
  --text:       #111111;
  --muted:      #5D6470;
  --muted-2:    #646B77;
  --border:     #E5E3DC;
  --white:      #FFFFFF;
  --amber-bg:   #FFFBEB;
  --amber-bd:   #FDE68A;
  --max:        820px;
  --r:          12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }

/* ── NAV ─────────────────────────────────────────────────── */
/* Acotado a hijo directo de body a propósito: el índice del documento también es
   un <nav> (class="toc") y con el selector suelto heredaba el sticky, quedando
   pegado sobre el contenido al scrollear. */
body > nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(17,17,17,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 24px; height: 60px;
}
/* Mismos valores que el logo del landing (index.html:108) para que al navegar
   entre páginas no cambie de tamaño ni de forma. */
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font); font-size: 20px; font-weight: 800;
  color: #fff; letter-spacing: -.3px;
}
.logo .dot { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav-links a { color: rgba(255,255,255,.72); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: #fff; text-decoration: none; }
@media (max-width: 640px) { .nav-links { gap: 14px; } .nav-links a { font-size: 13px; } }
/* Bajo ~420px el logo + los 3 links desbordaban el ancho del viewport y hacían
   scrollear la página al costado. Se achica el conjunto, no se ocultan links. */
@media (max-width: 480px) {
  .nav-inner { padding: 0 16px; gap: 10px; }
  .logo { font-size: 16px; gap: 8px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 12.5px; }
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 48px 24px 96px; }

.doc-head { margin-bottom: 32px; }
.doc-kicker {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 10px;
}
h1 {
  font-family: var(--font); font-size: 34px; font-weight: 800;
  letter-spacing: -.02em; line-height: 1.2; margin-bottom: 12px;
}
.doc-meta {
  font-size: 13px; color: var(--muted);
  padding-top: 12px; border-top: 1px solid var(--border);
}
.doc-meta strong { color: var(--text); font-weight: 600; }

/* Índice */
.toc {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  padding: 20px 24px; margin-bottom: 40px;
}
.toc-title {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.toc ol { list-style: none; counter-reset: toc; columns: 2; column-gap: 32px; }
.toc li { counter-increment: toc; font-size: 14px; margin-bottom: 6px; break-inside: avoid; }
.toc li::before { content: counter(toc) ". "; color: var(--muted); }
.toc a { color: var(--text); }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* Secciones */
section { margin-bottom: 36px; scroll-margin-top: 80px; }
h2 {
  font-family: var(--font); font-size: 20px; font-weight: 700;
  letter-spacing: -.01em; margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
h3 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; }
p { margin-bottom: 14px; color: #1f2229; }
ul, ol { margin: 0 0 14px 22px; }
li { margin-bottom: 7px; color: #1f2229; }
strong { font-weight: 600; color: var(--ink); }

/* Callouts */
.callout {
  border: 1px solid var(--border); border-left: 3px solid var(--muted);
  background: var(--white); border-radius: 0 var(--r) var(--r) 0;
  padding: 16px 20px; margin: 0 0 18px;
}
.callout p:last-child, .callout ul:last-child, .callout li:last-child { margin-bottom: 0; }
.callout--key   { border-left-color: var(--blue);  background: var(--blue-light); }
.callout--alert { border-left-color: #D97706;      background: var(--amber-bg); border-color: var(--amber-bd); }
.callout-title {
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 8px; color: var(--ink);
}

/* Placeholder de datos por completar */
.ph {
  background: #FEF3C7; border-bottom: 1px dashed #B45309;
  padding: 1px 5px; border-radius: 3px;
  font-weight: 600; color: #78350F; white-space: nowrap;
}

/* Tabla */
.tbl-wrap { overflow-x: auto; margin-bottom: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted);
  background: var(--cream-dark); padding: 9px 12px; border-bottom: 1px solid var(--border);
}
td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }

/* Footer */
footer { border-top: 1px solid var(--border); background: var(--cream-dark); }
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 28px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 13px; color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; }
.footer-links a { color: var(--muted); }

@media (max-width: 640px) {
  h1 { font-size: 26px; }
  .wrap { padding: 32px 20px 64px; }
}

@media print {
  nav, .toc, footer { display: none; }
  body { background: #fff; font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
  section { page-break-inside: avoid; }
}
