/* Sistema de Votación: piezas propias sobre el sistema visual de ColePay (base.css + panel.css) */

/* ───────── Ingreso (comité, instalador) ───────── */
.login-caja { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; background: var(--grad-top); padding: 1.5rem; position: relative; overflow: hidden; }
.login-caja .caja { width: min(400px, 100%); position: relative; z-index: 1; padding: 1.8rem; animation: aparecer .5s cubic-bezier(.2,.8,.3,1) both; }
.login-caja h1 { margin: .6rem 0 .2rem; font-size: 1.5rem; letter-spacing: -.03em; }
.login-caja .sub { color: var(--suave); margin: 0 0 1.3rem; font-size: .92rem; }

/* ───────── Portada ───────── */
.portada { min-height: 100vh; min-height: 100dvh; background: var(--grad-top); color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.2rem; text-align: center; }
.portada > *:not(.orbes) { position: relative; z-index: 1; }
.portada .logo-grande { width: 84px; height: 84px; border-radius: 26px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.45), 0 0 0 8px rgba(255,255,255,.08); animation: pop .6s cubic-bezier(.2,.9,.3,1.3); object-fit: cover; background: #fff; }
.portada h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 1.1rem 0 .3rem; letter-spacing: -.04em; font-weight: 800; line-height: 1.05; }
.portada h1 span, .kiosco h1 span { background: linear-gradient(90deg, var(--menta-2), #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.portada .lema { margin: 0; opacity: .85; font-size: 1.05rem; }
.chip-colegio { display: inline-flex; gap: .45rem; align-items: center; margin-top: 1rem; padding: .4rem .9rem; border-radius: 999px; background: rgba(255,255,255,.12); font-size: .85rem; font-weight: 600; border: 1px solid rgba(255,255,255,.14); }
.chip-colegio svg { width: 16px; height: 16px; }
.accesos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; width: min(620px, 100%); margin-top: 2.2rem; }
.acceso { display: flex; align-items: center; gap: 1rem; text-align: left; text-decoration: none; color: var(--texto); background: #fff; border-radius: 24px; padding: 1.2rem 1.25rem; box-shadow: var(--sombra-2); transition: transform .18s ease, box-shadow .2s; }
.acceso:hover { transform: translateY(-3px); }
.acceso .bola { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; flex: none; background: var(--grad); color: #fff; box-shadow: 0 12px 24px -10px rgba(109,40,217,.85); }
.acceso .bola.menta { background: linear-gradient(135deg, var(--menta-2), var(--menta)); color: var(--m-900); box-shadow: 0 12px 24px -10px rgba(31,220,170,.9); }
.acceso .bola svg { width: 26px; height: 26px; }
.acceso b { display: block; font-size: 1.08rem; letter-spacing: -.02em; }
.acceso small { color: var(--suave); font-size: .85rem; }
.acceso > svg { margin-left: auto; width: 20px; height: 20px; color: var(--m-400); flex: none; }
.pie-portada { margin-top: 2rem; font-size: .78rem; opacity: .6; }

/* ───────── Estado de la elección ───────── */
.estado-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 800; background: #eeedf3; color: var(--suave); }
.estado-chip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.estado-chip.abierta { background: #e3f9f2; color: var(--menta-osc); }
.estado-chip.abierta i { animation: latido-punto 1.6s infinite; }
.estado-chip.consolidado { background: var(--m-100); color: var(--m-700); }
@keyframes latido-punto { 50% { box-shadow: 0 0 0 5px rgba(14,159,122,.2); } }

.pasos-estado { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1rem 0 0; }
.paso-estado { border: 2px solid var(--linea); border-radius: 18px; padding: .85rem 1rem; background: #fff; text-align: left; transition: all .2s; display: grid; gap: .2rem; }
.paso-estado b { font-size: .95rem; }
.paso-estado small { color: var(--suave); font-size: .78rem; line-height: 1.35; }
.paso-estado .n { width: 26px; height: 26px; border-radius: 9px; background: var(--m-50); color: var(--m-700); display: grid; place-items: center; font-weight: 800; font-size: .8rem; margin-bottom: .2rem; }
.paso-estado.activo { border-color: var(--m-500); background: var(--m-50); box-shadow: 0 10px 24px -14px rgba(109,40,217,.7); }
.paso-estado.activo .n { background: var(--grad); color: #fff; }
.paso-estado:not(.activo):hover { border-color: var(--m-300); }
@media (max-width: 640px) { .pasos-estado { grid-template-columns: 1fr; } }

/* ───────── Resultados: barras y ganador ───────── */
.barras-res { display: grid; gap: .95rem; }
.barra-res .fila { display: flex; align-items: center; gap: .7rem; margin-bottom: .4rem; }
.barra-res .logo-p { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--m-50); color: #fff; font-weight: 800; font-size: .8rem; }
.barra-res .logo-p img { width: 100%; height: 100%; object-fit: cover; }
.barra-res .nom { flex: 1; min-width: 0; }
.barra-res .nom b { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-res .nom small { color: var(--suave); font-size: .78rem; }
.barra-res .cifra { text-align: right; font-variant-numeric: tabular-nums; }
.barra-res .cifra b { font-size: 1.15rem; display: block; }
.barra-res .cifra small { color: var(--suave); font-weight: 700; font-size: .78rem; }
.barra-res .pista { height: 12px; border-radius: 8px; background: var(--m-50); overflow: hidden; }
.barra-res .pista i { display: block; height: 100%; border-radius: 8px; transition: width .9s cubic-bezier(.2,.8,.3,1); box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.barra-res.gana .nom b::after { content: ' 🏆'; }

.ganador { position: relative; overflow: hidden; background: var(--grad); color: #fff; box-shadow: 0 20px 40px -18px rgba(109,40,217,.8); display: flex; align-items: center; gap: 1.1rem; }
.ganador::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; top: -90px; background: rgba(255,255,255,.08); }
.ganador .copa { width: 64px; height: 64px; border-radius: 20px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 2rem; flex: none; overflow: hidden; }
.ganador .copa img { width: 100%; height: 100%; object-fit: cover; }
.ganador small { opacity: .8; font-weight: 700; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.ganador h3 { margin: .1rem 0; font-size: 1.4rem; letter-spacing: -.03em; }
.ganador p { margin: 0; opacity: .85; font-size: .9rem; }
.ganador.empate { background: linear-gradient(135deg, #f5a524, #c46b00); }

.avance-grados { display: grid; gap: .7rem; }
.avance-grados .g { display: grid; grid-template-columns: 110px 1fr 70px; gap: .7rem; align-items: center; font-size: .85rem; }
.avance-grados .g b { font-weight: 700; }
.avance-grados .g span { text-align: right; color: var(--suave); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ───────── Partidos (panel) ───────── */
.tarjetas-partido { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.t-partido { position: relative; overflow: hidden; padding: 0; }
.t-partido .franja { height: 70px; background: var(--c, var(--m-500)); position: relative; }
.t-partido .franja::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.35), transparent 55%); }
.t-partido .logo-p { position: absolute; left: 1.1rem; top: 34px; width: 64px; height: 64px; border-radius: 20px; background: #fff; box-shadow: var(--sombra); display: grid; place-items: center; overflow: hidden; font-weight: 800; color: var(--c); font-size: 1.3rem; z-index: 1; }
.t-partido .logo-p img { width: 100%; height: 100%; object-fit: cover; }
.t-partido .cuerpo-p { padding: 2.3rem 1.1rem 1.1rem; }
.t-partido h3 { margin: 0 0 .15rem; font-size: 1.08rem; letter-spacing: -.02em; }
.t-partido .cargos { font-size: .8rem; color: var(--suave); line-height: 1.55; margin: .5rem 0 .8rem; }
.t-partido .cargos b { color: var(--texto); font-weight: 700; }
.t-partido .votos-p { position: absolute; top: .7rem; right: .8rem; z-index: 1; background: rgba(255,255,255,.92); color: var(--m-800); }
.t-partido.inactivo { opacity: .6; }
.t-partido.inactivo .franja { filter: grayscale(1); }
.foto-pres { width: 34px; height: 34px; border-radius: 11px; object-fit: cover; vertical-align: middle; margin-right: .4rem; }

.subir-img { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.subir-img .previa { width: 64px; height: 64px; border-radius: 18px; background: var(--m-50); display: grid; place-items: center; overflow: hidden; color: var(--m-300); flex: none; }
.subir-img .previa img { width: 100%; height: 100%; object-fit: cover; }
.subir-img .previa svg { width: 26px; height: 26px; }
.subir-img .txt { flex: 1; min-width: 0; }
.subir-img .txt b { display: block; font-size: .9rem; }
.subir-img .txt small { color: var(--suave); font-size: .78rem; }
.fila-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 .8rem; }
input[type=color].entrada { padding: .3rem; height: 54px; cursor: pointer; }

.votos-mesa { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin: .4rem 0 1rem; }
.votos-mesa label { background: #fff; border-radius: 14px; padding: .6rem .7rem; display: grid; gap: .3rem; border-left: 4px solid var(--c, var(--m-500)); }
.votos-mesa label span { font-size: .78rem; font-weight: 700; color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.votos-mesa .entrada { padding: .55rem .7rem; font-weight: 800; font-size: 1.05rem; }
.suma-mesa { font-size: .88rem; font-weight: 700; color: var(--suave); margin-bottom: 1rem; }
.suma-mesa.mal { color: var(--rojo); }

.caja-peligro { border: 1.5px dashed #f3b4b6; background: #fffafa; }

/* ───────── Equipo de votación (kiosco) ───────── */
body.kiosco-app { background: var(--m-950); }
.kiosco { min-height: 100vh; min-height: 100dvh; background: var(--grad-top); color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.kiosco > *:not(.orbes) { position: relative; z-index: 1; }
.kiosco .barra-k { display: flex; align-items: center; gap: .8rem; padding: calc(1rem + env(safe-area-inset-top)) 1.3rem 0; }
.kiosco .barra-k img { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; background: #fff; }
.kiosco .barra-k .t { flex: 1; min-width: 0; line-height: 1.25; }
.kiosco .barra-k .t b { display: block; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kiosco .barra-k .t small { opacity: .7; font-size: .8rem; font-weight: 600; }
.kiosco .barra-k .equipo { font-size: .75rem; font-weight: 700; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); padding: .3rem .7rem; border-radius: 999px; }
.kiosco .centro-k { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 1.2rem 2rem; text-align: center; }
.kiosco h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 .3rem; letter-spacing: -.04em; }
.kiosco .lema { opacity: .82; margin: 0 0 1.4rem; }
.dni-visor { display: flex; gap: .4rem; justify-content: center; margin: .3rem 0 1.4rem; }
.dni-visor i { width: 38px; height: 50px; border-radius: 13px; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.18); display: grid; place-items: center; font-style: normal; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; transition: all .15s; }
.dni-visor i.lleno { background: #fff; color: var(--m-800); border-color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); }
.dni-visor.error { animation: temblor .4s ease; }
.dni-visor.error i.lleno { background: #ffd0d2; color: #8f1d21; }
.kiosco .teclado { width: min(330px, 86vw); max-width: none; }
.kiosco .teclado button.tecla-ok { background: linear-gradient(135deg, var(--menta-2), var(--menta)); color: var(--m-900); border: 0; }
.kiosco .msg-k { min-height: 1.5em; margin-top: 1rem; font-weight: 700; color: #ffd0d2; max-width: 420px; }
.kiosco .cerrar-equipo { position: absolute; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 2; opacity: .55; }
.kiosco .cerrar-equipo:hover { opacity: 1; }

/* Cédula: tarjetas de partido */
.cedula { background: var(--fondo); color: var(--texto); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.cedula .cab-cedula { background: var(--grad-top); color: #fff; padding: calc(1rem + env(safe-area-inset-top)) 1.3rem 3.6rem; border-radius: 0 0 34px 34px; position: relative; overflow: hidden; }
.cedula .cab-cedula > *:not(.orbes) { position: relative; z-index: 1; }
.cedula .cab-cedula .fila { display: flex; align-items: center; gap: .8rem; }
.cedula .cab-cedula .avatar { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.cedula .cab-cedula h2 { margin: 1rem 0 .2rem; font-size: 1.5rem; letter-spacing: -.03em; }
.cedula .cab-cedula p { margin: 0; opacity: .82; }
.cedula .tiempo { margin-left: auto; font-size: .8rem; font-weight: 800; background: rgba(255,255,255,.14); padding: .35rem .75rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.opciones-voto { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; padding: 0 1.3rem; margin-top: -2.4rem; position: relative; z-index: 2; max-width: 1200px; width: 100%; align-self: center; }
.opcion-voto {
    position: relative; border: 0; background: #fff; border-radius: 26px; padding: 0 0 1.1rem; text-align: center; overflow: hidden; box-shadow: var(--sombra);
    transition: transform .18s cubic-bezier(.2,.9,.3,1.2), box-shadow .2s; display: flex; flex-direction: column; align-items: center; color: var(--texto);
}
.opcion-voto:hover { transform: translateY(-4px); box-shadow: var(--sombra-2); }
.opcion-voto .franja { height: 64px; width: 100%; background: var(--c); position: relative; }
.opcion-voto .franja::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.35), transparent 55%); }
.opcion-voto .logo-o { width: 92px; height: 92px; border-radius: 28px; background: #fff; margin-top: -46px; position: relative; box-shadow: 0 12px 26px -12px rgba(46,15,92,.45); display: grid; place-items: center; overflow: hidden; font-size: 2rem; font-weight: 800; color: var(--c); border: 4px solid #fff; }
.opcion-voto .logo-o img { width: 100%; height: 100%; object-fit: cover; }
.opcion-voto h3 { margin: .8rem .9rem .2rem; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.2; }
.opcion-voto .candidato { display: flex; align-items: center; gap: .55rem; margin-top: .5rem; padding: .45rem .8rem .45rem .45rem; border-radius: 16px; background: var(--fondo); font-size: .85rem; text-align: left; }
.opcion-voto .candidato img, .opcion-voto .candidato .avatar { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; font-size: .78rem; }
.opcion-voto .candidato small { display: block; color: var(--suave); font-size: .72rem; font-weight: 700; }
.opcion-voto .marca-ok { position: absolute; top: .7rem; right: .7rem; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--menta-2), var(--menta)); color: var(--m-900); display: grid; place-items: center; transform: scale(0); transition: transform .25s cubic-bezier(.2,.9,.3,1.5); z-index: 2; }
.opcion-voto .marca-ok svg { width: 20px; height: 20px; }
.opcion-voto[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--menta), 0 24px 50px -20px rgba(14,159,122,.6); transform: translateY(-4px); }
.opcion-voto[aria-pressed="true"] .marca-ok { transform: scale(1); }
.opcion-voto.blanco .franja { background: repeating-linear-gradient(135deg, #e9e6f1 0 12px, #f4f2fa 12px 24px); }
.opcion-voto.blanco .logo-o { color: #b3acc7; }
.barra-confirmar { position: sticky; bottom: 0; margin-top: auto; padding: 1rem 1.3rem calc(1rem + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(244,242,250,0), var(--fondo) 35%); display: flex; gap: .7rem; justify-content: center; z-index: 5; }
.barra-confirmar .btn { min-width: min(320px, 100%); padding: 1.1rem 1.6rem; font-size: 1.1rem; border-radius: 20px; }

.confirmar-voto { text-align: center; }
.confirmar-voto .logo-o { width: 96px; height: 96px; border-radius: 28px; margin: 0 auto .8rem; display: grid; place-items: center; overflow: hidden; background: #fff; box-shadow: var(--sombra); font-size: 2rem; font-weight: 800; color: var(--c); }
.confirmar-voto .logo-o img { width: 100%; height: 100%; object-fit: cover; }

.gracias { position: fixed; inset: 0; z-index: 60; background: var(--grad-top); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; overflow: hidden; animation: aparecer .35s ease both; }
.gracias > *:not(.orbes):not(canvas) { position: relative; z-index: 1; }
.gracias h2 { font-size: 2rem; margin: 1.4rem 0 .3rem; letter-spacing: -.03em; }
.gracias p { opacity: .85; margin: 0; }
.gracias .cuenta { margin-top: 1.4rem; font-size: .85rem; background: rgba(255,255,255,.12); padding: .4rem .9rem; border-radius: 999px; font-weight: 700; }
#confeti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }

/* ───────── Licencia ───────── */
.capa-licencia { position: fixed; inset: 0; z-index: 200; background: rgba(20,6,45,.85); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 1.5rem; }
.capa-licencia .caja { width: min(430px, 100%); text-align: center; padding: 1.8rem; animation: pop .4s cubic-bezier(.2,.9,.3,1.3); }
.capa-licencia .icono-lic { width: 70px; height: 70px; border-radius: 22px; margin: 0 auto .8rem; display: grid; place-items: center; background: #fff4e0; color: #c47f00; }
.capa-licencia .icono-lic svg { width: 34px; height: 34px; }
.capa-licencia h2 { margin: 0 0 .4rem; letter-spacing: -.03em; }
.capa-licencia p { color: var(--suave); font-size: .92rem; line-height: 1.5; margin: 0 0 1rem; }
.aviso-licencia { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border-radius: 16px; background: #fff4e0; color: #7a4a00; font-size: .88rem; font-weight: 600; margin-bottom: 1rem; }
.aviso-licencia svg { width: 22px; height: 22px; flex: none; }
.aviso-licencia button { margin-left: auto; }
.aviso-licencia.urgente { background: #fdecec; color: #8f1d21; }

/* ───────── Actas (vista e impresión) ───────── */
.acta { background: #fff; color: #1d1433; font-family: var(--fuente); padding: 10mm 12mm; max-width: 210mm; margin: 0 auto; font-size: 10.5pt; }
.acta .cab { display: flex; align-items: center; gap: 4mm; border-bottom: 1.2mm solid #6d28d9; padding-bottom: 3mm; margin-bottom: 4mm; }
.acta .cab img { width: 18mm; height: 18mm; object-fit: contain; }
.acta .cab h1 { margin: 0; font-size: 15pt; color: #5b21b6; letter-spacing: -.02em; }
.acta .cab h2 { margin: .5mm 0; font-size: 11.5pt; }
.acta .cab p { margin: 0; font-size: 8.5pt; color: #6b6385; }
.acta .datos-acta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2mm; margin-bottom: 4mm; }
.acta .datos-acta div { background: #f5f3ff; border-radius: 2mm; padding: 2mm 3mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.acta .datos-acta small { display: block; font-size: 7.5pt; color: #6b6385; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.acta .datos-acta b { font-size: 13pt; }
.acta table { width: 100%; border-collapse: collapse; margin-bottom: 4mm; font-size: 9.5pt; }
.acta th { background: #5b21b6; color: #fff; padding: 2mm 2.5mm; text-align: left; font-size: 8.5pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.acta td { padding: 1.8mm 2.5mm; border-bottom: .3mm solid #e7e3f1; }
.acta td.n, .acta th.n { text-align: center; font-variant-numeric: tabular-nums; }
.acta tr.total td { font-weight: 800; background: #ede9fe; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.acta .punto { display: inline-block; width: 3mm; height: 3mm; border-radius: 50%; margin-right: 1.5mm; vertical-align: -.3mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.acta .resultado { border: .5mm solid #f5a524; background: #fff8e6; border-radius: 3mm; padding: 3mm 4mm; text-align: center; margin-bottom: 4mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.acta .resultado small { font-size: 8pt; font-weight: 800; color: #92400e; letter-spacing: .06em; }
.acta .resultado b { display: block; font-size: 14pt; margin: .5mm 0; }
.acta .resultado span { font-size: 9pt; color: #78350f; }
.acta .nota { font-size: 8.5pt; color: #6b6385; margin: 0 0 4mm; line-height: 1.45; }
.acta .firmas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8mm; margin-top: 16mm; text-align: center; font-size: 9pt; }
.acta .firmas div { border-top: .3mm solid #1d1433; padding-top: 1.5mm; }
.acta .firmas small { display: block; color: #6b6385; font-size: 8pt; }
.acta .codigo-acta { text-align: right; font-size: 7.5pt; color: #94a3b8; margin-top: 6mm; }
.vista-acta { background: #e9e6f1; border-radius: var(--radio); padding: 1rem; overflow-x: auto; }
.vista-acta .acta { box-shadow: var(--sombra); border-radius: 6px; }
@media print {
    body.imprimiendo .acta { padding: 0; max-width: none; box-shadow: none; }
}

/* ───────── Piezas tomadas de la app de ColePay ───────── */
.pestanas { display: grid; grid-template-columns: 1fr 1fr; background: #e9e5f3; border-radius: 16px; padding: 4px; margin-bottom: 1.3rem; position: relative; }
.pestanas button { border: 0; background: transparent; padding: .7rem; border-radius: 12px; font-weight: 700; font-size: .92rem; color: var(--suave); position: relative; z-index: 1; transition: color .2s; }
.pestanas button[aria-selected="true"] { color: var(--m-700); }
.pestanas .ficha { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: #fff; border-radius: 12px; box-shadow: 0 4px 12px -4px rgba(46,15,92,.2); transition: transform .3s cubic-bezier(.2,.9,.3,1.1); }
.pestanas[data-i="1"] .ficha { transform: translateX(100%); }
.barra-uso { height: 10px; background: var(--m-50); border-radius: 6px; overflow: hidden; margin-top: .6rem; }
.barra-uso i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--menta), var(--m-500)); transition: width .6s cubic-bezier(.2,.8,.3,1); }
.barra-uso.lleno i { background: linear-gradient(90deg, var(--ambar), var(--rojo)); }
.interruptor { position: relative; width: 52px; height: 30px; flex: none; }
.interruptor input { opacity: 0; width: 0; height: 0; }
.interruptor span { position: absolute; inset: 0; background: #d8d3e6; border-radius: 30px; transition: .25s; }
.interruptor span::before { content: ''; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s cubic-bezier(.2,.9,.3,1.3); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.interruptor input:checked + span { background: var(--m-500); }
.interruptor input:checked + span::before { transform: translateX(22px); }
.opcion { display: flex; align-items: center; gap: .9rem; padding: .95rem 0; border-bottom: 1px solid var(--linea); }
.opcion:last-child { border-bottom: 0; }
.opcion .info { flex: 1; }
.opcion .t { font-weight: 700; }
.opcion .s { font-size: .82rem; color: var(--suave); }

/* ── Ingreso con QR o DNI ── */
.ingreso-k { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 2rem; margin-top: .4rem; }
.ingreso-k .lado-qr, .ingreso-k .lado-dni { display: flex; flex-direction: column; align-items: center; }
.ingreso-k .nota-k { display: inline-flex; align-items: center; gap: .45rem; margin: .9rem 0 0; font-weight: 700; opacity: .85; font-size: .95rem; }
.ingreso-k .nota-k svg { width: 20px; height: 20px; }
.ingreso-k .titulo-dni { margin: 0 0 1rem; }
.ingreso-k .dni-visor { margin-top: 0; }
.ingreso-k .visor { width: min(340px, 82vw); aspect-ratio: 1; border-radius: 30px; overflow: hidden; background: rgba(0,0,0,.45); position: relative; border: 1.5px solid rgba(255,255,255,.16); box-shadow: 0 30px 60px -22px rgba(0,0,0,.65); transition: box-shadow .2s, border-color .2s; }
.ingreso-k .visor video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.ingreso-k .visor.activa video { opacity: 1; }
.ingreso-k .visor::after { content: ''; position: absolute; inset: 16%; border: 3px solid var(--menta); border-radius: 24px; box-shadow: 0 0 0 999px rgba(20,6,45,.38); pointer-events: none; }
.ingreso-k .visor .linea { position: absolute; left: 19%; right: 19%; height: 3px; background: var(--menta); box-shadow: 0 0 18px var(--menta); top: 18%; animation: escanear 1.8s ease-in-out infinite alternate; z-index: 1; display: none; }
.ingreso-k .visor.activa .linea { display: block; }
@keyframes escanear { to { top: 81%; } }
.ingreso-k .visor .estado-cam { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; padding: 2rem; z-index: 2; font-weight: 700; opacity: .85; }
.ingreso-k .visor .estado-cam svg { width: 54px; height: 54px; opacity: .7; }
.ingreso-k .visor.leido { border-color: var(--menta); box-shadow: 0 0 0 6px rgba(31,220,170,.35), 0 30px 60px -22px rgba(0,0,0,.65); }
.ingreso-k .visor.error { animation: temblor .4s ease; border-color: #ff8a8f; box-shadow: 0 0 0 6px rgba(229,72,77,.35); }
.ingreso-k .separador-k { display: flex; flex-direction: column; align-items: center; align-self: stretch; justify-content: center; gap: .6rem; opacity: .7; font-weight: 800; }
.ingreso-k .separador-k::before, .ingreso-k .separador-k::after { content: ''; width: 2px; flex: 1; max-height: 120px; background: linear-gradient(transparent, rgba(255,255,255,.35), transparent); }
.ingreso-k .separador-k span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
/* sin cámara: solo el teclado */
.ingreso-k.sin-camara { grid-template-columns: auto; }
.ingreso-k.sin-camara .lado-qr, .ingreso-k.sin-camara .separador-k { display: none; }
.ingreso-k .lado-qr.sin-camara .visor { aspect-ratio: auto; min-height: 150px; }
.ingreso-k .lado-qr.sin-camara .visor::after, .ingreso-k .lado-qr.sin-camara .nota-k { display: none; }
@media (max-width: 860px) {
    .ingreso-k { grid-template-columns: auto; gap: 1rem; }
    .ingreso-k .separador-k { flex-direction: row; align-self: auto; width: min(330px, 86vw); }
    .ingreso-k .separador-k::before, .ingreso-k .separador-k::after { width: auto; height: 2px; max-height: none; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); }
    .ingreso-k .visor { width: min(260px, 70vw); }
}
