@font-face {
  font-family: 'Outfit';
  src: url('/font/outfit-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/font/outfit-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('/font/outfit-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Tokens de ArrieritoDigital/src/styles/global.css. Claro por defecto, oscuro por sistema o por localStorage.tema. */
:root {
  --fondo: #eaecef;
  --superficie: #ffffff;
  --banda: #d4d8da;
  --texto: #4c4d4f;
  --texto-suave: #646566;
  --filete: #76868c;
  --boton: #4c4d4f;
  --boton-texto: #eaecef;
  --acento: #69bcdc;
  --sobre-acento: #0e1620;
  --enlace: #3a697b;
  --radio-boton: 12px;
  --radio-tarjeta: 24px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-tema='claro']) {
    --fondo: #111318;
    --superficie: #383b43;
    --banda: #262628;
    --texto: #eaecef;
    --texto-suave: #a8acae;
    --filete: #7c878a;
    --boton: #69bcdc;
    --boton-texto: #0e1620;
    --enlace: #69bcdc;
    color-scheme: dark;
  }
  :root:not([data-tema='claro']) .solo-claro { display: none; }
  :root:not([data-tema='claro']) .solo-oscuro { display: block; }
}

:root[data-tema='oscuro'] {
  --fondo: #111318;
  --superficie: #383b43;
  --banda: #262628;
  --texto: #eaecef;
  --texto-suave: #a8acae;
  --filete: #7c878a;
  --boton: #69bcdc;
  --boton-texto: #0e1620;
  --enlace: #69bcdc;
  color-scheme: dark;
}
:root[data-tema='oscuro'] .solo-claro { display: none; }
:root[data-tema='oscuro'] .solo-oscuro { display: block; }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--fondo);
  color: var(--texto);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 48rem) {
  body { font-size: 1.125rem; }
}

h1, h2, h3, h4 { margin: 0; color: var(--texto); text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--enlace);
  outline-offset: 3px;
  border-radius: 4px;
}

.solo-oscuro { display: none; }

.contenedor {
  width: min(100% - 2rem, 75rem);
  margin-inline: auto;
}

@media (min-width: 48rem) {
  .contenedor { width: min(100% - 3rem, 75rem); }
}

.salto {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: var(--radio-boton);
  background: var(--boton);
  color: var(--boton-texto);
  text-decoration: none;
}
.salto:focus { top: 0.75rem; }

.cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding-top: max(0.5rem, env(safe-area-inset-top));
}
.cabecera__marca { display: block; flex: none; }
.cabecera__marca img { width: 8.5rem; height: auto; }

.idioma {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--filete);
  border-radius: 999px;
  background: var(--superficie);
}
.idioma a, .idioma span {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  color: var(--texto);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}
.idioma span[aria-current] { background: var(--boton); color: var(--boton-texto); }
.idioma a:hover { background: var(--banda); }

.legal {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

@media (min-width: 64rem) {
  .legal { padding-top: 3rem; }
}

.legal__cabeza {
  display: grid;
  justify-items: start;
  gap: 1rem;
  max-width: 48rem;
}

.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border: 1px solid var(--filete);
  border-radius: 999px;
  background: var(--superficie);
  color: var(--texto);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}
.etiqueta svg { width: 1rem; height: 1rem; color: var(--enlace); }

.titulo-seccion {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.texto-suave { color: var(--texto-suave); }

.legal__resumen {
  max-width: 48rem;
  margin-top: 2.5rem;
  padding: 1.75rem;
  border-radius: var(--radio-tarjeta);
  background: var(--banda);
}
.legal__resumen h2,
.legal__indice h2 {
  margin-bottom: 0.9rem;
  font-size: 1.0625rem;
  font-weight: 600;
}
.legal__resumen p + p { margin-top: 0.6rem; }

.legal__rejilla {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}

.legal__indice ol {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 2rem;
  color: var(--texto-suave);
  list-style: decimal;
}
.legal__indice a {
  color: var(--texto-suave);
  text-decoration: none;
}
.legal__indice a:hover {
  color: var(--enlace);
  text-decoration: underline;
}

.legal__texto {
  display: grid;
  gap: 2.75rem;
  max-width: 70ch;
}
.legal__texto section {
  display: grid;
  gap: 0.9rem;
}
.legal__texto h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.legal__numero { color: var(--texto-suave); }
.legal__texto h3,
.legal__texto h4 {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}
.legal__bloque section > h3 {
  margin-top: 0;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.legal__bloque {
  display: grid;
  gap: 2.75rem;
  margin-top: 1rem;
}
.bloque__cabeza {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--filete);
  border-radius: var(--radio-tarjeta);
  background: var(--superficie);
}
@media (min-width: 48rem) {
  .bloque__cabeza { padding: 1.75rem 2rem; }
}
.legal__texto .bloque__cabeza h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.bloque__cabeza .etiqueta { background: var(--fondo); }
.legal__texto .bloque__plataformas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}
.legal__texto .bloque__plataformas li {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--banda);
  color: var(--texto);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

.legal__indice .legal__indice-bloque {
  margin: 1.5rem 0 0.6rem;
  color: var(--texto);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.legal__texto p,
.legal__texto li {
  color: var(--texto-suave);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.legal__texto ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding-left: 1.2rem;
  list-style: disc;
}
.legal__texto strong { color: var(--texto); font-weight: 600; }
.legal__texto code { font-family: inherit; font-weight: 500; color: var(--texto); overflow-wrap: anywhere; }
.legal__texto a {
  color: var(--enlace);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.tabla {
  overflow-x: auto;
  border: 1px solid var(--filete);
  border-radius: var(--radio-boton);
  background: var(--superficie);
}
.tabla table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.tabla caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.tabla th, .tabla td {
  padding: 0.7rem 1rem;
  text-align: left;
  vertical-align: top;
  color: var(--texto);
  line-height: 1.5;
}
.tabla th { font-weight: 600; background: var(--banda); }
.tabla tr + tr th, .tabla tr + tr td { border-top: 1px solid var(--banda); }

@media (max-width: 37.5rem) {
  .tabla thead { display: none; }
  .tabla tr { display: block; padding: 0.7rem 1rem; }
  .tabla tr + tr { border-top: 1px solid var(--banda); }
  .tabla td, .tabla th[scope='row'] { display: block; padding: 0.15rem 0; background: none; }
  .tabla tr + tr th, .tabla tr + tr td { border-top: 0; }
  .tabla td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--texto-suave);
    font-size: 0.8125rem;
    font-weight: 600;
  }
}

.nota {
  padding: 1rem 1.25rem;
  border-radius: var(--radio-boton);
  background: var(--banda);
}
.legal__texto .nota { color: var(--texto); }

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--boton);
  border-radius: var(--radio-boton);
  background: var(--boton);
  color: var(--boton-texto);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.boton:hover { transform: translateY(-1px); }
.boton:active { transform: scale(0.98); }
.boton--secundario {
  background: transparent;
  color: var(--texto);
  border-color: var(--filete);
}
.boton--secundario:hover { border-color: var(--texto); }
.legal__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legal__texto .legal__volver {
  justify-self: start;
  color: var(--texto);
  text-decoration: none;
}

.pie {
  padding: 2rem 0 max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--banda);
}
.pie .contenedor {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  color: var(--texto-suave);
  font-size: 0.875rem;
  text-align: center;
}
.pie a { color: var(--enlace); text-underline-offset: 0.2em; }
.credito {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  text-decoration: none;
}
.credito__logo { width: 1.75rem; height: 1.75rem; border-radius: 50%; }

@media (min-width: 64rem) {
  .legal__rejilla {
    grid-template-columns: 16rem 1fr;
    gap: 4rem;
  }
  .legal__indice {
    position: sticky;
    top: 2rem;
    align-self: start;
  }
}

/* TV con control: el visor de la app desplaza (▲▼) y ofrece las secciones con OK, así que la página no muestra nada
   interactivo. La columna de lectura va centrada para no dejar todo el aire a la derecha, y las anclas dejan sitio a la
   guía de teclas que el visor pinta arriba. */
@media (pointer: none) {
  html { scroll-padding-top: 4.5rem; }
  .salto, .idioma, .legal__indice, .legal__acciones { display: none; }
  .cabecera, .legal__cabeza, .legal__resumen, .legal__rejilla { max-width: 70ch; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton { transition: none; }
}

@media print {
  :root {
    --fondo: #ffffff;
    --superficie: #ffffff;
    --banda: #eaecef;
    --texto: #4c4d4f;
    --texto-suave: #646566;
    --filete: #76868c;
    --enlace: #3a697b;
    color-scheme: light;
  }
  .salto, .idioma, .legal__indice, .legal__acciones { display: none; }
  .legal__texto { max-width: none; }
}
