/* Pantalla de la tutora MATEMAIA. Objetivos táctiles de 44 px o más y texto en rem. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { color-scheme: light; }
body { margin: 0; background: #eef3f8; color: #12385d; font: 1.0625rem/1.55 "DM Sans", system-ui, sans-serif; }
.salto { position: absolute; left: 12px; top: -80px; background: #0b3d6e; color: #fff; padding: 12px 18px; border-radius: 10px; }
.salto:focus { top: 12px; z-index: 10; }
:focus-visible { outline: 3px solid #d98324; outline-offset: 2px; }

.cabecera { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 16px; background: #0c365f; color: #fff; }
.cabecera .areas { display: flex; flex-wrap: wrap; gap: 8px; }
.cabecera h1 { margin: 0; font-size: 1.35rem; letter-spacing: .04em; }
.sesion { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .95rem; }

main { max-width: 760px; margin: 0 auto; padding: 16px; }
h2 { font-size: 1.3rem; color: #0b3d6e; margin: 0 0 8px; }
h3 { font-size: 1.1rem; margin: 0 0 6px; }
select { width: 100%; font: inherit; color: inherit; padding: 10px 12px; border: 1px solid #7fa6c9; border-radius: 10px; background: #fff; }
.material { border: 1px solid #c6d9ea; border-radius: 12px; margin: 0 0 8px; padding: 4px 14px 14px; }
.material legend { font-weight: 700; padding: 0 6px; }
textarea { width: 100%; font: inherit; color: inherit; padding: 12px; border: 1px solid #7fa6c9; border-radius: 10px; background: #fff; resize: vertical; }
.ayuda { font-size: .95rem; color: #3d5a75; margin: 6px 0 0; }
.acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.boton { min-height: 44px; padding: 10px 18px; font: inherit; font-weight: 700; color: #0b567d; background: #fff; border: 1.5px solid #6fa6d1; border-radius: 10px; cursor: pointer; }
.boton.principal { color: #fff; background: #1565b9; border-color: #1565b9; }
.boton:disabled { cursor: not-allowed; color: #4e6a85; background: #e4ebf3; border-color: #c6d3e1; }

.aviso { background: #fff4e0; border: 1px solid #e0a64a; border-radius: 10px; padding: 12px 14px; }
.ficha, .propuesta { background: #fff; border: 1px solid #bbd5ef; border-radius: 14px; padding: 16px; }
.ficha-cabeza { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.ficha-cabeza h2 { margin: 0; }
.enunciado { white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0; }
.progreso { margin: 0; font-size: .95rem; color: #3d5a75; }
.conversacion { display: grid; gap: 12px; margin: 16px 0; }
.turno { padding: 12px 16px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.turno .quien { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3d5a75; margin-bottom: 4px; }
.turno.alumno { background: #dcebfa; margin-left: 24px; }
.turno.tutora { background: #fff; border: 1px solid #bbd5ef; margin-right: 24px; }
.propuesta { border-color: #1565b9; margin-bottom: 8px; }
/* Fórmulas: las largas se desplazan dentro de su renglón sin ensanchar la página. */
.formula-bloque { display: block; max-width: 100%; overflow-x: auto; overflow-y: hidden; white-space: normal; padding: 2px 0; }
.formula-bloque .katex-display { margin: .45em 0; }
.formula-linea .katex { white-space: nowrap; }
.formula-linea { display: inline-block; max-width: 100%; overflow-x: auto; overflow-y: hidden; vertical-align: bottom; }
.katex { font-size: 1.15em; }
/* Gráficos */
.grafico { margin: 10px 0; white-space: normal; }
.grafico svg { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; background: #fff; font-family: Cambria, Georgia, serif; }
.grafico text { font-size: 12.5px; fill: #1d1d1b; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.grafico .grafico-nombre-eje { font-style: italic; font-size: 16px; }
.grafico .grafico-rotulo { font-size: 13px; }
.grafico-grilla { stroke: #e4e1d8; }
.grafico-eje { stroke: #1d1d1b; stroke-width: 1.3; }
.grafico-punta, .grafico-punto { fill: #1d1d1b; }
.grafico-curva { fill: none; stroke-width: 2.3; }
.grafico figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: .95rem; margin-top: 6px; }
.grafico-leyenda { display: inline-flex; align-items: center; gap: 6px; }
.grafico-marca { width: 18px; height: 3px; border-radius: 2px; }
.grafico-descripcion { flex-basis: 100%; text-align: center; color: #3d5a75; }
.grafico-nota { display: block; font-size: .95rem; color: #3d5a75; margin: 6px 0; }
/* Imagen del trabajo y cámara */
.foto { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin: 10px 0; padding: 12px; border: 1px solid #b5d6ee; border-radius: 12px; background: #fff; }
.foto img { width: 140px; max-height: 180px; object-fit: contain; border: 1px solid #b5d6ee; border-radius: 8px; }
.foto-datos { flex: 1 1 220px; min-width: 0; }
.foto-datos p { margin: 0 0 8px; }
.foto-datos textarea { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.camara { width: min(560px, calc(100vw - 32px)); box-sizing: border-box; border: 1px solid #b5d6ee; border-radius: 14px; padding: 16px; }
.camara video { display: block; width: 100%; max-height: 60vh; background: #000; border-radius: 8px; }
.camara::backdrop { background: rgba(0, 30, 55, .6); }
.pendientes { margin-top: 28px; }
.pendientes ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pendientes li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; background: #fff; border: 1px solid #bbd5ef; border-radius: 12px; padding: 12px 14px; }
.pendientes li > div { flex: 1 1 240px; min-width: 0; }
.pendientes .enunciado { margin: 0; }
.pendientes small { color: #3d5a75; }
.pendientes .ayuda { margin-bottom: 10px; }

@media (max-width: 480px) { .turno.alumno { margin-left: 8px; } .turno.tutora { margin-right: 8px; } .acciones .boton { width: 100%; } }

/* Aviso al alumno (texto provisorio) */
.aviso-datos { background: #fff; border: 1px solid #bbd5ef; border-radius: 14px; padding: 8px 18px 18px; }
.aviso-datos h3 { margin: 18px 0 4px; font-size: 1.05rem; }
.aviso-datos ul { margin: 4px 0; padding-left: 22px; }
.provisorio { background: #fff4e0; border: 2px solid #e0a64a; border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.casilla { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 700; }
.casilla input { width: 22px; height: 22px; }
a.boton { display: inline-flex; align-items: center; text-decoration: none; }

/* Pantalla de la cuenta */
.cuenta input[type="email"], .cuenta input[type="text"] { width: 100%; font: inherit; color: inherit; padding: 12px; border: 1px solid #7fa6c9; border-radius: 10px; background: #fff; min-height: 44px; }
.cuenta label { display: block; margin-top: 12px; font-weight: 700; }
.cuenta .casilla { display: flex; }
.pestanas { margin: 0 0 8px; }
.pestanas .boton[aria-pressed="true"] { box-shadow: inset 0 -3px 0 #d98324; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.aviso-desplegable { margin-top: 14px; background: #fff; border: 1px solid #bbd5ef; border-radius: 12px; padding: 8px 14px; }
.aviso-desplegable summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.equipos { padding-left: 22px; }

/* Pantalla de administración */
.ok { background: #e8f6ec; border: 1px solid #6fb98a; border-radius: 10px; padding: 12px 14px; }
fieldset.funciones { border: 1px solid #bbd5ef; border-radius: 10px; margin: 10px 0 0; padding: 4px 12px 10px; }
fieldset.funciones legend { font-weight: 700; padding: 0 6px; }
fieldset.funciones .casilla { margin-top: 6px; font-weight: 400; }
.buscador { margin-top: 12px; }
.buscador input[type="text"] { max-width: 420px; }
.acciones input[type="text"] { width: auto; min-width: 90px; }
.acciones label { margin-top: 0; align-self: center; }

.curso { margin: 14px 0; }
.curso h3 { margin-top: 0; }
.nombre-cuenta { margin: 8px 0 16px; }

/* Panel del grupo (matriz) */
.panel .ancho, main.ancho { max-width: 1100px; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: end; margin: 8px 0 16px; padding: 12px; background: #fff; border: 1px solid #bbd5ef; border-radius: 12px; }
.campo-filtro { display: flex; flex-direction: column; min-width: 150px; }
.cuenta .filtros label { margin-top: 0; font-size: .9rem; }
.filtros select, .filtros input { font: inherit; padding: 8px 10px; border: 1px solid #7fa6c9; border-radius: 8px; background: #fff; min-height: 44px; }
.filtros .acciones { margin-top: 0; }
.tabla-ancha { overflow-x: auto; background: #fff; border: 1px solid #bbd5ef; border-radius: 12px; }
.matriz { border-collapse: collapse; width: 100%; min-width: 860px; font-size: .95rem; }
.matriz th, .matriz td { border-bottom: 1px solid #d5e4f2; padding: 6px 8px; text-align: center; vertical-align: middle; }
.matriz thead th { background: #eaf2fa; position: sticky; top: 0; font-size: .9rem; }
.matriz tbody th { text-align: left; min-width: 200px; background: #fff; }
.matriz td .celda { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; min-height: 44px; padding: 4px 6px; font: inherit; color: #12385d; background: transparent; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.matriz td .celda:hover:not(:disabled) { border-color: #6fa6d1; }
.matriz td .celda:disabled { color: #6b8196; cursor: default; }
.matriz td .celda small { font-size: .75rem; color: #3d5a75; }
.marcas { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.linea-recorrido { margin-top: 6px; font-size: .82rem; font-weight: 400; color: #2c4660; }
.linea-recorrido .enlace { font-size: inherit; padding: 0; }
.marca { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid; }
.marca.alerta { color: #7a3200; background: #ffe9d2; border-color: #e0a64a; }
.marca.gris { color: #3d5a75; background: #eef3f8; border-color: #b5c7d8; }
.nombres { margin-top: 16px; }
.notas { margin-top: 18px; background: #fff; border: 1px solid #bbd5ef; border-radius: 12px; padding: 8px 16px; }
.notas summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.solo-lectores { position: absolute; left: -9999px; }
.matriz td .celda .numero { font-weight: 700; font-size: 1.05rem; }

/* Panel: señales, detalle y conversación */
.senales-caja { margin: 12px 0; }
.lista-senales { padding-left: 20px; margin: 6px 0; }
.lista-senales ul { margin: 2px 0 8px; padding-left: 18px; }
.enlace { font: inherit; font-weight: 700; color: #0b567d; background: none; border: none; padding: 4px 0; min-height: 36px; text-decoration: underline; cursor: pointer; text-align: left; }
.detalle h4 { margin: 16px 0 4px; }
.detalle { margin-top: 16px; }
.recorridos p { margin: 4px 0; }
.indicadores td, .ejercicios td { text-align: left; }
.conversacion-docente { margin-top: 16px; }

/* Docente de aprendizaje autónomo: lista de cursos y tabla de uso */
.lista-simple { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lista-simple li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; background: #fff; border: 1px solid #bbd5ef; border-radius: 12px; padding: 12px 14px; }
.tabla-uso { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #bbd5ef; border-radius: 12px; margin-bottom: 16px; }
.tabla-uso th, .tabla-uso td { text-align: left; padding: 8px 12px; border-bottom: 1px solid #e3eefa; }

/* Modos de Matemática: «Aprender una unidad» y «Ejercicio libre» */
.modos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.modos .boton[aria-current="page"] { font-weight: 700; text-decoration: underline; }
.estado-tema { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #e8eef5; color: #2c4660; margin-right: 6px; }
.estado-tema.dominado { background: #d8f0dc; color: #1f5a2b; }
.estado-tema.aca { background: #0c365f; color: #fff; }
.temas li.tema-aca { box-shadow: inset 4px 0 0 #0c365f; }
.temas .numero { font-weight: 700; margin-right: 4px; }

/* Editor matemático visual (MathLive): un renglón por paso y botones de símbolos */
.editor-mate { margin: 8px 0 14px; }
.editor-mate .editor-titulo { font-weight: 700; margin: 0 0 6px; }
.barra-simbolos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.barra-simbolos .simbolo { min-width: 44px; min-height: 40px; padding: 4px 8px; border: 1px solid #bbd5ef; border-radius: 8px; background: #fff; cursor: pointer; font-size: 1rem; }
.barra-simbolos .simbolo:hover, .barra-simbolos .simbolo:focus-visible { background: #eef5fc; }
.barra-simbolos .simbolo.texto { font-weight: 700; }
.renglones { margin: 0 0 6px; padding-left: 2.2em; display: grid; gap: 6px; }
.renglones li::marker { color: #3d5a75; font-weight: 700; }
.renglones math-field { display: block; width: 100%; font-size: 1.25rem; padding: 6px 10px; border: 1px solid #9fbfdf; border-radius: 8px; background: #fff; }
.renglones math-field:focus-within { outline: 2px solid #1f6fbf; outline-offset: 1px; }
.renglones math-field::part(menu-toggle) { display: none; }
.barra-simbolos .simbolo .katex { font-size: 1.15em; }

/* Diseño de Promptina (2026-12-04, pedido de Antonio): barra lateral a la izquierda de arriba abajo, barra superior clara,
   portada con imagen propia de NEXO U, «Mis sesiones» y el cuadro «¿Cómo querés estudiar hoy?». */
body.con-app { display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100vh; }
body.con-app > .panel-alumno { grid-column: 1; grid-row: 1 / span 2; }
body.con-app > .cabecera, body.con-app > main { grid-column: 2; }
body.con-app > main { width: 100%; }
body.con-app > main.espacio { max-width: 1100px; margin: 0 auto; padding: 24px 40px; }
body.con-app .cabecera { background: #fff; color: #12395d; border-bottom: 1px solid #d8e6f3; padding: 10px 24px; }
body.con-app .cabecera h1 { display: none; }

.panel-alumno { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 16px 28px; display: grid; align-content: start; gap: 14px;
  background: linear-gradient(180deg, #eef5fc, #e3edf8); border-right: 1px solid #cfe0f0; }
.marca-nexo { display: flex; gap: 10px; align-items: center; text-decoration: none; color: #12395d; }
.marca-signo { position: relative; width: 44px; height: 48px; border-radius: 15px; background: linear-gradient(145deg, #1565b9, #123e74); color: #fff;
  font: 700 1.9rem/48px "Manrope", "DM Sans", sans-serif; text-align: center; box-shadow: 0 5px 16px #164a7c25; }
.marca-signo span { position: absolute; right: 2px; top: -6px; font-size: 1rem; color: #6fd4ff; }
.marca-nexo strong { font-size: 1.15rem; letter-spacing: 1px; white-space: nowrap; }
.marca-nexo strong > span { display: block; font-size: .68rem; letter-spacing: 2px; margin-top: 4px; font-weight: 500; color: #3d5876; }
.lateral-nueva { width: 100%; min-height: 46px; margin: 10px 0 4px; padding: 12px 14px; text-align: left; font: inherit; font-size: .95rem; font-weight: 600;
  color: #173c65; background: #fff; border: 1px solid #bdcfe4; border-radius: 10px; cursor: pointer; }
.lateral-nueva:hover { background: #f3f9ff; }
.lateral-franja { display: none; }
.lateral-cuerpo { display: grid; gap: 14px; }
.lateral-etiqueta { margin: 4px 8px 0; font-size: .72rem; letter-spacing: 1.5px; color: #5b7591; font-weight: 600; }
.lateral-nav { display: grid; gap: 4px; }
.lateral-apuntes { display: contents; }
.lateral-enlace { display: block; width: 100%; min-height: 40px; padding: 10px 10px; border: 0; border-radius: 8px; background: transparent; color: #3d5876;
  font: inherit; font-size: .92rem; text-align: left; text-decoration: none; cursor: pointer; }
.lateral-enlace:hover { background: #dbe9f8; color: #154c88; }
.lateral-enlace.activo { background: #d5e6fb; color: #154c88; font-weight: 700; }
.lateral-error { margin: 0; padding: 8px 10px; border-radius: 8px; background: #fde8ea; color: #8a1527; font-size: .85rem; }
.tarjeta-recorrido { padding: 14px; border: 1px solid #bedcf2; border-radius: 16px; background: #fff; }
.recorrido-chico { font-size: .7rem; letter-spacing: 1.5px; color: #5b7591; font-weight: 700; }
.tarjeta-recorrido h3 { margin: 6px 0 4px; font-size: 1.05rem; color: #0b3d6e; }
.tarjeta-recorrido p { margin: 0 0 6px; font-size: .85rem; color: #456e8c; }
.recorrido-restantes { color: #0066a7; font-size: 1.05rem; }
.panel-alumno h2 { margin: 0; font-size: .72rem; letter-spacing: .12em; line-height: 1.45; color: #e9f5ff; font-weight: 700; }
.panel-alumno .attention-clock :focus-visible, .panel-alumno .medidor-lateral :focus-visible { outline-color: #8ed9ff; }

.medidor-lateral, .attention-clock, .mi-estudio { padding: 16px 14px; border: 1px solid #224558; border-radius: 19px; background: linear-gradient(150deg, #0a2539, #071822); color: #e9f5ff; box-shadow: 0 8px 22px #0b355514; }
.medidor-cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.medidor-pct { font-size: 1.7rem; font-variant-numeric: tabular-nums; color: var(--sem-b, #53b9ff); transition: color .6s ease; }
.medidor-pista { height: 14px; border-radius: 999px; background: #14384f; border: 1px solid #2c5c78; overflow: hidden; }
.medidor-relleno { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--sem-a, #1b86d4), var(--sem-b, #53b9ff)); transition: width .6s ease, background .3s; }
.medidor-nota { margin: 8px 0 0; font-size: .85rem; font-weight: 600; }
.medidor-como { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #224558; font-size: .78rem; line-height: 1.45; color: #b9d4e8; }
.medidor-como strong { color: #e9f5ff; }

.attention-clock { --attention: #53b9ff; --attention-ink: #061a2a; }
.attention-yellow { --attention: #ffd166; --attention-ink: #322200; }
.attention-red { --attention: #ff8a96; --attention-ink: #3c1017; }
.attention-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.attention-heading h2 { color: #bad3e6; }
.attention-heading > span { font-size: .75rem; font-weight: 700; line-height: 1.35; background: var(--attention); color: var(--attention-ink); border-radius: 20px; padding: 7px 9px; max-width: 120px; text-align: center; }
.attention-dial { position: relative; width: 100%; max-width: 200px; aspect-ratio: 1; margin: 10px auto 0; }
.attention-dial svg { display: block; width: 100%; height: 100%; fill: none; }
.attention-track { stroke: #193b4c; stroke-width: 10; }
.attention-progress { stroke: var(--attention); stroke-width: 10; stroke-linecap: round; transition: stroke 1s; }
.attention-inner { stroke: var(--attention); stroke-opacity: .22; stroke-width: 3; }
.attention-time { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.attention-time > strong { color: var(--attention); font-size: 2.6rem; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -1.5px; }
.attention-time > strong > span + span { font-size: 1.5rem; letter-spacing: 0; }
.attention-time > span { font-size: .75rem; margin-top: 5px; }
.attention-time > small { font-size: .75rem; color: #cfe3f1; margin-top: 4px; }
.attention-clock.en-pausa .attention-time strong { opacity: .6; }
.attention-message { font-size: .8rem; line-height: 1.55; min-height: 40px; margin: 8px 1px 12px; color: #d4e5f1; }
.attention-close { width: 100%; min-height: 44px; border: 1px solid #e0485c; border-radius: 9px; background: #c0182f; color: #fff; padding: 10px 5px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.attention-close:hover { background: #a3112a; }
.attention-close.reanudar { background: #1f7a4d; border-color: #43b27a; }
.attention-close.reanudar:hover { background: #17633d; }
.attention-legend { display: grid; gap: 8px; border-top: 1px solid #254454; margin-top: 14px; padding-top: 12px; }
.attention-legend > span { display: flex; gap: 8px; font-size: .75rem; line-height: 1.5; align-items: flex-start; color: #deedf6; }
.attention-legend i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; margin-top: 5px; }
.dot-blue { background: #53b9ff; } .dot-yellow { background: #ffd166; } .dot-red { background: #ff8a96; }
.attention-note { font-size: .75rem; line-height: 1.55; color: #cfe3f1; margin: 12px 0 0; }

.mi-estudio h2 { margin-bottom: 10px; }
.mi-estudio-datos { margin: 0; display: grid; gap: 8px; }
.mi-estudio-datos div { display: grid; gap: 1px; }
.mi-estudio-datos dt { font-size: .75rem; color: #b9d4e8; }
.mi-estudio-datos dd { margin: 0; font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.mi-estudio-datos dd span { color: #8ed9ff; font-size: 1.1rem; }
.mi-estudio-unidades { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid #254454; display: grid; gap: 10px; }
.mi-estudio-unidades:empty { display: none; }
.mi-estudio-unidades li { display: grid; gap: 4px; font-size: .85rem; }
.mi-estudio-unidades li > span:first-child { font-weight: 700; }
.unidad-cuenta { font-size: .78rem; color: #b9d4e8; }
.unidad-barra { height: 8px; border-radius: 999px; background: #14384f; overflow: hidden; }
.unidad-barra > span { display: block; height: 100%; background: linear-gradient(90deg, #1f7a4d, #43b27a); border-radius: 999px; }
.mi-estudio-nota { margin: 12px 0 0; font-size: .75rem; line-height: 1.5; color: #a8c1d2; }

/* Pantallas angostas: la barra va arriba, con la marca, y lo demás plegado en una franja con sesiones, porcentaje y tiempo. */
@media (max-width: 1000px) {
  body.con-app { display: block; }
  body.con-app .cabecera h1 { display: none; }
  .panel-alumno { position: static; height: auto; overflow: visible; padding: 12px 16px; border-right: 0; border-bottom: 1px solid #cfe0f0; gap: 10px;
    grid-template-columns: 1fr auto; align-items: center; }
  .lateral-nueva { width: auto; margin: 0; }
  .marca-signo { flex: 0 0 40px; width: 40px; height: 44px; line-height: 44px; font-size: 1.7rem; }
  .marca-nexo strong > span { display: none; }
  .lateral-nueva { font-size: .9rem; padding: 10px 12px; }
  .lateral-franja { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; width: 100%; min-height: 48px; padding: 8px 14px; border: 1px solid #224558; border-radius: 14px; background: linear-gradient(150deg, #0a2539, #071822); color: #e9f5ff; font: inherit; font-size: .9rem; cursor: pointer; text-align: left; }
  .franja-dato { font-weight: 700; font-variant-numeric: tabular-nums; }
  .franja-dato[data-franja="sesiones"] { color: #e9f5ff; }
  .franja-dato[data-franja="queda"] { color: var(--sem-b, #8ed9ff); }
  .franja-dato[data-franja="reloj"] { color: #53b9ff; }
  .panel-alumno[data-tramo="attention-yellow"] .franja-dato[data-franja="reloj"] { color: #ffd166; }
  .panel-alumno[data-tramo="attention-red"] .franja-dato[data-franja="reloj"] { color: #ff8a96; }
  .franja-dato[data-franja="reloj"]::before { content: "⏱ "; }
  .franja-ver { margin-left: auto; text-decoration: underline; font-size: .85rem; }
  .lateral-cuerpo { display: none; grid-column: 1 / -1; }
  .panel-alumno.abierto .lateral-cuerpo { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
  .panel-alumno.abierto .lateral-etiqueta, .panel-alumno.abierto .lateral-nav, .panel-alumno.abierto .lateral-error { grid-column: 1 / -1; }
  body.con-app > main.espacio { padding: 18px 16px; }
}

/* ───────── Inicio: portada, guía y «Mis sesiones» (diseño de Promptina) ───────── */
main.espacio { max-width: 1100px; padding: 24px 40px; }
.antetitulo { margin: 0; font-size: .75rem; letter-spacing: 2px; font-weight: 600; color: #3f6d96; }
.portada { display: grid; grid-template-columns: 1.12fr 1fr; gap: 20px; position: relative; overflow: hidden; margin: 8px 0 28px; padding: 40px 34px 46px;
  border: 1px solid #1a5581; border-radius: 24px; color: #fff; box-shadow: 0 14px 35px #0e3e6818;
  background: radial-gradient(ellipse at 3% 10%, #174c7b 0%, transparent 60%), linear-gradient(120deg, #092a4b, #0c365f 60%, #19578a); }
.portada-texto { align-self: center; }
.portada .antetitulo { color: #96d7ff; }
.portada-marca { font: 800 clamp(1.6rem, 2.8vw, 2.4rem)/1.1 "Manrope", "DM Sans", sans-serif; letter-spacing: 2px; margin: 22px 0 18px; }
.portada-marca > span { display: inline-block; margin-left: 12px; font-size: 1.75rem; color: #6fd4ff; }
.portada h2 { margin: 0 0 16px; color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.25; font-weight: 600; }
.portada h2 em { font-style: normal; color: #6fd4ff; }
.portada-texto > p:not(.antetitulo) { margin: 0; max-width: 440px; font-size: 1.06rem; line-height: 1.75; color: #d4e7f6; }
.portada-etiquetas { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.portada-etiquetas span { font-size: .78rem; padding: 7px 10px; border: 1px solid #80c1ed44; border-radius: 20px; color: #c5eaff; background: #2671a81c; }
.portada-boton { display: inline-flex; align-items: center; min-height: 46px; padding: 12px 16px; border-radius: 9px; background: #eef9ff; color: #114473;
  font-weight: 600; text-decoration: none; box-shadow: 0 5px 15px #031f3a22; }
.portada-boton:hover { background: #d3edff; }
.portada-boton span { margin-left: 15px; color: #1976b8; }
.portada-imagen { position: relative; align-self: center; min-width: 0; margin: 4px 0 17px; }
.marco-imagen { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 19px 70px 19px 19px; border: 1px solid #71baec55;
  box-shadow: 0 12px 35px #011d3d55; background: #102e4c; }
.marco-imagen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rotulo-imagen { position: absolute; left: 15px; right: 15px; bottom: -22px; display: flex; align-items: center; gap: 12px; padding: 14px 15px;
  background: #ffffffed; color: #123e68; border: 1px solid #c7e6fa; border-radius: 12px; box-shadow: 0 8px 23px #031d3922; font-size: .95rem; font-weight: 600; }
.rotulo-imagen small { display: block; margin-top: 3px; font-size: .78rem; font-weight: 400; color: #54718b; }
.destello { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 10px; background: #e6f4ff; color: #1976b8; }

.guia-sesion { margin: 0 0 26px; padding: 28px 30px; border: 1px solid #cfe2f3; border-radius: 22px; background: #fff; }
.guia-sesion h2 { margin: 8px 0 12px; font-size: 1.55rem; color: #06456c; }
.guia-intro { margin: 0 0 18px; line-height: 1.65; }
.guia-pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.guia-pasos article { padding: 16px; border: 1px solid #cfe2f3; border-radius: 14px; background: #f3f9ff; }
.guia-pasos h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1.02rem; color: #0b3d6e; }
.guia-pasos h3 span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #1976b8; color: #fff; font-size: .85rem; }
.guia-pasos p { margin: 0 0 8px; font-size: .95rem; line-height: 1.55; }

.panel-sesiones { margin: 0 0 26px; padding: 30px; border: 1px solid #acd2f0; border-radius: 22px; background: linear-gradient(120deg, #e6f4ff, #fff); scroll-margin-top: 24px; }
.panel-sesiones h2 { margin: 8px 0 12px; font-size: 1.7rem; color: #06456c; }
.panel-sesiones > p { font-size: 1.06rem; line-height: 1.6; }
.contador-sesiones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.contador-sesiones > div { padding: 16px; text-align: center; background: #fff; border: 1px solid #bedcf2; border-radius: 16px; }
.contador-sesiones strong { display: block; color: #0066a7; font-size: 1.95rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.contador-sesiones span { display: block; margin-top: 7px; font-size: .95rem; color: #456e8c; }
.aviso-sesiones { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: #fff4d6; color: #5c4200; font-weight: 600; }
.acciones-sesion { margin: 0 0 12px; }
.iniciar-sesion { display: inline-block; padding: 18px 34px; border: 0; border-radius: 13px; background: #006bae; color: #fff; font: inherit; font-size: 1.3rem;
  font-weight: 700; text-decoration: none; box-shadow: 0 8px 20px #006baa25; cursor: pointer; }
.iniciar-sesion:hover { background: #00538b; }
.panel-sesiones small { display: block; font-size: .88rem; color: #456e8c; }
.enlaces-fijos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

dialog.eleccion { max-width: 620px; width: calc(100% - 32px); padding: 24px; border: 0; border-radius: 18px; color: #12385d; box-shadow: 0 20px 60px #031d3955; }
dialog.eleccion::backdrop { background: #0a253999; }
dialog.eleccion h2 { margin: 0 0 6px; font-size: 1.45rem; }
.eleccion-intro { margin: 0 0 16px; color: #456e8c; }
.eleccion-opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eleccion-op { display: grid; align-content: start; gap: 6px; padding: 16px; text-align: left; font: inherit; color: #12385d; background: #f3f9ff;
  border: 1px solid #9fc7ea; border-radius: 14px; cursor: pointer; }
.eleccion-op:hover:not(:disabled) { background: #e2f1ff; border-color: #1976b8; }
.eleccion-op:disabled { opacity: .6; cursor: default; }
.el-etq { font-size: 1.1rem; font-weight: 700; color: #0b3d6e; }
.eleccion-op strong { font-size: .92rem; }
.el-det { font-size: .88rem; line-height: 1.45; color: #456e8c; }
.eleccion-otra { margin: 14px 0; font-size: .92rem; }
@media (max-width: 760px) {
  .portada { grid-template-columns: 1fr; padding: 27px 23px 40px; border-radius: 18px; }
  .portada-imagen { width: min(100%, 340px); justify-self: center; }
  .eleccion-opciones { grid-template-columns: 1fr; }
  .contador-sesiones { gap: 7px; }
  .contador-sesiones > div { padding: 12px 6px; }
  .iniciar-sesion { width: 100%; text-align: center; }
  .guia-sesion, .panel-sesiones { padding: 20px; }
}
