/* ==========================================================================
   La red por capas (T4 premium, 4-nov-2026) · /network y /demo/network
   La estética de la casa (la de /pricing): los tokens de brand.css, siempre
   en oscuro. Base #0A0D12, línea fina, UN acento cian con brillo, rótulos en
   mono y versalitas, tarjetas opacas con borde de 1 px. Las fuentes las
   declara brand.css y salen de /fonts. Sin violeta, sin rojo: lo dormido es
   tenue, nunca un aviso.
   ========================================================================== */
.rc {
  --rc-fondo: var(--sn-bg);
  --rc-panel: var(--sn-surface);
  --rc-borde: var(--sn-line);
  --rc-acento: var(--sn-accent);
  --rc-acento-rgb: var(--sn-accent-rgb);
  --rc-texto: var(--sn-text);
  --rc-muted: var(--sn-muted);
  --rc-font: var(--sn-font);
  --rc-mono: var(--sn-font-mono);
  /* Rellenos de forma por tipo: gris frío, nunca tono. NO se usan para texto. */
  --rc-f-categoria: #E8EEF6;
  --rc-f-sector: #B8C4D2;
  --rc-f-empresa: #A3B1C2;
  --rc-f-evento: #6B7888;
  --rc-f-ciudad: #6B7888;
  --rc-f-persona: #5C6875;
  /* La luz de quien no lleva cara en el mapa (15-nov-2026): la misma en la leyenda. */
  --rc-f-punto: #7FA6C2;
  --rc-f-cubo: #7FC4E2;
  --rc-r-panel: 16px;
  --rc-sombra-panel: 0 30px 60px -30px rgb(0 0 0 / .6), inset 0 1px 0 rgb(var(--sn-accent-rgb) / .12);
  --rc-glow: 0 0 0 1px rgb(var(--sn-accent-rgb) / .5), 0 10px 34px rgb(var(--sn-accent-rgb) / .35);
  --rc-barra: 64px;
  background: var(--rc-fondo); color: var(--rc-texto); font-family: var(--rc-font);
}
body { background: var(--sn-bg); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.rc { overflow: hidden; -webkit-font-smoothing: antialiased; }
.rc-mono { font-family: var(--rc-mono); }
/* El chino: una sans del sistema antes que los genéricos (si no, Windows cae en
   SimSun, con remates); los rótulos, sin espaciado ni versalitas. */
.rc:lang(zh) {
  --rc-font: "Outfit", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", ui-sans-serif, system-ui, sans-serif;
  --rc-mono: "JetBrains Mono", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", ui-monospace, monospace;
}
.rc :focus-visible { outline: 2px solid var(--rc-acento); outline-offset: 2px; }

/* Rótulos pequeños: mono, versalitas, espaciado */
.rc-rotulo, .rc-ficha__tipo, .rc-ficha__datos dt, .rc-muestra, .rc-tiempo__mes, .rc-tip__tipo, .rc-porque__titulo, .rc-ficha__seccion {
  font: 500 10.5px/1.4 var(--rc-mono); text-transform: uppercase; letter-spacing: .18em; color: var(--rc-muted);
}

.rc:lang(zh) :is(.rc-rotulo, .rc-ficha__tipo, .rc-ficha__datos dt, .rc-muestra, .rc-tiempo__mes, .rc-tip__tipo, .rc-porque__titulo, .rc-ficha__seccion, .rc-titular__capas, .rc-leyenda__cab .rc-rotulo) {
  letter-spacing: 0; text-transform: none; font-family: var(--rc-font); font-size: 12px;
}

/* Paneles: opacos, borde fino, sombra de la casa */
.rc-panel {
  background: var(--rc-panel); border: 1px solid var(--rc-borde); border-radius: var(--rc-r-panel);
  box-shadow: var(--rc-sombra-panel);
}

/* La cabecera */
.rc-barra {
  position: fixed; inset: 0 0 auto 0; z-index: 10; height: var(--rc-barra);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; padding-top: env(safe-area-inset-top);
  background: var(--sn-bg); border-bottom: 1px solid var(--rc-borde);
}
.rc-volver { color: var(--rc-texto); display: inline-flex; padding: 8px; border-radius: 999px; }
.rc-volver:hover { box-shadow: inset 0 0 0 1px var(--rc-borde); }
.rc-titulo { font: 500 18px/1.2 var(--rc-font); margin: 0; flex: 1; min-width: 0; letter-spacing: -0.01em; white-space: nowrap; }
.rc-titulo__largo { display: none; }
@media (min-width: 1100px) { .rc-titulo__corto { display: none; } .rc-titulo__largo { display: inline; } }
.rc-titular { flex: 1; min-width: 0; }
.rc-titular__t { font: 500 22px/1.15 var(--rc-font); margin: 0; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-titular__capas { margin: 3px 0 0; font: 500 11px/1.3 var(--rc-mono); color: var(--rc-muted); letter-spacing: .14em; text-transform: uppercase; }
.rc-botones { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; justify-content: flex-end; }
.rc-boton {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  font: 500 13.5px/1 var(--rc-font); color: var(--rc-texto); background: transparent;
  border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rc-borde);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: box-shadow .18s ease, color .18s ease;
}
.rc-boton:hover, .rc-boton[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--rc-acento); }
.rc-boton--presentar { box-shadow: inset 0 0 0 1px rgb(var(--sn-accent-rgb) / .7); }
.rc-boton--presentar:hover { box-shadow: var(--rc-glow); }
.rc-ico { flex: none; }
.rc-segmento { display: inline-flex; height: 36px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rc-borde); }
.rc-segmento[hidden] { display: none; }
.rc-segmento button {
  font: 600 12.5px/1 var(--rc-mono); letter-spacing: .06em; color: var(--rc-muted); background: transparent;
  border: 0; border-radius: 999px; padding: 0 12px; cursor: pointer;
}
.rc-segmento button[aria-checked="true"] { background: var(--rc-panel); color: var(--rc-texto); box-shadow: inset 0 0 0 1px var(--rc-borde); }
/* 14-nov-2026 (el usuario): en la vista completa, las herramientas a mano; solo
   sale el enlace a «Lista y edición». */
.rc--presentacion a.rc-boton--sec { display: none; }
/* MODO ANÓNIMO (15-nov-2026): un botón que es solo un ojo, abierto o tachado.
   Encendido, nada que lleve nombres ni datos: ni el buscador, ni las fichas,
   ni «Lo que dice tu red», ni el tooltip de una persona. */
.rc-boton--ico { width: 36px; padding: 0; justify-content: center; }
.rc-anonimo .rc-anonimo__ojo, .rc-anonimo .rc-anonimo__tachado { display: inline-flex; }
.rc-anonimo .rc-anonimo__tachado, .rc-anonimo[aria-pressed="true"] .rc-anonimo__ojo { display: none; }
.rc-anonimo[aria-pressed="true"] .rc-anonimo__tachado { display: inline-flex; }
.rc-anonimo[aria-pressed="true"] { color: var(--rc-acento); box-shadow: inset 0 0 0 1px var(--rc-acento); }
.rc--anonimo .rc-guardian, .rc--anonimo .rc-ficha, .rc--anonimo .rc-dice, .rc--anonimo [data-rc="dice"] { display: none !important; }

/* La escena: toda la pantalla; el radial cian, detrás de «tú» */
.rc-escena {
  position: fixed; inset: 0;
  /* Acabado (15-nov-2026): bajo el radial, una viñeta que oscurece los bordes
     y deja la luz en el centro, donde está la red. */
  background:
    radial-gradient(closest-side at var(--rc-yo-x, 50%) var(--rc-yo-y, 48%), rgb(var(--sn-accent-rgb) / .12), transparent 70%),
    radial-gradient(farthest-corner at var(--rc-yo-x, 50%) var(--rc-yo-y, 48%), transparent 55%, rgb(0 0 0 / .38)),
    var(--sn-bg);
}
/* La entrada: la red crece desde ti (vista.js, nacer). Solo dura 1,4 s. */
.rc--naciendo .rc-lienzo, .rc--naciendo .rc-etiquetas {
  -webkit-mask-image: radial-gradient(circle at var(--rc-yo-x, 50%) var(--rc-yo-y, 48%), #000 calc(var(--rc-nacer, 0px) - 140px), transparent var(--rc-nacer, 0px));
  mask-image: radial-gradient(circle at var(--rc-yo-x, 50%) var(--rc-yo-y, 48%), #000 calc(var(--rc-nacer, 0px) - 140px), transparent var(--rc-nacer, 0px));
}
.rc-lienzo, .rc-etiquetas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rc-lienzo { touch-action: none; cursor: grab; }
.rc-lienzo:active { cursor: grabbing; }
.rc-etiquetas { pointer-events: none; }
.rc-etiquetas:focus { outline: none; }
.rc-estado {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  margin: 0; padding: 12px 18px; max-width: min(420px, calc(100% - 32px)); text-align: center;
  background: var(--rc-panel); border: 1px solid var(--rc-borde); border-radius: 12px; color: var(--rc-muted); font-size: 17px;
}
.rc-estado:empty { display: none; }
/* La red vacía: la acción, centrada BAJO el aviso y con forma de botón
   (24-nov-2026). Esta página no carga la piel (piel/comun.css, .pl-btn): sin
   esto salía como un enlace subrayado en la esquina de arriba. */
.rc-vacio-accion {
  position: absolute; left: 50%; top: calc(50% + 64px); transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; background: var(--rc-acento); color: #0A0D12; font-weight: 600; font-size: 15px;
  text-decoration: none; white-space: nowrap; box-shadow: var(--rc-glow);
}
.rc-vacio-accion:hover { filter: brightness(1.06); }
.rc-vacio-accion[hidden] { display: none; }

/* El buscador */
.rc-guardian { position: absolute; left: 16px; top: 80px; z-index: 6; width: min(400px, calc(100% - 32px)); padding: 16px; }
.rc-guardian__label { display: block; margin: 0 0 10px 2px; }
.rc-guardian__fila { display: flex; align-items: center; gap: 10px; }
.rc-guardian__lupa { color: var(--rc-acento); flex: none; }
.rc-guardian__q {
  flex: 1; min-width: 0; font: 400 16px/1.3 var(--rc-font); color: var(--rc-texto);
  background: transparent; border: 0; border-bottom: 1px solid var(--rc-borde); padding: 8px 2px; border-radius: 0;
}
.rc-guardian__q:focus { outline: none; border-bottom-color: var(--rc-acento); }
.rc-guardian__q:focus-visible { outline: none; }
.rc-guardian__q::placeholder { color: var(--rc-muted); opacity: 1; }
.rc-guardian__q::-webkit-search-cancel-button { filter: invert(.6); }
.rc-guardian__ir {
  flex: none; font: 600 14px/1 var(--rc-font); color: var(--sn-bg); background: var(--rc-acento);
  border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; box-shadow: var(--rc-glow);
}
.rc-guardian__ayuda { margin: 10px 2px 0; font-size: 13px; line-height: 1.45; color: var(--rc-muted); }
.rc-porque { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 320px); overflow: auto; }
.rc-porque:not(:empty) { margin-top: 12px; border-top: 1px solid var(--rc-borde); padding-top: 10px; }
.rc-guardian:has(.rc-porque:not(:empty)) .rc-guardian__ayuda { display: none; }
.rc-porque__titulo { margin: 2px 2px 8px; }
.rc-porque__item {
  display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; align-items: start;
  padding: 8px; border-radius: 12px; cursor: pointer; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s;
}
.rc-porque__item.is-visible { opacity: 1; transform: none; }
.rc-porque__item:hover, .rc-porque__item:focus-visible { background: rgb(var(--sn-accent-rgb) / .07); }
.rc-porque__item > .rc-av { grid-column: 1; grid-row: 1 / span 8; }
.rc-porque__item > :not(.rc-av) { grid-column: 2; min-width: 0; }
.rc-porque__nombre { font-weight: 600; font-size: 17px; }
.rc-porque__sub { color: var(--rc-muted); font-size: 13px; }
.rc-porque__camino { font-size: 12.5px; line-height: 1.45; margin-top: 2px; color: var(--rc-muted); }
.rc-porque__camino b { color: var(--rc-acento); font-weight: 600; }
.rc-porque__nada { font-size: 13px; color: var(--rc-muted); padding: 4px 2px; }

/* Avatar en el DOM (ficha, listas): foto por /a/img o iniciales */
.rc-av {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden;
  background: var(--sn-surface); color: var(--rc-texto); font: 600 12.5px/1 var(--rc-font);
  box-shadow: inset 0 0 0 1.5px rgb(232 238 246 / .22);
}
.rc-av--cuida { box-shadow: inset 0 0 0 2px var(--rc-acento), 0 0 8px rgb(var(--sn-accent-rgb) / .6); }
.rc-av img { width: 100%; height: 100%; object-fit: cover; }
.rc-av--28 { width: 28px; height: 28px; font-size: 11px; }
.rc-av--64 { width: 64px; height: 64px; font-size: 24px; }

/* La ficha */
.rc-ficha {
  position: absolute; top: 80px; right: 16px; width: 372px; height: auto; max-height: calc(100% - 96px); bottom: auto;
  overflow-y: auto; padding: 24px; z-index: 20; font-size: 17px;
}
.rc-ficha[hidden] { display: none; }
.rc-cerrar {
  position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 999px; border: 0;
  display: grid; place-items: center; background: transparent; color: var(--rc-muted); cursor: pointer;
}
.rc-cerrar:hover { color: var(--rc-texto); box-shadow: inset 0 0 0 1px var(--rc-borde); }
.rc-ficha h2 { font: 500 22px/1.2 var(--rc-font); margin: 0; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.rc-ficha h2:focus { outline: none; }
.rc-ficha__tipo { margin: 0 0 6px; }
.rc-ficha__cab { display: flex; gap: 16px; align-items: center; margin: 0 0 18px; padding-right: 28px; }
.rc-ficha__sub { color: var(--rc-muted); margin: 4px 0 0; font-size: 17px; overflow-wrap: anywhere; }
.rc-ficha__sub a, .rc-ficha a.rc-web { color: var(--rc-acento); text-decoration: none; }
.rc-ficha__sub a:hover, .rc-ficha a.rc-web:hover { text-decoration: underline; }
.rc-web svg { vertical-align: -1px; margin-left: 3px; }
.rc-ficha__cuenta { margin: 6px 0 0; color: var(--rc-muted); font-size: 17px; }
.rc-ficha__datos { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 0 0 18px; }
.rc-ficha__datos dt { margin-top: 10px; }
.rc-ficha__datos dt:first-child { margin-top: 0; }
.rc-ficha__datos dd { margin: 0; overflow-wrap: anywhere; }
.rc-ficha__apuntes { margin: 0; padding-left: 16px; color: var(--rc-texto); }
.rc-ficha__apuntes li + li { margin-top: 4px; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-chip {
  font: 500 12px/1 var(--rc-font); color: var(--rc-texto); background: transparent; border: 1px solid var(--rc-borde);
  border-radius: 999px; padding: 6px 10px; cursor: pointer;
}
.rc-chip:hover { border-color: var(--rc-acento); }
.rc-chip .rc-mono { color: var(--rc-muted); margin-left: 4px; }
.rc-ficha__seccion { margin: 18px 0 8px; }
.rc-ficha__hilo { border-top: 1px solid var(--rc-borde); padding-top: 16px; }
.rc-ficha__cifra { font: 500 28px/1 var(--rc-mono); color: var(--rc-texto); margin: 0; }
.rc-ficha__cifra-nota { font-size: 12px; color: var(--rc-muted); margin: 6px 0 14px; }
.rc-ficha__comp { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 8px 0; }
.rc-ficha__comp-t { font-size: 13px; }
.rc-ficha__comp-f { grid-column: 1 / -1; font-size: 12px; color: var(--rc-muted); }
.rc-ficha__comp .rc-mono { font-size: 12px; color: var(--rc-muted); }
.rc-ficha__barra { grid-column: 1 / -1; height: 3px; background: var(--rc-borde); border-radius: 3px; overflow: hidden; }
.rc-ficha__barra > i { display: block; height: 100%; background: var(--rc-acento); box-shadow: 0 0 6px rgb(var(--sn-accent-rgb) / .6); }
.rc-ficha__nota { color: var(--rc-muted); font-size: 12px; margin: 10px 0 0; }
.rc-gente { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rc-gente button {
  width: 100%; display: grid; grid-template-columns: 32px 1fr; gap: 0 12px; align-items: center; text-align: left;
  background: transparent; border: 0; border-radius: 12px; padding: 8px; color: inherit; cursor: pointer; font: inherit;
}
.rc-gente button:hover { background: rgb(var(--sn-accent-rgb) / .07); }
.rc-gente .rc-av { grid-row: span 2; }
.rc-gente__n { font: 600 15px/1.25 var(--rc-font); }
.rc-gente__c { font-size: 13px; color: var(--rc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-ghost {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; margin-top: 18px;
  font: 500 13.5px/1 var(--rc-font); color: var(--rc-texto); background: transparent; border: 0; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rc-borde); cursor: pointer; text-decoration: none;
}
.rc-ghost:hover { box-shadow: inset 0 0 0 1px var(--rc-acento); }
.rc-ghost--mini { height: 30px; margin-top: 6px; font-size: 12.5px; }

/* Ventana mediana (la de un portátil): con la ficha abierta, el buscador y la
   leyenda se apartan y la red se queda con todo el hueco a la izquierda. */
@media (min-width: 721px) and (max-width: 1400px) {
  .rc-ficha-abierta .rc-guardian, .rc-ficha-abierta .rc-leyenda, .rc-ficha-abierta .rc-dice { display: none; }
}

/* El tooltip: pequeño y opaco */
.rc-tip {
  position: absolute; z-index: 15; max-width: 280px; pointer-events: none;
  background: var(--sn-surface); border: 1px solid var(--rc-borde); border-radius: 10px; padding: 10px 12px;
  box-shadow: 0 16px 40px -16px rgb(0 0 0 / .7);
}
.rc-tip[hidden] { display: none; }
.rc-tip__tipo { margin: 0 0 3px; }
.rc-tip__n { margin: 0; font: 600 14px/1.3 var(--rc-font); overflow-wrap: anywhere; }
.rc-tip__s { margin: 3px 0 0; font-size: 13px; color: var(--rc-muted); }

/* Cómo leerla */
.rc-leyenda { position: absolute; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 5; width: 240px; padding: 0; overflow: hidden; }
.rc-leyenda__cab {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px;
  background: transparent; border: 0; color: var(--rc-muted); cursor: pointer; border-radius: var(--rc-r-panel);
}
.rc-leyenda__cab .rc-rotulo { letter-spacing: .2em; }
.rc-leyenda__chevron { transition: transform .2s ease; }
.rc-leyenda__cab[aria-expanded="false"] .rc-leyenda__chevron { transform: rotate(-90deg); }
.rc-leyenda__cuerpo { padding: 0 16px 14px; }
.rc-leyenda__cuerpo[hidden] { display: none; }
.rc-escala { list-style: none; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--rc-borde); display: grid; gap: 7px; font-size: 13px; color: var(--rc-texto); }
.rc-escala li { display: flex; align-items: center; gap: 10px; }
.rc-escala__punto { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--rc-muted); flex: none; }
.rc-escala__punto--yo { background: var(--rc-acento); border-color: var(--rc-acento); box-shadow: 0 0 8px rgb(var(--sn-accent-rgb) / .6); }
.rc-escala__punto--fuera { border-style: dashed; }
.rc-formas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; font-size: 13px; color: var(--rc-texto); }
.rc-formas li { display: flex; align-items: center; gap: 8px; }
.rc-forma { flex: none; }
.rc-forma--categoria { fill: var(--rc-f-categoria); }
.rc-forma--sector { fill: var(--rc-f-sector); }
.rc-forma--empresa { fill: var(--rc-f-empresa); }
.rc-forma--evento { fill: var(--rc-f-evento); }
.rc-forma--ciudad { fill: var(--rc-f-ciudad); }
.rc-forma--persona { fill: var(--rc-f-punto); filter: drop-shadow(0 0 2.5px rgb(127 166 194 / .7)); }
.rc-leyenda__linea { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 13px; color: var(--rc-texto); }
.rc-leyenda__linea--cuida { color: var(--rc-acento); margin-top: 12px; }
.rc-punto { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.rc-punto--cuida { background: var(--sn-surface); box-shadow: inset 0 0 0 2px var(--rc-acento), 0 0 8px rgb(var(--sn-accent-rgb) / .7); }
.rc-hilo { width: 16px; height: 1px; flex: none; background: rgb(var(--sn-accent-rgb) / .7); box-shadow: 0 0 4px rgb(var(--sn-accent-rgb) / .6); }

/* La barra del tiempo: un raíl, solo si hay historia */
.rc-tiempo {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 4;
  width: 480px; height: 40px; display: flex; align-items: center; gap: 14px;
}
.rc-tiempo[hidden] { display: none; }
@media (max-width: 1200px) { .rc-tiempo { width: 40%; } }
.rc-tiempo__play {
  flex: none; width: 28px; height: 28px; border-radius: 999px; border: 0; cursor: pointer; display: grid; place-items: center;
  background: transparent; color: var(--rc-texto); box-shadow: inset 0 0 0 1px var(--rc-borde);
}
.rc-tiempo__play:hover { box-shadow: inset 0 0 0 1px var(--rc-acento); }
.rc-tiempo__rail { flex: 1; min-width: 0; position: relative; height: 20px; display: flex; align-items: center; }
.rc-tiempo__rail input {
  -webkit-appearance: none; appearance: none; width: 100%; height: 20px; margin: 0; background: transparent; cursor: pointer;
  --pct: 100%;
}
.rc-tiempo__rail input::-webkit-slider-runnable-track {
  height: 1px; background: linear-gradient(90deg, var(--rc-acento) var(--pct), var(--rc-borde) var(--pct));
}
.rc-tiempo__rail input::-moz-range-track { height: 1px; background: var(--rc-borde); }
.rc-tiempo__rail input::-moz-range-progress { height: 1px; background: var(--rc-acento); }
.rc-tiempo__rail input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 10px; height: 10px; margin-top: -4.5px; border-radius: 50%;
  background: var(--sn-bg); box-shadow: 0 0 0 2px var(--rc-acento), 0 0 8px rgb(var(--sn-accent-rgb) / .6);
}
.rc-tiempo__rail input::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--sn-bg); box-shadow: 0 0 0 2px var(--rc-acento); }
.rc-tiempo__rail input:focus-visible { outline: 2px solid var(--rc-acento); outline-offset: 4px; border-radius: 4px; }
.rc-tiempo__hitos { position: absolute; left: 5px; right: 5px; top: 6px; height: 8px; pointer-events: none; }
.rc-tiempo__hito { position: absolute; width: 1px; height: 8px; background: var(--rc-muted); }
.rc-tiempo__mes { flex: none; min-width: 8ch; font-size: 11px; letter-spacing: .14em; color: var(--rc-texto); }
/* La línea de tiempo también en la vista completa (14-nov-2026). */

/* El sello de la muestra: uno solo */
.rc-muestra {
  position: absolute; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 4; margin: 0;
  padding: 6px 12px; border: 1px solid var(--rc-borde); border-radius: 999px; background: var(--sn-bg);
}

/* Lo que dice tu red */
.rc-dice { position: absolute; left: 16px; top: 80px; z-index: 6; width: min(400px, calc(100% - 32px)); max-height: calc(100% - 160px); overflow: auto; padding: 20px; }
.rc-dice[hidden] { display: none; }
.rc-dice__titulo { font: 500 18px/1.25 var(--rc-font); margin: 0 0 14px; padding-right: 32px; }
.rc-dice__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rc-dice__item { border: 1px solid var(--rc-borde); border-radius: 12px; padding: 14px; background: var(--sn-bg); }
.rc-dice__frase { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 500; }
.rc-dice__cifra { font-family: var(--rc-mono); font-weight: 500; color: var(--rc-acento); }
.rc-dice__fuente { margin: 6px 0 10px; font-size: 12px; color: var(--rc-muted); line-height: 1.45; }
.rc-dice__acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-dice__accion {
  font: 500 12.5px/1 var(--rc-font); color: var(--rc-texto); background: transparent; border: 0; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rc-borde); padding: 8px 12px; cursor: pointer; text-decoration: none;
}
.rc-dice__accion:hover { box-shadow: inset 0 0 0 1px var(--rc-acento); }

/* Presentación: la misma base, letra un 20 % mayor */
.rc--presentacion .rc-guardian { width: min(560px, calc(100% - 32px)); }
/* (m2) En pantalla ancha, el buscador ocupa su esquina: la red va al centro. */
@media (min-width: 720px) { .rc--presentacion .rc-guardian { width: min(420px, 30vw); } }
.rc--presentacion .rc-guardian__q { font-size: 20px; }
.rc--presentacion .rc-porque__nombre { font-size: 17px; }
.rc--presentacion .rc-porque__camino { font-size: 17px; }
.rc--presentacion .rc-muestra { font-size: 12px; padding: 8px 14px; }
/* El panel del guardián en presentación: entero en pantalla (con su scroll),
   sin pisar «Cómo leerla»; en pantallas bajas, un camino por línea. */
.rc--presentacion .rc-porque { max-height: calc(100vh - 300px); }
@media (max-height: 700px) {
  .rc--presentacion .rc-porque__camino { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
  .rc--presentacion .rc-porque__item { padding: 5px 8px; }
  .rc--presentacion .rc-porque__titulo { margin-bottom: 4px; }
}

/* Móvil: 2D, buscador arriba, ficha como hoja inferior */
@media (max-width: 720px) {
  .rc { --rc-barra: 56px; }
  .rc-barra { gap: 6px; padding: 0 8px; }
  .rc-titulo { font-size: 17px; }
  .rc-titular__t { font-size: 17px; }
  .rc-titular__capas { display: none; }
  .rc-boton { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .rc-boton > span:not([class^="rc-anonimo"]) { display: none; }
  .rc-botones { gap: 2px; }
  .rc-boton, .rc-boton--presentar { box-shadow: none; }
  .rc-boton:hover { box-shadow: inset 0 0 0 1px var(--rc-borde); }
  .rc-segmento, [data-rc="centrar"] { display: none; }
  .rc-guardian { position: fixed; left: 8px; right: 8px; top: 64px; width: auto; padding: 10px 12px; border-radius: 14px; }
  .rc-guardian__label, .rc-guardian__ayuda { display: none; }
  .rc-guardian__q { font-size: 17px; }
  .rc-guardian__ir { padding: 12px 14px; min-height: 44px; }
  /* Los resultados, en una hoja inferior: la red se sigue viendo encima. */
  .rc-porque:not(:empty) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 28; max-height: 46vh; margin: 0;
    padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--rc-panel);
    border: 1px solid var(--rc-borde); border-radius: 20px 20px 0 0; box-shadow: 0 -20px 50px -20px rgb(0 0 0 / .7);
  }
  .rc:has(.rc-porque:not(:empty)) .rc-tiempo, .rc:has(.rc-porque:not(:empty)) .rc-leyenda, .rc:has(.rc-porque:not(:empty)) .rc-muestra { display: none; }
  .rc-ficha, .rc-ficha:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 62vh;
    border-radius: 20px 20px 0 0; z-index: 30; padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
  }
  .rc-ficha::before { content: ""; position: absolute; top: 10px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: var(--rc-borde); }
  .rc-ficha .rc-cerrar { width: 44px; height: 44px; right: 8px; top: 8px; }
  .rc-ficha-abierta .rc-tiempo, .rc-ficha-abierta .rc-muestra, .rc-ficha-abierta .rc-guardian, .rc-ficha-abierta .rc-leyenda { display: none; }
  .rc-leyenda { left: 8px; bottom: max(8px, env(safe-area-inset-bottom)); width: auto; max-width: calc(100% - 180px); }
  .rc-leyenda__cab { padding: 0 12px; min-height: 44px; }
  .rc-leyenda:has(.rc-leyenda__cab[aria-expanded="true"]) { width: min(280px, calc(100% - 16px)); max-width: none; z-index: 7; }
  .rc-muestra { right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); font-size: 9.5px; letter-spacing: .12em; padding: 8px 10px; }
  .rc-tiempo { left: 16px; right: 16px; transform: none; width: auto; bottom: 64px; }
  .rc-dice { position: fixed; top: 64px; left: 8px; right: 8px; width: auto; max-height: calc(100% - 80px); z-index: 25; }
  .rc-porque__item { min-height: 44px; }
  .rc-chip { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-porque__item, .rc-leyenda__chevron, .rc-boton { transition: none; }
}

/* Incrustada en «Tu red» (m1, 4-nov-2026): el mapa de esa página. Barra baja y
   sin fondo propio; el buscador es el de la página (le habla por postMessage). */
.rc--incrustada { --rc-barra: 52px; }
.rc--incrustada .rc-barra { background: transparent; border-bottom: 0; justify-content: flex-end; pointer-events: none; }
.rc--incrustada .rc-barra > * { pointer-events: auto; }
.rc--incrustada .rc-titulo--incrustada { flex: 1; }
.rc--incrustada .rc-guardian { display: none; }
.rc--incrustada .rc-leyenda { display: none; }

/* Fase 8 (9-nov-2026): incrustada en /network, el mapa no lleva barra propia:
   «Lo que dice tu red», 2D/3D y la pantalla completa están en el «⋯» de la
   página (partials/red-graph.ejs), y centrar es un doble clic en el fondo. */
.rc--incrustada { --rc-barra: 0px; }
.rc--incrustada .rc-barra { display: none; }
