/* Hacer un test (y ver sus respuestas) */

.ht-contenedor {
    max-width: 1320px;
    padding-top: 20px;
    padding-bottom: 40px;
}

.ht {
    font-family: 'Poppins', sans-serif;
    color: #252034;
}

.ht *,
.ht *::before,
.ht *::after {
    box-sizing: border-box;
}

.ht-oculto {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Barra de arriba */

.ht-barra {
    position: sticky;
    top: 8px;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 16px 22px;
    border-radius: 18px;
    background: linear-gradient(110deg, #1C1828 0%, #252034 55%, #2A243B 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(28, 24, 40, .25);
}

.ht-barra::after {
    content: '';
    position: absolute;
    right: -70px;
    top: -90px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #EA1621;
    opacity: .9;
    pointer-events: none;
}

.ht-barra > * {
    position: relative;
    z-index: 1;
}

.ht-barra__info {
    min-width: 0;
}

.ht-barra__chips {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ht-chip {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ht-barra__total {
    font-size: 12px;
    color: #C9C4D6;
}

.ht-barra__titulo {
    margin: 6px 0 0;
    overflow: hidden;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ht-avance {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 460px;
    margin-top: 8px;
    font-size: 12px;
    color: #C9C4D6;
    white-space: nowrap;
}

.ht-avance b {
    color: #fff;
}

.ht-avance__barra {
    flex: 1;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
}

.ht-avance__barra i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #fff;
    transition: width .3s ease;
}

.ht-barra__resumen {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: #C9C4D6;
}

.ht-reloj {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-family: 'Anton', sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: background .3s ease;
}

.ht-reloj i {
    font-size: 15px;
}

.ht-reloj.is-poco {
    background: #EA1621;
    animation: ht-latido 1s ease-in-out infinite;
}

.ht-nota {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ht-nota b {
    font-family: 'Anton', sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
}

.ht-nota span {
    font-size: 11px;
    color: #C9C4D6;
}

.ht-nota.is-aprobado b { color: #6FD39B; }
.ht-nota.is-suspenso b { color: #FF7A80; }

.ht-barra__acciones {
    display: flex;
    gap: 8px;
}

/* Botones */

.ht-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid #EA1621;
    border-radius: 999px;
    background: #EA1621;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.ht-boton:hover,
.ht-boton:focus {
    border-color: #C8101A;
    background: #C8101A;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(234, 22, 33, .3);
}

.ht-boton:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

.ht-boton--claro {
    border-color: rgba(255, 255, 255, .4);
    background: transparent;
}

.ht-boton--claro:hover,
.ht-boton--claro:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, .12);
    box-shadow: none;
}

.ht-boton--linea {
    border-color: #252034;
    background: #fff;
    color: #252034;
}

.ht-boton--linea:hover,
.ht-boton--linea:focus {
    border-color: #252034;
    background: #252034;
    color: #fff;
    box-shadow: none;
}

.ht-boton--oscuro {
    border-color: #252034;
    background: #252034;
}

.ht-boton--oscuro:hover,
.ht-boton--oscuro:focus {
    border-color: #1C1828;
    background: #1C1828;
    box-shadow: none;
}

.ht-boton:focus-visible,
.ht-icono:focus-visible,
.ht-respuesta:focus-visible,
.ht-celda:focus-visible,
.ht-filtro:focus-visible,
.ht-memory__boton:focus-visible {
    outline: 2px solid #FF4A53;
    outline-offset: 2px;
}

/* Cuerpo */

.ht-cuerpo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
}

.ht-principal {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

/* Pregunta */

.ht-pregunta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 22px;
    border: 1px solid #ECE9EF;
    border-radius: 18px;
    background: #fff;
    animation: ht-entrar .3s ease both;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ht-pregunta.is-acierto {
    border-color: #1B7A43;
    box-shadow: inset 4px 0 0 #1B7A43;
}

.ht-pregunta.is-fallo {
    border-color: #EA1621;
    box-shadow: inset 4px 0 0 #EA1621;
}

.ht-pregunta.is-respondida {
    box-shadow: inset 4px 0 0 #252034;
}

.ht-pregunta.is-destacada {
    box-shadow: 0 0 0 3px rgba(234, 22, 33, .35);
}

.ht-pregunta__cab {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.ht-pregunta__numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 10px;
    background: #252034;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}

.ht-pregunta__tema,
.ht-pregunta__estado {
    display: inline-flex;
    max-width: 100%;
    padding: 3px 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #F1EFF4;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #5B566A;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.ht-pregunta__estado.is-acierto { background: #E9F7EF; color: #1B7A43; }
.ht-pregunta__estado.is-fallo { background: #FFF0F1; color: #EA1621; }

.ht-pregunta__acciones {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.ht-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #ECE9EF;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    color: #5B566A;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.ht-icono:hover {
    border-color: #252034;
    color: #252034;
}

.ht-icono.is-activo {
    border-color: #F2A007;
    background: #FFF7E0;
    color: #F2A007;
}

.ht-icono.is-apagado,
.ht-icono:disabled {
    opacity: .35;
    cursor: default;
}

/* Explicación: verde si la pregunta la tiene, rojo si no */
.ht-icono--info {
    border-color: rgba(27, 122, 67, .35);
    background: #E8F4ED;
    color: #1B7A43;
}

.ht-icono--info:hover {
    border-color: #1B7A43;
    background: #1B7A43;
    color: #fff;
}

.ht-icono--info.is-apagado,
.ht-icono--info:disabled {
    border-color: rgba(234, 22, 33, .3);
    background: #FFF0F1;
    color: #EA1621;
    opacity: 1;
}

.ht-pregunta__enunciado {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.5;
    color: #252034;
}

.ht-pregunta__enunciado p:last-child {
    margin-bottom: 0;
}

/* Respuestas */

.ht-respuestas {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ht-respuesta {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 22px;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border: 2px solid #ECE9EF;
    border-radius: 14px;
    background: #fff;
    font-size: 14px;
    line-height: 1.45;
    color: #252034;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.ht-respuesta:hover {
    border-color: #C9C4D6;
    transform: translateX(3px);
}

.ht--ver .ht-respuesta {
    cursor: default;
}

.ht--ver .ht-respuesta:hover {
    border-color: #ECE9EF;
    transform: none;
}

.ht-respuesta__letra {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F1EFF4;
    font-size: 13px;
    font-weight: 800;
    color: #5B566A;
    transition: background .15s ease, color .15s ease;
}

.ht-respuesta__texto p {
    margin: 0;
}

.ht-respuesta__etiqueta {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 800;
}

.ht-respuesta__marca {
    font-size: 15px;
    text-align: center;
}

.ht-respuesta.is-elegida {
    border-color: #252034;
    background: #F6F5F8;
}

.ht-respuesta.is-elegida .ht-respuesta__letra {
    background: #252034;
    color: #fff;
}

.ht-respuesta.is-bien,
.ht--ver .ht-respuesta.is-bien:hover {
    border-color: #1B7A43;
    background: #E9F7EF;
}

.ht-respuesta.is-bien .ht-respuesta__letra {
    background: #1B7A43;
    color: #fff;
}

.ht-respuesta.is-bien .ht-respuesta__marca,
.ht-respuesta.is-bien .ht-respuesta__etiqueta,
.ht-respuesta.is-correcta .ht-respuesta__marca,
.ht-respuesta.is-correcta .ht-respuesta__etiqueta {
    color: #1B7A43;
}

.ht-respuesta.is-mal,
.ht--ver .ht-respuesta.is-mal:hover {
    border-color: #EA1621;
    background: #FFF0F1;
}

.ht-respuesta.is-mal .ht-respuesta__letra {
    background: #EA1621;
    color: #fff;
}

.ht-respuesta.is-mal .ht-respuesta__marca,
.ht-respuesta.is-mal .ht-respuesta__etiqueta {
    color: #EA1621;
}

.ht-respuesta.is-correcta,
.ht--ver .ht-respuesta.is-correcta:hover {
    border-color: #1B7A43;
    border-style: dashed;
}

/* Pregunta y respuesta */

.ht-memory {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ht-memory__boton {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 2px solid #252034;
    border-radius: 14px;
    background: #fff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: #252034;
    cursor: pointer;
}

.ht-memory__boton.is-vista {
    border-color: #1B7A43;
    background: #E9F7EF;
    color: #1B7A43;
}

.ht-memory__respuesta {
    padding: 14px 16px;
    border-radius: 14px;
    background: #E9F7EF;
    font-size: 14px;
    color: #1B7A43;
}

.ht-memory__respuesta p:last-child {
    margin-bottom: 0;
}

/* Páginas y final */

.ht-paginas {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #ECE9EF;
    border-radius: 16px;
    background: #fff;
}

.ht-paginas__actual {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.ht-paginas__actual select {
    height: 34px;
    padding: 0 8px;
    border: 2px solid #E6E3EB;
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-weight: 700;
    color: #252034;
}

.ht-final {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border: 2px dashed #EA1621;
    border-radius: 16px;
    background: #FFF8F8;
}

.ht-final b {
    display: block;
    font-size: 15px;
}

.ht-final span {
    font-size: 13px;
    color: #5B566A;
}

/* Mapa */

.ht-lado {
    position: sticky;
    top: 130px;
}

.ht-lado__fondo,
.ht-mapa__cerrar {
    display: none;
}

.ht-mapa {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid #ECE9EF;
    border-radius: 18px;
    background: #fff;
}

.ht-mapa__cab {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ht-mapa__cab b {
    font-size: 14px;
}

.ht-mapa__cab span {
    margin-left: auto;
    font-size: 12px;
    color: #8A859A;
}

.ht-mapa__filtros,
.ht-carpetas {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ht-filtro {
    padding: 5px 11px;
    border: 1px solid #E6E3EB;
    border-radius: 999px;
    background: #fff;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    color: #5B566A;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.ht-filtro:hover {
    border-color: #252034;
    color: #252034;
}

.ht-filtro.is-activo {
    border-color: #EA1621;
    background: #FFF0F1;
    color: #EA1621;
}

.ht-mapa__celdas {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 6px;
    max-height: 290px;
    padding: 3px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.ht-celda {
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #F1EFF4;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    color: #5B566A;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.ht-celda:hover {
    transform: scale(1.1);
}

.ht-celda.is-respondida { background: #252034; color: #fff; }
.ht-celda.is-acierto { background: #1B7A43; color: #fff; }
.ht-celda.is-fallo { background: #EA1621; color: #fff; }

.ht-celda.is-actual {
    box-shadow: inset 0 0 0 2px #8A859A;
}

.ht-celda.is-actual.is-respondida,
.ht-celda.is-actual.is-acierto,
.ht-celda.is-actual.is-fallo {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #252034;
}

.ht-mapa__vacio {
    grid-column: 1 / -1;
    margin: 0;
    padding: 12px;
    border-radius: 10px;
    background: #F6F5F8;
    font-size: 12px;
    color: #5B566A;
    text-align: center;
}

.ht-leyenda {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 11px;
    color: #8A859A;
}

.ht-leyenda li::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 5px;
    border-radius: 3px;
    vertical-align: -1px;
}

.ht-leyenda--blanco::before { background: #F1EFF4; border: 1px solid #D9D5E0; }
.ht-leyenda--acierto::before { background: #1B7A43; }
.ht-leyenda--fallo::before { background: #EA1621; }
.ht-leyenda--respondida::before { background: #252034; }

.ht-estudio__texto {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #5B566A;
}

.ht-estudio__barra {
    height: 8px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #F1EFF4;
}

.ht-estudio__barra i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #1B5FA8;
}

.ht-atajos {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid #F1EFF4;
    font-size: 12px;
    color: #5B566A;
}

.ht-atajos b {
    font-size: 12.5px;
    color: #252034;
}

.ht-atajos kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border: 1px solid #D9D5E0;
    border-bottom-width: 2px;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    color: #5B566A;
}

/* Barra de abajo en móvil */

.ht-movil {
    display: none;
}

/* Ventanas */

.ht-capa {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(28, 24, 40, .55);
    font-family: 'Poppins', sans-serif;
    color: #252034;
    animation: ht-aparecer .2s ease both;
}

.ht-dialogo {
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
    animation: ht-entrar .25s ease both;
}

.ht-dialogo__cuerpo {
    padding: 24px 26px;
}

.ht-dialogo__cuerpo--centro {
    text-align: center;
}

.ht-dialogo__icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #FFF0F1;
    font-size: 22px;
    color: #EA1621;
}

.ht-dialogo h3 {
    margin: 12px 0 0;
    font-size: 18px;
    font-weight: 700;
}

.ht-dialogo__cuerpo:not(.ht-dialogo__cuerpo--centro) h3 {
    margin-top: 0;
}

.ht-dialogo__estrella {
    color: #F2A007;
}

.ht-dialogo p {
    margin: 8px 0 14px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #5B566A;
}

.ht-dialogo__cuerpo--centro p {
    margin-bottom: 0;
}

.ht-dialogo textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #E6E3EB;
    border-radius: 12px;
    outline: 0;
    font-family: inherit;
    font-size: 13.5px;
    color: #252034;
    resize: vertical;
}

.ht-dialogo textarea:focus {
    border-color: #252034;
}

.ht-dialogo__texto {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #252034;
}

.ht-dialogo .ht-filtro {
    padding: 8px 14px;
    font-size: 12.5px;
}

.ht-dialogo__pie {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #ECE9EF;
    background: #F6F5F8;
}

.ht-dialogo__pie .ht-boton {
    flex: 1;
}

/* Explicación de la pregunta */

.ht-dialogo--explicacion {
    display: flex;
    flex-direction: column;
    max-width: 560px;
    overflow: hidden;
}

.ht-dialogo--explicacion.is-ancho {
    max-width: 880px;
}

.ht-explicacion__cabecera {
    position: relative;
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    padding: 26px 26px 18px;
    background: linear-gradient(180deg, #FFF3F4 0%, #fff 100%);
    text-align: center;
}

.ht-explicacion__icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #EA1621;
    box-shadow: 0 8px 18px rgba(234, 22, 33, .28);
    font-size: 18px;
    color: #fff;
    animation: ht-latido .6s ease .15s both;
}

.ht-dialogo .ht-explicacion__cabecera h3 {
    margin: 12px 0 0;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #252034;
}

.ht-explicacion__cabecera h3::after {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: #EA1621;
}

.ht-explicacion__pregunta {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8A859A;
}

.ht-dialogo__texto.ht-explicacion__texto {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 4px 26px 20px;
    overflow: auto;
    overflow-wrap: anywhere;
}

.ht-explicacion__texto p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #252034;
}

.ht-explicacion__texto img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    margin: 6px auto 10px;
    border-radius: 8px;
}

.ht-explicacion__texto table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 12.5px;
}

.ht-explicacion__texto td,
.ht-explicacion__texto th {
    padding: 4px 8px;
    border: 1px solid #ECE9EF;
}

.ht-explicacion__texto iframe {
    display: block;
    max-width: 100%;
}

.ht-dialogo--explicacion .ht-dialogo__pie {
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .ht-explicacion__cabecera {
        padding: 20px 18px 14px;
    }

    .ht-dialogo .ht-explicacion__cabecera h3 {
        font-size: 14px;
    }

    .ht-dialogo__texto.ht-explicacion__texto {
        padding: 4px 18px 16px;
    }
}

@keyframes ht-latido {
    0% { opacity: 0; transform: scale(.6); }
    70% { transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes ht-entrar {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

@keyframes ht-aparecer {
    from {
        opacity: 0;
    }
}

@keyframes ht-latido {
    50% {
        opacity: .7;
    }
}

/* Tablet */

@media (max-width: 1199.98px) {
    .ht-cuerpo {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .ht-mapa__celdas {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Móvil: el mapa se abre desde abajo */

@media (max-width: 991.98px) {
    .ht-contenedor {
        padding-bottom: 96px;
    }

    .ht-barra {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 12px 16px;
    }

    .ht-barra__acciones {
        display: none;
    }

    .ht-cuerpo {
        grid-template-columns: minmax(0, 1fr);
    }

    .ht-lado {
        position: static;
    }

    .ht-lado__fondo {
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgba(28, 24, 40, .5);
    }

    .ht-mapa {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1041;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 22px 22px 0 0;
        transform: translateY(105%);
        transition: transform .3s ease;
    }

    .ht-lado.is-abierto .ht-lado__fondo {
        display: block;
    }

    .ht-lado.is-abierto .ht-mapa {
        transform: translateY(0);
    }

    .ht-mapa__cerrar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: 0;
        border-radius: 50%;
        background: #F1EFF4;
        font-size: 20px;
        color: #252034;
    }

    .ht-mapa__celdas {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        max-height: none;
    }

    .ht-atajos {
        display: none;
    }

    .ht-movil {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1030;
        display: flex;
        gap: 8px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid #ECE9EF;
        background: #fff;
        box-shadow: 0 -10px 30px rgba(28, 24, 40, .12);
    }

    .ht-movil .ht-boton {
        flex: 1;
    }
}

@media (max-width: 575.98px) {
    .ht-contenedor {
        padding-top: 10px;
    }

    .ht-barra {
        top: 0;
        border-radius: 14px;
    }

    .ht-barra__titulo {
        font-size: 14px;
    }

    .ht-reloj {
        padding: 6px 10px;
        font-size: 16px;
    }

    .ht-nota b {
        font-size: 24px;
    }

    .ht-pregunta {
        padding: 16px;
    }

    .ht-pregunta__enunciado {
        font-size: 14.5px;
    }

    .ht-respuesta {
        grid-template-columns: 28px minmax(0, 1fr) 18px;
        gap: 10px;
        padding: 10px;
        font-size: 13.5px;
    }

    .ht-respuesta__letra {
        width: 28px;
        height: 28px;
    }

    .ht-paginas {
        padding: 10px;
    }

    .ht-paginas__texto {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ht *,
    .ht *::before,
    .ht-capa,
    .ht-capa *,
    .ht-dialogo {
        animation: none !important;
        transition: none !important;
    }
}
