/* Astrolabio: azul noche y bronce (el metal de los astrolabios). Sin JavaScript, sin dependencias. */

@font-face {
  font-family: "Plex";
  src: url("fonts/plex_sans_regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Plex";
  src: url("fonts/plex_sans_medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Plex";
  src: url("fonts/plex_sans_semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #f7f5f0;
  --surface: #ece8df;
  --text: #14202e;
  --muted: #4f5b6b;
  --line: #d9d3c6;
  --accent: #7a5c24;
  --gutter: 16px;
  --max: 960px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1626;
    --surface: #132239;
    --text: #e8ecf2;
    --muted: #a3afc0;
    --line: #22344f;
    --accent: #d4b072;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 "Plex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 8px;
  background: var(--bg);
  padding: 8px 12px;
}

/* Encabezado: la marca y el otro idioma */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
}

.brand svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.lang {
  font-size: 0.9375rem;
  padding: 12px 0 12px 12px;
}

/* Portada */
.hero {
  padding: 56px 0 48px;
}

.hero h1 {
  font-size: clamp(2rem, 7vw, 3.25rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  max-width: 16ch;
}

.lead {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0;
}

section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

h2 {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 24px;
}

/* Las apps */
.app {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--surface);
  border-radius: 12px;
  padding: 24px;
}

.app img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.app h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.app p {
  margin: 0 0 12px;
  color: var(--muted);
}

.status {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

/* Cómo las hacemos */
.ways {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.ways strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.ways span {
  color: var(--muted);
}

@media (min-width: 720px) {
  .ways {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.contact p {
  margin: 0;
  font-size: 1.125rem;
}

footer .foot {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Páginas de texto largo (políticas) */
.doc {
  padding: 32px 0 48px;
  max-width: 44rem;
}

.doc h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 8px;
}

.doc h2 {
  font-size: 1.1875rem;
  margin: 32px 0 8px;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc .lead {
  color: var(--text);
  font-size: 1.0625rem;
}

.doc .updated {
  font-size: 0.875rem;
  margin: 0 0 24px;
}

.doc ul {
  padding-left: 20px;
}

.doc .legal {
  font-size: 0.875rem;
}

@media (max-width: 480px) {
  .app {
    grid-template-columns: 1fr;
  }
}
