* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f4f6f8; color: #1f2933; }
.contenedor { max-width: 760px; margin: 0 auto; padding: 20px; }
.tarjeta { background: #fff; border-radius: 16px; padding: 20px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); }
h1 { font-size: 1.4rem; margin: 0 0 12px; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
button, .boton { font: inherit; border: 0; border-radius: 10px; padding: 10px 16px;
  background: #2563eb; color: #fff; cursor: pointer; }
button.secundario { background: #e5e7eb; color: #1f2933; }
button.peligro { background: #fee2e2; color: #b91c1c; padding: 4px 10px; }
input, select { font: inherit; padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 10px;
  width: 100%; margin-bottom: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eef0f2; font-size: .95rem; }
th { color: #64748b; font-weight: 600; font-size: .85rem; }
.fila { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fila > * { flex: 1; }
.muted { color: #64748b; font-size: .9rem; }
.error { color: #b91c1c; }
.oculto { display: none !important; }
.etiqueta { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .8rem; }
.entrada { background: #dcfce7; color: #166534; }
.salida { background: #e0e7ff; color: #3730a3; }
/* Pantalla de marcación */
.marca { min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 24px; }
.marca .icono { font-size: 5rem; }
.marca .titulo { font-size: 1.8rem; font-weight: 700; margin: 12px 0 4px; }
.marca .hora { font-size: 3rem; font-weight: 800; margin: 8px 0; }
.marca.ok-entrada { background: #dcfce7; }
.marca.ok-salida { background: #e0e7ff; }
.marca.fallo { background: #fee2e2; }
