/* Vettia · vettia.cl. Sin fuentes externas: solo la pila del sistema. */
:root {
  --azul: #0F1C4D;
  --oro: #F2C230;
  --texto: #1a2340;
  --suave: #C9D0E8;
  --zona: #F3F5F9;
  --borde: #D8DDE8;
  --fuente: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--texto);
  font-family: var(--fuente);
  font-size: 1.0625rem;
  line-height: 1.65;
}

main { flex: 1 0 auto; width: 100%; }

.contenedor { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

/* ── Banda superior ─────────────────────────────── */
.banda { background: var(--azul); color: #fff; padding: 1.5rem 0 2rem; }
.banda .contenedor { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.marca { display: block; line-height: 0; border-radius: 12px; }
.marca svg { display: block; width: 3rem; height: 3rem; }
.banda h1 { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.banda p { margin: 0; color: var(--suave); }
.version { font-size: 0.95rem; font-weight: 600; }

.banda-inicio { padding: 3rem 0 3.25rem; }
.banda-inicio .marca svg { width: 4.5rem; height: 4.5rem; }
.banda-inicio h1 { font-size: clamp(2.5rem, 2rem + 2.5vw, 3.5rem); }
.banda-inicio p { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); line-height: 1.45; color: #fff; max-width: 38rem; }

/* ── Contenido ──────────────────────────────────── */
.cuerpo { padding-top: 1.75rem; padding-bottom: 3rem; }
h2 { margin: 2.25rem 0 0.75rem; color: var(--azul); font-size: 1.3rem; line-height: 1.3; font-weight: 700; }
h2::before { content: ""; display: block; width: 2.25rem; height: 0.2rem; margin-bottom: 0.6rem; background: var(--oro); border-radius: 2px; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.35rem; }
li { margin-bottom: 0.55rem; }
li::marker { color: var(--azul); font-weight: 700; }
strong { color: var(--azul); font-weight: 700; }
.banda strong { color: inherit; }
code { padding: 0.08em 0.35em; border-radius: 4px; background: var(--zona); font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 0.92em; overflow-wrap: anywhere; }

a { color: var(--azul); text-decoration: underline; text-underline-offset: 0.15em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; border-radius: 2px; }
.banda a:focus-visible, .pie a:focus-visible { outline-color: var(--oro); }

.ingresar { margin-top: 1.75rem; }
.ingresar a { display: inline-block; margin-left: 0.25rem; padding: 0.4rem 0.95rem; border-radius: 8px; background: var(--oro); color: var(--azul); font-weight: 700; text-decoration: none; }
.ingresar a:hover { text-decoration: underline; }

/* ── Tablas: en celular se desplazan dentro de su propio marco ─ */
.tabla { margin: 0 0 1.25rem; overflow-x: auto; border: 1px solid var(--borde); border-radius: 8px; }
.tabla:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.97rem; line-height: 1.5; }
th, td { padding: 0.65rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--borde); }
thead th { background: var(--azul); color: #fff; font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--zona); }

/* ── Pie ────────────────────────────────────────── */
.pie { flex-shrink: 0; background: var(--azul); color: var(--suave); padding: 1.5rem 0; font-size: 0.92rem; line-height: 1.7; }
.pie p { margin: 0; }
.pie a { color: #fff; }

@media (min-width: 48rem) {
  .banda .contenedor { gap: 1.15rem; }
  .cuerpo { padding-top: 2.25rem; padding-bottom: 4rem; }
}
