body { background: linear-gradient(180deg, var(--c2), #fff 40%); min-height: 100vh; }
main { max-width: 560px; margin: 0 auto; padding: 16px 14px 40px; }
.cabecera { text-align: center; padding: 26px 8px 12px; position: relative; }
.cabecera h1 { margin: 0; font-size: 2rem; color: var(--c); letter-spacing: -.5px; }
.cabecera p { margin: .4em 0 0; color: var(--gris); font-size: 1.05rem; }
.destello { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: radial-gradient(circle, #fff 0 20%, var(--c) 21% 100%); box-shadow: 0 6px 24px color-mix(in srgb, var(--c) 40%, transparent); }
.tarjeta { background: #fff; border-radius: 18px; padding: 18px; margin-top: 14px; box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.campo span { display: block; font-weight: 600; margin-bottom: 6px; }
.campo small { color: var(--gris); font-weight: 400; }
.botones { display: grid; gap: 10px; margin-top: 14px; }
.boton { display: flex; align-items: center; justify-content: center; border-radius: 14px; padding: 16px; background: #f1ecf3; font-weight: 600; text-align: center; cursor: pointer; }
.boton.primario { background: var(--c); color: #fff; font-size: 1.1rem; padding: 20px; }
.nota { color: var(--gris); font-size: .88rem; margin: 12px 0 0; }
.resumen { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.barra { height: 10px; background: #eee; border-radius: 99px; overflow: hidden; margin: 10px 0; }
.barra > div { height: 100%; width: 0; background: var(--c); transition: width .3s; }
#lista { list-style: none; margin: 10px 0 0; padding: 0; max-height: 50vh; overflow: auto; }
#lista li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid var(--borde); font-size: .9rem; }
#lista li .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lista li .mini { grid-column: 1 / -1; height: 4px; background: #eee; border-radius: 99px; overflow: hidden; }
#lista li .mini > div { height: 100%; width: 0; background: var(--c); }
#lista li.ok .mini > div { background: var(--ok); }
#lista li.err .e { grid-column: 1 / -1; color: var(--err); font-size: .82rem; }
h2 { font-size: 1rem; margin: 0 0 10px; }
.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.grilla .celda { aspect-ratio: 1; border-radius: 10px; background: #eee center/cover no-repeat; position: relative; }
.grilla .celda.video::after { content: '▶'; position: absolute; right: 6px; bottom: 4px; color: #fff; text-shadow: 0 1px 3px #000; }
.grilla .celda.proc { display: flex; align-items: center; justify-content: center; font-size: .7rem; color: var(--gris); }
footer { text-align: center; color: var(--gris); font-size: .8rem; margin-top: 24px; }
#lista li.reint .e { grid-column: 1 / -1; color: var(--warn); font-size: .82rem; }
.aviso-pend { background: #fdf3e1; color: #6b4a10; }
.aviso-pend ul { margin: 8px 0; padding-left: 20px; font-size: .9rem; }
.aviso-pend p { margin: 8px 0; font-size: .9rem; }
#galMas { width: 100%; margin-top: 10px; }
.grilla .celda { cursor: pointer; }
.visor { position: fixed; inset: 0; background: #000; z-index: 50; display: flex; flex-direction: column; touch-action: pan-y; }
.visor-medio { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.visor-medio img, .visor-medio video { max-width: 100%; max-height: 100%; object-fit: contain; }
.visor-pie { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); color: #fff; }
.visor-btn { background: var(--c); color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 12px; font-weight: 600; }
.visor-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; background: rgba(0,0,0,.5); color: #fff; font-size: 1.4rem; width: 44px; height: 44px; border-radius: 50%; padding: 0; }
.visor-nav { position: absolute; top: 45%; background: rgba(0,0,0,.35); color: #fff; font-size: 2rem; width: 44px; height: 64px; padding: 0; }
.visor-nav.izq { left: 6px; } .visor-nav.der { right: 6px; }
