/* Rentas Tulum v6 — páginas de texto: Aviso de Privacidad, Términos y condiciones y 404.
   Hoja ligera e independiente (no carga el catálogo). Misma paleta que el sitio; contraste AA. */
:root {
  --bg: #f3f1ec; --surface: #fbfaf7; --ink: #2a2119; --ink-2: #4a3f35; --muted: #6b5d4f;
  --gold: #a67c3d; --gold-ink: #7d5f2f; --wa: #167a3e; --wa-hover: #11612f; --line: rgba(42, 33, 25, .12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, .6rem + 2.6vw, 2.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); color-scheme: light; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg); }
a { color: var(--gold-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; transform: translateY(-160%); }
.skip-link:focus, .skip-link:focus-visible { transform: none; }

/* Barra superior */
.pg-top { position: sticky; top: 0; z-index: 10; background: rgba(243, 241, 236, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.pg-top-in { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); min-height: 64px; display: flex; align-items: center; gap: 1rem; }
.pg-brand { font-weight: 700; letter-spacing: .2em; font-size: 1.05rem; text-decoration: none; color: var(--ink); display: inline-flex; gap: .35em; min-height: 48px; align-items: center; }
.pg-brand span { color: var(--gold-ink); }
.pg-nav { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.pg-nav a:not(.btn) { padding: .5em .8em; min-height: 48px; display: inline-flex; align-items: center; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: .9375rem; }
.pg-nav a:not(.btn):hover { background: rgba(42, 33, 25, .06); color: var(--ink); }
@media (max-width: 520px) {
  .pg-nav a.hide-sm { display: none; }
  .pg-top-in { gap: .5rem; }
  .pg-brand { letter-spacing: .12em; font-size: .96rem; }
  .pg-nav .btn { padding: 0 1em; }
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.3em; border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #3b2f24; color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(42, 33, 25, .2); color: var(--ink); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--gold); }

/* Contenido legal */
.pg-main { max-width: 1120px; margin: 0 auto; padding: clamp(2rem, 1.2rem + 3vw, 4rem) var(--gutter) 4rem; }
.legal { max-width: 72ch; }
.kicker { margin: 0 0 .75rem; font-size: .9375rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.legal h1 { margin: 0; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.05; letter-spacing: -.03em; }
.legal .updated { margin: .75rem 0 2rem; color: var(--muted); font-size: .9375rem; }
.legal .lede { font-size: 1.1875rem; color: var(--ink-2); }
.legal h2 { margin: 2.5rem 0 .75rem; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.25; letter-spacing: -.015em; }
.legal h3 { margin: 1.5rem 0 .5rem; font-size: 1.0625rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin: .35em 0; }
.legal strong { color: var(--ink); }
.toc { margin: 0 0 2rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.toc p { margin: 0 0 .4rem; font-weight: 700; color: var(--ink); }
.toc ol { margin: 0; columns: 2 16rem; column-gap: 2rem; }
.toc a { display: inline-block; padding: .15em 0; }
.callout { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; background: var(--surface); }
.callout p { margin: 0; }
table.data { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9375rem; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: .6em .7em; border-bottom: 1px solid var(--line); color: var(--ink-2); }
table.data th { color: var(--ink); font-weight: 650; background: var(--surface); }
@media (max-width: 640px) {
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data thead { display: none; }
  table.data tr { padding: .5em 0; border-bottom: 1px solid var(--line); }
  table.data td { border: 0; padding: .2em 0; }
  table.data td::before { content: attr(data-label) ": "; font-weight: 650; color: var(--ink); }
}

/* 404 */
.nf { min-height: calc(100vh - 64px - 160px); display: grid; align-content: center; gap: 1.25rem; max-width: 40rem; }
.nf .code { margin: 0; font-size: clamp(4.5rem, 3rem + 8vw, 8rem); font-weight: 800; line-height: .9; letter-spacing: -.05em; color: var(--gold-ink); }
.nf h1 { margin: 0; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); line-height: 1.1; letter-spacing: -.025em; }
.nf p { margin: 0; color: var(--ink-2); font-size: 1.125rem; }
.nf-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }

/* Pie */
.pg-foot { border-top: 1px solid var(--line); }
.pg-foot-in { max-width: 1120px; margin: 0 auto; padding: 2rem var(--gutter) 2.5rem; display: grid; gap: .5rem; color: var(--muted); font-size: .9375rem; }
.pg-foot p { margin: 0; }
.pg-foot nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.pg-foot nav a, .pg-foot .linklike { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-ink); font-weight: 600; text-decoration: underline; }
.linklike { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.legal .linklike { color: var(--gold-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media print { .pg-top, .pg-foot, .skip-link { display: none; } body { background: #fff; } }
