/* Step In · web estática. Sin dependencias ni tipografías externas. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5f5b54;
  --line: #e4e0d8;
  --accent: #1f6f5c;
  --accent-text: #ffffff;
  --accent-soft: #e3f1ec;
  --todo-bg: #fff3c4;
  --todo-text: #6b4e00;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141412;
    --surface: #1d1c1a;
    --text: #ecebe7;
    --muted: #a7a39b;
    --line: #34322e;
    --accent: #5fc4a8;
    --accent-text: #0f1f1a;
    --accent-soft: #1d2f2a;
    --todo-bg: #3a3112;
    --todo-text: #f3d77a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Cabecera */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
}
.brand svg { flex: none; }
nav.site {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 15px;
}
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }
nav.site a[aria-current="page"] { font-weight: 600; }
nav.site .lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
}

main { padding: 32px 0 56px; }

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 22px; line-height: 1.3; margin: 40px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 4px; }
p, ul, ol, table { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
.lead { font-size: 19px; color: var(--muted); max-width: 40em; }
.updated { color: var(--muted); font-size: 15px; }
.small { font-size: 15px; color: var(--muted); }

/* Portada */
.hero { padding: 16px 0 8px; }
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 8px;
}
.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
  border: 0;
  font-size: 16px;
  cursor: pointer;
}
.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.button[aria-disabled="true"] { opacity: 0.6; cursor: default; }

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  counter-reset: step;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.steps strong { display: block; margin-bottom: 2px; }
.steps li { font-size: 15px; color: var(--muted); }
.steps strong { color: var(--text); font-size: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}

/* Formulario de la lista de espera */
form.waitlist label { display: block; }
form.waitlist .field { margin-bottom: 14px; }
form.waitlist input[type="email"] {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
}
form.waitlist input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
form.waitlist .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
}
form.waitlist .consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.layer1 {
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
}
.layer1 dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; }
.layer1 dt { font-weight: 600; color: var(--text); }
.layer1 dd { margin: 0; }
@media (max-width: 480px) {
  .layer1 dl { grid-template-columns: 1fr; }
  .layer1 dd { margin-bottom: 6px; }
}
.form-msg { font-weight: 600; margin-top: 10px; }

/* Textos legales */
.legal h2 { border-top: 1px solid var(--line); padding-top: 24px; }
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 15px;
}
.toc ol { margin: 0; }
.summary {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
}
.summary ul { margin: 0; }
.table-scroll { overflow-x: auto; margin: 0 0 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
@media (max-width: 560px) {
  table thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  td { border: 0; padding: 2px 0; }
  td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; }
}

/* Huecos que hay que rellenar antes de publicar */
.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
}

details { margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
footer.site a { color: var(--muted); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 20px; }
  main { padding-top: 24px; }
}
