/* Los dos temas de Outlier
 *
 * Los tokens que la librería declara en su archivo de tokens, con los valores
 * de la identidad de marca. Ni uno más, ni uno menos: si algo que hay que
 * pintar no cabe en esta lista, la respuesta es un token nuevo en la
 * librería, no un color suelto en el componente.
 *
 * El tema claro va en :root y el oscuro en .dark, igual que en la librería, y
 * los valores van en OKLCH, que es como la librería los declara y como los
 * publica la guía de marca. Van con cuatro decimales, que es donde vuelven al
 * mismo hex: con tres, #1061CA regresa como #0F61CA.
 * Pegar tal cual, o reemplazar los bloques equivalentes del archivo de tokens.
 *
 * Generado por generator/lib/themes.mjs desde generator/source/themes.json.
 * No editar a mano.
 */

:root {
  --default-font-family: 'Inter', sans-serif;
  --radius: 0.625rem;

  /* Acción */
  --primary: oklch(0.5114 0.1788 258.0);
  --primary-hover: oklch(0.4512 0.1660 258.0);
  --primary-foreground: oklch(1.0000 0.0000 0.0);
  --destructive: oklch(0.6256 0.1933 23.0);
  --destructive-hover: oklch(0.5525 0.1834 23.6);
  --destructive-foreground: oklch(1.0000 0.0000 0.0);

  /* Superficies */
  --body-background: oklch(0.9792 0.0041 271.4);
  --background: oklch(1.0000 0.0000 0.0);
  --card: oklch(1.0000 0.0000 0.0);
  --card-foreground: oklch(0.1888 0.0103 248.4);
  --popover: oklch(1.0000 0.0000 0.0);
  --popover-foreground: oklch(0.1888 0.0103 248.4);
  --secondary: oklch(0.9638 0.0058 264.5);
  --secondary-foreground: oklch(0.1888 0.0103 248.4);
  --muted: oklch(0.9638 0.0058 264.5);
  --accent: oklch(0.9638 0.0058 264.5);
  --accent-2: oklch(0.9247 0.0100 267.4);
  --accent-foreground: oklch(0.1888 0.0103 248.4);
  --ghost: oklch(1.0000 0.0000 0.0 / 1%);
  --ghost-foreground: oklch(0.1888 0.0103 248.4);

  /* Texto, bordes y foco */
  --foreground: oklch(0.1888 0.0103 248.4);
  --muted-foreground: oklch(0.4995 0.0304 266.3);
  --border: oklch(0.9247 0.0100 267.4);
  --border-2: oklch(0.8875 0.0147 264.5);
  --border-focus: oklch(0.6620 0.0287 264.4);
  --input: oklch(0.9792 0.0041 271.4);
  --ring: oklch(0.5114 0.1788 258.0);

  /* Estado */
  --success: oklch(0.5517 0.1185 163.3);
  --success-foreground: oklch(1.0000 0.0000 0.0);
  --warning: oklch(0.6728 0.1402 77.6);
  --warning-foreground: oklch(0.1888 0.0103 248.4);
  --info: oklch(0.5114 0.1788 258.0);
  --info-foreground: oklch(1.0000 0.0000 0.0);

  /* Barra lateral */
  --sidebar: oklch(0.9792 0.0041 271.4);
  --sidebar-foreground: oklch(0.1888 0.0103 248.4);
  --sidebar-primary: oklch(0.5114 0.1788 258.0);
  --sidebar-primary-foreground: oklch(1.0000 0.0000 0.0);
  --sidebar-accent: oklch(0.9638 0.0058 264.5);
  --sidebar-accent-foreground: oklch(0.1888 0.0103 248.4);
  --sidebar-border: oklch(0.9247 0.0100 267.4);
  --sidebar-ring: oklch(0.5114 0.1788 258.0);
}

.dark {
  /* Acción */
  --primary: oklch(0.6804 0.1545 258.0);
  --primary-hover: oklch(0.8290 0.0857 258.3);
  --primary-foreground: oklch(0.1888 0.0103 248.4);
  --destructive: oklch(0.7129 0.1806 20.1);
  --destructive-hover: oklch(0.7917 0.1211 16.4);
  --destructive-foreground: oklch(0.1365 0.0121 243.1);

  /* Superficies */
  --body-background: oklch(0.1365 0.0121 243.1);
  --background: oklch(0.1882 0.0196 252.2);
  --card: oklch(0.1882 0.0196 252.2);
  --card-foreground: oklch(0.9216 0.0100 267.4);
  --popover: oklch(0.2226 0.0237 251.5);
  --popover-foreground: oklch(0.9216 0.0100 267.4);
  --secondary: oklch(0.2511 0.0261 248.9);
  --secondary-foreground: oklch(0.9216 0.0100 267.4);
  --muted: oklch(0.2511 0.0261 248.9);
  --accent: oklch(0.2511 0.0261 248.9);
  --accent-2: oklch(0.2835 0.0277 248.8);
  --accent-foreground: oklch(0.9216 0.0100 267.4);
  --ghost: oklch(0.0000 0.0000 0.0 / 1%);
  --ghost-foreground: oklch(0.9216 0.0100 267.4);

  /* Texto, bordes y foco */
  --foreground: oklch(0.9216 0.0100 267.4);
  --muted-foreground: oklch(0.6620 0.0287 264.4);
  --border: oklch(0.2835 0.0277 248.8);
  --border-2: oklch(0.3429 0.0301 250.6);
  --border-focus: oklch(0.6620 0.0287 264.4);
  --input: oklch(0.2226 0.0237 251.5);
  --ring: oklch(0.6804 0.1545 258.0);

  /* Estado */
  --success: oklch(0.7601 0.1527 159.5);
  --success-foreground: oklch(0.1365 0.0121 243.1);
  --warning: oklch(0.7881 0.1583 77.8);
  --warning-foreground: oklch(0.1365 0.0121 243.1);
  --info: oklch(0.6804 0.1545 258.0);
  --info-foreground: oklch(0.1365 0.0121 243.1);

  /* Barra lateral */
  --sidebar: oklch(0.1882 0.0196 252.2);
  --sidebar-foreground: oklch(0.9216 0.0100 267.4);
  --sidebar-primary: oklch(0.6804 0.1545 258.0);
  --sidebar-primary-foreground: oklch(0.1888 0.0103 248.4);
  --sidebar-accent: oklch(0.2511 0.0261 248.9);
  --sidebar-accent-foreground: oklch(0.9216 0.0100 267.4);
  --sidebar-border: oklch(0.2835 0.0277 248.8);
  --sidebar-ring: oklch(0.6804 0.1545 258.0);
}

/* Estilos del sitio.
 *
 * Solo usa las variables de outlier-themes.css, que genera internal/design y se
 * copia con `node scripts/sync-brand.mjs`. El sitio usa el tema oscuro, como
 * outlier.cl: <html class="dark">.
 */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--body-background);
  color: var(--foreground);
  font-family: var(--default-font-family);
  font-size: 1rem;
  line-height: 1.7;
}

::selection {
  background: color-mix(in oklab, var(--primary) 40%, transparent);
}

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

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

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

a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

strong {
  font-weight: 600;
}

/* Barra superior */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.lang-switch {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.lang-switch:hover {
  color: var(--foreground);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-foreground);
  font-family: 'Jost', 'Century Gothic', 'Avenir Next', sans-serif;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand:hover {
  color: var(--foreground);
}

.brand img {
  display: block;
  width: 2.5rem;
  height: auto;
}

/* Contenido */

/* main también es .container: el selector compuesto gana a su padding lateral. */
main.container {
  flex: 1;
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

h1,
h2 {
  font-family: 'Jost', 'Century Gothic', 'Avenir Next', sans-serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  margin: 2rem 0 0.5rem;
  font-size: 2.25rem;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin: 0.5rem 0;
}

li::marker {
  color: var(--muted-foreground);
}

.lead {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.updated {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Cabecera de cada app y sus pestañas */

.app-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-header img,
.app-list img {
  flex: none;
  border-radius: 22%;
  border: 1px solid var(--border);
}

.app-name {
  margin: 0;
  font-family: 'Jost', 'Century Gothic', 'Avenir Next', sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.3;
}

.app-tagline {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tabs {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.tabs a {
  margin-bottom: -1px;
  padding: 0.6rem 0;
  border-bottom: 2px solid transparent;
  color: var(--muted-foreground);
  font-weight: 500;
  text-decoration: none;
}

.tabs a:hover {
  color: var(--foreground);
}

.tabs a[aria-current='page'] {
  border-bottom-color: var(--primary);
  color: var(--foreground);
}

/* Portada: lista de apps */

.app-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.app-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
}

.app-links {
  display: flex;
  gap: 1.25rem;
  margin: 0.35rem 0 0;
  font-weight: 500;
}

/* Preguntas frecuentes */

.faq {
  margin: 0;
}

.faq dt {
  margin-top: 1.5rem;
  font-weight: 600;
}

.faq dd {
  margin: 0.35rem 0 0;
  color: color-mix(in oklab, var(--foreground) 85%, var(--muted-foreground));
}

/* Pie */

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--foreground);
}

@media (max-width: 30rem) {
  body {
    font-size: 0.975rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  .app-list li {
    align-items: flex-start;
  }
}
