/* =========================================================
   GEMS — "libreta de campo"
   Mobile-first. Paleta en :root; modo oscuro = libreta de noche.
   ========================================================= */

:root {
  --paper: #F4EFE6;
  --paper-2: #EBE4D6;
  --card: #FBF8F2;
  --ink: #1F2A24;
  --moss: #3F6B4E;
  --moss-hover: #345A41;
  --on-moss: #FFFFFF;
  --ochre: #C08A3E;
  --ochre-ink: #8A5A1C;   /* ocre oscuro para texto (AA sobre papel) */
  --stone: #8A8578;
  --muted: #5F5A4F;       /* texto secundario con contraste AA */
  --line: #D9D0C1;
  --shadow: #1F2A24;
  --phone: #1F2A24;
  --focus: #8A5A1C;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: 16px;
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151B17;
    --paper-2: #1B231E;
    --card: #1A211C;
    --ink: #E9E3D6;
    --moss: #7FB08F;
    --moss-hover: #94C2A3;
    --on-moss: #101612;
    --ochre: #D9A55A;
    --ochre-ink: #DDAA62;
    --stone: #8F8A7D;
    --muted: #ADA798;
    --line: #2F3A32;
    --shadow: #070A08;
    --phone: #0B0F0C;
    --focus: #DDAA62;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: "opsz" 72;
}

p { margin: 0; }

a { color: var(--moss); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

code, .mono { font-family: var(--font-mono); }

code {
  font-size: .88em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .05em .35em;
  overflow-wrap: anywhere;
}

strong { font-weight: 600; }

[hidden] { display: none !important; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: .6rem 1rem;
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

@media (min-width: 768px) { :root { --gutter: 28px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

/* ---------- Etiquetas de ficha (01 — Descarga) ---------- */

.kicker {
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .25rem;
}
.kicker__num {
  display: inline-block;
  color: var(--ochre-ink);
  font-weight: 500;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0 .35rem;
  margin-right: .2rem;
}

/* ---------- Encabezado ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--ink);
  text-decoration: none;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .02em;
}

.site-nav { display: none; }
.site-nav ul {
  display: flex;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: .5rem .85rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  border-radius: 6px;
}
.site-nav a:hover { background: var(--paper-2); }

.header-download {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  padding: .45rem .9rem;
  background: var(--moss);
  color: var(--on-moss);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  border-radius: 7px;
}
.header-download:hover { background: var(--moss-hover); }

@media (min-width: 768px) {
  .site-nav { display: block; }
  .header-download { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 1.75rem 3.5rem;
  border-bottom: 1px solid var(--line);
}

.topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.topo path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.6s var(--ease) forwards;
  animation-delay: calc(var(--i) * 90ms);
}
.topo path.c--index { stroke-width: 1.8; }

.topo__mark {
  opacity: 0;
  animation: fade 900ms ease-out 1.6s forwards;
}
.topo__dot { fill: var(--ochre); }
.topo__ring { fill: none; stroke: var(--ochre); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.topo__mark text {
  font-family: var(--font-mono);
  font-size: 13px;
  fill: var(--stone);
  letter-spacing: .03em;
}

@media (max-width: 899px) { .topo__mark { display: none; } }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

.hero__grid {
  position: relative;
  display: grid;
  gap: 3rem;
}

.hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.35rem, 8.6vw, 4.75rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
  max-width: 13ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--moss);
  font-weight: 600;
}

.hero__lede {
  margin-top: 1rem;
  max-width: 34rem;
  font-size: 1.0625rem;
  color: var(--muted);
}

.download {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem 2rem;
}
.download__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  width: 100%;
  max-width: 26rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  width: 100%;
  min-height: 58px;
  padding: .95rem 1.5rem;
  background: var(--moss);
  color: var(--on-moss);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--shadow);
  border-radius: 9px;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform 140ms var(--ease), box-shadow 140ms var(--ease), background-color 140ms;
}
.btn-download:hover {
  background: var(--moss-hover);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--shadow);
}
.btn-download:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--shadow);
}

.download__meta {
  font-size: .875rem;
  color: var(--muted);
  letter-spacing: .02em;
}

.link-secondary {
  font-weight: 500;
  color: var(--ink);
  text-decoration-color: var(--ochre);
  text-decoration-thickness: 2px;
}
.link-secondary:hover { color: var(--moss); }

.notice {
  font-size: .9375rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ochre);
  border-radius: 6px;
  padding: .75rem 1rem;
}

/* QR (solo escritorio, lo muestra el JS) */
@media (max-width: 767px) { .qr { display: none !important; } }
.qr {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 19rem;
  padding: .85rem;
  background: var(--card);
  border: 1px dashed var(--stone);
  border-radius: var(--radius);
}
.qr__code {
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  padding: 8px;
  background: #fff;   /* el QR siempre sobre blanco para que se pueda escanear */
  border-radius: 4px;
}
.qr__code svg { width: 100%; height: 100%; }
.qr figcaption { font-size: .875rem; color: var(--muted); line-height: 1.45; }

/* Teléfono */
.hero__device {
  position: relative;
  justify-self: center;
  padding: 1rem 1.5rem 0 0;
}
.phone {
  position: relative;
  width: min(250px, 68vw);
  aspect-ratio: 1 / 2;
  padding: 9px;
  background: var(--phone);
  border-radius: 38px;
  transform: rotate(-3deg);
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, #fff 14%, transparent),
    0 2px 0 color-mix(in srgb, var(--shadow) 40%, transparent),
    0 30px 50px -22px color-mix(in srgb, var(--shadow) 55%, transparent);
}
.phone::before {   /* cámara */
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  width: 54px;
  height: 14px;
  translate: -50% 0;
  background: var(--phone);
  border-radius: 999px;
  z-index: 2;
}
.phone::after {    /* botones laterales */
  content: "";
  position: absolute;
  right: -3px;
  top: 22%;
  width: 3px;
  height: 56px;
  background: var(--phone);
  border-radius: 0 2px 2px 0;
}
.phone__screen {
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: var(--paper-2);
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.specimen-tag {
  position: absolute;
  right: -.25rem;
  bottom: -.75rem;
  display: flex;
  flex-direction: column;
  padding: .45rem .7rem .45rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--stone);
  border-radius: 3px 8px 8px 3px;
  font-size: .72rem;
  line-height: 1.45;
  color: var(--ink);
  transform: rotate(5deg);
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--shadow) 60%, transparent);
}
.specimen-tag::before {  /* ojal de la etiqueta */
  content: "";
  position: absolute;
  left: .45rem;
  top: 50%;
  width: 7px;
  height: 7px;
  translate: 0 -50%;
  border: 1.5px solid var(--stone);
  border-radius: 50%;
}
.specimen-tag span:first-child { color: var(--ochre-ink); font-weight: 500; }

@media (min-width: 900px) {
  .hero { padding-block: 4rem 5rem; }
  .hero__grid {
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
  }
  .hero__lede { font-size: 1.1875rem; }
  .download { margin-top: 2rem; }
  .btn-download { width: auto; }
  .phone { width: 280px; }
  .hero__device { padding: 0 2rem 0 0; }
}

/* ---------- Secciones ---------- */

.section { padding-block: 4rem; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: 2.25rem; }
.section-head h2 {
  margin-top: .85rem;
  font-size: clamp(1.75rem, 5.2vw, 2.75rem);
  max-width: 22ch;
}
.section-lede {
  margin-top: .9rem;
  max-width: 40rem;
  color: var(--muted);
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 900px) {
  .section { padding-block: 5.5rem; }
  .section-head { margin-bottom: 3rem; }
}

/* ---------- Tarjetas-etiqueta ---------- */

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .tags { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .tags { grid-template-columns: repeat(4, 1fr); } }

.tag {
  --accent: var(--moss);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.15rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 2px 2px var(--radius) var(--radius);
}
.tag[data-kind="geo"] { --accent: var(--ochre); }
.tag[data-kind="gps"] { --accent: var(--ink); }
.tag[data-kind="sync"] { --accent: var(--stone); }

.tag__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: .7rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}
.tag__code {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink);
}
.tag__hole {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--stone);
  background: var(--paper);
}
.tag__icon {
  width: 40px;
  height: 40px;
  margin-bottom: .9rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tag[data-kind="geo"] .tag__icon { stroke: var(--ochre-ink); }
.tag[data-kind="sync"] .tag__icon { stroke: var(--muted); }
.tag h3 { font-size: 1.25rem; }
.tag p { margin-top: .5rem; color: var(--muted); font-size: .975rem; }
.tag .tag__fields {
  margin-top: auto;
  padding-top: 1rem;
  font-size: .72rem;
  letter-spacing: .03em;
  color: var(--muted);
}

/* ---------- Recurso del proyecto ---------- */

.project-resource {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ochre);
  border-radius: 2px var(--radius) var(--radius) 2px;
}
.project-resource > div { flex: 1 1 28rem; }
.project-resource__meta {
  margin-bottom: .55rem;
  color: var(--ochre-ink);
  font-size: .75rem;
  letter-spacing: .03em;
}
.project-resource h3 { max-width: 48ch; font-size: 1.3rem; }
.project-resource p:last-child { margin-top: .55rem; color: var(--muted); font-size: .9375rem; }
.project-resource__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .55rem .9rem;
  background: var(--moss);
  color: var(--on-moss);
  font-weight: 600;
  text-decoration: none;
  border-radius: 7px;
}
.project-resource__link:hover { background: var(--moss-hover); }

/* ---------- Capturas ---------- */

.section--shots { overflow: hidden; }

.shots__controls { display: none; gap: .5rem; }
@media (min-width: 768px) { .shots__controls { display: flex; } }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.icon-btn:hover:not(:disabled) { border-color: var(--ink); }
.icon-btn:disabled { opacity: .4; cursor: default; }

.shots__track {
  list-style: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: .5rem var(--gutter) 1.25rem;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.shots__track li {
  flex: 0 0 clamp(190px, 58vw, 250px);
  scroll-snap-align: start;
}
.shots__track figure { margin: 0; }
.shots__track img {
  width: 100%;
  aspect-ratio: 12 / 25;   /* proporción de las capturas reales */
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.shots__track figcaption {
  margin-top: .7rem;
  font-size: .78rem;
  color: var(--muted);
}

/* ---------- Instalación (página de libreta) ---------- */

.section--install {
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      color-mix(in srgb, var(--line) 55%, transparent) 31px,
      color-mix(in srgb, var(--line) 55%, transparent) 32px
    ),
    var(--paper-2);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .25rem 1rem;
  padding: 1.25rem 1.15rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: .9;
  color: var(--ochre-ink);
  min-width: 1.6ch;
  font-variation-settings: "opsz" 144;
}
.step h3 { font-size: 1.3rem; margin-top: .2rem; }
.step p { margin-top: .55rem; }
.step__body { min-width: 0; }

.why {
  margin-top: 1rem;
  padding: .85rem 1rem;
  background: var(--paper);
  border-left: 3px solid var(--moss);
  border-radius: 0 6px 6px 0;
  font-size: .95rem;
}
.why p { margin-top: .3rem; color: var(--muted); }
.why .why__label {
  margin: 0;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--moss);
}

.update-note {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1.5px dashed var(--moss);
  border-radius: var(--radius);
  background: var(--card);
  background: color-mix(in srgb, var(--moss) 7%, var(--card));
}
.update-note svg { flex: 0 0 auto; color: var(--moss); margin-top: .1rem; }
.update-note h3 { font-size: 1.2rem; }
.update-note p { margin-top: .35rem; }

@media (max-width: 479px) {
  .step { grid-template-columns: 1fr; }
  .step__num { font-size: 2.2rem; }
}

@media (min-width: 768px) {
  .section--install .container { position: relative; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .step { padding: 1.5rem 1.5rem 1.6rem; gap: .25rem 1.25rem; }
  .step__num { font-size: 3.25rem; }
}

/* ---------- Verificación ---------- */

.hash {
  max-width: 52rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hash__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  padding: .6rem 1rem;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--muted);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.hash__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
  padding: 1rem;
}
.hash__value {
  flex: 1 1 18rem;
  min-width: 0;
  font-size: .9rem;
  line-height: 1.55;
  word-break: break-all;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
}
.copy {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .55rem 1rem;
  font: 600 .9375rem var(--font-body);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 150ms, color 150ms, border-color 150ms;
}
.copy:hover { background: var(--paper-2); }
.copy.is-copied { background: var(--moss); border-color: var(--moss); color: var(--on-moss); }

.hash__help {
  margin-top: 1rem;
  max-width: 52rem;
  font-size: .9375rem;
  color: var(--muted);
}

/* ---------- Preguntas ---------- */

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.75rem 1.15rem 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: .4rem;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--ochre-ink), var(--ochre-ink)) center / 100% 2px no-repeat,
    linear-gradient(var(--ochre-ink), var(--ochre-ink)) center / 2px 100% no-repeat;
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--moss); }
.faq details p {
  padding: 0 0 1.35rem 0;
  color: var(--muted);
  max-width: 44rem;
}
@media (min-width: 640px) { .faq details p { padding-right: 2.75rem; } }

/* ---------- Pie ---------- */

.site-footer {
  border-top: 1px solid var(--ink);
  padding-block: 2.5rem 1.5rem;
  background: var(--paper-2);
  font-size: .9375rem;
}
.site-footer__inner {
  display: grid;
  gap: 1.75rem;
}
.site-footer__about p { margin-top: .75rem; max-width: 36rem; color: var(--muted); }
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
  align-content: start;
}
.site-footer__links a { font-weight: 500; overflow-wrap: anywhere; }
.site-footer__links .source-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: .2rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}
.site-footer__meta { font-size: .8125rem; color: var(--muted); }
.site-footer__base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  font-size: .78rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1fr auto; gap: 3rem; }
  .site-footer__links { justify-items: end; text-align: right; }
}

/* ---------- Aparición al hacer scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.tags .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: 80ms; }
.tags .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: 160ms; }
.tags .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: 240ms; }

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .topo path { stroke-dashoffset: 0; animation: none; }
  .topo__mark { opacity: 1; animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
