/* Nexadent · Atrás/Adelante y pantalla de Ayuda */
.nav-hist { display: inline-flex; gap: 6px; flex: none; }
.nav-hist button { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; cursor: pointer; background: var(--btn-bg); color: var(--btn-txt); border: 1px solid var(--btn-borde); }
.nav-hist button:hover:not(:disabled) { box-shadow: 0 10px 22px -12px rgba(30,10,90,.7); transform: translateY(-1px); }
.nav-hist button:disabled { opacity: .4; cursor: default; }
.nav-hist svg { width: 20px; height: 20px; }
.ay-rejilla { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; }
.ay-indice { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 2px; padding: 14px; max-height: calc(100vh - 140px); overflow-y: auto; }
.ay-buscar { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 42px; border-radius: 12px; background: var(--input-bg); border: 1px solid var(--line); color: var(--muted); margin-bottom: 8px; }
.ay-buscar input { flex: 1; border: 0; background: none; outline: none; font: inherit; color: var(--input-txt); min-width: 0; }
.ay-tema { display: flex; align-items: center; gap: 10px; text-align: left; padding: 7px 8px; border-radius: 11px; border: 0; background: none; color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
.ay-tema:hover { background: var(--item); }
.ay-tema.apagado { opacity: .35; }
.ay-tema .gema { width: 26px; height: 26px; flex: none; }
.ay-cuerpo { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ay-tarj { scroll-margin-top: 12px; transition: box-shadow .3s; }
.ay-tarj.ay-luz { box-shadow: 0 0 0 3px #7B5CFF, var(--sombra); }
.ay-cab { gap: 12px; align-items: center; flex-wrap: wrap; }
.ay-cab .gema { width: 38px; height: 38px; flex: none; }
.ay-para { margin: 10px 0 6px; font-size: 15.5px; color: var(--ink); }
.ay-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.ay-cols h3 { margin: 10px 0 6px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ay-cols ol, .ay-cols ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 7px; line-height: 1.45; color: var(--ink); }
.ay-consejos { background: var(--item); border: 1px solid var(--line); border-radius: var(--r-s); padding: 4px 14px 14px; }
.ay-tabla { width: 100%; border-collapse: collapse; }
.ay-tabla td { padding: 8px 6px; border-bottom: 1px solid var(--line); color: var(--ink); }
.ay-tabla kbd { font: 600 13px var(--sans); background: var(--item); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; white-space: nowrap; }
.ay-preg { border-bottom: 1px solid var(--line); padding: 10px 0; color: var(--ink); }
.ay-preg summary { cursor: pointer; font-weight: 700; }
.ay-preg p { margin: 8px 0 0; line-height: 1.5; }
@media (max-width: 900px) { .ay-rejilla, .ay-cols { grid-template-columns: 1fr; } .ay-indice { position: static; max-height: none; } }
/* Con las flechas, el buscador es un poco más corto para que el nombre de la clínica quepa entero */
@media (max-width: 1500px) { .top .buscar { flex: 0 1 36%; } }
@media (max-width: 1180px) { .top .buscar { flex: 1 1 200px; } .nav-hist button { width: 38px; height: 38px; } }
/* Con «Ayuda» en el menú: en portátiles de 768 px de alto, un pelo más juntos para que no haga scroll */
@media (min-width: 761px) and (min-height: 741px) and (max-height: 800px) { .nav a { min-height: 32px; padding-top: 2px; padding-bottom: 2px; } }
