/* =====================================================================
   CampoSistemas — EL PIN (assets/js/pin.js)
   Los mismos casilleros en todas las pantallas: la portada, el ingreso,
   Mi perfil y la ficha del usuario. Un número por casillero, tapados, y el
   ojito que los muestra mientras se lo tiene apretado.
   Hoja aparte porque la portada no carga el CSS del sistema.
   ===================================================================== */
.cs-pin-box { display: inline-flex; align-items: center; gap: 7px; }
.cs-pin-box .cs-pin-d {
  width: 44px; height: 46px; text-align: center; font-size: 1.25rem; font-weight: 700;
  font-family: 'Poppins', 'Inter', system-ui, sans-serif; padding: 0; color: #2f5e1a;
  border: 1px solid #cfdac1; border-radius: 10px; background: #fff; caret-color: #6ea23a;
}
.cs-pin-box .cs-pin-d:focus { outline: none; border-color: #6ea23a; box-shadow: 0 0 0 3px rgba(110, 162, 58, .2); }
.cs-pin-box.lectura .cs-pin-d { background: #f2f7ec; border-style: dashed; cursor: default; }

/* el ojito: se mantiene apretado para ver el PIN y se tapa solo al soltar */
.cs-pin-ojo {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  margin-left: 2px; border: 1px solid transparent; border-radius: 10px; background: transparent;
  color: #4e7d29; cursor: pointer; flex: 0 0 auto; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; user-select: none;
}
.cs-pin-ojo:hover { background: #f2f7ec; }
.cs-pin-ojo:focus-visible { outline: none; border-color: #6ea23a; box-shadow: 0 0 0 3px rgba(110, 162, 58, .2); }
.cs-pin-ojo.viendo { background: #e6f0d8; color: #2f5e1a; }

/* en la portada los casilleros son más grandes: el ojito acompaña */
.pin-box.cs-pin-conojo { align-items: center; }
.pin-box .cs-pin-ojo { width: 42px; height: 42px; }

@media (max-width: 420px) {
  .cs-pin-box .cs-pin-d { width: 38px; height: 42px; font-size: 1.1rem; }
  .cs-pin-box { gap: 5px; }
}
