/* ============================================================
   NOVARUZBOT — hoja de estilo unica (ES/EN/PT)
   Sin dependencias externas. Sin fuentes remotas. Sin JS.

   PALETA: extraida de la foto de la manada (capibara sobre hierba).
   Verde hierba = accion y custodia · marrones de pelaje = cuerpo y
   tinta · rojo ladrillo = alarma (unico color ausente de la foto,
   por eso grita). Contrastes verificados con formula WCAG.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */

:root {
  color-scheme: light;

  /* Superficies — el pasto al sol */
  --bg:            #F5F7EF;
  --surface:       #FFFFFF;
  --surface-2:     #E7EEDA;
  --surface-sunk:  #EEF2E4;

  /* Tinta — pelaje del capibara */
  --ink:       #2E2517;   /* 13.9:1 sobre bg  (AAA) */
  --ink-soft:  #56492F;   /*  8.1:1 sobre bg  (AAA) */
  --ink-mute:  #6E6046;   /*  5.7:1 sobre bg  (AA+) */

  /* Lineas */
  --line:        #DCE3CB;
  --line-strong: #8A7D63;  /* 3.7:1 — borde de control (AA UI) */

  /* Acento — verde hierba (23% de la foto) */
  --accent:        #3F6B24;  /* 5.8:1 — texto acento */
  --accent-solid:  #4C7D2E;  /* fondo; blanco encima 4.9:1 */
  --accent-on:     #FFFFFF;
  --accent-wash:   #E8F1DB;
  --accent-line:   #B4D199;

  /* Alarma — ladrillo: no existe en la foto, por eso se ve */
  --danger:       #8E2116;   /* 7.6:1 sobre danger-wash */
  --danger-wash:  #FBEBE7;
  --danger-line:  #B4564A;

  /* Nota / dato — arena del pelaje iluminado */
  --info:       #6A5B42;     /* 5.7:1 sobre info-wash */
  --info-wash:  #F2EDDF;
  --info-line:  #CFC2A4;

  /* Foco — verde profundo, visible sobre todo */
  --focus: #2E4A1A;          /* 9.2:1 */

  /* Sombra de hoja */
  --shadow-sm: 0 1px 2px rgba(33, 28, 15, .07);
  --shadow-md: 0 2px 4px rgba(33, 28, 15, .05), 0 8px 24px -12px rgba(33, 28, 15, .22);

  /* Estado del interruptor de tema (refleja el tema EFECTIVO) */
  --switch-x: 0;
  --sun-o: 1;
  --moon-o: .32;

  /* Bloque retenido: los sats bajo custodia */
  --hold-1:    #E4F0D6;
  --hold-2:    #CFE4B9;
  --hold-edge: #6E9A52;      /* 3.0:1 sobre bg */
  --hold-ink:  #35601B;      /* 5.4:1 sobre hold-2 */

  /* Capibara dibujado (decorativo) */
  --capy:   #5E503C;
  --capy-2: #9B8F77;

  /* Tipografia */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", "Courier New", monospace;

  /* Ritmo (Vignelli: una sola escala, sin excepciones) */
  --s1: .25rem;  --s2: .5rem;   --s3: .75rem;  --s4: 1rem;
  --s5: 1.5rem;  --s6: 2rem;    --s7: 3rem;    --s8: 4rem;
  --s9: 6rem;
  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --measure: 64ch;

  /* Curvas */
  --ease:       cubic-bezier(.4, 0, .2, 1);
  --ease-enter: cubic-bezier(0, 0, .2, 1);
}

/* --- El mismo pasto, de noche --- */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg:           #16120D;
    --surface:      #221C13;
    --surface-2:    #2E2619;
    --surface-sunk: #2A2318;

    --ink:      #F3EFE2;   /* 16.2:1 (AAA) */
    --ink-soft: #C5BBA4;   /*  9.8:1 (AAA) */
    --ink-mute: #A3987F;   /*  6.5:1 (AA+) */

    --line:        #352C1F;
    --line-strong: #877A63;  /* 4.4:1 */

    --accent:       #A8CE86;  /* 10.5:1 sobre bg */
    --accent-solid: #89BE68;  /* verde hierba de la foto; tinta encima 8.5:1 */
    --accent-on:    #16120D;
    --accent-wash:  #1F2B14;
    --accent-line:  #3F5C2A;

    --danger:      #F3A9A0;   /* 9.0:1 sobre danger-wash */
    --danger-wash: #2C1512;
    --danger-line: #A65246;

    --info:      #D8C9A8;     /* 9.5:1 sobre info-wash */
    --info-wash: #2A2318;
    --info-line: #4A3E2A;

    --focus: #A8CE86;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .55);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, .45), 0 8px 24px -12px rgba(0, 0, 0, .85);

    --switch-x: 1;
    --sun-o: .32;
    --moon-o: 1;

    --hold-1:    #1C2A13;
    --hold-2:    #26381A;
    --hold-edge: #5C8A3D;
    --hold-ink:  #A8CE86;     /* 7.1:1 sobre hold-2 */

    --capy:   #C9B48A;
    --capy-2: #8C7B5E;
  }
}

/* Interruptor manual: INVIERTE la preferencia del sistema.
   Sin :has() el sitio se queda con el tema del sistema — degradacion limpia. */
:root:has(#theme-switch:checked) {
  color-scheme: dark;
  --bg:           #16120D;
  --surface:      #221C13;
  --surface-2:    #2E2619;
  --surface-sunk: #2A2318;
  --ink:      #F3EFE2;
  --ink-soft: #C5BBA4;
  --ink-mute: #A3987F;
  --line:        #352C1F;
  --line-strong: #877A63;
  --accent:       #A8CE86;
  --accent-solid: #89BE68;
  --accent-on:    #16120D;
  --accent-wash:  #1F2B14;
  --accent-line:  #3F5C2A;
  --danger:      #F3A9A0;
  --danger-wash: #2C1512;
  --danger-line: #A65246;
  --info:      #D8C9A8;
  --info-wash: #2A2318;
  --info-line: #4A3E2A;
  --focus: #A8CE86;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .55);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, .45), 0 8px 24px -12px rgba(0, 0, 0, .85);
  --switch-x: 1;
  --sun-o: .32;
  --moon-o: 1;
  --hold-1:    #1C2A13;
  --hold-2:    #26381A;
  --hold-edge: #5C8A3D;
  --hold-ink:  #A8CE86;
  --capy:   #C9B48A;
  --capy-2: #8C7B5E;
}

@media (prefers-color-scheme: dark) {
  :root:has(#theme-switch:checked) {
    color-scheme: light;
    --bg:           #F5F7EF;
    --surface:      #FFFFFF;
    --surface-2:    #E7EEDA;
    --surface-sunk: #EEF2E4;
    --ink:      #2E2517;
    --ink-soft: #56492F;
    --ink-mute: #6E6046;
    --line:        #DCE3CB;
    --line-strong: #8A7D63;
    --accent:       #3F6B24;
    --accent-solid: #4C7D2E;
    --accent-on:    #FFFFFF;
    --accent-wash:  #E8F1DB;
    --accent-line:  #B4D199;
    --danger:      #8E2116;
    --danger-wash: #FBEBE7;
    --danger-line: #B4564A;
    --info:      #6A5B42;
    --info-wash: #F2EDDF;
    --info-line: #CFC2A4;
    --focus: #2E4A1A;
    --shadow-sm: 0 1px 2px rgba(33, 28, 15, .07);
    --shadow-md: 0 2px 4px rgba(33, 28, 15, .05), 0 8px 24px -12px rgba(33, 28, 15, .22);
    --switch-x: 0;
    --sun-o: 1;
    --moon-o: .32;
    --hold-1:    #E4F0D6;
    --hold-2:    #CFE4B9;
    --hold-edge: #6E9A52;
    --hold-ink:  #35601B;
    --capy:   #5E503C;
    --capy-2: #9B8F77;
  }
}

/* ---------- 2. BASE ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Textura de papel/rio: dos gradientes radiales muy suaves. 0 KB, sin imagenes. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 82% -8%, color-mix(in srgb, var(--accent-solid) 16%, transparent), transparent 62%),
    radial-gradient(52rem 38rem at 8% 4%,  color-mix(in srgb, var(--capy-2) 14%, transparent), transparent 60%);
  opacity: .55;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
img, svg { max-width: 100%; }

a {
  color: var(--accent);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
  transition: color .18s var(--ease);
}
a:hover { color: var(--ink); }

/* Foco visible SIEMPRE — nunca outline:none sin reemplazo */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s4); top: -100px;
  z-index: 100;
  background: var(--accent-solid); color: var(--accent-on);
  padding: var(--s3) var(--s5);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700; text-decoration: none;
  transition: top .18s var(--ease-enter);
}
.skip-link:focus { top: 0; color: var(--accent-on); }

.wrap {
  width: min(100% - 2rem, 62rem);
  margin-inline: auto;
}
@media (min-width: 48rem) {
  .wrap { width: min(100% - 4rem, 62rem); }
}

/* ---------- 3. BARRA SUPERIOR ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
}
@supports not (backdrop-filter: blur(4px)) {
  .topbar { background: var(--bg); }
}
.topbar__in {
  display: flex; align-items: center; gap: var(--s2);
  justify-content: space-between;
  min-height: 3.75rem;
  padding-block: var(--s2);
}
@media (min-width: 30rem) { .topbar__in { gap: var(--s4); } }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink); text-decoration: none;
  font-weight: 800; letter-spacing: -.02em;
  font-size: 1.02rem;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; }
.brand__name { display: none; }          /* en 360px manda el espacio, no el ego */
@media (min-width: 26rem) { .brand__name { display: inline; } }
.brand__name .at { color: var(--accent); }
.topbar__tools { display: flex; align-items: center; gap: var(--s3); }

/* Selector de idioma (Jakob: donde todo el mundo lo espera) */
.langs {
  display: flex; align-items: center; gap: 2px;
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.langs a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; min-height: 2.3rem;
  padding-inline: .4rem;
  border-radius: 999px;
  font: 600 .8rem/1 var(--font-mono);
  letter-spacing: .06em;
  color: var(--ink-soft); text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.langs a:hover { background: var(--surface); color: var(--ink); }
@media (min-width: 30rem) { .langs a { min-width: 2.75rem; padding-inline: .55rem; } }
.langs a[aria-current="page"] {
  background: var(--ink); color: var(--bg); font-weight: 700;
}
/* Doble canal: el idioma activo no se marca solo con color */
.langs a[aria-current="page"]::before { content: "\2713\00a0"; font-size: .75em; }

/* Interruptor de tema — sin una linea de JavaScript */
.theme { position: relative; display: flex; align-items: center; }
#theme-switch {
  position: absolute; opacity: 0;
  width: 1px; height: 1px; pointer-events: none;
}
.theme__btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .35rem;
  width: 4.25rem; min-height: 2.5rem;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-sunk);
  cursor: pointer;
  transition: border-color .18s var(--ease);
}
.theme__btn:hover { border-color: var(--accent-solid); }
#theme-switch:focus-visible + .theme__btn {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.theme__thumb {
  position: absolute; top: 3px; left: 3px;
  width: calc(50% - 3px); height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transform: translateX(calc(var(--switch-x) * 100%));
  transition: transform .26s var(--ease);
}
.theme__ico {
  position: relative; z-index: 1;
  width: 50%; display: grid; place-items: center;
  color: var(--ink-soft);
}
.theme__ico svg { width: 17px; height: 17px; }
.theme__ico--sun  { opacity: var(--sun-o); }
.theme__ico--moon { opacity: var(--moon-o); }
@media (prefers-reduced-motion: reduce) {
  .theme__thumb { transition: none; }
}

/* ---------- 4. SECCIONES ---------- */

main { display: block; }

.section { padding-block: clamp(var(--s7), 6vw, var(--s9)); }
.section + .section { padding-top: 0; }

.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .74rem/1 var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s3);
}
.kicker svg { width: 15px; height: 15px; color: var(--accent); }

.section__title {
  font-size: clamp(1.6rem, 1.25rem + 1.7vw, 2.35rem);
  margin-bottom: var(--s5);
}
.lede {
  font-size: clamp(1.03rem, 1rem + .3vw, 1.18rem);
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ---------- 5. PORTADA ---------- */

.hero { padding-block: clamp(var(--s6), 5vw, var(--s8)) var(--s6); }

/* Ficha de perfil: la foto de la manada manda (Von Restorff: es
   lo unico fotografico en toda la pagina — la cara de gente real). */
.hero__head {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
}
.avatar {
  width: clamp(6.5rem, 22vw, 8.75rem);
  margin: 0 auto var(--s5);
  padding: 5px;
  border: 2px solid var(--accent-line);
  border-radius: 50%;
  background: var(--surface);
  box-shadow:
    var(--shadow-md),
    0 12px 34px -16px color-mix(in srgb, var(--accent-solid) 80%, transparent);
}
.avatar img {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem .35rem .5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font: 600 .76rem/1.4 var(--font-mono);
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin: 0;
}
.hero__badge svg { width: 18px; height: 18px; color: var(--accent); }
.hero__badge a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.hero__badge a:hover { color: var(--ink); }

.hero__title {
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.9rem);
  letter-spacing: -.03em;
  margin-bottom: var(--s4);
  text-wrap: balance;
}
.hero__title .bot { color: var(--accent); }

.hero__intro {
  font-size: clamp(1.03rem, 1rem + .4vw, 1.18rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: var(--s5) auto 0;
  text-align: left;
}
.hero__intro strong { color: var(--ink); font-weight: 700; }

.hero__grid {
  display: grid; gap: var(--s6);
  align-items: center;
}
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: var(--s7); }
}

/* Capibara de portada */
.hero__art {
  position: relative;
  display: grid; place-items: center;
  padding: var(--s3);
}
.hero__art svg { width: min(100%, 16rem); height: auto; }
@media (min-width: 60rem) {
  .hero__art { padding: var(--s5); }
  .hero__art svg { width: min(100%, 23rem); }
}
.hero__art::after {
  content: "";
  position: absolute; inset: 12% 6% 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-solid) 20%, transparent), transparent 68%);
  filter: blur(26px);
}

/* Fichas de datos duros */
.facts {
  display: grid; gap: var(--s3);
  grid-template-columns: 1fr;
  margin-top: var(--s7);
}
@media (min-width: 40rem) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
}
.fact {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s4) var(--s4) var(--s4) var(--s5);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.fact::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--accent-solid);
}
.fact__value {
  display: block;
  font: 800 clamp(1.3rem, 1.1rem + .9vw, 1.7rem)/1.1 var(--font-sans);
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: .2rem;
}
.fact__value .unit { font-size: .58em; font-weight: 700; color: var(--ink-mute); letter-spacing: 0; }
.fact__text { font-size: .93rem; color: var(--ink-soft); }

/* Indice de la guia (Miller: 6 destinos, nunca mas) */
.toc {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}
.toc__label {
  display: block;
  font: 600 .74rem/1 var(--font-mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s3);
}
.toc ul {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: var(--s2);
}
.toc a {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;                      /* Fitts: blanco tactil comodo */
  padding-inline: var(--s4);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .92rem; font-weight: 600;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.toc a:hover {
  border-color: var(--accent-solid);
  background: var(--accent-wash);
  color: var(--accent);
}

/* ---------- 6. TARJETAS ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(var(--s5), 3vw, var(--s6));
  box-shadow: var(--shadow-md);
}

.cards-2 { display: grid; gap: var(--s5); }
@media (min-width: 56rem) {
  .cards-2 { grid-template-columns: 1fr 1fr; align-items: start; }
}

.card__head {
  display: flex; align-items: center; gap: var(--s3);
  margin-bottom: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}
.card__icon {
  flex: none;
  display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem;
  border-radius: var(--radius-sm);
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.card__icon svg { width: 22px; height: 22px; }
.card__title { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.5rem); }

/* ---------- 7. PASOS ---------- */

.steps { list-style: none; counter-reset: step; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3.1rem;
  padding-bottom: var(--s5);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.1rem;
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--ink); color: var(--bg);
  font: 800 .95rem/1 var(--font-mono);
}
/* Hilo que conecta los pasos: Gestalt de continuidad */
.steps > li:not(:last-child)::after {
  content: "";
  position: absolute; left: 1.05rem; top: 2.2rem; bottom: .35rem;
  width: 2px;
  background: linear-gradient(var(--line-strong), var(--line));
  opacity: .55;
}
.steps p { color: var(--ink-soft); }
.steps strong { color: var(--ink); font-weight: 700; }

/* ---------- 8. COMANDO EN LINEA ---------- */

.cmd {
  display: inline-block;
  font: 600 .88em/1.35 var(--font-mono);
  color: var(--ink);
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .05em .3em;
  white-space: nowrap;
}
a.cmd { color: var(--accent); text-decoration: none; }
a.cmd:hover { border-color: var(--accent-solid); color: var(--accent); }

/* ---------- 9. AVISOS (lo que salva plata) ---------- */

.alarm {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s3) var(--s4);
  background: var(--danger-wash);
  border: 2px solid var(--danger-line);
  border-radius: var(--radius);
  padding: var(--s4) var(--s5);
  margin-bottom: var(--s5);
}
.alarm__icon {
  grid-row: span 2;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  color: var(--danger);
}
.alarm__icon svg { width: 100%; height: 100%; }
.alarm__line {
  font-weight: 700;
  font-size: clamp(1.02rem, .98rem + .35vw, 1.16rem);
  color: var(--danger);
  line-height: 1.4;
}
.alarm__line + .alarm__line {
  font-weight: 600;
  padding-top: var(--s2);
  border-top: 1px dashed var(--danger-line);
}
@media (prefers-reduced-motion: no-preference) {
  .alarm__icon { animation: pulse 2.6s var(--ease) infinite; }
}
@keyframes pulse {
  0%, 62%, 100% { transform: scale(1); }
  70%           { transform: scale(1.12); }
  78%           { transform: scale(1); }
  86%           { transform: scale(1.08); }
}

.note {
  display: flex; gap: var(--s3);
  align-items: flex-start;
  background: var(--info-wash);
  border: 1px solid var(--info-line);
  border-left: 4px solid var(--info);
  border-radius: var(--radius-sm);
  padding: var(--s4);
  color: var(--ink-soft);
  font-size: .97rem;
}
.note svg { flex: none; width: 20px; height: 20px; color: var(--info); margin-top: .18rem; }

/* ---------- 10. DIAGRAMA DE CUSTODIA (el pico) ---------- */

.escrow {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
  margin-top: var(--s6);
}
@media (min-width: 52rem) {
  .escrow {
    grid-template-columns: 1fr auto 1.25fr auto 1fr;
    align-items: stretch;
    gap: var(--s4);
  }
}

.node {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s4);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
}
.node__ico { width: 34px; height: 34px; color: var(--ink-soft); }
.node__ico svg { width: 100%; height: 100%; }
.node__who {
  font: 700 .78rem/1 var(--font-mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.node__what { font-size: .96rem; color: var(--ink); font-weight: 600; line-height: 1.4; }

/* El nucleo: los sats congelados */
.node--frozen {
  background: linear-gradient(160deg, var(--hold-1), var(--hold-2));
  border: 2px solid var(--hold-edge);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--hold-edge) 75%, transparent);
}
@media (min-width: 52rem) {
  .node--frozen { transform: scale(1.045); z-index: 1; }
}
.node--frozen .node__ico { color: var(--hold-ink); width: 40px; height: 40px; }
.node--frozen .node__who { color: var(--hold-ink); }
.node--frozen .node__what { font-size: 1.06rem; font-weight: 800; letter-spacing: -.02em; }
.node--frozen .node__sub { font-size: .9rem; color: var(--ink-soft); }
/* Destello de hielo: solo transform, 60fps, y se apaga con reduced-motion */
.node--frozen::after {
  content: "";
  position: absolute; top: -50%; bottom: -50%; left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, #fff 42%, transparent), transparent);
  transform: translateX(0) rotate(12deg);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .node--frozen::after { animation: sheen 5.5s var(--ease) infinite; }
}
@keyframes sheen {
  0%, 62%  { transform: translateX(0) rotate(12deg); }
  92%, 100%{ transform: translateX(420%) rotate(12deg); }
}

.arrow {
  display: grid; place-items: center;
  color: var(--accent);
  padding: var(--s1);
}
.arrow svg { width: 26px; height: 26px; }
.arrow--down svg { transform: rotate(90deg); }
@media (min-width: 52rem) {
  .arrow--down svg { transform: none; }
}

.escrow__aside {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: var(--s3);
  margin-top: var(--s2);
  padding: var(--s3) var(--s4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: .93rem;
  text-align: center;
}
.escrow__aside svg { flex: none; width: 20px; height: 20px; color: var(--ink-mute); }

/* ---------- 11. COMANDOS ---------- */

.cmd-group + .cmd-group { margin-top: var(--s6); }
.cmd-group__label {
  font: 600 .74rem/1 var(--font-mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s3);
  display: flex; align-items: center; gap: var(--s3);
}
.cmd-group__label::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.cmd-list {
  list-style: none;
  display: grid; gap: var(--s2);
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .cmd-list { grid-template-columns: 1fr 1fr; gap: var(--s3); } }
@media (min-width: 64rem) { .cmd-list { grid-template-columns: repeat(2, 1fr); } }
.cmd-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .55rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .65rem .85rem;
  transition: border-left-color .18s var(--ease), transform .18s var(--ease);
}
.cmd-list li:hover { border-left-color: var(--accent-solid); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cmd-list li:hover { transform: translateX(3px); }
}
.cmd-list b {
  font: 700 .95rem/1.4 var(--font-mono);
  color: var(--accent);
  letter-spacing: -.01em;
}
.cmd-list span { font-size: .93rem; color: var(--ink-soft); }

/* ---------- 12. REGLAS DE LA CASA (el cierre) ---------- */

.house {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(var(--s5), 3.5vw, var(--s7));
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.house::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--accent-solid), var(--capy));
}
.rules { list-style: none; display: grid; gap: var(--s4); }
.rules li {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s3);
  align-items: start;
  font-size: clamp(1rem, .97rem + .25vw, 1.1rem);
  color: var(--ink-soft);
}
.rules svg { width: 22px; height: 22px; color: var(--accent); margin-top: .22rem; }
.rules strong { color: var(--ink); font-weight: 700; }

/* Llamado unico (Hick: una sola accion posible) */
.cta {
  margin-top: var(--s6);
  padding-top: var(--s6);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: var(--s4);
  text-align: center;
}
.cta__text { color: var(--ink-soft); max-width: 40ch; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem;
  min-height: 3.5rem;          /* Fitts: blanco grande, imposible de fallar */
  padding: 0 clamp(1.5rem, 4vw, 2.25rem);
  background: var(--accent-solid);
  color: var(--accent-on);
  border: none; border-radius: 999px;
  font: 800 1.08rem/1 var(--font-sans);
  letter-spacing: -.01em;
  text-decoration: none;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent-solid) 85%, transparent);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.btn:hover {
  color: var(--accent-on);
  filter: brightness(1.06);
  box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--accent-solid) 95%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); }
}
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; }

.sign-off {
  margin-top: var(--s6);
  text-align: center;
  font-size: clamp(2.8rem, 2rem + 4vw, 4rem);
  line-height: 1;
  user-select: none;
}

/* ---------- 13. PIE ---------- */

.foot {
  border-top: 1px solid var(--line);
  margin-top: clamp(var(--s6), 4vw, var(--s7));
  padding-block: var(--s6) var(--s7);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.foot__in {
  display: flex; flex-direction: column; align-items: center; gap: var(--s4);
  text-align: center;
}
@media (min-width: 48rem) {
  .foot__in { flex-direction: row; justify-content: space-between; text-align: left; }
}
.foot__meta { font-size: .9rem; color: var(--ink-mute); }
.foot__meta strong { color: var(--ink-soft); font-weight: 700; }
.to-top {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.75rem; padding-inline: var(--s4);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft); text-decoration: none;
  font-size: .9rem; font-weight: 600;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.to-top:hover { border-color: var(--accent-solid); color: var(--ink); }
.to-top svg { width: 16px; height: 16px; }

/* ---------- 14. APARICION AL DESPLAZAR (0 KB, 0 JS) ---------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 2% entry 78%;
    }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ---------- 15. IMPRESION ---------- */

@media print {
  .topbar, .theme, .to-top, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
  .card, .house, .fact, .node { box-shadow: none; border: 1px solid #999; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
  .cmd-list a::after, .brand a::after { content: ""; }
}

/* ---- Acordeón de secciones ---- */
.acc-list{display:flex;flex-direction:column;gap:.55rem}
.acc{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.acc[open]{border-color:var(--accent-line);box-shadow:var(--shadow-sm)}
.acc__sum{display:flex;align-items:center;gap:.7rem;min-height:56px;padding:.85rem 1rem;
  font-size:1.02rem;font-weight:600;line-height:1.35;color:var(--ink);cursor:pointer;list-style:none}
.acc__sum::-webkit-details-marker{display:none}
.acc__sum::after{content:"";margin-left:auto;flex:none;width:.6rem;height:.6rem;
  border-right:2px solid var(--ink-mute);border-bottom:2px solid var(--ink-mute);
  transform:rotate(45deg) translateY(-2px);transition:transform .18s var(--ease)}
.acc[open] .acc__sum::after{transform:rotate(225deg) translateY(-2px)}
.acc__sum:hover{background:var(--accent-wash)}
.acc__sum:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
.acc__body{padding:0 1rem 1.1rem;color:var(--ink-soft);max-width:var(--measure)}
.acc__body:empty::before{content:"";display:block;height:.25rem}
@media (prefers-reduced-motion:reduce){.acc__sum::after{transition:none}}

/* ---- Renglones simples de comandos ---- */
.cmd-row{margin:.3rem 0;color:var(--ink-soft);line-height:1.5}
.cmd-row strong{font-family:var(--font-mono);font-weight:600;color:var(--ink)}

/* ---- Preguntas frecuentes ---- */
.faq-q{margin:1rem 0 .2rem;font-weight:600;color:var(--ink)}
.faq-a{margin:0 0 .2rem;color:var(--ink-soft);max-width:var(--measure)}
