/* Prueba práctica · pantalla del candidato.
   Plus Jakarta Sans, violeta #5A3AF7, profundo #22136A, fondos claros. */

:root {
  --violeta: #5A3AF7;
  --violeta-hover: #4A2BE3;
  --violeta-prof: #22136A;
  --violeta-suave: #989AFF;
  --violeta-tinte: #F1EEFF;
  --violeta-borde: #CBC1FF;
  --cyan: #30C2D8;
  --verde: #0A8F43;
  --verde-tinte: #EAF8EF;
  --ambar: #B84300;
  --ambar-tinte: #FFF4EC;
  --ambar-borde: #F5C9A6;
  --rojo: #C0262D;
  --rojo-tinte: #FDEEEE;
  --tinta: #0C121A;
  --tinta-2: #5E6672;
  --tinta-3: #8A919C;
  --fondo: #F6F9FC;
  --fondo-2: #EEF2F5;
  --borde: #E1E5EB;
  --borde-fuerte: #CDD3DB;
  --tarjeta: #FFFFFF;
  --grad: linear-gradient(135deg, #5A3AF7 0%, #22136A 100%);
  --grad-acento: linear-gradient(90deg, #989AFF 0%, #B675FF 50%, #CE47EB 100%);
  --grad-oscuro: linear-gradient(160deg, #0A0A12 0%, #12103A 55%, #22136A 100%);
  --sombra: 0 1px 2px rgba(12, 18, 26, .04), 0 8px 24px rgba(12, 18, 26, .06);
  --sombra-chica: 0 1px 2px rgba(12, 18, 26, .05);
  --r: 12px;
  --r-lg: 16px;
  --letra: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--letra);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 .7em; }
p:last-child { margin-bottom: 0; }
button { font-family: inherit; }
img { display: block; }
.oculto-visual {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ iconos */
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic--lleno { fill: currentColor; stroke: none; }
.ic--grande { width: 28px; height: 28px; }

/* ------------------------------------------------------------------ carga */
.cargando-app { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.cargando-app__logo { height: 30px; width: auto; }
.cargando-app__texto { color: var(--tinta-2); font-weight: 600; }

/* ------------------------------------------------------------------ botones y campos */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 22px;
  font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer;
  background: var(--violeta); color: #fff;
  transition: background-color .15s, box-shadow .15s, transform .05s;
}
.boton:hover { background: var(--violeta-hover); }
.boton:active { transform: translateY(1px); }
.boton:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(90, 58, 247, .3); }
.boton:disabled, .boton:disabled:hover { background: #C8CDD5; color: #fff; cursor: not-allowed; transform: none; }
.boton--sec { background: #fff; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--borde-fuerte); }
.boton--sec:hover { background: var(--fondo); }
.boton--sec:disabled { background: #fff; color: var(--tinta-3); }
.boton--grande { padding: 14px 30px; font-size: 16px; }
.boton--ancho { width: 100%; }
.boton--grabar { background: #D3343B; }
.boton--grabar:hover { background: #B92A31; }
.enlace {
  background: none; border: 0; padding: 0; color: var(--violeta); font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.enlace:hover { color: var(--violeta-hover); }
.enlace:focus-visible { outline: 2px solid var(--violeta); outline-offset: 2px; border-radius: 4px; }

.campo {
  width: 100%; font: inherit; color: var(--tinta);
  padding: 10px 13px; background: #fff;
  border: 1.5px solid var(--borde-fuerte); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.campo:hover { border-color: #B6BDC8; }
.campo:focus { outline: none; border-color: var(--violeta); box-shadow: 0 0 0 4px rgba(90, 58, 247, .14); }
textarea.campo { min-height: 150px; resize: vertical; line-height: 1.55; }

/* ------------------------------------------------------------------ tarjetas y textos */
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--r-lg); box-shadow: var(--sombra); }
.cejilla { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violeta); }
.bajada { color: var(--tinta-2); }
.nota { font-size: 13px; color: var(--tinta-2); }
.marca-obligatoria { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--violeta-tinte); color: var(--violeta-prof); font-size: 11px; font-weight: 700; letter-spacing: .04em; vertical-align: 1px; }

.recuadro { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--borde); background: var(--fondo); font-size: 14px; }
.recuadro .ic { margin-top: 2px; }
.recuadro--info { background: var(--violeta-tinte); border-color: #DDD5FF; color: var(--violeta-prof); }
.recuadro--ok { background: var(--verde-tinte); border-color: #BFE8CF; color: #0B5E30; }
.recuadro--atencion { background: var(--ambar-tinte); border-color: var(--ambar-borde); color: #7A3200; }
.recuadro--error { background: var(--rojo-tinte); border-color: #F3C3C5; color: #8E1B21; }
.recuadro p { margin: 0 0 .35em; }
.recuadro p:last-child { margin: 0; }
.recuadro strong { font-weight: 700; }

/* ------------------------------------------------------------------ ingreso (y avisos de pantalla completa) */
.ingreso { display: grid; grid-template-columns: minmax(360px, 44%) 1fr; min-height: 100vh; }
.ingreso__marca {
  position: relative; overflow: hidden; background: var(--grad-oscuro); color: #fff;
  padding: 44px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.ingreso__marca::after {
  content: ''; position: absolute; right: -70px; bottom: -60px; width: 360px; height: 300px;
  background: url('../recursos/img/nube.png') no-repeat center / contain; opacity: .07; pointer-events: none;
}
.logo { height: 26px; width: auto; flex: none; align-self: flex-start; }
.barra .logo { align-self: center; height: 24px; }
.logo--blanco { filter: brightness(0) invert(1); }
.ingreso__titulo { font-size: 40px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; max-width: 13em; }
.ingreso__bajada { margin-top: 16px; font-size: 17px; color: rgba(255, 255, 255, .78); max-width: 26em; }
.ingreso__datos { display: grid; gap: 10px; position: relative; z-index: 1; }
.ingreso__dato { display: flex; gap: 10px; align-items: center; color: rgba(255, 255, 255, .82); font-size: 14.5px; }
.ingreso__dato .ic { color: var(--cyan); }
.ingreso__panel { display: flex; align-items: center; justify-content: center; padding: 40px 32px; }
.ingreso__tarjeta { width: min(440px, 100%); padding: 34px 34px 28px; }
.ingreso__tarjeta h2 { font-size: 22px; margin-bottom: 6px; }
.ingreso__form { display: grid; gap: 14px; margin-top: 22px; }
.ingreso__form label { font-weight: 700; font-size: 14.5px; }
.campo--clave {
  font-size: 22px; font-weight: 700; letter-spacing: .14em; text-align: center; text-transform: uppercase;
  padding: 13px 12px; font-variant-numeric: tabular-nums;
}
.campo--clave::placeholder { color: #C3C8D0; letter-spacing: .14em; }
.ingreso__pie { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--borde); }
.ingreso__error { margin-top: 2px; }
.bloqueo__icono { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--violeta-tinte); color: var(--violeta); margin-bottom: 18px; }

/* ------------------------------------------------------------------ barra superior (previa y evaluación) */
.barra {
  position: sticky; top: 0; z-index: 30; height: 64px; flex: none;
  display: flex; align-items: center; gap: 18px; padding: 0 24px;
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--borde);
}
.barra__marca { display: flex; align-items: center; gap: 14px; min-width: 0; }
.barra__sep { width: 1px; height: 22px; background: var(--borde); }
.barra__titulo { font-size: 13.5px; font-weight: 600; color: var(--tinta-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra__centro { flex: 1; display: flex; justify-content: center; min-width: 0; }
.barra__der { display: flex; align-items: center; gap: 14px; }
.pastilla {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: var(--violeta-tinte); color: var(--violeta-prof); font-size: 13px; font-weight: 700;
}

/* ------------------------------------------------------------------ previa */
.previa { display: grid; grid-template-columns: 250px minmax(0, 780px); gap: 36px; justify-content: center; padding: 30px 24px 90px; }
.previa__guia { position: sticky; top: 94px; align-self: start; }
.previa__hola { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.previa__vence { font-size: 13px; color: var(--tinta-2); margin-bottom: 20px; }
.guia { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.guia__item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px;
  background: none; text-align: left; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--tinta);
}
.guia__item:hover { background: var(--fondo-2); }
.guia__marca { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 800; background: var(--fondo-2); color: var(--tinta-2); }
.guia__marca .ic { width: 14px; height: 14px; stroke-width: 3; }
.guia__item--hecho .guia__marca { background: var(--verde); color: #fff; }
.guia__item--alerta .guia__marca { background: #F59E57; color: #fff; }
.guia__estado { display: block; font-size: 12px; font-weight: 500; color: var(--tinta-2); }
.previa__sinreloj { margin-top: 22px; }

.seccion { padding: 28px 32px 30px; margin-bottom: 18px; scroll-margin-top: 86px; }
.seccion__cab { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.seccion__num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; flex: none; }
.seccion h2 { font-size: 21px; }
.seccion h3 { font-size: 15.5px; margin: 18px 0 6px; }
.lista { margin: 0; padding-left: 22px; display: grid; gap: 7px; }
.lista li::marker { color: var(--violeta); font-weight: 700; }
.bloques-resumen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.bloque-resumen { border: 1px solid var(--borde); border-radius: var(--r); padding: 11px 13px; background: var(--fondo); }
.bloque-resumen__n { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violeta); }
.bloque-resumen__t { font-weight: 700; font-size: 14.5px; line-height: 1.3; margin: 2px 0; }
.bloque-resumen__m { font-size: 13px; color: var(--tinta-2); }
.responsable { font-size: 13.5px; color: var(--tinta-2); margin-bottom: 12px; }
.permiso-secciones { display: grid; grid-template-columns: 170px 1fr; gap: 9px 18px; margin: 0 0 18px; font-size: 14px; }
.permiso-secciones dt { font-weight: 700; }
.permiso-secciones dd { margin: 0; color: #2B323C; }
.casillas { display: grid; gap: 10px; }
.casilla {
  position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r);
  border: 1.5px solid var(--borde); cursor: pointer; background: #fff; transition: border-color .15s, background-color .15s;
}
.casilla:hover { border-color: var(--violeta-borde); }
.casilla:has(input:checked) { border-color: var(--violeta); background: var(--violeta-tinte); }
.casilla input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.casilla__marca { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #AEB5C0; flex: none; margin-top: 1px; display: grid; place-items: center; background: #fff; }
.casilla__marca .ic { width: 14px; height: 14px; stroke-width: 3.2; color: #fff; opacity: 0; }
.casilla input:checked + .casilla__marca { background: var(--violeta); border-color: var(--violeta); }
.casilla input:checked + .casilla__marca .ic { opacity: 1; }
.casilla input:focus-visible + .casilla__marca { box-shadow: 0 0 0 4px rgba(90, 58, 247, .25); }
.casilla__texto { font-size: 14.5px; }
.casilla__extra { display: block; font-size: 13px; color: var(--tinta-2); margin-top: 3px; }
.ejemplo { border: 1px solid var(--borde); border-radius: var(--r-lg); padding: 18px 20px; margin-top: 14px; background: var(--fondo); }
.ejemplo__acciones { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.ejemplo__devolucion { margin-top: 12px; }
.micro { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 16px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--fondo); border: 1px solid var(--borde); }
.micro__botones { display: flex; gap: 10px; flex-wrap: wrap; }
.micro__estado { font-weight: 600; font-size: 14px; }
.nivel { height: 8px; border-radius: 999px; background: #E3E7ED; overflow: hidden; margin-top: 8px; }
.nivel__lleno { height: 100%; width: 0; background: var(--grad-acento); transition: width .08s linear; }
.empezar { background: var(--grad-oscuro); color: #fff; border: 0; }
.empezar h2 { color: #fff; }
.empezar p { color: rgba(255, 255, 255, .82); }
.empezar .seccion__num { background: #fff; color: var(--violeta-prof); }
.empezar__fila { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.empezar__falta { font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.empezar .boton:disabled { background: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .6); }
.empezar .recuadro--error { margin-top: 14px; }

/* ------------------------------------------------------------------ evaluación: armazón */
.eval { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.eval .barra { position: relative; }
.eval__cuerpo { flex: 1; min-height: 0; position: relative; }
.avance { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; }
.avance__lleno { height: 100%; width: 0; background: var(--grad-acento); transition: width .9s linear; }

.pasos { display: flex; align-items: center; }
.paso { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--fondo-2); color: var(--tinta-3); flex: none; }
.paso .ic { width: 14px; height: 14px; stroke-width: 3; }
.paso--hecho { background: var(--violeta-prof); color: #fff; }
.paso--actual { background: var(--violeta); color: #fff; box-shadow: 0 0 0 4px rgba(90, 58, 247, .16); }
.pasos__linea { width: 16px; height: 2px; background: var(--borde); margin: 0 4px; flex: none; }
.pasos__linea--hecha { background: var(--violeta-prof); }
.pasos__actual { margin-left: 14px; line-height: 1.2; white-space: nowrap; }
.pasos__actual small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-2); }
.pasos__actual strong { font-size: 14.5px; font-weight: 700; }

.reloj { display: flex; flex-direction: column; align-items: flex-end; padding: 5px 14px 6px; border-radius: 12px; background: var(--violeta-tinte); min-width: 168px; transition: background-color .3s; }
.reloj__etq { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violeta-prof); opacity: .85; white-space: nowrap; }
.reloj__valor { font-size: 26px; font-weight: 800; letter-spacing: -.01em; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--violeta); }
.reloj--poco { background: var(--ambar-tinte); }
.reloj--poco .reloj__valor { color: #C2410C; }
.reloj--poco .reloj__etq { color: #8A3A00; }
.total { font-size: 12.5px; color: var(--tinta-2); text-align: right; line-height: 1.3; white-space: nowrap; }
.total strong { display: block; color: var(--tinta); font-size: 14px; }

.pie {
  height: 62px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 24px;
  background: #fff; border-top: 1px solid var(--borde);
}
.pie__guardado { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--tinta-2); min-width: 220px; }
.punto { width: 9px; height: 9px; border-radius: 50%; background: #B8BEC8; flex: none; }
.punto--ok { background: #19B35A; }
.punto--trabajando { background: var(--violeta); animation: latido 1s ease-in-out infinite; }
.punto--mal { background: #E8762C; }
@keyframes latido { 50% { opacity: .35; } }
.pie__contador { flex: 1; display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--tinta-2); }
.pie__barra { width: 160px; height: 6px; border-radius: 999px; background: var(--fondo-2); overflow: hidden; }
.pie__barra span { display: block; height: 100%; width: 0; background: var(--violeta); border-radius: 999px; transition: width .3s; }

.cinta {
  position: absolute; top: 0; left: 0; right: 0; z-index: 25;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 16px; font-size: 14px; font-weight: 600;
  background: var(--ambar-tinte); color: #7A3200; border-bottom: 1px solid var(--ambar-borde);
}
.cinta .ic { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ evaluación: cuerpo */
.dividido { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); height: 100%; }
.col { overflow-y: auto; padding: 24px 28px 44px; }
.col--material { background: var(--fondo-2); border-right: 1px solid var(--borde); }
.simple { height: 100%; overflow-y: auto; }
.simple__ancho { max-width: 900px; margin: 0 auto; padding: 26px 24px 48px; }
.bloque-cab { margin-bottom: 18px; }
.bloque-cab h1 { font-size: 25px; font-weight: 800; letter-spacing: -.025em; margin: 3px 0 8px; }
.bloque-cab__intro p { color: #3A424D; font-size: 14.5px; margin-bottom: .4em; }
.bloque-cab__meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--tinta-2); }
.bloque-cab__meta .ic { width: 15px; height: 15px; }

.material { padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--sombra-chica); }
.material h3 { font-size: 15px; margin-bottom: 8px; }
.material p { font-size: 14.5px; }
.material .lista { font-size: 14.5px; gap: 6px; }
.material--tabla { padding: 16px 16px 14px; }
.material__nota { font-size: 12.5px; color: var(--tinta-2); margin-top: 8px; }
/* Link a la demo: se ve como un botón chico, abre otra pestaña. */
.material--enlace p + p { margin-top: 8px; }
.enlace-externo {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
  background: var(--violeta-tinte); color: var(--violeta-prof); font-weight: 700; font-size: 14px; text-decoration: none;
}
.enlace-externo::after { content: '↗'; font-weight: 800; }
.enlace-externo:hover { background: var(--violeta); color: #fff; }
.enlace-externo:focus-visible { outline: 2px solid var(--violeta); outline-offset: 2px; }

.tabla-caja { overflow-x: auto; border: 1px solid var(--borde); border-radius: 10px; background: #fff; }
.tabla { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.tabla th {
  background: #F3F5F8; color: var(--tinta-2); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  text-align: left; padding: 8px 10px; vertical-align: bottom; line-height: 1.25; border-bottom: 1px solid var(--borde);
}
.tabla td { padding: 6px 10px; border-top: 1px solid #EDF0F4; white-space: nowrap; }
.tabla tbody tr:first-child td { border-top: 0; }
.tabla tbody tr:nth-child(even) td { background: #FAFBFC; }
.tabla tbody tr:hover td { background: var(--violeta-tinte); }
.tabla .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabla td:first-child { font-weight: 600; }

.consigna { background: #fff; border: 1px solid var(--borde); border-radius: 14px; padding: 16px 20px 18px; margin-bottom: 14px; box-shadow: var(--sombra-chica); transition: border-color .15s, box-shadow .15s; }
.consigna:focus-within { border-color: var(--violeta-borde); box-shadow: 0 0 0 4px rgba(90, 58, 247, .07); }
.consigna__cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; min-height: 22px; }
.consigna__num { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violeta); }
.enunciado { font-size: 15.5px; font-weight: 600; margin: 0 0 12px; line-height: 1.45; }
.ayuda { font-size: 13px; color: var(--tinta-2); margin-top: 8px; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--tinta-3); white-space: nowrap; }
.chip .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.chip--guardado { color: var(--verde); }
.chip--guardando { color: var(--violeta); }
.chip--sinred { color: var(--ambar); }
.chip--error { color: var(--rojo); }

.opciones { display: grid; gap: 8px; }
.opcion {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border: 1.5px solid var(--borde); border-radius: 12px; background: #fff; cursor: pointer;
  transition: border-color .12s, background-color .12s;
}
.opcion:hover { border-color: var(--violeta-borde); }
.opcion:has(input:checked) { border-color: var(--violeta); background: var(--violeta-tinte); }
.opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcion__marca { width: 19px; height: 19px; border-radius: 50%; border: 2px solid #AEB5C0; flex: none; display: grid; place-items: center; background: #fff; }
.opcion__marca::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--violeta); transform: scale(0); transition: transform .12s; }
.opcion input:checked + .opcion__marca { border-color: var(--violeta); }
.opcion input:checked + .opcion__marca::after { transform: scale(1); }
.opcion input:focus-visible + .opcion__marca { box-shadow: 0 0 0 4px rgba(90, 58, 247, .25); }
.opcion--cuadrada .opcion__marca { border-radius: 6px; }
.opcion--cuadrada .opcion__marca::after { border-radius: 2px; width: 10px; height: 10px; }
.opcion__texto { font-size: 14.5px; }
.opcion__letra { font-size: 12px; font-weight: 800; color: var(--tinta-3); width: 14px; flex: none; }

.par { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.par .opcion { align-items: flex-start; min-height: 62px; padding: 12px 14px; }
.par .opcion__marca { margin-top: 1px; }
.consigna--par { padding-top: 12px; padding-bottom: 14px; }

.numero { display: flex; align-items: center; gap: 12px; }
.numero .campo { width: 180px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 9px 13px; }
.numero__unidad { color: var(--tinta-2); font-weight: 600; font-size: 14.5px; }
.numero__aviso { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ambar); }

.contador { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12.5px; color: var(--tinta-2); }
.contador--fuera { color: var(--ambar); }

.mensaje { display: flex; gap: 12px; margin: 2px 0 14px; }
.mensaje__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; flex: none; }
.mensaje__globo { background: var(--fondo-2); border-radius: 4px 16px 16px 16px; padding: 10px 14px 11px; max-width: 100%; }
.mensaje__de { font-weight: 700; font-size: 13.5px; margin-bottom: 2px; }
.mensaje__cuando { color: var(--tinta-2); font-weight: 500; font-size: 12.5px; margin-left: 8px; }
.mensaje__texto { font-size: 14.5px; white-space: pre-wrap; }
.respuesta-etq { display: block; font-size: 13px; font-weight: 700; color: var(--tinta-2); margin-bottom: 6px; }

.material-consigna { margin-bottom: 12px; }
.material-consigna .material { box-shadow: none; background: var(--fondo); }

/* audio */
.audio-zona { margin-top: 14px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--fondo); border: 1px solid var(--borde); }
.audio-zona p { font-size: 14.5px; }
.audio-acciones { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.audio-cuenta { display: flex; align-items: baseline; gap: 10px; }
.audio-cuenta__valor { font-size: 40px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--violeta); line-height: 1; }
.audio-cuenta__de { font-size: 15px; font-weight: 600; color: var(--tinta-2); }
.grabando { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #C0262D; font-size: 14px; }
.grabando::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #D3343B; animation: latido 1s ease-in-out infinite; }
.barra-tiempo { height: 6px; border-radius: 999px; background: #E3E7ED; overflow: hidden; margin-top: 12px; }
.barra-tiempo span { display: block; height: 100%; width: 0; background: var(--violeta); transition: width .25s linear; }
.reproductor { width: 100%; margin-top: 6px; height: 40px; }
.nivel-fila { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--tinta-2); }
.nivel-fila .ic { width: 15px; height: 15px; }
.nivel-fila .nivel { flex: 1; margin-top: 0; }
.ayuda--arriba { margin: -4px 0 10px; }
.aviso-tiempo { margin-bottom: 12px; }

/* velo al cambiar de bloque */
.velo {
  position: absolute; inset: 0; z-index: 20; display: grid; place-items: center;
  background: rgba(246, 249, 252, .82); backdrop-filter: blur(2px);
}
.velo__caja { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--borde); box-shadow: var(--sombra); font-weight: 600; }
.girador { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #DDD6FF; border-top-color: var(--violeta); animation: girar .8s linear infinite; flex: none; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ final */
.final { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; background: var(--fondo); }
.final__tarjeta { width: min(560px, 100%); padding: 40px 44px 36px; text-align: center; }
.final__icono { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--verde-tinte); color: var(--verde); }
.final__icono .ic { width: 30px; height: 30px; stroke-width: 2.6; }
.final h1 { font-size: 28px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.final p { font-size: 16px; color: #3A424D; }
.final__logo { height: 22px; width: auto; margin: 0 auto 28px; align-self: center; }
.final__tarjeta .boton { margin-top: 14px; }

/* ------------------------------------------------------------------ diálogos y avisos */
dialog.modal {
  border: 0; border-radius: 18px; padding: 28px 30px 24px; width: min(500px, calc(100vw - 32px));
  box-shadow: 0 24px 64px rgba(12, 18, 26, .28); color: var(--tinta);
}
dialog.modal::backdrop { background: rgba(10, 10, 18, .48); }
.modal h2 { font-size: 20px; margin-bottom: 12px; }
.modal p { color: #3A424D; }
.modal__acciones { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.avisos { position: fixed; bottom: 76px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.aviso {
  display: flex; align-items: center; gap: 10px; max-width: min(620px, calc(100vw - 32px));
  padding: 11px 18px; border-radius: 12px; background: var(--tinta); color: #fff;
  font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(12, 18, 26, .25);
  animation: entrar .2s ease-out;
}
.aviso .ic { color: var(--cyan); }
@keyframes entrar { from { opacity: 0; transform: translateY(-6px); } }

/* ------------------------------------------------------------------ piezas sueltas */
.previa__intro { margin: 4px 0 22px; }
.previa__titulo { font-size: 30px; font-weight: 800; letter-spacing: -.025em; margin: 4px 0 10px; }
.previa__intro .bajada { font-size: 15.5px; margin-bottom: .45em; }
.previa__registro { margin-top: 16px; }
.previa__registro-nota { margin-top: 12px; }
.micro__pie { margin-top: 8px; }
.material--plano { border: 1px solid var(--borde); border-radius: 12px; background: var(--fondo); padding: 12px 14px; margin-bottom: 0; }
.ejemplo .material--plano { background: #fff; margin: 8px 0 12px; }
.ejemplo .consigna__num { display: block; margin-bottom: 4px; }
.aviso-acceso { margin-bottom: 18px; }
.reemplazo__donde { margin: 16px 0 10px; }
.reemplazo__nota { margin-bottom: 14px; }
.bloqueo__icono--centro { margin: 0 auto 18px; }
.velo__caja--plano { box-shadow: none; border: 0; background: transparent; padding: 2px 0; }
.enunciado--comun { margin: 0 0 12px; font-size: 15px; color: var(--tinta-2); }
.enunciado--alt { margin-top: 14px; }
.chip--error { white-space: normal; text-align: right; max-width: 70%; }
.dividido--par .col:first-child { border-right: 1px solid var(--borde); }
.col--audio { background: var(--fondo-2); }
.eval__contenido { height: 100%; }
.recuadro__ayuda { margin-top: .4em !important; font-weight: 600; }
.material-consigna--abajo { margin: 14px 0 0; }
@media (max-width: 1280px) { .barra__titulo, .barra__sep { display: none; } }

/* Notebooks con zoom de Windows (125 %: unos 1093 px útiles) o pantallas de 1000 px:
   la tabla no puede esconder columnas a los costados. Letra y relleno más chicos, encabezados y
   celdas en dos renglones, y más ancho para la columna del material. */
@media (max-width: 1200px) {
  .dividido:not(.dividido--par) { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .col { padding: 20px 18px 40px; }
  .material--tabla { padding: 12px 10px 10px; }
  .tabla { font-size: 12.5px; }
  .tabla th { padding: 6px 6px; font-size: 10px; letter-spacing: .03em; white-space: normal; }
  .tabla td { padding: 5px 6px; white-space: normal; }
  .tabla td.num { white-space: nowrap; }
}
/* Si igual no entra, el material va arriba, a todo el ancho, y las consignas abajo. */
@media (max-width: 960px) {
  .dividido:not(.dividido--par) { display: block; height: auto; overflow-y: auto; }
  .dividido:not(.dividido--par) .col { overflow: visible; }
  .dividido:not(.dividido--par) .col--material { border-right: 0; border-bottom: 1px solid var(--borde); }
}

/* Bloque 6: cinco preguntas cortas que tienen que entrar en una pantalla, sin desplazarse.
   Cada pregunta en una fila: el enunciado a la izquierda y las opciones en fila a la derecha. */
.simple[data-bloque="b6"] .simple__ancho { max-width: 1060px; padding-top: 20px; padding-bottom: 16px; }
.simple[data-bloque="b6"] .bloque-cab { margin-bottom: 10px; }
.simple[data-bloque="b6"] .bloque-cab h1 { margin-bottom: 4px; }
.simple[data-bloque="b6"] .bloque-cab__intro p { display: inline; margin: 0 .3em 0 0; }
.simple[data-bloque="b6"] .consigna {
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); grid-template-rows: auto auto 1fr;
  column-gap: 18px; align-items: center; padding: 7px 14px; margin-bottom: 6px;
}
.simple[data-bloque="b6"] .consigna__cab { grid-column: 1; grid-row: 1; margin: 0; min-height: 0; }
.simple[data-bloque="b6"] .consigna__num { font-size: 10.5px; }
.simple[data-bloque="b6"] .enunciado { grid-column: 1; grid-row: 2; margin: 0; font-size: 14.5px; line-height: 1.3; }
.simple[data-bloque="b6"] .ayuda { grid-column: 1; grid-row: 3; margin: 1px 0 0; align-self: start; font-size: 12.5px; }
.simple[data-bloque="b6"] .opciones { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-wrap: wrap; gap: 6px; }
.simple[data-bloque="b6"] .opcion { padding: 6px 11px; gap: 7px; border-radius: 999px; }
.simple[data-bloque="b6"] .opcion__texto { font-size: 13.5px; white-space: nowrap; }

/* ------------------------------------------------------------------ pantallas chicas (solo para el cartel de bloqueo) */
@media (max-width: 860px) {
  .ingreso { grid-template-columns: 1fr; }
  .ingreso__marca { padding: 28px 22px 30px; gap: 22px; }
  .ingreso__titulo { font-size: 28px; }
  .ingreso__bajada { font-size: 15.5px; }
  .ingreso__panel { padding: 22px 16px 36px; align-items: flex-start; }
  .ingreso__tarjeta { padding: 26px 22px 22px; }
  .previa { grid-template-columns: 1fr; }
  .previa__guia { position: static; }
}
@media (max-height: 700px) {
  .bloque-cab h1 { font-size: 23px; }
}
