/* EvalúaTe — sistema visual propio.
   Pino (calma clínica) + lima (acierto, avance) + coral (atención). Papel cálido, nada de azul hospital. */
:root {
  --pino: #0e4a45; --pino-2: #0a3531; --pino-3: #1c6a62; --lima: #d6f26a; --lima-2: #eef9c2;
  --coral: #f0674a; --coral-2: #fde4dc; --ambar: #f2b441; --ambar-2: #fdf0cf;
  --crema: #f7f4ec; --papel: #fffdf8; --tinta: #12211f; --gris: #5b6b68; --gris-2: #8b9895; --linea: #e3ded1; --cielo: #d7ebe6;
  --r: 18px; --r-s: 12px; --sombra: 0 1px 2px rgba(18, 33, 31, .05), 0 10px 30px -14px rgba(18, 33, 31, .22);
  --display: 'Bricolage Grotesque', system-ui, sans-serif; --texto: 'Instrument Sans', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--crema); color: var(--tinta); font: 16px/1.55 var(--texto); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ceja { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pino-3); }
.suave { color: var(--gris); }
.oculto { display: none !important; }

/* Marca */
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px/1 var(--display); letter-spacing: -.03em; color: var(--pino); }
.marca svg { width: 34px; height: 34px; flex: none; }
.marca b { color: var(--coral); font-weight: 700; }
.marca.clara { color: #fff; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--pino); color: #fff; font-weight: 600; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--pino-2); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.lima { background: var(--lima); color: var(--pino-2); }
.btn.lima:hover { background: #c8e84f; }
.btn.coral { background: var(--coral); }
.btn.coral:hover { background: #dd5538; }
.btn.linea { background: transparent; color: var(--pino); box-shadow: inset 0 0 0 1.5px var(--pino); }
.btn.linea:hover { background: var(--cielo); }
.btn.fantasma { background: transparent; color: var(--gris); min-height: 40px; padding: 0 14px; }
.btn.fantasma:hover { background: rgba(18, 33, 31, .06); color: var(--tinta); }
.btn.chico { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* Tarjetas y piezas */
.tarjeta { background: var(--papel); border: 1px solid var(--linea); border-radius: var(--r); padding: 22px; box-shadow: var(--sombra); }
.tarjeta.pino { background: var(--pino); border-color: var(--pino); color: #fff; }
.tarjeta.pino .suave { color: #b9d6d0; }
.tarjeta.pino .ceja { color: var(--lima); }
.fila { display: flex; align-items: center; gap: 12px; }
.fila.entre { justify-content: space-between; }
.pila { display: grid; gap: 14px; }
.rejilla { display: grid; gap: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font: 600 12.5px/1.2 var(--texto); background: var(--cielo); color: var(--pino-2); white-space: nowrap; }
.chip.listo { background: var(--lima-2); color: #3d5200; }
.chip.en-camino { background: var(--ambar-2); color: #7a5200; }
.chip.en-riesgo { background: var(--coral-2); color: #a12e14; }
.chip.sin-datos, .chip.gris { background: #ece8dd; color: var(--gris); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.barra { height: 10px; border-radius: 999px; background: #ebe6d9; overflow: hidden; position: relative; }
.barra > span { display: block; height: 100%; border-radius: inherit; background: var(--pino-3); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.barra.meta::after { content: ''; position: absolute; left: 70%; top: -3px; bottom: -3px; width: 2px; background: var(--tinta); opacity: .55; }
.campo { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.campo input, .campo select, .campo textarea { min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--linea); border-radius: var(--r-s); background: #fff; font-weight: 400; font-size: 16px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 0; border-color: var(--pino-3); box-shadow: 0 0 0 4px var(--cielo); }
.aviso { padding: 12px 14px; border-radius: var(--r-s); background: var(--ambar-2); color: #6b4700; font-size: 14.5px; }
.aviso.mal { background: var(--coral-2); color: #8f2710; }
.aviso.bien { background: var(--lima-2); color: #3d5200; }
.aviso.info { background: var(--cielo); color: var(--pino-2); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th { text-align: left; font: 600 11.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gris); padding: 10px 12px; border-bottom: 1.5px solid var(--linea); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--linea); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.tabla { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cargando { display: grid; place-items: center; min-height: 40vh; color: var(--gris); }
.pulso { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--cielo); border-top-color: var(--pino); animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes sube { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.entra { animation: sube .35s both; }

/* ───── Aplicación (estudiante y coordinación) ───── */
.app { min-height: 100dvh; display: grid; grid-template-columns: 248px 1fr; }
.riel { background: var(--pino); color: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100dvh; }
.riel .marca { margin: 0 8px 22px; }
.riel nav { display: grid; gap: 4px; }
.riel nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: transparent; color: #c9dfda; font-weight: 600; text-align: left; }
.riel nav button svg { width: 22px; height: 22px; flex: none; }
.riel nav button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.riel nav button.activo { background: var(--lima); color: var(--pino-2); }
.riel .pie { margin-top: auto; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-size: 13.5px; }
.riel .pie b { display: block; font-size: 15px; }
.riel .pie button { margin-top: 8px; background: none; border: 0; color: var(--lima); padding: 0; font-weight: 600; font-size: 13.5px; }
.lienzo { padding: 30px clamp(18px, 4vw, 48px) 60px; max-width: 1180px; width: 100%; }
.cabeza { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.cabeza h1 { font-size: clamp(28px, 3.6vw, 40px); }
.cabeza p { margin-top: 6px; color: var(--gris); max-width: 62ch; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .riel { position: fixed; inset: auto 0 0 0; height: auto; flex-direction: row; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); z-index: 30; border-radius: 20px 20px 0 0; }
  .riel .marca, .riel .pie { display: none; }
  .riel nav { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; gap: 2px; }
  .riel nav button { flex-direction: column; gap: 4px; padding: 8px 2px; font-size: 11px; justify-content: center; text-align: center; border-radius: 14px; }
  .lienzo { padding: 18px 16px 110px; }
  .barra-movil { display: flex !important; }
}
.barra-movil { display: none; justify-content: space-between; align-items: center; margin-bottom: 14px; }

/* Inicio del estudiante */
.hoy { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
.medidor { display: grid; grid-template-columns: 148px 1fr; gap: 20px; align-items: center; }
.anillo { position: relative; width: 148px; height: 148px; }
.anillo svg { transform: rotate(-90deg); }
.anillo .centro { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.anillo .centro b { font: 700 40px/1 var(--display); letter-spacing: -.04em; }
.anillo .centro span { font-size: 12px; color: #b9d6d0; }
.pasos { counter-reset: paso; }
.paso { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--linea); text-align: left; width: 100%; transition: transform .15s, box-shadow .15s, border-color .15s; }
.paso:hover { transform: translateY(-2px); box-shadow: var(--sombra); border-color: var(--pino-3); }
.paso .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--cielo); color: var(--pino); }
.paso .ico svg { width: 24px; height: 24px; }
.paso b { display: block; font: 700 17px/1.2 var(--display); }
.paso small { color: var(--gris); font-size: 13.5px; }
.paso .ir { color: var(--pino-3); }
.comp { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.comp .barra { grid-column: 1 / -1; }
.comp small { color: var(--gris); }
@media (max-width: 860px) { .hoy { grid-template-columns: 1fr; } .medidor { grid-template-columns: 116px 1fr; } .anillo { width: 116px; height: 116px; } .anillo .centro b { font-size: 31px; } }

/* Pregunta */
.filtros { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.filtros button { flex: none; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--linea); background: #fff; font-weight: 600; font-size: 14px; color: var(--gris); }
.filtros button.activo { background: var(--pino); border-color: var(--pino); color: #fff; }
.pregunta { max-width: 760px; }
.pregunta .enunciado { font: 500 clamp(18px, 2.3vw, 21px)/1.5 var(--texto); margin: 12px 0 20px; }
.opciones { display: grid; gap: 10px; }
.opcion { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; width: 100%; padding: 15px 16px; border-radius: 16px; border: 1.5px solid var(--linea); background: #fff; text-align: left; transition: border-color .12s, background .12s, transform .12s; }
.opcion:hover:not(:disabled) { border-color: var(--pino-3); transform: translateX(2px); }
.opcion .letra { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--crema); font: 700 15px/1 var(--mono); color: var(--pino); }
.opcion.elegida { border-color: var(--pino); background: var(--cielo); }
.opcion.elegida .letra { background: var(--pino); color: #fff; }
.opcion.bien { border-color: #9ab82b; background: var(--lima-2); }
.opcion.bien .letra { background: #7f9c12; color: #fff; }
.opcion.mal { border-color: var(--coral); background: var(--coral-2); }
.opcion.mal .letra { background: var(--coral); color: #fff; }
.opcion:disabled { cursor: default; color: inherit; }
.opcion .porque { display: block; margin-top: 8px; font-size: 14.5px; color: #3a4a47; }
.clave { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 16px; border-radius: 16px; background: var(--pino); color: #fff; }
.clave svg { width: 26px; height: 26px; color: var(--lima); }
.clave small { display: block; color: #b9d6d0; margin-top: 4px; font-size: 13px; }

/* Simulacro */
.examen { position: fixed; inset: 0; z-index: 60; background: var(--crema); display: grid; grid-template-rows: auto 1fr auto; user-select: none; -webkit-user-select: none; }
.examen header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(14px, 3vw, 28px); background: var(--pino); color: #fff; }
.examen header .reloj { font: 700 22px/1 var(--mono); padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.examen header .reloj.poco { background: var(--coral); }
.examen main { overflow-y: auto; padding: 24px clamp(14px, 4vw, 40px); display: grid; grid-template-columns: 1fr 250px; gap: 28px; align-items: start; position: relative; }
.examen main::before { content: attr(data-marca); position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; font: 700 clamp(26px, 5vw, 54px)/1 var(--display); color: rgba(14, 74, 69, .045); transform: rotate(-18deg); text-align: center; }
.examen footer { display: flex; justify-content: space-between; gap: 10px; padding: 12px clamp(14px, 3vw, 28px) calc(12px + env(safe-area-inset-bottom)); background: var(--papel); border-top: 1px solid var(--linea); }
.mapa { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; position: sticky; top: 0; }
.mapa button { aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--linea); background: #fff; font: 600 13px/1 var(--mono); color: var(--gris); }
.mapa button.hecha { background: var(--pino); border-color: var(--pino); color: #fff; }
.mapa button.duda { background: var(--ambar); border-color: var(--ambar); color: var(--tinta); }
.mapa button.actual { box-shadow: 0 0 0 3px var(--coral); }
@media (max-width: 860px) { .examen main { grid-template-columns: 1fr; } .mapa { grid-template-columns: repeat(10, 1fr); position: static; order: 2; } }
.velo { position: fixed; inset: 0; z-index: 80; background: rgba(10, 53, 49, .72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.velo .tarjeta { max-width: 460px; width: 100%; }

/* Tutora: videollamada */
.llamada { position: fixed; inset: 0; z-index: 60; background: #071f1d; color: #fff; display: grid; grid-template-rows: auto 1fr auto auto; }
.llamada .arriba { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; }
.llamada .arriba .tema { font-size: 13.5px; color: #a9c9c3; max-width: 60ch; }
.llamada .arriba .tema b { display: block; color: #fff; font: 600 15.5px/1.3 var(--display); }
.escena { position: relative; display: grid; place-items: center; overflow: hidden; padding: 8px 16px; }
.escena video { width: min(100%, 880px); max-height: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 26px; background: #0d2c29; }
.retrato { width: min(64vh, 78vw, 420px); aspect-ratio: 1; position: relative; }
.retrato .halo { position: absolute; inset: -7%; border-radius: 50%; background: radial-gradient(circle, rgba(214, 242, 106, .26), transparent 64%); opacity: 0; transition: opacity .3s; }
.retrato.habla .halo { opacity: 1; animation: late 1.5s ease-in-out infinite; }
.retrato.oye .halo { opacity: 1; background: radial-gradient(circle, rgba(240, 103, 74, .25), transparent 64%); }
@keyframes late { 50% { transform: scale(1.06); } }
.retrato .boca { transform-origin: 200px 248px; transform-box: view-box; }
.retrato.habla .boca { animation: habla .32s ease-in-out infinite alternate; }
@keyframes habla { from { transform: scaleY(.35); } to { transform: scaleY(1.25); } }
.retrato .ojos { animation: parpadea 5s infinite; transform-origin: 200px 190px; transform-box: view-box; }
@keyframes parpadea { 0%, 94%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(.08); } }
.estado-voz { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); font: 600 13px/1 var(--texto); display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.estado-voz i { width: 8px; height: 8px; border-radius: 50%; background: var(--lima); }
.estado-voz.oye i { background: var(--coral); animation: late 1s infinite; }
.subtitulo { min-height: 74px; max-height: 26vh; overflow-y: auto; padding: 4px 22px 10px; text-align: center; font-size: clamp(16px, 2.2vw, 19px); line-height: 1.5; max-width: 820px; margin: 0 auto; width: 100%; }
.subtitulo .yo { color: #a9c9c3; font-size: .88em; display: block; margin-bottom: 6px; }
.controles { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 12px 16px calc(18px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
.controles .redondo { width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; transition: background .15s, transform .15s; }
.controles .redondo:hover { background: rgba(255, 255, 255, .2); }
.controles .redondo svg { width: 26px; height: 26px; }
.controles .redondo.activo { background: var(--lima); color: var(--pino-2); }
.controles .redondo.colgar { background: var(--coral); width: 72px; }
.controles form { display: flex; gap: 8px; flex: 1 1 300px; max-width: 520px; }
.controles input { flex: 1; min-height: 52px; border-radius: 999px; border: 0; padding: 0 20px; background: rgba(255, 255, 255, .12); color: #fff; }
.controles input::placeholder { color: #9dbdb7; }
.ruta { display: grid; gap: 4px; }
.ruta .tramo { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; }
.ruta .tramo.hecho { color: var(--gris); }
.ruta .tramo.hoy { background: var(--lima-2); font-weight: 600; }
.ruta .tramo .num { color: var(--pino-3); font-size: 13px; }

/* Coordinación */
.kpis { grid-template-columns: repeat(4, 1fr); }
.kpi b { display: block; font: 700 42px/1 var(--display); letter-spacing: -.04em; margin: 10px 0 4px; }
.kpi small { color: var(--gris); }
.tarjeta.pino .kpi small, .kpi.pino small { color: #b9d6d0; }
.reparto { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: #ebe6d9; }
.reparto span { display: block; }
.dos { grid-template-columns: 1.4fr 1fr; align-items: start; }
.pestanas { display: flex; gap: 4px; border-bottom: 1.5px solid var(--linea); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.pestanas button { border: 0; background: none; padding: 12px 16px; font-weight: 600; color: var(--gris); border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.pestanas button.activo { color: var(--pino); border-color: var(--coral); }
.mini { display: inline-grid; grid-auto-flow: column; gap: 3px; align-items: end; height: 26px; }
.mini i { width: 9px; border-radius: 3px 3px 1px 1px; background: var(--pino-3); min-height: 3px; }
.mini i.bajo { background: var(--coral); }
.mini i.nulo { background: #e0dbcd; }
details.item { border: 1px solid var(--linea); border-radius: 14px; background: #fff; }
details.item summary { list-style: none; cursor: pointer; padding: 14px 16px; display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; }
details.item summary::-webkit-details-marker { display: none; }
details.item .dentro { padding: 0 16px 16px; display: grid; gap: 10px; font-size: 14.5px; }
details.item ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
details.item li.ok { font-weight: 600; color: #4d6200; }
@media (max-width: 860px) { .kpis { grid-template-columns: 1fr 1fr; } .dos { grid-template-columns: 1fr; } .kpi b { font-size: 34px; } details.item summary { grid-template-columns: 52px 1fr; } }

/* Entrar */
.acceso { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 1fr; }
.acceso .lado { background: var(--pino); color: #fff; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.acceso .lado h1 { font-size: clamp(34px, 4.4vw, 56px); }
.acceso .lado h1 em { font-style: normal; color: var(--lima); }
.acceso .forma { padding: clamp(28px, 5vw, 64px); display: grid; align-content: center; }
.acceso .forma form { max-width: 400px; width: 100%; margin: 0 auto; }
.perfiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perfiles button { padding: 14px; border-radius: 14px; border: 1.5px solid var(--linea); background: #fff; text-align: left; font-weight: 600; }
.perfiles button small { display: block; font-weight: 400; color: var(--gris); margin-top: 2px; }
.perfiles button.activo { border-color: var(--pino); background: var(--cielo); }
@media (max-width: 860px) { .acceso { grid-template-columns: 1fr; } .acceso .lado { gap: 24px; } }

/* ───── Pizarra de la tutora ───── */
.llamada { grid-template-rows: auto minmax(0, 1fr) auto auto; }
.escena { grid-template-columns: 1fr; gap: 16px; align-items: stretch; }
.escena.con-pizarra { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); place-items: stretch; }
.persona { position: relative; display: grid; place-items: center; min-height: 0; min-width: 0; }
.persona video { max-height: 100%; }
.escena.con-pizarra .retrato { width: min(46vh, 34vw, 340px); }
.pizarra { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; min-width: 0; animation: sube .4s both; }
.pz-marco { background: #fdfdfb; border: 7px solid #c9cdd1; border-bottom-width: 4px; border-radius: 14px 14px 4px 4px; box-shadow: inset 0 0 0 1px #e7e9ea, 0 18px 40px -22px #000; overflow-y: auto; padding: clamp(12px, 2vw, 22px); background-image: radial-gradient(rgba(29, 78, 216, .035) 1px, transparent 1px); background-size: 22px 22px; }
.pz-bandeja { height: 34px; background: linear-gradient(#d4d7da, #b3b8bc); border-radius: 0 0 8px 8px; display: flex; align-items: center; gap: 7px; padding: 0 12px; position: relative; }
.pz-bandeja i { width: 34px; height: 8px; border-radius: 4px; }
.pz-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #2b3336; font-size: 12.5px; font-weight: 700; }
.pz-nav button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(18, 33, 31, .78); color: #fff; font-size: 17px; line-height: 1; }
.pz-nav button:disabled { opacity: .3; }
.pz-hoja { font-family: 'Caveat', 'Patrick Hand', 'Comic Sans MS', cursive; color: #1f2937; display: grid; gap: clamp(10px, 1.6vw, 18px); font-size: clamp(21px, 2.1vw, 28px); line-height: 1.15; }
.pz-titulo { font: 700 clamp(26px, 2.8vw, 36px)/1.05 'Caveat', cursive; color: #1f2937; letter-spacing: 0; width: fit-content; background: linear-gradient(transparent 62%, rgba(250, 204, 21, .55) 62%); padding: 0 6px; transform: rotate(-1.2deg); }
.pz-bloque { display: grid; gap: 8px; }
.pz-rotulo { color: #15803d; font-size: .86em; text-decoration: underline wavy rgba(21, 128, 61, .5); text-underline-offset: 5px; }
.pz-expr { display: flex; flex-wrap: wrap; align-items: center; gap: .1em .38em; font-size: 1.14em; font-weight: 700; animation: escribe .7s both; }
.pz-expr + .pz-expr { animation-delay: .7s; padding-left: .2em; }
.pz-op { font-size: 1.15em; }
.pz-frac { display: inline-grid; justify-items: center; text-align: center; vertical-align: middle; }
.pz-num, .pz-den { padding: 0 .3em; }
.pz-raya { width: 100%; height: 3px; border-radius: 3px; background: currentColor; transform: rotate(-.6deg); margin: 1px 0 2px; }
.pz-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pz-pasos li { display: grid; grid-template-columns: 1.5em 1fr; gap: .45em; align-items: start; animation: escribe .5s both; animation-delay: var(--d); }
.pz-n { width: 1.4em; height: 1.4em; border-radius: 50%; border: 2.5px solid #dc2626; color: #dc2626; display: grid; place-items: center; font-weight: 700; font-size: .85em; transform: rotate(-4deg); }
.pz-cols { display: grid; gap: 12px; }
.pz-col { border: 2.5px solid var(--tinta); border-radius: 14px 10px 16px 9px; padding: 8px 12px; color: var(--tinta); animation: escribe .5s both; }
.pz-col b { display: block; font-size: 1.05em; border-bottom: 2px dashed var(--tinta); margin-bottom: 5px; }
.pz-col ul { margin: 0; padding-left: 1em; color: #1f2937; font-size: .9em; }
.pz-idea { display: grid; grid-template-columns: auto 1fr; gap: .4em; color: #7c2d12; background: rgba(250, 204, 21, .28); border-radius: 10px 14px 9px 16px; padding: 6px 12px; transform: rotate(.5deg); animation: escribe .5s both .5s; }
.pz-estrella { color: #ea580c; }
.pz-svg { width: 100%; height: auto; max-height: 44vh; font-family: 'Caveat', cursive; }
.pz-svg path { stroke-linecap: round; stroke-linejoin: round; }
.pz-svg path:not([fill]) { fill: none; }
.pz-trazo { stroke-dasharray: 900; stroke-dashoffset: 900; animation: traza 1.1s ease-out forwards; }
.pz-trazo[stroke-dasharray] { animation: aparece .6s both .4s; stroke-dashoffset: 0; }
.pz-gota { stroke: none !important; animation: gotea 1.3s ease-in infinite; }
.pz-aparece { animation: aparece .5s both; animation-delay: var(--d, .3s); }
@keyframes traza { to { stroke-dashoffset: 0; } }
@keyframes aparece { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes escribe { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes gotea { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(26px); opacity: 1; } 100% { transform: translateY(30px); opacity: 0; } }
.aviso-llamada { margin: 0 auto 6px; width: fit-content; max-width: calc(100% - 32px); padding: 7px 14px; border-radius: 999px; background: var(--ambar); color: var(--tinta); font: 600 13.5px/1.3 var(--texto); text-align: center; }
.fin-llamada { grid-row: 1 / -1; display: grid; place-items: start center; padding: 24px 16px; overflow-y: auto; }
.fin-llamada > .tarjeta { max-width: 760px; width: 100%; }
.pz-galeria { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.pz-galeria .pz-hoja { background: #fdfdfb; border: 3px solid #d5d8db; border-radius: 12px; padding: 14px; font-size: 20px; }
.pz-galeria .pz-titulo { font-size: 25px; }
.pz-galeria * { animation: none !important; stroke-dashoffset: 0 !important; }
/* En modo voz la pizarra es la protagonista; la tutora sigue presente, en pequeño. */
.escena.con-pizarra.modo-voz { grid-template-columns: minmax(150px, .26fr) minmax(0, 1fr); }
.escena.con-pizarra.modo-voz .retrato { width: min(100%, 220px); }
.escena.con-pizarra.modo-voz .persona { align-content: start; padding-top: 44px; }
@media (max-width: 860px) {
  .escena.con-pizarra.modo-voz { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .escena.con-pizarra.modo-voz .persona { padding-top: 0; justify-items: start; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
  .escena.con-pizarra.modo-voz .retrato { width: 74px; }
  .escena.con-pizarra.modo-voz .estado-voz { position: static; transform: none; width: fit-content; }
}
@media (max-width: 860px) {
  .escena.con-pizarra { grid-template-columns: 1fr; grid-template-rows: minmax(0, .42fr) minmax(0, .58fr); }
  .escena.con-pizarra .retrato { width: min(24vh, 46vw); }
  .escena.con-pizarra .persona video { max-height: 26vh; width: auto; aspect-ratio: 4 / 3; }
  .escena.con-pizarra + div .subtitulo { max-height: 4.6em; min-height: 0; font-size: 14.5px; }
  .pz-svg { max-height: 34vh; }
}
@media (prefers-reduced-motion: reduce) { .pz-hoja *, .pz-svg * { animation: none !important; stroke-dashoffset: 0 !important; } }

.escena.con-pizarra + div .subtitulo { max-height: 4.7em; min-height: 0; font-size: clamp(14.5px, 1.5vw, 16.5px); }

@media (max-width: 860px) {
  .controles { flex-wrap: nowrap; gap: 8px; padding: 8px 10px calc(12px + env(safe-area-inset-bottom)); }
  .controles .redondo { width: 48px; height: 48px; flex: none; }
  .controles .redondo svg { width: 22px; height: 22px; }
  .controles .redondo.colgar { width: 54px; }
  .controles form { flex: 1 1 0; min-width: 0; max-width: none; }
  .controles input { min-height: 48px; min-width: 0; padding: 0 14px; }
  .escena.con-pizarra + div .subtitulo { max-height: 3.3em; padding: 2px 14px 4px; }
  .escena { padding: 4px 10px; gap: 8px; }
  .llamada .arriba { padding: 10px 14px; }
}

.pizarra, .pz-marco, .pz-hoja { min-width: 0; max-width: 100%; }
.pz-marco { overflow-x: hidden; }
.pz-expr { max-width: 100%; }
