:root { --noche:#0F3D25; --titular:#124A28; --verde:#1E6A3A; --hoja:#2C8A4B; --lima:#8FC85A; --lima-clara:#B8E06A; --menta:#D6F0C8; --sol:#FFD84A; --tinta:#16301F; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--tinta); background: linear-gradient(160deg, var(--lima-clara), var(--lima) 45%, var(--hoja)); }
body.oscuro { color: #fff; background: linear-gradient(160deg, var(--noche), var(--verde) 60%, var(--hoja)); }
main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px 16px 12px; }
section { width: min(100%, 520px); text-align: center; }
[hidden] { display: none !important; }
.simbolos { position: absolute; width: 0; height: 0; }

h1 { margin: 0; font-size: clamp(2.05rem, 9.6vw, 3.4rem); line-height: 1.03; font-weight: 900; color: var(--titular); text-wrap: balance; }
h2 { margin: 0; font-weight: 900; line-height: 1.12; text-wrap: balance; }
.frasco { display: block; width: 100%; }

/* El mismo fondo del iPad: color vivo, granos que caen y cubos flotando. */
.fondo { position: fixed; inset: 0; z-index: -1; opacity: 0; transition: opacity .8s ease; }
.fondo canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#fondo-color { filter: blur(18px); transform: scale(1.12); }
body.claro .fondo { opacity: 1; }
body.claro { color: var(--tinta); }

#cuenta h1 { font-size: clamp(1.4rem, min(9.6vw, 6dvh), 3.4rem); display: flex; flex-wrap: wrap; align-content: center; justify-content: center; column-gap: .24em; padding: 0 2px; line-height: 1.2; }
body:not(.con-colegio) #cuenta h1 { min-height: 4.5em; }
.palabra { display: inline-block; white-space: nowrap; }
/* El margen deja lugar a la g y la y, para que el desenfoque de la entrada no las recorte. */
.letra { display: inline-block; padding: .12em 0 .24em; margin: -.12em 0 -.24em; }
/* Sombra clara: hace resaltar el verde oscuro sobre el fondo y los cubos. */
#titulo:not(.final), .titulo-panel { text-shadow: 0 1px 1px rgb(255 255 255 / .95), 0 0 8px rgb(255 255 255 / .9), 0 2px 20px rgb(255 255 255 / .8); }
.titulo-panel { margin: 0 0 20px; font-size: clamp(1.3rem, min(9.2vw, 5.4dvh), 3.1rem); line-height: 1.12; font-weight: 900; color: var(--titular); }
/* La última frase se agranda y cambia de color, con la misma sombra del letrero del iPad. */
h1.final { color: #fff; }
h1.final .palabra { font-size: 1.14em; line-height: 1.3; text-shadow: 0 .04em 0 var(--titular), 0 .09em 0 var(--titular), 0 .12em .22em rgb(15 61 37 / .55); }

.tira { width: min(50%, 240px); margin: 0 auto 22px; padding: 12px 14px 7px; border-radius: 8px; background: #fff; box-shadow: 0 12px 24px rgb(15 61 37 / .28); }
.ean { position: relative; height: 84px; overflow: hidden; }
.ean svg { display: block; width: 100%; height: 100%; fill: #111; }
.digitos { display: flex; justify-content: space-between; margin: 2px 0 0; padding: 0 1px; font: 700 .72rem/1.1 ui-monospace, Menlo, monospace; letter-spacing: .24em; color: #111; }
.barrido { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #E5352B; box-shadow: 0 0 9px 2px rgb(229 53 43 / .75); animation: cruza 2.8s ease-in-out infinite alternate; }
@keyframes cruza { to { left: calc(100% - 2px); } }

/* El reloj del iPad. */
.reloj { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.reloj div { display: grid; align-content: center; justify-items: center; gap: 3px; aspect-ratio: 1; border-radius: 14%; color: #fff; background: var(--verde); box-shadow: 0 8px 16px rgb(15 61 37 / .35); }
.reloj b { font-size: clamp(1.9rem, 10vw, 3.3rem); line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; }
.reloj span { font-size: clamp(.68rem, 3vw, .95rem); font-weight: 800; }
.fecha { margin: 0; font-weight: 800; font-size: clamp(.84rem, 3.85vw, 1.1rem); line-height: 1.2; text-wrap: balance; }

.vivo { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 5px 13px 5px 10px; border-radius: 999px; font-size: .86rem; font-weight: 800; color: #fff; background: rgb(255 255 255 / .14); }
.vivo::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sol); animation: pulso 1.5s ease-in-out infinite; }
@keyframes pulso { 50% { opacity: .35; transform: scale(.75); } }

/* El mismo visor del monitor: marco vertical, barras guía y láser. */
.visor { position: relative; width: min(72vw, 330px, 46dvh); aspect-ratio: 560 / 660; margin: 16px auto 18px; border: 6px solid #fff; border-radius: 26px; overflow: hidden; background: radial-gradient(circle at 50% 40%, var(--verde), var(--noche)); box-shadow: 0 18px 34px rgb(0 0 0 / .32); }
.marco { position: absolute; top: 10%; bottom: 10%; left: 50%; width: 47.5%; transform: translateX(-50%); box-shadow: 0 0 0 200px rgb(15 61 37 / .5); border-radius: 12px; }
.marco svg { position: absolute; inset: 16% 20%; width: 60%; height: 68%; fill: #fff; animation: respira 2.8s ease-in-out infinite; }
.marco i { position: absolute; width: 26%; height: 16%; border: 5px solid var(--lima-clara); }
.marco i:nth-of-type(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.marco i:nth-of-type(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.marco i:nth-of-type(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.marco i:nth-of-type(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.laser { position: absolute; top: 3%; bottom: 3%; left: 5%; width: 4px; border-radius: 2px; background: #fff; box-shadow: 0 0 16px 3px var(--lima-clara); animation: barre 2.6s ease-in-out infinite alternate; }
@keyframes barre { to { left: calc(95% - 4px); } }
@keyframes respira { 0%, 100% { opacity: .2; } 50% { opacity: .36; } }
.estado { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--menta); }

/* La secuencia del monitor, en el celular. */
.cabecera { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.barra { flex: 1; display: flex; gap: 4px; }
.barra span { flex: 1; height: 5px; border-radius: 3px; overflow: hidden; background: rgb(255 255 255 / .2); }
.barra i { display: block; height: 100%; width: 0; background: var(--sol); }
.fase { min-height: 56dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; animation: entra .6s ease-out both; }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fase h2 { font-size: clamp(1.7rem, 8vw, 2.5rem); }
.nombre { margin: 0; font-size: 1.08rem; font-weight: 700; color: var(--menta); line-height: 1.25; }
.pie { margin: 0; font-size: .86rem; color: var(--menta); line-height: 1.3; }
.marca-ok { width: 128px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.marca-ok circle { stroke: var(--lima-clara); stroke-width: 7; stroke-dasharray: 327; stroke-dashoffset: 327; transform: rotate(-90deg); transform-origin: center; animation: traza .8s ease-out .1s forwards; }
.marca-ok path { stroke: var(--sol); stroke-width: 10; stroke-dasharray: 90; stroke-dashoffset: 90; animation: traza .4s ease-out .75s forwards; }
@keyframes traza { to { stroke-dashoffset: 0; } }
#frasco-directo { height: min(40dvh, 360px); }
.enorme { margin: 0; font-size: clamp(3.8rem, 20vw, 6rem); line-height: .96; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; }
.enorme small { display: block; font-size: 1.5rem; color: var(--sol); margin-top: 4px; }
.enorme.sol { color: var(--sol); }
.iconos { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 8px; min-height: 36dvh; width: 100%; }
.iconos svg { fill: currentColor; animation: cae .55s cubic-bezier(.3, 1.5, .5, 1) both; }
.iconos svg.t-cuchara { color: #fff; }
.iconos svg.t-taza { color: var(--menta); }
.iconos svg.t-dona { color: var(--sol); }
.iconos svg.t-cubo { color: #fff; }
@keyframes cae { from { opacity: 0; transform: translateY(-46px) scale(.6); } to { opacity: 1; transform: none; } }
#d-comparacion { color: var(--sol); }
.medidor { width: 100%; height: 20px; border-radius: 10px; overflow: hidden; background: rgb(255 255 255 / .18); }
.medidor i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--lima-clara), var(--sol)); }
.medidor.claro { height: 12px; background: rgb(30 106 58 / .14); }
.discreto { margin-top: 6px; padding: 8px 16px; font-size: .95rem; color: #fff; background: rgb(255 255 255 / .13); }

/* El ticket sale de una ranura, como si lo imprimiera el stand. */
#resultado .vivo { margin-bottom: 12px; color: var(--tinta); background: rgb(255 255 255 / .72); }
#resultado .vivo::before { background: var(--hoja); }
.ranura { height: 12px; margin: 0 -6px; border-radius: 7px; background: #0A2C1A; box-shadow: inset 0 3px 5px rgb(0 0 0 / .6); position: relative; z-index: 1; }
.salida { clip-path: inset(0 -30px -44px -30px); margin-top: -5px; }
.imprimiendo .ticket { animation: imprime 2.1s cubic-bezier(.2, .7, .25, 1) both; }
.imprimiendo .acciones { animation: entra .5s ease-out 1.8s both; }
@keyframes imprime { from { transform: translateY(-101%); } to { transform: none; } }
.ticket { background: #fff; color: var(--tinta); text-align: left; overflow: hidden; box-shadow: 0 18px 34px rgb(0 0 0 / .32); }
.ticket > * { margin: 0; padding: 0 20px; }
.encabezado { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding-right: 14px; }
.encabezado p, .encabezado h2 { margin: 0; }
#t-figura { flex: none; height: 240px; width: auto; margin-top: 12px; filter: drop-shadow(0 6px 8px rgb(15 61 37 / .3)); }
.imprimiendo #t-figura { animation: asoma .8s cubic-bezier(.3, 1.4, .5, 1) 1.6s both; }
@keyframes asoma { from { opacity: 0; transform: translateY(26px) scale(.86); } to { opacity: 1; transform: none; } }
.marca { padding-top: 18px; color: var(--verde); font-weight: 800; }
.ticket h2 { padding-top: 5px; font-size: 1.24rem; line-height: 1.2; font-weight: 800; }
.cifra { padding-top: 8px; font-size: clamp(2.5rem, 14.2vw, 3.7rem); font-weight: 900; line-height: 1; color: var(--verde); white-space: nowrap; }
.cifra small { display: block; margin-top: 2px; font-size: 1.1rem; color: var(--tinta); font-weight: 800; }
.ticket ul { list-style: none; padding-top: 12px; padding-bottom: 2px; display: grid; gap: 9px; font-weight: 800; line-height: 1.22; }
.ticket li { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: center; }
.ticket li svg { width: 30px; height: 30px; fill: var(--hoja); grid-row: span 2; }
.ticket li small { display: block; font-weight: 500; opacity: .8; }
#t-porcien, .sello, #t-nota { padding-top: 9px; line-height: 1.3; }
#t-bloque-referencia { padding-top: 12px; }
.referencia { margin: 7px 0 0; font-weight: 800; line-height: 1.28; }
.sello { font-weight: 700; }
.fuente { padding-top: 9px; padding-bottom: 13px; font-size: .84rem; color: var(--verde); line-height: 1.3; }
.banda { padding: 11px 20px; background: var(--verde); color: #fff; text-align: center; font-weight: 800; }
.acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
button { font: inherit; font-weight: 800; font-size: 1.04rem; border: 0; border-radius: 999px; padding: 15px 10px; background: var(--sol); color: var(--tinta); cursor: pointer; }
button.secundario { background: rgb(255 255 255 / .92); }
button.discreto { font-size: .95rem; padding: 8px 18px; color: #fff; background: rgb(255 255 255 / .13); }
button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Arriba, el colegio y quién presenta. El logo es un poco más ancho que la frase. */
#evento { padding: max(14px, env(safe-area-inset-top)) 16px 0; text-align: center; }
#enlace-colegio { display: block; width: fit-content; margin: 0 auto; border-radius: 8px; }
#enlace-colegio:focus-visible, .aonnix:focus-visible, .ver:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#logo-colegio { display: block; width: min(74vw, 300px); height: auto; filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 9px rgb(255 255 255 / .85)); }
.quienes { margin: 8px auto 0; max-width: 260px; font-size: 1.14rem; line-height: 1.16; font-weight: 900; color: var(--titular); text-shadow: 0 0 8px rgb(255 255 255 / .75); text-wrap: balance; }
.quienes sup { font-size: .62em; line-height: 0; }
/* Durante la presentación, el colegio se reduce y deja el protagonismo al producto. */
body:not([data-vista="cuenta"]) #evento { padding-top: max(8px, env(safe-area-inset-top)); }
body:not([data-vista="cuenta"]) #enlace-colegio { padding: 4px 8px; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .18); }
body:not([data-vista="cuenta"]) #logo-colegio { width: 118px; filter: none; }
body:not([data-vista="cuenta"]) .quienes { margin-top: 6px; max-width: none; font-size: .86rem; font-weight: 800; }
body[data-vista="espera"] .quienes { color: var(--menta); text-shadow: none; }
body[data-vista="resultado"] #evento, body[data-vista="directo"] .quienes { display: none; }

/* El carrusel entra solo y ocupa la pantalla; al terminar da paso al panel y no vuelve hasta recargar. */
body.con-colegio { --etapa: clamp(220px, calc(100dvh - 215px), 400px); }
body.con-colegio .carrusel { height: var(--etapa); }
.carrusel { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.openday { position: relative; width: min(100%, calc(var(--etapa) * .935)); aspect-ratio: 636 / 680; container-type: inline-size; }
.openday img { display: block; width: 100%; height: auto; filter: drop-shadow(0 5px 9px rgb(15 61 37 / .28)); }
.od { position: absolute; margin: 0; color: var(--titular); font-size: max(9px, 3.5cqw); line-height: 1.16; font-weight: 800; text-align: left; }
.od .palabra { white-space: nowrap; }
.od-derecha { left: 69%; top: 8.5%; width: 30%; }
.od-izquierda { left: 2%; top: 41.2%; width: 30%; text-align: right; }
.od-abajo { left: 0; right: 0; bottom: 0; font-size: max(10px, 4cqw); text-align: center; }

/* Código, contador y fecha comparten el mismo verde. */
.dato { margin-top: 8px; padding: 12px 12px 13px; border-radius: 16px; color: #fff; background: var(--verde); box-shadow: 0 8px 16px rgb(15 61 37 / .35); }
.ver { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; padding: 7px 15px; border-radius: 999px; font-size: .88rem; line-height: 1; font-weight: 800; color: var(--titular); text-decoration: none; background: var(--lima-clara); }
.ver::before { content: ""; border-left: 8px solid var(--titular); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* Firma discreta: una cápsula translúcida, con el nombre en una sola línea. */
footer { display: flex; justify-content: center; padding: 2px 16px max(10px, env(safe-area-inset-bottom)); }
.aonnix { display: flex; flex-direction: column; align-items: center; gap: 5px; max-width: 310px; padding: 8px 18px 9px; border-radius: 13px; color: rgb(255 255 255 / .86); text-align: center; text-wrap: balance; text-decoration: none; font-size: .64rem; line-height: 1.18; font-weight: 600; letter-spacing: .02em; background: rgb(7 5 21 / .62); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); transition: background .15s ease; }
.aonnix:hover { background: rgb(7 5 21 / .74); }
.aonnix img { display: block; width: auto; height: 15px; }

/* El aviso de salud solo acompaña al ticket. */
#aviso { margin: 11px 0 0; font-size: .78rem; line-height: 1.25; font-weight: 700; color: var(--tinta); }
.firma { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 10px 20px; border-top: 1px solid rgb(22 48 31 / .14); }
.firma img { display: block; width: auto; }
#firma-openday { height: 46px; padding: 4px; border-radius: 8px; background: #2D4B74; box-sizing: content-box; }
#firma-colegio { height: 42px; }

/* Con la barra de Safari quedan unos 690 px visibles. */
@media (max-height: 780px) {
  main { padding: 4px 16px 6px; }
  body[data-vista="cuenta"] #evento { padding-top: max(8px, env(safe-area-inset-top)); }
  body[data-vista="cuenta"] #logo-colegio { width: min(66vw, 260px); }
  body[data-vista="cuenta"] .quienes { margin-top: 5px; font-size: 1.04rem; max-width: 235px; }
  body.con-colegio { --etapa: clamp(200px, calc(100dvh - 185px), 380px); }
  .aonnix { padding: 5px 16px 6px; }
}

/* Tabletas y escritorio grandes: se aprovecha el espacio. */
@media (min-width: 760px) and (min-height: 880px) {
  section { width: min(100%, 660px); }
  body[data-vista="cuenta"] #logo-colegio { width: 380px; }
  body[data-vista="cuenta"] .quienes { max-width: 340px; font-size: 1.5rem; }
  body.con-colegio { --etapa: clamp(300px, calc(100dvh - 300px), 620px); }
  .tira { width: min(46%, 300px); }
  .ean { height: 110px; }
  .digitos { font-size: .86rem; }
  .fecha { font-size: 1.25rem; }
  .ver { font-size: 1rem; padding: 9px 18px; }
  .aonnix { font-size: .74rem; max-width: 380px; }
  .aonnix img { height: 18px; }
}

@media (max-height: 700px) and (orientation: portrait) {
  #frasco-directo { height: 33dvh; }
  .enorme { font-size: clamp(2.6rem, 10dvh, 4.4rem); }
}

/* Pantallas bajas en vertical: celulares pequeños con la barra del navegador. */
@media (max-height: 620px) and (orientation: portrait) {
  body[data-vista="cuenta"] #logo-colegio { width: min(52vw, 190px); }
  body[data-vista="cuenta"] .quienes { margin-top: 3px; font-size: .9rem; max-width: 215px; }
  body.con-colegio { --etapa: clamp(170px, calc(100dvh - 168px), 340px); }
  .titulo-panel { margin-bottom: 9px; }
  .tira { margin-bottom: 10px; padding: 6px 12px 4px; }
  .ean { height: 44px; }
  .digitos { font-size: .6rem; }
  .reloj div { aspect-ratio: 1 / .7; border-radius: 12px; }
  .reloj b { font-size: clamp(1.4rem, 7.4vw, 2rem); }
  .dato { margin-top: 6px; padding: 7px 10px 8px; }
  .ver { margin-top: 5px; padding: 5px 12px; font-size: .8rem; }
  .aonnix { padding: 4px 14px 5px; gap: 3px; font-size: .58rem; }
  .aonnix img { height: 12px; }
  footer { padding-bottom: max(5px, env(safe-area-inset-bottom)); }
  /* La secuencia también se compacta. */
  .cabecera { margin-bottom: 6px; }
  .fase { min-height: 0; gap: 6px; }
  #frasco-directo { height: 27dvh; }
  .enorme { font-size: clamp(2.6rem, 9dvh, 3.8rem); }
  .enorme small { font-size: 1.1rem; margin-top: 2px; }
  .iconos { min-height: 0; }
  .fase h2 { font-size: clamp(1.15rem, 5dvh, 1.7rem); }
  .nombre { font-size: .92rem; }
  .discreto, button.discreto { margin-top: 2px; padding: 5px 14px; font-size: .84rem; }
  .estado { font-size: 1rem; }
  .visor { margin: 8px auto 8px; }
}

/* Celulares en horizontal: encabezado en una línea y panel a dos columnas. */
@media (max-height: 500px) and (orientation: landscape) {
  section { width: min(100%, 860px); }
  main { padding: 2px max(16px, env(safe-area-inset-right)) 2px max(16px, env(safe-area-inset-left)); }
  body[data-vista="cuenta"] #evento, body[data-vista="espera"] #evento { display: flex; justify-content: center; align-items: center; gap: 14px; padding-top: 5px; }
  body[data-vista="cuenta"] #enlace-colegio { margin: 0; }
  body[data-vista="cuenta"] #logo-colegio { width: 128px; }
  #enlace-colegio { margin: 0; }
  body[data-vista="cuenta"] .quienes, body[data-vista="espera"] .quienes { margin: 0; max-width: none; font-size: .86rem; }
  body.con-colegio { --etapa: clamp(150px, calc(100dvh - 92px), 400px); }
  #cuenta h1 { font-size: clamp(1.3rem, min(5.2vw, 10dvh), 2.4rem); }
  #panel { display: grid; grid-template-columns: 1fr 1.25fr; grid-template-areas: "titulo reloj" "codigo dato"; column-gap: 18px; row-gap: 6px; align-items: center; }
  .titulo-panel { grid-area: titulo; margin: 0; font-size: clamp(1.05rem, min(3.4vw, 7.4dvh), 1.8rem); }
  .tira { grid-area: codigo; margin: 0 auto; width: min(100%, 210px); padding: 6px 12px 4px; }
  .ean { height: 40px; }
  .digitos { font-size: .6rem; }
  .reloj { grid-area: reloj; }
  .reloj div { aspect-ratio: 1 / .72; border-radius: 12px; }
  .reloj b { font-size: clamp(1.3rem, min(3.8vw, 10dvh), 2.2rem); }
  .dato { grid-area: dato; margin: 0; padding: 7px 10px 8px; }
  .ver { margin-top: 5px; padding: 5px 12px; font-size: .8rem; }
  footer { padding-bottom: max(3px, env(safe-area-inset-bottom)); }
  .aonnix { flex-direction: row; gap: 9px; max-width: none; padding: 4px 14px; font-size: .58rem; }
  .aonnix img { height: 11px; }
  /* Secuencia y ticket: se aprovecha el ancho. */
  .cabecera { margin-bottom: 4px; }
  .fase { min-height: 0; gap: 4px; }
  #f-cantidad:not([hidden]) { display: grid; grid-template-columns: auto auto; justify-content: center; column-gap: 26px; align-items: center; }
  #d-producto { grid-column: 1 / -1; }
  #d-nota { grid-column: 2; }
  #frasco-directo { grid-column: 1; grid-row: 2 / span 2; height: 56dvh; width: 42dvh; }
  .enorme { font-size: clamp(2.2rem, 15dvh, 4rem); }
  .enorme small { font-size: 1.05rem; margin-top: 0; }
  .iconos { min-height: 0; gap: 4px; }
  .iconos svg { width: min(11dvh, 46px); height: min(11dvh, 46px); }
  .fase h2 { font-size: clamp(1rem, 6.4dvh, 1.5rem); }
  .nombre { font-size: .84rem; }
  .pie { font-size: .7rem; }
  .medidor { height: 12px; }
  button.discreto { margin-top: 0; padding: 4px 12px; font-size: .78rem; }
  body[data-vista="directo"] #logo-colegio { width: 88px; }
  .visor { width: auto; height: 50dvh; margin: 6px auto 8px; }
  .estado { font-size: 1rem; }
  body[data-vista="resultado"] #resultado { width: min(100%, 560px); }
}

/* El cierre del obturador, igual que en el monitor. */
#iris { position: fixed; left: 50%; top: 50%; width: 0; height: 0; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; box-shadow: 0 0 0 200vmax var(--noche); z-index: 5; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .marca-ok circle, .marca-ok path { stroke-dashoffset: 0; }
  .laser { left: 50%; }
  .barrido { display: none; }
}
