/* SISDEP · Validación de usuarios v2 (/validacion/seguro/)
   Diseño aprobado en seguro/maquetas/validacion.html (mismo lenguaje del acceso de Administración). */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
	--azul: #0B4F9E; --azul-osc: #083d7a; --azul-noche: #08356B; --azul-claro: #eef4fd; --azul-borde: #c6daf6;
	--texto: #1f2a37; --texto2: #3d4a5c; --suave: #6b7a90; --borde: #c9d4e2; --borde2: #e3e8ef; --fondo: #eef2f7;
	--verde: #05603a; --verde-f: #ecfdf3; --verde-b: #abefc6;
	--rojo: #912018; --rojo-f: #fdf0ef; --rojo-b: #f1c3be;
	--ambar: #93370d; --ambar-f: #fff6e5; --ambar-b: #fedf89;
}
html, body { margin: 0; min-height: 100%; }
body { background: #fff; font-family: "Open Sans", "Segoe UI", Arial, sans-serif; color: var(--texto); -webkit-font-smoothing: antialiased; }
a { color: var(--azul); }

/* ---------- Marco: foto de la entrada de la UP + tarjeta ---------- */
.vl { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 42%) 1fr;
	background: #fff url("../../images/portada_login.jpg") no-repeat right 2vw center / min(58vw, 1100px) auto; }
.vl-zona { display: flex; align-items: center; justify-content: center; padding: 36px 16px; }
.vl-marca { position: relative; padding: 48px 48px 34px; display: flex; flex-direction: column; }
.vl-marca .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--azul); }
.vl-marca h2 { font-size: 31px; line-height: 1.2; margin: 10px 0 10px; max-width: 540px; color: var(--azul-noche); }
.vl-marca > p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--texto2); max-width: 520px; }
.vl-puntos { list-style: none; margin: auto 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.vl-puntos li { display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.4; background: rgba(255,255,255,.93);
	border: 1px solid var(--borde2); border-radius: 12px; padding: 10px 12px; box-shadow: 0 4px 14px rgba(15,40,80,.08); }
.vl-puntos i { flex: 0 0 28px; height: 28px; border-radius: 8px; background: var(--azul); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: 13px; }
.vl-pie { font-size: 12px; color: var(--suave); margin-top: 16px; }

.vl-caja { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--borde2); border-radius: 16px;
	box-shadow: 0 12px 34px rgba(15,40,80,.13); padding: 28px 30px 24px; }
.vl-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.vl-cab img { height: 46px; width: auto; }
.vl-cab > div { min-width: 0; }
.vl-cab strong { display: block; font-size: 15px; color: var(--azul-noche); white-space: nowrap; }
.vl-cab span { font-size: 12.5px; color: var(--suave); }
.vl-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--verde) !important; background: var(--verde-f); border: 1px solid var(--verde-b); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

/* ---------- Pasos ---------- */
.vl-pasos { display: flex; align-items: center; gap: 8px; margin: 0 0 22px; }
.vl-paso { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--suave); white-space: nowrap; }
.vl-paso b { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
	background: var(--fondo); color: var(--suave); border: 1.5px solid var(--borde); }
.vl-paso.activo { color: var(--texto); }
.vl-paso.activo b { background: var(--azul); border-color: var(--azul); color: #fff; box-shadow: 0 0 0 4px rgba(11,79,158,.12); }
.vl-paso.hecho b { background: var(--verde-f); border-color: var(--verde-b); color: var(--verde); }
.vl-linea { flex: 1; height: 2px; min-width: 12px; background: var(--borde2); border-radius: 2px; }
.vl-linea.hecho { background: var(--verde-b); }

/* ---------- Texto y campos ---------- */
h1 { font-size: 22px; line-height: 1.25; margin: 0 0 6px; color: var(--texto); }
.vl-sub { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; color: var(--texto2); }
label { display: block; font-size: 13.5px; font-weight: 600; margin: 0 0 6px; color: var(--texto); }
.vl-campo { position: relative; margin-bottom: 16px; }
.vl-input { width: 100%; font-size: 15.5px; padding: 12px 13px; border: 1.5px solid var(--borde); border-radius: 10px; font-family: inherit; color: var(--texto); background: #fff; transition: border-color .15s, box-shadow .15s; }
.vl-input::placeholder { color: #9aa7b8; }
.vl-input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(11,79,158,.15); }
.vl-input.mono, .mono { font-family: Consolas, "Courier New", monospace; letter-spacing: .06em; }
.vl-input.con-ico { padding-left: 42px; }
.vl-input.con-ojo { padding-right: 46px; }
.vl-input.mal { border-color: #e59a92; background: #fffafa; }
.vl-input.bien { border-color: #6fcf97; }
.vl-ico { position: absolute; left: 13px; top: 39px; color: var(--suave); pointer-events: none; display: flex; }
.vl-ojo { position: absolute; right: 6px; top: 33px; width: 36px; height: 34px; border: 0; background: none; border-radius: 8px; color: var(--suave); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.vl-ojo:hover, .vl-ojo.on { background: var(--fondo); color: var(--texto); }
.vl-ayuda { font-size: 12.5px; color: var(--suave); margin-top: 6px; line-height: 1.45; }
.vl-ayuda.mal { color: var(--rojo); }
.vl-ayuda.bien { color: var(--verde); }
.vl-igual { margin: -10px 0 8px; }
.vl-ejemplos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--suave); align-items: center; }
.vl-ejemplos code { font-family: Consolas, "Courier New", monospace; background: var(--fondo); border-radius: 6px; padding: 2px 7px; color: var(--texto2); font-size: 12.5px; }
.vl-mayus { display: none; font-size: 12.5px; color: var(--ambar); margin-top: 6px; }
.vl-mayus.on { display: block; }
/* Campo trampa para robots: invisible para las personas */
.vl-trampa { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Persona encontrada (nombre parcialmente oculto) */
.vl-persona { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--borde2); border-radius: 12px; margin-bottom: 18px; background: #fbfcfe; }
.vl-ini { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: var(--azul-claro); color: var(--azul); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.vl-persona strong { display: block; font-size: 15px; letter-spacing: .02em; }
.vl-roles { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.vl-rol { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 8px; background: var(--fondo); color: var(--texto2); }
.vl-rol.e { background: #fdf0ef; color: #b42318; } .vl-rol.p { background: var(--azul-claro); color: var(--azul); } .vl-rol.a { background: var(--ambar-f); color: var(--ambar); }
.vl-persona .vl-enlace { margin-left: auto; font-size: 13px; white-space: nowrap; }

/* Ayuda visual: dónde está el código de seguridad */
.vl-cedula { display: grid; grid-template-columns: 132px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border: 1px dashed var(--azul-borde); background: #f8fbff; border-radius: 12px; margin: -4px 0 16px; font-size: 12.5px; color: var(--texto2); line-height: 1.45; }
.vl-cedula svg { width: 132px; height: auto; display: block; }

/* Reglas de contraseña */
.vl-medidor { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; margin: -6px 0 6px; }
.vl-medidor i { height: 5px; border-radius: 3px; background: var(--borde2); transition: background .2s; }
.vl-medidor[data-n="1"] i:nth-child(-n+1) { background: #e5484d; }
.vl-medidor[data-n="2"] i:nth-child(-n+2) { background: #f59e0b; }
.vl-medidor[data-n="3"] i:nth-child(-n+3) { background: #eab308; }
.vl-medidor[data-n="4"] i { background: #16a34a; }
.vl-fuerza { font-size: 12px; color: var(--suave); margin: 0 0 10px; text-align: right; }
.vl-reglas { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 12px; font-size: 12.5px; }
.vl-reglas li { display: flex; gap: 6px; align-items: center; color: var(--suave); }
.vl-reglas li::before { content: ""; flex: 0 0 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--borde); }
.vl-reglas li.ok { color: var(--verde); }
.vl-reglas li.ok::before { border-color: #16a34a; background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/11px no-repeat; }

/* Botones y enlaces */
.vl-btn { display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 13px 18px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; font-family: inherit; transition: background .15s, transform .05s; width: 100%; }
.vl-btn:active { transform: translateY(1px); }
.vl-btn-pri { background: var(--azul); color: #fff; margin-top: 6px; }
.vl-btn-pri:hover { background: var(--azul-osc); color: #fff; }
.vl-btn-pri:disabled { background: #9db5d3; cursor: not-allowed; }
.vl-btn-sec { background: var(--fondo); color: var(--texto); margin-top: 8px; }
.vl-btn-sec:hover { background: #e1e8f1; color: var(--texto); }
.vl-enlaces { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: 13.5px; }
.vl-enlace { color: var(--azul); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.vl-enlace:hover { text-decoration: underline; }

/* Avisos */
.vl-aviso { display: flex; gap: 10px; align-items: flex-start; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; }
.vl-aviso svg { flex: 0 0 18px; margin-top: 1px; }
.vl-aviso.error { background: var(--rojo-f); color: var(--rojo); border: 1px solid var(--rojo-b); }
.vl-aviso.ok { background: var(--verde-f); color: var(--verde); border: 1px solid var(--verde-b); }
.vl-aviso.info { background: var(--azul-claro); color: var(--azul-noche); border: 1px solid var(--azul-borde); }
.vl-aviso.alerta { background: var(--ambar-f); color: var(--ambar); border: 1px solid var(--ambar-b); }
.vl-nota { margin: 18px 0 0; }
.vl-intentos { display: inline-flex; gap: 4px; margin-left: 4px; vertical-align: middle; }
.vl-intentos i { width: 8px; height: 8px; border-radius: 50%; background: var(--rojo-b); }
.vl-intentos i.usado { background: var(--rojo); }

/* Pantallas de resultado */
.vl-centro { text-align: center; }
.vl-icono { width: 68px; height: 68px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; margin: 4px 0 14px; }
.vl-icono.ok { background: var(--verde-f); color: var(--verde); }
.vl-icono.alerta { background: var(--ambar-f); color: #b54708; }
.vl-icono.neutro { background: var(--fondo); color: var(--suave); }
.vl-icono.info { background: var(--azul-claro); color: var(--azul); }
.vl-reloj { font-family: Consolas, "Courier New", monospace; font-size: 38px; font-weight: 700; color: var(--ambar); margin: 2px 0 6px; }
.vl-barra { height: 5px; background: var(--borde2); border-radius: 5px; overflow: hidden; margin: 0 auto 18px; max-width: 260px; }
.vl-barra span { display: block; height: 100%; width: 100%; background: #f59e0b; transition: width 1s linear; }
.vl-resumen { text-align: left; border: 1px solid var(--borde2); border-radius: 12px; margin: 4px 0 16px; overflow: hidden; }
.vl-resumen div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: 13.5px; border-top: 1px solid var(--borde2); }
.vl-resumen div:first-child { border-top: 0; }
.vl-resumen span { color: var(--suave); }
.vl-resumen b { text-align: right; }

@media (max-width: 900px) {
	.vl { grid-template-columns: 1fr; background-position: center top; background-size: 100% auto; }
	.vl-marca { display: none; }
	.vl-zona { align-items: flex-start; padding-top: 28vw; }
}
@media (max-width: 440px) {
	.vl-caja { padding: 22px 18px 20px; border-radius: 14px; }
	.vl-paso span { display: none; }
	.vl-reglas { grid-template-columns: 1fr; }
	.vl-cedula { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.vl-chip { display: none !important; }
}

/* Código de seguridad: tipo de cédula, ejemplo y casillas (2026-11-03) */
.vl-lbl { display: block; font-weight: 600; font-size: 14px; margin: 0 0 7px; color: var(--texto); }
.vl-tipo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.vl-tipo label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px 9px; border: 1.5px solid var(--borde2); border-radius: 12px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--texto2); text-align: center; background: #fff; margin: 0; transition: border-color .15s, background .15s; }
.vl-tipo label small { font-weight: 400; color: var(--suave); font-size: 11.5px; }
.vl-tipo label.on { border-color: var(--azul); background: var(--azul-claro); color: var(--azul-noche); box-shadow: 0 0 0 3px rgba(11,79,158,.10); }
.vl-tipo input { position: absolute; opacity: 0; pointer-events: none; }
.vl-tipo input:focus-visible + svg { outline: 2px solid var(--azul); outline-offset: 2px; border-radius: 6px; }
.vl-tipo svg { width: 96px; height: auto; display: block; }
.vl-ej { border: 1px dashed var(--azul-borde); background: #f8fbff; border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; font-size: 12.5px; color: var(--texto2); line-height: 1.45; }
.vl-ej[hidden] { display: none; }
.vl-cod { display: flex; flex-wrap: wrap; gap: 3px; margin: 6px 0 4px; }
.vl-cod i { font-style: normal; font-family: Consolas, "Courier New", monospace; font-size: 15px; font-weight: 700; color: var(--azul-noche); background: #fff; border: 1px solid var(--azul-borde); border-radius: 5px; min-width: 21px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.vl-codigo .vl-campo { position: relative; }
.vl-cuenta { position: absolute; right: 0; top: 0; font-size: 12px; font-weight: 700; color: var(--suave); font-family: Consolas, monospace; }
.vl-cuenta.ok { color: var(--verde); }
.vl-casillas { position: relative; }
.vl-cajas { display: none; }
.vl-casillas.js-on .vl-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 2; cursor: text; padding: 0; }
.vl-casillas.js-on .vl-cajas { display: grid; grid-template-columns: repeat(var(--n, 11), 1fr); gap: 4px; }
.vl-cajas i { font-style: normal; height: 46px; border: 1.5px solid var(--borde); border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; font-family: Consolas, "Courier New", monospace; font-size: 20px; font-weight: 700; color: var(--azul-noche); transition: border-color .12s, background .12s, box-shadow .12s; }
.vl-cajas i.lleno { border-color: #8fb1dd; background: #f8fbff; }
.vl-cajas i.sig { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(11,79,158,.15); }
.vl-cajas i.sig::after { content: ""; width: 2px; height: 22px; background: var(--azul); animation: vl-cursor 1s steps(1) infinite; }
@keyframes vl-cursor { 50% { opacity: 0; } }
.vl-casillas.ok .vl-cajas i { border-color: var(--verde-b); background: var(--verde-f); color: var(--verde); }
.vl-casillas.mal .vl-cajas i, .vl-casillas .vl-input.mal ~ .vl-cajas i { border-color: #e59a92; background: #fffafa; }
.vl-casillas.sacude { animation: vl-sacude .25s; }
@keyframes vl-sacude { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (max-width: 440px) { .vl-casillas.js-on .vl-cajas { gap: 3px; } .vl-cajas i { height: 40px; font-size: 17px; border-radius: 6px; } }
