/* Caudal · sitio público — light mode, naranja de marca #E85002 */

/* Fuentes self-hosted (variables, subset latin): sin request a Google → primer
   render no bloquea en un tercero y la IP del visitante no sale del dominio
   (relevante justo en la página del Aviso de Privacidad). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
}
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e5e5e5;
  --text: #171717;
  --text-2: #525252;
  --text-3: #8a8a8a;
  --brand: #e85002;
  --brand-deep: #c44402;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .brand, .brand-big {
  font-family: "Space Grotesk", "Inter", -apple-system, sans-serif;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
  text-decoration: none;
}

nav.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

nav.top a.back {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
}
nav.top a.back:hover { color: var(--text); }

nav.top .right { display: flex; align-items: center; gap: 20px; }

/* i18n: html[data-lang] decide qué idioma se ve */
html[data-lang="en"] [data-es] { display: none; }
html[data-lang="es"] [data-en] { display: none; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-toggle button.active {
  background: var(--brand);
  color: #ffffff;
}

h1 {
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 8px;
}

h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
}

p, li { color: var(--text-2); font-size: 16px; }
strong { color: var(--text); }
a { color: var(--brand-deep); }

.updated { color: var(--text-3); font-size: 14px; margin-bottom: 32px; }

blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p { margin: 0; }

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 13px;
}
footer a { color: var(--text-3); text-decoration: none; }
footer a:hover { color: var(--text-2); }
footer .links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }

/* Landing */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .brand-big {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
  margin: 0 0 16px;
}
.hero h1 { font-size: 40px; max-width: 560px; }
.hero p.sub { font-size: 18px; max-width: 480px; }
.badge {
  display: inline-block;
  margin-top: 28px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  width: fit-content;
}
