/* Páginas legales (/privacidad y /terminos). Marca de la página de inicio (variante Galería): Geist,
   colores Jandatix y tema claro siempre (DEC-022). Mismos tokens que /assets/tap.css. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fuentes/geist-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fuentes/geist-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fuentes/geist-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --ink: #0A0E23;
  --ink-muted: #4A4F61;
  --line: #DDE4F0;
  --brand: #1765C2;
  --brand-hover: #125AB0;
  --brand-soft: #E8F0FB;
  --on-brand: #FFFFFF;
  --radio: 14px;
  --ancho: 72rem;
  --font-body: Geist, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
svg { display: block; }

.saltar { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.5rem 1rem; background: var(--surface); color: var(--brand); border-radius: 8px; }
.saltar:focus { top: 1rem; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .contenedor { padding: 0 2rem; } }

/* Barra superior */
.barra {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.barra .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.marca img { display: block; height: 32px; width: auto; }
.enlaces { display: none; gap: 1.75rem; }
.enlaces a { color: var(--ink-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 0.5rem 0; }
.enlaces a:hover { color: var(--ink); }
@media (min-width: 52rem) { .enlaces { display: flex; } }

.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.5rem; border-radius: 999px;
  background: var(--brand); color: var(--on-brand);
  font-weight: 500; text-decoration: none;
  transition: background-color 200ms ease;
}
.boton:hover { background: var(--brand-hover); color: var(--on-brand); }
.boton-chico { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 22rem) { .boton-chico { padding: 0.5rem 0.85rem; font-size: 0.875rem; } .marca img { height: 28px; } }

/* Documento */
.documento-cabecera { background: var(--surface); padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.documento-cabecera h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); margin: 0 0 0.75rem; max-width: 46rem; }
.documento-cabecera .meta { font-family: var(--font-mono); font-size: 0.875rem; color: var(--ink-muted); margin: 0; }
.aviso { display: flex; gap: 0.6rem; align-items: flex-start; max-width: 46rem; margin: 1.25rem 0 0; padding: 0.85rem 1rem; border-radius: 10px; background: var(--brand-soft); border: 1px solid var(--line); font-size: 0.95rem; }
.aviso svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 3px; }

.documento-cuerpo { display: grid; gap: 2.5rem; padding-block: 2.5rem 4rem; }
.documento-cuerpo > * { min-width: 0; } /* la tabla ancha hace scroll dentro de su envoltura, no en la página */
@media (min-width: 64rem) { .documento-cuerpo { grid-template-columns: 15rem 1fr; } .indice { position: sticky; top: 5.5rem; align-self: start; } }
.indice { font-size: 0.92rem; }
.indice p { font-weight: 500; margin: 0 0 0.5rem; }
.indice ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.15rem; }
.indice a { color: var(--ink-muted); text-decoration: none; display: inline-block; padding: 0.2rem 0; }
.indice a:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 63.99rem) { .indice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radio); padding: 1.25rem; } }

.texto-legal { max-width: 46rem; }
.texto-legal code, .texto-legal a { overflow-wrap: anywhere; } /* URLs largas sin partir palabras de las tablas */
.texto-legal h2 { font-size: 1.3rem; margin: 2.25rem 0 0.6rem; scroll-margin-top: 5.5rem; }
.texto-legal h2:first-child { margin-top: 0; }
.texto-legal ul, .texto-legal ol { padding-left: 1.3rem; }
.texto-legal li { margin: 0.3rem 0; }

.tabla-envoltura { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { padding: 0.65rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--bg); font-weight: 500; }

/* Pie */
.pie { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--ink-muted); font-size: 0.95rem; }
.pie .contenedor { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .pie .contenedor { grid-template-columns: 1fr auto; align-items: center; } }
.pie p { margin: 0; }
.pie a { color: var(--ink-muted); }
.pie nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.pie nav a { padding: 0.6rem 0; display: inline-block; }
.pie a:hover { color: var(--brand); }
