/* ====================================================
   Gestonet Control Horario — Kiosk CSS (móvil-first)
   ==================================================== */

/* ── Pantallas / flujo ─────────────────────────────── */
.gch-kiosco-screen { animation: gch-fadein .25s ease; }
@keyframes gch-fadein { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* ── Intro / bienvenida ────────────────────────────── */
.gch-kiosco-intro {
  text-align: center;
  margin-bottom: 28px;
}
.gch-kiosco-icon {
  font-size: 48px;
  margin-bottom: 8px;
  line-height: 1;
}
.gch-kiosco-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gch-text);
  margin: 0 0 6px;
}
.gch-kiosco-subtitle {
  font-size: 14px;
  color: var(--gch-muted);
  margin: 0;
}

/* ── Form ──────────────────────────────────────────── */
.gch-form-group {
  margin-bottom: 20px;
}
.gch-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gch-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.gch-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 18px;
  border: 2px solid var(--gch-border);
  border-radius: 10px;
  background: var(--gch-bg);
  color: var(--gch-text);
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.gch-input:focus {
  border-color: var(--gch-primary);
  background: #fff;
}
.gch-input::placeholder { color: #b0b8c8; }

/* ── PIN visual (puntos) ───────────────────────────── */
.gch-pin-display {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 16px 0 8px;
}
.gch-pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gch-border);
  border: 2px solid var(--gch-border);
  transition: background .15s, border-color .15s, transform .15s;
}
.gch-pin-dot.filled {
  background: var(--gch-primary);
  border-color: var(--gch-primary);
  transform: scale(1.15);
}

/* Campo PIN oculto — visible solo en modo "texto" (sin JS) */
.gch-pin-hidden-input {
  font-size: 24px;
  letter-spacing: 8px;
  text-align: center;
  /* Por defecto se muestra; JS lo oculta y usa los puntos visuales */
}

/* ── Error ─────────────────────────────────────────── */
.gch-kiosco-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  text-align: center;
}

/* ── Full-width button ─────────────────────────────── */
.gch-btn-full { width: 100%; }

/* ── Bienvenida (pantalla 2) ───────────────────────── */
.gch-kiosco-bienvenida {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gch-border);
}
.gch-kiosco-avatar {
  font-size: 40px;
  margin-bottom: 4px;
}
.gch-kiosco-nombre {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gch-text);
}

/* ── Salir (botón link) ────────────────────────────── */
.gch-btn-link {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--gch-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .2s;
}
.gch-btn-link:hover { background: var(--gch-bg); }

/* ── Historial en pantalla 2 ───────────────────────── */
.gch-kiosco-historial {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gch-border);
}

/* ── Responsive tweaks ─────────────────────────────── */
@media (max-width: 420px) {
  .gch-kiosco-title { font-size: 19px; }
  .gch-input { font-size: 16px; padding: 12px 14px; }
  .gch-pin-dot { width: 16px; height: 16px; }
}

/* ── Animación shake (error de PIN) ────────────────── */
@keyframes gch-shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-8px); }
  40%,80% { transform: translateX(8px); }
}
.gch-shake { animation: gch-shake .4s ease; }


/* ── Recordar datos ──────────────────────────────────────────────────────── */
.gch-remember-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gch-muted, #64748b);
  cursor: pointer;
  margin: 4px 0 12px;
  user-select: none;
}
.gch-remember-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--gch-primary, #1a56db);
  cursor: pointer;
  flex-shrink: 0;
}
