/* Páginas legales: mismos tokens de marca que index.html */
:root {
  --paper: #FFFFFF;
  --mist: #F2F4F1;
  --line: #DCE0DA;
  --ink: #2D342E;
  --ink-2: #4A524B;
  --muted: #697064;
  --orange: #E9763E;
  --orange-ink: #B4501E;
  --wa: #25D366;
  --f-display: "Newsreader", Georgia, "Times New Roman", serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 860px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand img { height: 38px; width: auto; }
.back { font-weight: 600; font-size: 0.95rem; color: var(--ink); text-decoration: none; }
.back:hover { color: var(--orange-ink); }

main { padding-block: 48px 72px; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-ink); margin: 0 0 10px; }
h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 4.4vw, 2.8rem); line-height: 1.1; margin: 0 0 12px; text-wrap: balance; }
.updated { color: var(--muted); font-size: 0.92rem; margin: 0 0 28px; }
h2 { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; line-height: 1.2; margin: 40px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); text-wrap: balance; }
h3 { font-size: 1.02rem; margin: 22px 0 6px; }
p, li { color: var(--ink-2); max-width: 70ch; }
ul { padding-left: 1.2em; }
li { margin-bottom: 6px; }
.note { background: var(--mist); border-left: 3px solid var(--orange); padding: 14px 16px; border-radius: 0 8px 8px 0; font-size: 0.95rem; }
.toc { background: var(--mist); border-radius: 10px; padding: 16px 20px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2 220px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--orange-ink); }

.tbd {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 999px;
  border: 1px dashed rgba(233,118,62,.7); background: rgba(233,118,62,.07);
  color: var(--orange-ink); font-size: 0.88em; font-style: italic; font-weight: 500;
}
.tbd::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.site-footer { background: #232925; color: #B9BFB6; padding-block: 32px 96px; font-size: 0.9rem; }
.site-footer a { color: #ECEEE9; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

.wa-float {
  position: fixed; z-index: 20; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; background: var(--wa); color: #0B3A1E; text-decoration: none;
  font: 700 1rem/1 var(--f-body); padding: 14px 20px 14px 16px; border-radius: 999px; box-shadow: 0 10px 28px rgba(20,60,35,.28);
}
.wa-float svg { width: 24px; height: 24px; }
