/* SISDEP · Ayuda en pantalla: botones «Manual» y «Video» + ventana (web/ayuda/_ayuda.php) */
.ay-grupo { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; vertical-align: middle; }
.ay-btn { --ay-c: #d92d20; box-sizing: border-box; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin: 0;
	padding: 3px 10px 3px 3px; border: 1px solid #e3e8ef; background: #fff; color: #1f2a37; border-radius: 999px; font-size: 12px; font-weight: 600;
	line-height: 1; white-space: nowrap; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ay-btn i { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; background: var(--ay-c); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-style: normal; transition: transform .15s; }
.ay-btn svg { width: 11px; height: 11px; }
.ay-vid svg { margin-left: 1px; }
.ay-man { --ay-c: #b54708; }
.ay-btn:hover, .ay-btn:focus-visible { border-color: var(--ay-c); box-shadow: 0 4px 12px rgba(15,40,80,.12); color: #1f2a37; text-decoration: none; outline: none; }
.ay-btn:hover i { transform: scale(1.08); }
.ay-nombre { font-size: 12px; font-weight: 600; color: #3d4a5c; margin-right: 2px; }

/* Junto a una instrucción: el texto a la izquierda y los botones a la derecha */
.ay-fila { display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; }
.ay-varios { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ay-bloque { margin: 0 0 14px; }

/* Sobre la esquina de una opción */
.ay-rel { position: relative; display: grid; }
.ay-esquina { position: absolute; top: -10px; right: -6px; z-index: 2; gap: 4px; }
.ay-esquina .ay-btn { padding: 2px 8px 2px 2px; font-size: 11px; box-shadow: 0 2px 6px rgba(15,40,80,.12); }
.ay-esquina .ay-btn i { width: 18px; height: 18px; flex-basis: 18px; }
.ay-esquina .ay-btn svg { width: 10px; height: 10px; }

/* En un encabezado */
.ay-cabeza { margin-left: auto; margin-right: 6px; flex-wrap: nowrap; }
.ay-cabeza { gap: 4px; }
.ay-cabeza .ay-btn { padding: 3px; } .ay-cabeza .ay-btn span { display: none; }   /* encabezado angosto: solo los íconos (el nombre sale al pasar el mouse) */

/* Ventana del manual o del video */
.ay-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.ay-modal[hidden] { display: none; }
.ay-fondo { position: absolute; inset: 0; background: rgba(8,30,55,.72); }
.ay-caja { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 900px; background: #fff; border-radius: 16px; overflow: hidden;
	box-shadow: 0 30px 80px rgba(0,0,0,.4); font-family: "Open Sans", system-ui, sans-serif; }
.ay-modal.es-manual .ay-caja { max-width: 1100px; height: calc(100vh - 40px); }
.ay-caja-cab { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; color: #1f2a37; border-bottom: 1px solid #e3e8ef; }
.ay-caja-cab .ay-ico { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: #d92d20; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ay-modal.es-manual .ay-caja-cab .ay-ico { background: #b54708; }
.ay-caja-cab .ay-ico svg { width: 12px; height: 12px; }
.ay-caja-tx { flex: 1; min-width: 0; }
.ay-caja-tx b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ay-caja-tx small { display: block; font-size: 12px; color: #6b7a90; }
.ay-desc { font-size: 13px; font-weight: 600; color: #0B4F9E; text-decoration: none; padding: 7px 12px; border: 1px solid #c6daf6; border-radius: 999px; white-space: nowrap; }
.ay-desc:hover { background: #eef4fd; text-decoration: none; }
.ay-desc[hidden] { display: none; }
.ay-cerrar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; border: 0; background: #eef2f7; color: #1f2a37; font-size: 22px; line-height: 1; cursor: pointer; font-family: inherit; }
.ay-cerrar:hover { background: #e3e8ef; }
.ay-marco { position: relative; background: #000; }
.ay-modal.es-video .ay-marco { padding-top: 56.25%; }
.ay-modal.es-manual .ay-marco { flex: 1; background: #525659; }
.ay-marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 575px) { .ay-modal { padding: 10px; } .ay-modal.es-manual .ay-caja { height: calc(100vh - 20px); } }

/* Cabeceras azules de la administración v2 */
.v2p-hero .ay-bloque { margin: 12px 0 0; }

/* 30/11/2026: el video ocupa toda la pantalla (sin márgenes ni bordes redondeados) */
.ay-modal.es-video { padding: 0; }
.ay-modal.es-video .ay-caja { max-width: none; width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; background: #000; }
.ay-modal.es-video .ay-caja-cab { background: #fff; }
.ay-modal.es-video .ay-marco { flex: 1; padding-top: 0; }
