/* Panel «Ayuda» (web/ayuda.js) y la página /ayuda. Tokens de web/style.css: mismos botones (40 de alto, radio 10), sellos en píldora, letra 12·13·14·17·22. */
.ay-fondo { position: fixed; inset: 0; z-index: 4000; background: rgba(13, 33, 55, .32); }
.ay-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 4001; width: 400px; max-width: 100vw; background: var(--surface); box-shadow: var(--shadow-lg); font-family: Geist, Inter, system-ui, sans-serif; color: var(--text); }
.ay-panel[hidden], .ay-fondo[hidden] { display: none; }
body.ay-abierto .mm-rep-fijo { visibility: hidden; }
/* Primeros pasos que faltan, sobre el botón de Ayuda (web/ayuda.js marcarBoton) */
.mm-rep-pend { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; pointer-events: none; box-shadow: 0 0 0 2px var(--surface); }   /* el borde blanco lo separa del botón, que en hover toma el mismo azul */
.ay-in { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.ay-cab { display: flex; align-items: center; gap: 8px; padding: 16px 16px 8px; }
.ay-tit { flex: 1; margin: 0; font-size: 17px; font-weight: 600; color: var(--navy); }
.ay-ico { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted); cursor: pointer; }
.ay-ico:hover { background: var(--bg); color: var(--navy); }
.ay-incidente { margin: 0 16px 8px; padding: 10px 12px; border-radius: 10px; background: var(--warning-bg); color: var(--navy); font-size: 13px; }
.ay-buscar { padding: 0 16px 8px; }
.ay-buscar input, .ay-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--border-dark); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.ay-buscar input { height: 40px; padding: 0 12px; }
.ay-form textarea { padding: 10px 12px; resize: vertical; }
.ay-buscar input:focus, .ay-form textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: var(--primary); }
.ay-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px 16px; -webkit-overflow-scrolling: touch; }
.ay-sec + .ay-sec { margin-top: 20px; }
.ay-voto + .ay-sec { margin-top: 24px; }   /* «Ver también», separado del voto */
.ay-sec-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ay-sec-h h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.ay-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--info-bg); color: var(--primary); font-size: 12px; font-weight: 600; }
.ay-lista { display: flex; flex-direction: column; }
.ay-fila { display: block; width: 100%; min-height: 40px; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.ay-fila:last-child { border-bottom: 0; }
.ay-fila:hover { color: var(--primary); }
.ay-pasos { list-style: none; margin: 0; padding: 0; }
.ay-paso { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.ay-paso:hover { color: var(--primary); }
.ay-paso-c { flex: none; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--border-dark); border-radius: 50%; color: #fff; }
.ay-paso--ok { color: var(--text-muted); text-decoration: line-through; }
.ay-paso--ok .ay-paso-c { background: var(--success); border-color: var(--success); }
.ay-art h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--navy); }
.ay-txt { margin: 8px 0 16px; font-size: 14px; line-height: 1.55; }
.ay-txt ol { margin: 0; padding-left: 20px; }
.ay-txt a { color: var(--primary); }
.ay-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.ay-btn--pri { border: 0; background: var(--primary); color: #fff; }
.ay-btn--pri:hover { background: var(--primary-hover); }
.ay-btn--pri:disabled { opacity: .5; cursor: default; }
.ay-btn--sec { border: 1px solid var(--border-dark); background: var(--surface); color: var(--navy); }
.ay-btn--sec:hover { border-color: var(--primary); color: var(--primary); }
.ay-voto { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.ay-chip { height: 32px; padding: 0 14px; white-space: nowrap; border: 1px solid var(--border-dark); border-radius: 999px; background: var(--surface); color: var(--navy); font: inherit; font-size: 13px; cursor: pointer; }
.ay-chip:hover { border-color: var(--primary); color: var(--primary); }
.ay-diag { margin-bottom: 16px; padding: 12px; border-radius: 10px; background: var(--warning-bg); font-size: 14px; }
.ay-diag--ok { background: var(--success-bg); }
.ay-diag p { margin: 0 0 10px; color: var(--navy); font-weight: 500; }
.ay-diag p:last-child { margin: 0; }
.ay-preg { margin: 20px 0 8px; font-size: 13px; color: var(--text-muted); }
.ay-acc { display: flex; gap: 8px; }
.ay-acc .ay-btn { flex: 1; }
.ay-form { display: flex; flex-direction: column; gap: 12px; }
.ay-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ay-chip-r { position: relative; display: inline-flex; }
.ay-chip-r input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.ay-chip-r span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--border-dark); border-radius: 999px; font-size: 13px; }
.ay-chip-r input:checked + span { border-color: var(--primary); background: var(--info-bg); color: var(--primary); }
.ay-chip-r input:focus-visible + span { box-shadow: 0 0 0 3px var(--info-bg); }
.ay-tema { margin: 0; font-size: 13px; color: var(--text-muted); }
.ay-err { margin: 0; font-size: 13px; color: var(--danger); }
.ay-vacio { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 0; text-align: center; font-size: 13px; color: var(--text-muted); }
.ay-vacio b { font-size: 17px; font-weight: 600; color: var(--navy); }
.ay-pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); }
.ay-link { padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; }
.ay-link:hover { text-decoration: underline; }
.ay-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ay-inicio { position: fixed; inset: 0; z-index: 4002; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(13, 33, 55, .32); font-family: Geist, Inter, system-ui, sans-serif; }
.ay-inicio-c { width: 100%; max-width: 380px; padding: 24px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg); text-align: center; }
.ay-inicio-c h2 { margin: 0 0 12px; font-size: 22px; font-weight: 600; color: var(--navy); }
.ay-inicio-c .ay-fila { text-align: center; }
.ay-inicio-c .ay-puerta { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; justify-content: center; width: 100%; margin: 0 0 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; }
.ay-inicio-c .ay-puerta:hover, .ay-inicio-c .ay-puerta:focus-visible { border-color: var(--primary); }
.ay-inicio-c .ay-puerta b { font-size: 14px; font-weight: 600; color: var(--navy); }
.ay-inicio-c .ay-puerta small { font-size: 12px; color: var(--muted); }
.ay-inicio-c .ay-link { margin-top: 12px; min-height: 44px; }
@media (max-width: 899px) {
  .ay-panel { width: 100vw; }
  .ay-buscar input { height: 44px; }
  .ay-buscar input, .ay-form textarea { font-size: 16px; }   /* menos de 16 y el celular acerca la pantalla al escribir */
  .ay-chip, .ay-chip-r span { min-height: 44px; }
  .ay-fila, .ay-paso, .ay-link { min-height: 44px; }
  .ay-btn { height: 44px; }   /* Escribinos, Sí / No, Enviar: lo mínimo para el dedo, como el resto del panel */
}
.ay-tit:focus, .ay-voto:focus { outline: none; }   /* el foco llega ahí para el lector de pantalla; no es algo para tocar */
@media print { .ay-panel, .ay-fondo, .ay-inicio { display: none !important; } }

/* Página pública /ayuda */
.ay-pag { max-width: 720px; margin: 0 auto; --navy: #0D2137; --primary: #1652F0; --primary-hover: #1247D6; --surface: #FFFFFF; --border: #E2E8F0; --border-dark: #CBD5E1; --text: #1E293B; --text-muted: #5B6B80; --info-bg: #EEF2FF; }   /* las páginas públicas no cargan style.css */
.pm-barra-sup:has(+ .ay-doc) .pm-acciones { display: none; }
.ay-pag h1 { margin: 0 0 16px; font-size: 28px; font-weight: 600; color: var(--navy); }
.ay-pag .ay-buscar { padding: 0 0 20px; }
.ay-pag-tema { margin: 28px 0 6px; font-size: 17px; font-weight: 600; color: var(--navy); }
.ay-pag details { border-bottom: 1px solid var(--border); scroll-margin-top: 96px; }   /* /ayuda#no-entro: la respuesta no queda debajo de la barra de arriba */
.ay-pag summary { min-height: 40px; padding: 10px 0; font-size: 14px; font-weight: 500; cursor: pointer; }
.ay-pag details .ay-txt { margin: 0 0 14px; }
.ay-pag [hidden] { display: none; }
.ay-gif { display: block; margin: 12px 0 4px; }
.ay-gif img { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px; }
