/*
 * La Ayuda de Bitácora (/help). Encima de css/site.css: mismos tokens, mismo tema oscuro. Lo propio de la Ayuda es la
 * lectura (columna de 68 caracteres, pasos numerados, avisos) y las «ventanas» de la app, donde van las escenas: usan
 * los neutros del lienzo (--l-*) para que se lean como un trozo de Bitácora dentro de la página.
 */

:root {
	--h-measure: 68ch;
	--h-side: 232px;
	--h-toc: 200px;
	--h-radius: 14px;
	--h-amber: var(--l-active);
}

/* ---------- Cabecera propia de la Ayuda (Adiel, 2026-10-17): el logo con «Ayuda» al lado, sin la navegación ---------- */
.hx-row { gap: var(--s-4); }
.hx-brand { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.hx-help {
	padding-left: var(--s-3); border-left: 1px solid var(--c-line-strong); color: var(--c-ink); text-decoration: none;
	font-family: var(--f-head); font-weight: 600; font-size: var(--t-lg); line-height: 1.2; white-space: nowrap;
}
.hx-help:hover { color: var(--c-deep); }
.hx-actions { display: flex; align-items: center; gap: var(--s-2); }
/* Un solo botón: Empezar sin sesión, Ir a la plataforma con ella (la clase con-sesion de <html>, como en el sitio). */
.hx-actions .con-sesion-btn { display: none; }
.con-sesion .hx-actions .sin-sesion { display: none; }
.con-sesion .hx-actions .con-sesion-btn { display: inline-flex; }
.hx-search {
	display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-2) 0 var(--s-3);
	border: 1px solid var(--c-line-strong); border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.04);
	color: var(--c-muted); font: inherit; font-size: var(--t-sm); cursor: pointer; transition: border-color 160ms var(--ease);
}
.hx-search:hover { border-color: var(--c-deep); color: var(--c-ink); }
.hx-search:focus-visible { outline: 2px solid var(--c-deep); outline-offset: 2px; }
@media (max-width: 760px) { .hx-search-t, .hx-search .hb-keys { display: none; } .hx-search { width: 44px; height: 44px; padding: 0; justify-content: center; } }
@media (max-width: 480px) { .hx-actions .btn.primary { display: none; } }
.hb-ico, .hh-ico, .hs-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hb-keys, .hh-keys { display: inline-flex; gap: 4px; }

kbd {
	display: inline-block; min-width: 1.6em; padding: 0.05em 0.45em; border: 1px solid var(--l-border); border-bottom-width: 2px;
	border-radius: 6px; background: var(--l-raised); color: var(--l-text); font: 600 0.8em/1.5 var(--f-body); text-align: center;
	vertical-align: 0.08em;
}

/* ---------- Portada: el hero ----------
 * Centrado, sobre cuatro manchas de color que se mueven despacio y se funden como líquidos (filtro «goo»: se desenfocan,
 * se recorta el alfa y una turbulencia quieta ondula sus bordes al pasar), con desenfoque y grano encima. El filtro se
 * calcula en una capa a un cuarto del tamaño, escalada ×4: cuesta dieciséis veces menos y sale más suave. Quieto con
 * reducir movimiento y en pausa fuera de pantalla (help.js pone .is-offscreen). */
.hh {
	position: relative; isolation: isolate; overflow: hidden; text-align: center; background: var(--c-night);
	padding-block: clamp(72px, 4rem + 6vw, 168px) clamp(64px, 3rem + 5vw, 136px);
}
.hh-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hh-defs { position: absolute; width: 0; height: 0; }
.hh-liquid { position: absolute; left: -12.5%; top: -12.5%; width: 31.25%; height: 31.25%; transform: scale(4); transform-origin: 0 0; filter: url(#hh-goo) blur(3px); opacity: 0.85; }
.hh-b { position: absolute; display: block; aspect-ratio: 1; border-radius: 50%; will-change: transform; }
.hh-b1 { width: 30%; left: -4%; top: 10%; background: radial-gradient(circle at 38% 38%, #7ad9ee, #56CCE6 45%, rgba(8, 113, 139, 0.9)); animation: hh-m1 26s var(--ease) infinite alternate; }
.hh-b2 { width: 28%; left: 70%; top: -22%; background: radial-gradient(circle at 40% 40%, #b49cff, #8B6BFF 50%, rgba(80, 52, 200, 0.9)); animation: hh-m2 31s var(--ease) infinite alternate; }
.hh-b3 { width: 24%; left: 78%; top: 52%; background: radial-gradient(circle at 40% 40%, #ff8fca, #FF4FAE 50%, rgba(170, 30, 110, 0.9)); animation: hh-m3 23s var(--ease) infinite alternate; }
.hh-b4 { width: 22%; left: 30%; top: 70%; background: radial-gradient(circle at 40% 40%, #d2fb9f, #A8F06B 45%, rgba(40, 150, 110, 0.9)); animation: hh-m4 35s var(--ease) infinite alternate; }
@keyframes hh-m1 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(55%, 25%) scale(1.18); } 100% { transform: translate(110%, -5%) scale(0.92); } }
@keyframes hh-m2 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60%, 45%) scale(0.9); } 100% { transform: translate(-25%, 85%) scale(1.15); } }
@keyframes hh-m3 { 0% { transform: translate(0, 0) scale(1.05); } 50% { transform: translate(-90%, -35%) scale(1.2); } 100% { transform: translate(-40%, -70%) scale(0.95); } }
@keyframes hh-m4 { 0% { transform: translate(0, 0) scale(0.95); } 50% { transform: translate(80%, -60%) scale(1.15); } 100% { transform: translate(150%, -10%) scale(1); } }
.hh.is-offscreen .hh-b { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hh-b { animation: none; } }
/* Grano y una capa oscura que deja leer el texto encima; abajo se funde con la página. */
.hh-grain {
	position: absolute; inset: 0; opacity: 0.16; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hh-bg::after {
	content: ''; position: absolute; inset: 0 0 -4px;
	background: radial-gradient(ellipse 46% 40% at 50% 52%, rgba(3, 9, 12, 0.5), rgba(3, 9, 12, 0.12) 75%, transparent),
		linear-gradient(180deg, rgba(3, 9, 12, 0.35), transparent 30%, transparent 62%, var(--c-bg) 94%);
}
.hh-in { display: grid; justify-items: center; max-width: 860px; }
.hh-title { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.75rem); line-height: 1.02; letter-spacing: -0.015em; text-shadow: 0 2px 30px rgba(3, 9, 12, 0.45); }
.hh-lead { margin: var(--s-4) 0 0; color: var(--c-ink); opacity: 0.86; font-size: var(--t-lg); line-height: 1.5; max-width: 50ch; }
.hh-search { position: relative; display: flex; align-items: center; width: 100%; max-width: 720px; margin-top: var(--s-6); }
.hh-search .hh-ico { position: absolute; left: 22px; width: 22px; height: 22px; color: var(--c-muted); pointer-events: none; }
.hh-search input {
	width: 100%; min-height: 64px; padding: 0 110px 0 58px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--r-pill);
	background: rgba(7, 22, 27, 0.72); color: var(--c-ink); font: inherit; font-size: var(--t-lg);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4); transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.hh-search input::placeholder { color: var(--c-muted); opacity: 1; }
.hh-search input:focus { outline: none; border-color: var(--c-deep); box-shadow: 0 0 0 4px var(--c-celeste-soft), 0 18px 50px rgba(0, 0, 0, 0.4); }
.hh-search .hh-keys { position: absolute; right: 22px; pointer-events: none; }
@media (max-width: 560px) { .hh-search .hh-keys { display: none; } .hh-search input { padding-right: 18px; font-size: var(--t-md); min-height: 56px; } }
.hh-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.hh-chips a {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s-4); border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.06); color: var(--c-ink); font-size: var(--t-sm); text-decoration: none;
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.hh-chips a:hover { border-color: var(--c-deep); color: var(--c-deep); }

.hsec { padding-block: clamp(40px, 2rem + 3vw, 80px) 0; }
.hsec:last-child { padding-bottom: clamp(56px, 3rem + 3vw, 112px); }
.hsec-title { font-size: var(--t-xl); margin-bottom: var(--s-5); }

/* Las cuatro puertas: tarjetas con un degradado suave del color de cada perfil. */
.doors { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; grid-template-columns: 1fr; }
@media (min-width: 600px) { .doors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .doors { grid-template-columns: repeat(4, 1fr); } }
.door { --dc: 86, 204, 230; }
.door-teams { --dc: 139, 107, 255; }
.door-clients { --dc: 70, 201, 140; }
.door-developers { --dc: 255, 191, 0; }
.door a {
	display: grid; align-content: start; gap: var(--s-2); height: 100%; padding: var(--s-5); border: 1px solid var(--c-line);
	border-radius: var(--r-lg); color: var(--c-ink); text-decoration: none;
	background: linear-gradient(150deg, rgba(var(--dc), 0.2), rgba(var(--dc), 0.05) 48%, transparent 80%), var(--c-paper);
	transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.door a:hover, .door a:focus-visible { border-color: rgba(var(--dc), 0.6); }
.door a:focus-visible { outline: 2px solid rgb(var(--dc)); outline-offset: 2px; }
.door-name { font-family: var(--f-head); font-weight: 600; font-size: var(--t-lg); line-height: 1.2; }
.door-desc { color: var(--c-muted); font-size: var(--t-sm); line-height: 1.5; }
.door-topics { margin-top: var(--s-2); color: rgb(var(--dc)); font-size: var(--t-xs); font-weight: 600; }

/* Empieza aquí, en una sola fila: el título y los pasos numerados (es una secuencia de verdad). */
.hstart { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding-top: clamp(32px, 1.5rem + 2vw, 56px); }
.hstart-title { font-size: var(--t-lg); margin: 0; }
.hstart-list { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; counter-reset: paso; }
.hstart-list li { counter-increment: paso; }
.hstart-list a {
	display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-4) 0 6px;
	border: 1px solid var(--c-line); border-radius: var(--r-pill); color: var(--c-ink); font-size: var(--t-sm); font-weight: 600;
	text-decoration: none; white-space: nowrap; transition: border-color 160ms var(--ease);
}
.hstart-list a::before {
	content: counter(paso); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
	background: var(--c-celeste-soft); color: var(--c-deep); font-size: var(--t-xs); font-weight: 700; font-variant-numeric: tabular-nums;
}
.hstart-list a:hover { border-color: var(--c-deep); }
@media (max-width: 700px) {
	.hstart-list { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: var(--s-1); scrollbar-width: none; }
	.hstart-list::-webkit-scrollbar { display: none; }
}

/* Todos los temas: a la izquierda, un recuadro con cada tema y sus artículos; a la derecha, todos los artículos. */
.hlib { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .hlib { grid-template-columns: 300px minmax(0, 1fr); align-items: start; } }
.hlib-topics { padding: var(--s-2); border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-paper); font-size: var(--t-sm); }
.hlib-topics ul { margin: 0; padding: 0; list-style: none; }
.hlib-topics summary, .hlib-row {
	display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 9px var(--s-3);
	border-radius: var(--r-sm); font-weight: 600; list-style: none;
}
.hlib-topics summary { cursor: pointer; }
.hlib-topics summary::-webkit-details-marker { display: none; }
.hlib-topics summary:hover { background: rgba(255, 255, 255, 0.04); }
.hlib-topics summary::after {
	content: ''; flex: none; width: 7px; height: 7px; margin-left: var(--s-2); border-right: 1.5px solid var(--c-muted);
	border-bottom: 1.5px solid var(--c-muted); transform: rotate(-45deg); transition: transform 160ms var(--ease);
}
.hlib-topics details[open] > summary::after { transform: rotate(45deg); }
.hlib-name { flex: 1; }
.hlib-count { color: var(--c-muted); font-size: var(--t-xs); font-weight: 400; font-variant-numeric: tabular-nums; }
.hlib-topics .is-soon .hlib-name { color: var(--c-muted); font-weight: 400; }
.hlib-articles { margin: 2px 0 var(--s-2) var(--s-4) !important; border-left: 1px solid var(--c-line); }
.hlib-articles a { display: block; padding: 6px var(--s-3); color: var(--c-muted); text-decoration: none; line-height: 1.4; }
.hlib-articles a:hover { color: var(--c-ink); }
.hlib-articles .hlib-all a { color: var(--c-deep); font-weight: 600; }
.hlib-list { display: grid; gap: 0 var(--s-6); margin: 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); align-content: start; }
@media (min-width: 700px) { .hlib-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hlib-list a { display: grid; gap: 3px; padding: var(--s-4) 0; border-top: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none; }
.hlib-list a:hover .hlib-t { color: var(--c-deep); }
.hlib-topic { color: var(--c-deep); font-size: var(--t-xs); font-weight: 600; }
.hlib-t { font-weight: 700; line-height: 1.35; transition: color 160ms var(--ease); }
.hlib-d { color: var(--c-muted); font-size: var(--t-sm); line-height: 1.5; }

.hsec-split { display: grid; gap: var(--s-7); grid-template-columns: 1fr; }
@media (min-width: 900px) { .hsec-split { grid-template-columns: 1fr 1fr; } }
.qlist, .recent { margin: 0; padding: 0; list-style: none; }
.qlist li, .recent li { padding: var(--s-3) 0; border-top: 1px solid var(--c-line); }
.qlist a, .recent a { color: var(--c-ink); font-weight: 600; text-decoration: none; }
.qlist a:hover, .recent a:hover { color: var(--c-deep); }
.recent time { display: block; margin-top: 2px; color: var(--c-muted); font-size: var(--t-xs); }
.more { font-weight: 600; }
.hcontact p { margin: 0 0 var(--s-4); color: var(--c-muted); max-width: 60ch; }

/* ---------- Listas: tema, puerta, preguntas, búsqueda ---------- */
.hl { padding-block: var(--s-6) clamp(56px, 3rem + 3vw, 112px); max-width: calc(var(--wrap-text) - 200px); }
.hl-title { font-size: var(--t-2xl); margin-top: var(--s-4); }
.hl-lead { margin: var(--s-3) 0 var(--s-6); color: var(--c-muted); font-size: var(--t-lg); line-height: 1.5; max-width: 60ch; }
.hl-empty { color: var(--c-muted); }
.hl-count { color: var(--c-muted); font-size: var(--t-sm); margin: var(--s-5) 0 var(--s-2); }
.hl-search { margin-top: var(--s-5); }
/* La cabecera de una puerta, con el degradado de su perfil (como su tarjeta en la portada). */
.hl-door {
	--dc: 86, 204, 230; margin-top: var(--s-4); padding: var(--s-6) var(--s-6) var(--s-5); border: 1px solid var(--c-line);
	border-radius: var(--r-lg); background: linear-gradient(150deg, rgba(var(--dc), 0.2), rgba(var(--dc), 0.05) 48%, transparent 80%), var(--c-paper);
}
.hl-door.door-teams { --dc: 139, 107, 255; }
.hl-door.door-clients { --dc: 70, 201, 140; }
.hl-door.door-developers { --dc: 255, 191, 0; }
.hl-door .hl-title { margin-top: 0; }
.hl-door .hl-lead { margin-bottom: 0; }
.hl-group { margin-top: var(--s-7); }
.hl-group h2 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.hl-group h2 a { color: var(--c-ink); text-decoration: none; }
.hl-group h2 a:hover { color: var(--c-deep); }
.alist { margin: 0; padding: 0; list-style: none; }
.alist a { display: grid; gap: 2px; padding: var(--s-4) 0; border-top: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none; }
.alist a:hover .alist-t { color: var(--c-deep); }
.alist-t { font-weight: 700; transition: color 160ms var(--ease); }
.alist-d { color: var(--c-muted); font-size: var(--t-sm); line-height: 1.5; }
.hl-nf { text-align: left; }

.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--t-sm); color: var(--c-muted); }
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-deep); }

/* ---------- El artículo ---------- */
.ha { display: grid; gap: var(--s-6); padding-block: var(--s-6) clamp(56px, 3rem + 3vw, 112px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .ha { grid-template-columns: var(--h-side) minmax(0, 1fr); } }
@media (min-width: 1280px) { .ha { grid-template-columns: var(--h-side) minmax(0, 760px) var(--h-toc); justify-content: space-between; } }

.ha-side { order: 2; font-size: var(--t-sm); }
@media (min-width: 960px) { .ha-side { order: 0; position: sticky; top: 92px; align-self: start; max-height: calc(100dvh - 110px); overflow: auto; } }
.ha-side-box { border-top: 1px solid var(--c-line); padding-top: var(--s-3); }
.ha-side-box summary { cursor: pointer; font-weight: 700; color: var(--c-ink); list-style: none; padding: var(--s-1) 0 var(--s-2); }
.ha-side-box summary::-webkit-details-marker { display: none; }
.ha-side ul { margin: 0; padding: 0; list-style: none; }
.ha-side li a { display: block; padding: 6px var(--s-3); margin-left: calc(-1 * var(--s-3)); border-radius: var(--r-sm); color: var(--c-muted); text-decoration: none; line-height: 1.4; }
.ha-side li a:hover { color: var(--c-ink); background: rgba(255, 255, 255, 0.04); }
.ha-side li a[aria-current="page"] { color: var(--c-ink); background: var(--c-celeste-soft); font-weight: 600; }
.ha-side-all { margin: var(--s-4) 0 0; }

.ha-main { min-width: 0; }
.ha-type { margin: var(--s-4) 0 0; color: var(--c-deep); font-size: var(--t-sm); font-weight: 700; }
.ha-title { font-size: var(--t-2xl); margin-top: var(--s-1); max-width: 22ch; }
.ha-lead { margin: var(--s-4) 0 0; font-size: var(--t-lg); line-height: 1.55; color: var(--c-muted); max-width: var(--h-measure); }

.who { margin-top: var(--s-5); padding: var(--s-4) var(--s-5); border: 1px solid var(--c-line); border-radius: var(--h-radius); background: var(--c-paper); max-width: var(--h-measure); }
.who-title { font-family: var(--f-body); font-size: var(--t-xs); font-weight: 700; color: var(--c-muted); margin-bottom: var(--s-2); }
.who dl { display: grid; gap: var(--s-2) var(--s-5); margin: 0; grid-template-columns: 1fr; }
@media (min-width: 640px) { .who dl { grid-template-columns: repeat(2, 1fr); } }
.who dl div { display: grid; gap: 2px; }
.who dt { font-size: var(--t-xs); color: var(--c-muted); }
.who dd { margin: 0; font-size: var(--t-sm); font-weight: 600; }

/* La escena: una ventana de la app, 16:10, con pausa visible. */
.scene { position: relative; margin: var(--s-6) 0 0; max-width: var(--h-measure); }
.scene-stage { aspect-ratio: 16 / 10; border: 1px solid var(--l-border); border-radius: var(--h-radius); background: var(--l-bg); overflow: hidden; display: grid; place-items: center; }
.scene-stage > * { width: 100%; height: 100%; }
.scene-ph { width: 86%; height: auto; }
.ph-win { fill: var(--l-bg); stroke: var(--l-border); }
.ph-bar { fill: var(--l-panel); }
.ph-dot { fill: var(--l-border); }
.ph-screen { fill: var(--l-panel); stroke: var(--l-border); }
.ph-on { stroke: var(--l-brand); }
.ph-line { fill: var(--l-border); }
.ph-pin { fill: var(--l-rec); }
.ph-strip { fill: var(--l-raised); }
.scene-pause {
	position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border: 1px solid var(--l-border); border-radius: 50%;
	background: rgba(18, 19, 23, 0.86); color: var(--l-text); cursor: pointer; display: grid; place-items: center;
}
.scene-pause::before { content: ''; width: 10px; height: 12px; border-inline: 3px solid currentColor; box-sizing: border-box; }
.scene-pause[aria-pressed="true"]::before { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-block: 7px solid transparent; margin-left: 3px; }
.scene-pause:hover { border-color: var(--l-brand); }
.scene-pause:focus-visible { outline: 2px solid var(--c-deep); outline-offset: 2px; }

/* El texto del artículo. */
.prose { max-width: var(--h-measure); font-size: var(--t-md); line-height: 1.68; margin-top: var(--s-6); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: var(--t-xl); margin: var(--s-7) 0 var(--s-3); scroll-margin-top: 96px; }
.prose h3 { font-size: var(--t-lg); margin: var(--s-6) 0 var(--s-2); scroll-margin-top: 96px; }
.prose p { margin: 0 0 var(--s-4); }
.prose ul { margin: 0 0 var(--s-4); padding-left: 1.2em; }
.prose li { margin-bottom: var(--s-2); }
.prose strong { color: #fff; font-weight: 700; }
.prose code { padding: 0.1em 0.35em; border-radius: 5px; background: var(--l-raised); font-size: 0.88em; }
.prose a { font-weight: 600; }
/* Pasos: números en círculo, una acción por paso. */
.prose ol.hsteps { margin: 0 0 var(--s-5); padding: 0; list-style: none; counter-reset: step; }
.prose ol.hsteps li { position: relative; counter-increment: step; padding: 0 0 var(--s-4) 46px; margin: 0; }
.prose ol.hsteps li::before {
	content: counter(step); position: absolute; left: 0; top: 0.05em; width: 30px; height: 30px; border-radius: 50%;
	display: grid; place-items: center; background: var(--c-celeste-soft); color: var(--c-deep);
	font: 700 var(--t-sm) / 1 var(--f-body); font-variant-numeric: tabular-nums;
}
.prose ol.hsteps li:not(:last-child)::after { content: ''; position: absolute; left: 14.5px; top: 36px; bottom: 6px; width: 1px; background: var(--c-line); }

.callout { margin: var(--s-5) 0; padding: var(--s-3) var(--s-4); border-left: 3px solid var(--c-muted); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--c-paper); }
.callout p { margin: 0; }
.callout-label { font-size: var(--t-xs); font-weight: 700; margin-bottom: 2px !important; }
.callout-tip { border-left-color: var(--c-deep); }
.callout-tip .callout-label { color: var(--c-deep); }
.callout-important { border-left-color: var(--h-amber); }
.callout-important .callout-label { color: var(--h-amber); }
.callout-note .callout-label { color: var(--c-muted); }

.table-wrap { overflow-x: auto; margin: 0 0 var(--s-5); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.prose th, .prose td { padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.prose th { color: var(--c-muted); font-weight: 700; }

.hv { margin-top: var(--s-7); max-width: var(--h-measure); }
.hv h2 { font-size: var(--t-lg); margin-bottom: var(--s-3); }
.hv-play { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--c-line); border-radius: var(--h-radius); overflow: hidden; background: var(--c-night); cursor: pointer; aspect-ratio: 16 / 9; }
.hv-play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.hv-play span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); background: var(--c-celeste); color: var(--c-on-accent); font-weight: 700; }
.hv iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--h-radius); }
.hv-note, .hv-old { color: var(--c-muted); font-size: var(--t-xs); margin: var(--s-2) 0 0; }

.ha-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--c-line); max-width: var(--h-measure); }
.ha-updated { margin: 0; color: var(--c-muted); font-size: var(--t-sm); }

/* ¿Te sirvió? */
.fb { margin-top: var(--s-5); max-width: var(--h-measure); }
.fb fieldset { border: 0; margin: 0; padding: 0; }
.fb legend { font-weight: 700; margin-bottom: var(--s-3); padding: 0; }
.fb-vote { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.fb-vote legend { float: left; width: 100%; }
.fb-vote button {
	min-height: 40px; padding: 0 var(--s-4); border: 1px solid var(--c-line-strong); border-radius: var(--r-pill);
	background: transparent; color: var(--c-ink); font: inherit; font-size: var(--t-sm); cursor: pointer;
}
.fb-vote button:hover { border-color: var(--c-deep); }
.fb-vote button[aria-pressed="true"] { background: var(--c-celeste); border-color: var(--c-celeste); color: var(--c-on-accent); font-weight: 700; }
.fb-why { margin-top: var(--s-5) !important; display: grid; gap: var(--s-2); }
.fb-why label { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-sm); cursor: pointer; }
.fb-why input[type="radio"] { accent-color: var(--c-deep); width: 18px; height: 18px; }
.fb-text textarea {
	width: 100%; margin-top: var(--s-2); padding: var(--s-3); border: 1px solid var(--c-line-strong); border-radius: var(--r-sm);
	background: var(--c-paper); color: var(--c-ink); font: inherit; font-size: var(--t-sm); resize: vertical;
}
.fb-text textarea:focus { outline: none; border-color: var(--c-deep); }
.fb-why .btn { justify-self: start; margin-top: var(--s-2); }
.fb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
.fb-thanks { margin: var(--s-3) 0 0; color: var(--c-muted); }

.rel { margin-top: var(--s-7); max-width: var(--h-measure); }
.rel h2 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.rel ul { margin: 0; padding: 0; list-style: none; }
.rel li { padding: var(--s-3) 0; border-top: 1px solid var(--c-line); }
.rel a { font-weight: 600; text-decoration: none; }

.pn { display: grid; gap: var(--s-3); margin-top: var(--s-6); max-width: var(--h-measure); grid-template-columns: 1fr; }
@media (min-width: 640px) { .pn { grid-template-columns: 1fr 1fr; } }
.pn a { display: grid; gap: 2px; padding: var(--s-4); border: 1px solid var(--c-line); border-radius: var(--h-radius); color: var(--c-ink); font-weight: 600; text-decoration: none; }
.pn a:hover { border-color: var(--c-deep); }
.pn span { color: var(--c-muted); font-size: var(--t-xs); font-weight: 400; }
.pn-next { text-align: right; grid-column: -2 / -1; }

.ha-toc { display: none; font-size: var(--t-sm); }
@media (min-width: 1280px) { .ha-toc { display: block; position: sticky; top: 92px; align-self: start; } }
.ha-toc-title { margin: var(--s-4) 0 var(--s-2); font-weight: 700; color: var(--c-muted); font-size: var(--t-xs); }
.ha-toc ul { margin: 0; padding: 0 0 0 var(--s-3); list-style: none; border-left: 1px solid var(--c-line); }
.ha-toc li a { display: block; padding: 4px 0; color: var(--c-muted); text-decoration: none; line-height: 1.4; }
.ha-toc li a:hover, .ha-toc li a.is-here { color: var(--c-ink); }

/* ---------- La ventana de búsqueda ---------- */
.hs {
	width: min(680px, calc(100vw - 32px)); max-height: min(640px, calc(100dvh - 96px)); margin: 10vh auto auto; padding: 0;
	border: 1px solid var(--c-line-strong); border-radius: 18px; background: var(--c-paper); color: var(--c-ink);
	box-shadow: var(--shadow-float); overflow: hidden;
}
.hs[open] { display: flex; flex-direction: column; }
.hs::backdrop { background: rgba(2, 6, 8, 0.66); backdrop-filter: blur(4px); }
.hs-form { display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-4); border-bottom: 1px solid var(--c-line); }
.hs-ico { color: var(--c-muted); }
.hs-q { flex: 1; min-height: 60px; border: 0; background: transparent; color: var(--c-ink); font: inherit; font-size: var(--t-lg); }
.hs-q:focus { outline: none; }
.hs-q::-webkit-search-cancel-button { display: none; }
.hs-close { border: 0; background: none; padding: var(--s-2); cursor: pointer; }
.hs-list { margin: 0; padding: var(--s-2); list-style: none; overflow-y: auto; }
.hs-list:empty { display: none; }
.hs-list a { display: grid; gap: 2px; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); color: var(--c-ink); text-decoration: none; }
.hs-list [aria-selected="true"] a { background: var(--c-celeste-soft); }
.hs-t { font-weight: 700; }
.hs-t mark { background: none; color: var(--c-deep); }
.hs-d { color: var(--c-muted); font-size: var(--t-sm); line-height: 1.45; }
.hs-topic { color: var(--c-muted); font-size: var(--t-xs); }
.hs-empty { padding: var(--s-5); color: var(--c-muted); }
.hs-empty strong { display: block; color: var(--c-ink); margin-bottom: var(--s-1); }
.hs-suggest { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: var(--s-4); list-style: none; border-top: 1px solid var(--c-line); }
.hs-suggest button { min-height: 34px; padding: 0 var(--s-3); border: 1px solid var(--c-line); border-radius: var(--r-pill); background: none; color: var(--c-ink); font: inherit; font-size: var(--t-xs); cursor: pointer; }
.hs-suggest button:hover { border-color: var(--c-deep); color: var(--c-deep); }
@media (prefers-reduced-motion: no-preference) {
	.hs[open] { animation: hs-in 180ms var(--ease); }
	@keyframes hs-in { from { opacity: 0; transform: translateY(-8px); } }
}

/* Lo oculto se oculta aunque su regla le dé display (la valoración, las sugerencias, la pausa). */
.hs [hidden], .fb [hidden], .fb[hidden], .scene-pause[hidden] { display: none !important; }
