/* css/dictado-guia.css — lo propio de la guía de «Preparar mis dictados»
   (includes/dictado_guia.php). El marco, los controles y el «dedo» salen de
   css/aula-guia.css, que se carga antes. Pantallas de 400×340 escaladas. */
.gd .ag-vista h3 { color: #1c3654; font-size: 18px; margin: 0 0 8px; }
.gd .ag-escena.solo .ag-lado[data-lado="alumno"] { display: none; }
.gd .ag-escena.solo .ag-lado[data-lado="profe"] { display: block; }

/* Notación */
.gd-fig { display: inline-block; width: 36px; vertical-align: middle; }
.gd-fig svg { display: block; width: 100%; height: auto; }
.gd-frase { display: inline-flex; align-items: center; }
.gd-compas { display: inline-flex; padding: 0 3px 0 5px; border-right: 2px solid #5a7a9a; }
.gd-compas:last-child { border-right: 5px double #5a7a9a; }

.gd-tabs { display: flex; gap: 5px; margin-bottom: 8px !important; border-bottom: 2px solid #d8e8ec; }
.gd-tabs > * { padding: 5px 10px; border-radius: 8px 8px 0 0; background: #eef6f8; font-size: 13px; font-weight: 700; }
.gd-tabs b { background: #15495a; color: #fff; }
.gd-item { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; padding: 5px 8px; border: 2px solid #b9d0dc; border-radius: 9px; background: #fff; transition: border-color .25s, background .25s, transform .15s; }
.gd-item > b { width: 18px; font-size: 16px; }
.gd-item i { margin-left: auto; width: 24px; height: 24px; line-height: 21px; border: 1.5px solid #9ab8cc; border-radius: 50%; color: transparent; font-style: normal; font-size: 13px; font-weight: 700; }
.gd-item.activa { border-color: #e07428; background: #fff3e8; }
.gd-item.activa i { background: #e07428; border-color: #e07428; color: #fff; }
.gd-item.pulsado { transform: scale(.97); }
.gd .ag-vista .gd-barra { padding: 9px; border: 2px solid #15495a; border-radius: 10px; font-weight: 700; font-size: 15px; }

.gd-huecos { display: flex; justify-content: center; margin: 6px 0 14px; }
.gd-hueco { width: 62px; height: 62px; display: grid; place-items: center; border: 1.5px dashed #9ab8cc; border-radius: 8px; margin: 0 3px; }
.gd-hueco:nth-child(2) { margin-right: 14px; }
.gd-hueco .gd-fig { width: 48px; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s; }
.gd-hueco.puesto { border-style: solid; background: #fff; }
.gd-hueco.puesto .gd-fig { opacity: 1; transform: none; }
.gd-paleta { display: flex; justify-content: center; gap: 10px; }
.gd-tecla { width: 66px; height: 54px; display: grid; place-items: center; border: 2px solid #9ab8cc; border-radius: 10px; background: #fff; transition: transform .15s, background .2s; }
.gd-tecla.pulsado { transform: scale(.88); background: #ffe3d6; }
.gd .ag-vista .gd-clave { display: block; width: max-content; margin: 14px auto 0; padding: 5px 16px; border: 2px solid #15495a; border-radius: 9px; font-size: 15px; opacity: 0; transition: opacity .3s; }
.gd .ag-vista .gd-clave.puesto { opacity: 1; }
.gd-clave b { font-size: 21px; letter-spacing: 2px; }

.gd-guardado { justify-content: space-between; padding: 12px 10px; margin-bottom: 14px; }
.gd-guardado small { border: 1px solid #15495a; border-radius: 6px; padding: 2px 6px; font-size: 11.5px; }

.gd-activar { width: 270px; margin: 34px auto 0; padding: 22px 20px; border: 2px solid #e07428; border-radius: 16px; background: #fff1e2; }
.gd-activar strong { display: block; font-size: 16px; line-height: 1.35; }
/* El mismo indicador de desplegable (abierto) que en la herramienta */
.gd-activar strong::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 10px; border: solid #e07428; border-width: 0 3px 3px 0; transform: rotate(-135deg); }
.gd-campo { height: 56px; display: grid; place-items: center; margin: 14px 0; border: 2px solid #9ab8cc; border-radius: 10px; background: #fff; font: 700 30px/1 'Courier New', monospace; letter-spacing: 3px; }

.gd .ag-vista .gd-pulsos { display: flex; justify-content: center; gap: 26px; margin: 18px 0 10px; }
.gd-pulsos i { width: 14px; height: 14px; border-radius: 50%; background: #c4cdd6; transition: transform .15s, background .15s; }
.gd-pulsos i.suena { background: #e07428; transform: scale(1.5); }
.gd-solucion { display: flex; justify-content: center; margin-bottom: 20px; }
.gd-caja { width: 150px; height: 74px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid #c4d6e4; background: #f0f6fc; }
.gd-caja + .gd-caja { border-left: 0; }
.gd-caja .gd-fig { width: 56px; opacity: 0; transition: opacity .4s; }
.gd-caja.puesto .gd-fig { opacity: 1; }
.gd-mostrar { display: inline-block; padding: 9px 18px; border-radius: 999px; border: 2px solid #9ab8cc; background: #eef5fb; color: #245898; font-weight: 700; font-size: 14px; transition: transform .15s, background .2s; }
.gd-mostrar.pulsado { transform: scale(.92); background: #cfe2f4; }

/* La ficha en papel */
.gd-papel { height: 100%; padding: 12px 18px; border: 1px solid #d5d0c8; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); text-align: left; opacity: 0; transform: translateY(28px); transition: opacity .5s, transform .5s; }
.gd-papel.puesto { opacity: 1; transform: none; }
.gd-papel h4 { margin: 0; padding-bottom: 5px; border-bottom: 2px solid #000; color: #000; font-size: 17px; }
.gd .ag-vista .gd-nombre { margin-top: 12px; border-bottom: 1px solid #000; font-size: 12px; }
.gd .ag-vista .gd-rotulo { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; font-size: 13px; }
.gd-rotulo small { color: #666; font-size: 10.5px; }
.gd-pauta { display: flex; margin-top: 6px; }
.gd-pauta > span { flex: 1; height: 62px; display: flex; align-items: center; justify-content: center; gap: 8px; border-bottom: 1.5px solid #000; border-right: 1.5px solid #000; }
.gd-pauta > span:first-child { border-left: 1.5px solid #000; }
.gd-pauta > span:last-child { border-right: 5px double #000; }
.gd-mano { color: #1f4f86; }
.gd-mano .gd-fig { width: 52px; opacity: 0; transition: opacity .5s; }
.gd-mano.puesto .gd-fig { opacity: .85; }
.gd-mano svg path, .gd-mano svg polygon { fill: #1f4f86; }
.gd-mano svg polyline { stroke: #1f4f86; }
