/* The public pages (SUPER-105). Colors from app/src/theme/tokens.ts; the design is on the canvas
   (page "Marca", row SUPER-105). The CSP allows only this file: no inline styles, no fonts from
   elsewhere, so the system font stands in for Barlow. */

:root {
  --primary: #0277bd;
  --primary-dark: #01579b;
  --on-primary-soft: #e1f1fa;
  --ink: #141414;
  --ink-soft: #3a3a3a;
  --muted: #5c5f63;
  --hairline: #e6e6e2;
  --paper: #fafaf7;
  --hint: #f2f8fc;
  --hint-border: #d5e9f5;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
}

.contenedor {
  box-sizing: border-box;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Legal pages: header, text and footer in one readable column. */
.angosto {
  max-width: 760px;
}

/* Celeste band with the logo. */
.barra {
  background: var(--primary);
  color: #fff;
}

.barra a {
  color: #fff;
}

.barra-fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.3px;
}

.marca svg {
  width: 36px;
  height: 36px;
  flex: none;
}

.barra nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
  font-weight: 600;
}

/* Home. */
.portada {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 56px;
}

.portada h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 7vw, 56px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -1px;
}

.portada p {
  margin: 0;
  max-width: 640px;
  font-size: 21px;
  line-height: 1.45;
  color: var(--on-primary-soft);
}

.bajar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.barra .boton {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  box-sizing: border-box;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.barra .boton:hover {
  background: var(--on-primary-soft);
}

.bajar span {
  font-size: 15px;
  color: var(--on-primary-soft);
}

.funciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 24px;
}

.funciones h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}

.funciones p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.fuente {
  margin: 24px 0 56px;
  padding: 20px 24px;
  border: 1px solid var(--hint-border);
  border-radius: 10px;
  background: var(--hint);
}

.fuente h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.fuente p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Legal pages: docs/legal/*.md rendered. */
main {
  flex: 1;
}

.legal {
  padding-top: 28px;
  padding-bottom: 40px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.legal h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--ink);
}

.legal h2 {
  margin: 28px 0 8px;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ink);
}

.legal p,
.legal ul,
.legal ol {
  margin: 0 0 16px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
}

.legal li + li {
  margin-top: 6px;
}

.legal strong {
  color: var(--ink);
}

.legal a {
  overflow-wrap: anywhere;
}

/* Footer shared by every page. */
.pie {
  border-top: 1px solid var(--hairline);
  background: var(--paper);
  font-size: 14px;
  color: var(--muted);
}

.pie .contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 20px;
  padding-bottom: 28px;
}

.pie nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.pie nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.pie p {
  margin: 0;
  align-self: center;
}
